[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: cannot push image



Hi Hetz,

It seems that your Registry and Router PODs are not running. Probably there's a problem avoiding them to deploy.

Can you send the output of the commands below?

# oc describe pod docker-registry-1-deploy
# oc describe pod router-1-deploy



Rodrigo Bersa

Cloud Consultant, RHCSA, RHCVA

Red Hat Brasil

rbersa redhat com    M: +55 11 99557-5841

Red Hat




On Tue, May 23, 2017 at 8:28 AM, Hetz Ben Hamo <hetz hetz biz> wrote:
]# oc get pods -n default
NAME                        READY     STATUS    RESTARTS   AGE
docker-registry-1-deploy    0/1       Pending   0          16m
registry-console-1-deploy   0/1       Error     0          15m
router-1-deploy             0/1       Pending   0          17m
[root master-home ~]# oc logs registry-console-1-deploy
--> Scaling registry-console-1 to 1
--> Waiting up to 10m0s for pods in rc registry-console-1 to become ready
error: update acceptor rejected registry-console-1: pods for rc "registry-console-1" took longer than 600 seconds to become ready
[root master-home ~]# oc logs router-1-deploy
[root master-home ~]# oc logs docker-registry-1-deploy
[root master-home ~]# oc logs docker-registry-1-deploy -n default
[root master-home ~]# oc get pods


תודה,
חץ בן חמו
אתם מוזמנים לבקר בבלוג היעוץ או בבלוג הפרטי שלי

On Tue, May 23, 2017 at 1:49 AM, Ben Parees <bparees redhat com> wrote:


On Mon, May 22, 2017 at 6:18 PM, Hetz Ben Hamo <hetz hetz biz> wrote:
Hi,

I've built on a 3 nodes openshift origin using the host file included below, but it seems few things are getting broken. I didn't modify anything yet on the openshift, just used the openshift-Ansible checked out from today.

Problem one: After building an image from the examples (I chose Java with the example of wildfly) I get:

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12.182 s
[INFO] Finished at: 2017-05-22T22:08:21+00:00
[INFO] Final Memory: 14M/134M
[INFO] ------------------------------------------------------------------------
Moving built war files into /wildfly/standalone/deployments for later deployment...
Moving all war artifacts from /opt/app-root/src/target directory into /wildfly/standalone/deployments for later deployment...
'/opt/app-root/src/target/ROOT.war' -> '/wildfly/standalone/deployments/ROOT.war'
Moving all ear artifacts from /opt/app-root/src/target directory into /wildfly/standalone/deployments for later deployment...
Moving all rar artifacts from /opt/app-root/src/target directory into /wildfly/standalone/deployments for later deployment...
Moving all jar artifacts from /opt/app-root/src/target directory into /wildfly/standalone/deployments for later deployment...
...done
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: <<non-empty>>
error: build error: Failed to push image: Get https://172.30.172.85:5000/v1/_ping: dial tcp 172.30.172.85:5000: getsockopt: connection refused


can you confirm your registry pod is running in the default namespace (oc get pods -n default)?  Can you get logs from it?

 

Another problem: I added the metrics option so it installed hawkler but when it complains that it needs SSL approval (it shows a message about a problem with hawkler and gives a link to open it) I get upon clicking the link: connection refused.

I've tested the host configuration on 2 sets of VM's (one at home with digital ocean, another set here at home with VMWare). I've set up DNS with subdomain wildcard and I can ping the app names but trying to connect through a browser or curl - gives connection refused.

Have I missed something?

here is my byo host file:

[OSEv3:children]
masters
nodes

[OSEv3:vars]
ansible_ssh_user=root

deployment_type=origin
openshift_release=v1.5.0
containerized=true
openshift_install_examples=true
openshift_hosted_metrics_deploy=true

# use htpasswd authentication with demo/demo
openshift_master_identity.providers=[{'name': 'htpasswd_auth', 'login': 'true', 'challenge': 'true', 'kind': 'HTPasswdPasswordIdentityProvider', 'filename': '/etc/origin/master/htpasswd'}]
openshift_master_htpasswd_users={'demo': '$XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.'}

# put the router on dedicated infra node
openshift_hosted_router_selector='region=infra'
openshift_master_default_subdomain=apps.test.com

# put the image registry on dedicated infra node
openshift_hosted_registry_selector='region=infra'

#.project pods should be placed on primary nodes
osm_default_node_selector='region=primary'

[masters]
master-home.test.com openshift_public_hostname="master-home.test.com"

[nodes]
# master needs to be included in the node to be configured in the SDN
master-home.test.com openshift_node_labels="{'region': 'infra', 'zone': 'default'}"
node1-home.test.com openshift_node_labels="{'region': 'primary', 'zone': 'default'}"
node2-home.test.com openshift_node_labels="{'region': 'primary', 'zone': 'default'}"


Thanks

_______________________________________________
users mailing list
users lists openshift redhat com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users




--
Ben Parees | OpenShift



_______________________________________________
users mailing list
users lists openshift redhat com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]