Getting issue while deploying new app in openshift container platform3.6

Posted on

We have installed Openshift Container Platform 3.6 on RHEL7.4, Docker 1.12.6 using Ansible playbook. Installation got completed successfully.
After installation when we are trying to deploy any application (like " oc new-app rails-pgsql-persistent") we are getting below error.
Have checked and Router and Docker-regisrty pods are running fine.
******ERROR MESSAGE*******

Configuring YAML-LibYAML-0.69 ... OK
Building YAML-LibYAML-0.69 ... OK
Successfully installed YAML-LibYAML-0.69
<== Installed dependencies for .. Finishing.
83 distributions installed
Running post commit hook ...
sh: cannot set terminal process group (-1): Inappropriate ioctl for device
sh: no job control in this shell
1..1
ok 1 - use inventory;
Pushing image docker-registry.default.svc:5000/test3/dancer-mysql-example:latest ...
Warning: Push failed, retrying in 5s ...
Warning: Push failed, retrying in 5s ...
Warning: Push failed, retrying in 5s ...
Warning: Push failed, retrying in 5s ...
Warning: Push failed, retrying in 5s ...
Warning: Push failed, retrying in 5s ...
Warning: Push failed, retrying in 5s ...
Registry server Address:
Registry server User Name: serviceaccount
Registry server Email: serviceaccount@example.org
Registry server Password: <>
error: build error: Failed to push image: After retrying 6 times, Push image still failed due to error: Get https://docker-registry.default.svc:5000/v1/_ping: dial tcp 172.30.34.198:5000: getsockopt: no route to host

*****Below is the Ansible inventory file configuration used while installation**************
[OSEv3:children]
masters
nodes
[OSEv3:vars]
ansible_ssh_user=root
openshift_deployment_type=openshift-enterprise
openshift_disable_check="docker_storage,package_version"

deployment_type will be “openshift_enterprise” for OCP

openshift_master_identity_providers=[{'name': 'htpasswd_auth', 'login': 'true', 'challenge': 'true', 'kind': 'HTPasswdPasswordIdentityProvider', 'filename': '/etc/origin/master/htpasswd'}]
[masters]
xxx.ec2.internal
[nodes]
xxx.ec2.internal openshift_node_labels="{'region': 'infra'}" openshift_schedulable=true
xxx.ec2.internal openshift_node_labels="{'region': 'prod'}" openshift_schedulable=true

Responses