Contrail Networking :: 14.04 27 mitaka :: ansible provisioning fails to start.

Bug #1708346 reported by Ritam Gangopadhyay
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R4.0
Fix Committed
Critical
Ramprakash R
Trunk
Fix Committed
Critical
Ramprakash R

Bug Description

"2017-08-03 09:41:31,335-DEBUG-server_mgr_main.py:6394-provision_server(): provision queued. Number of servers provisioned is 6:"
"2017-08-03 09:41:31,498-INFO-sm_ansible_utils.py:284-send_REST_request(): Sending post request to http://10.204.217.129:9003/run_openstack_playbook"
"2017-08-03 09:41:32,506-INFO-sm_ansible_server.py:38-run(): Joining a process"
"2017-08-03 09:41:32,518-INFO-sm_ansible_playbook.py:734-run(): Executing Ansible Playbook Actions: ['openstack_bootstrap', 'openstack_deploy', 'openstack_post_deploy', 'openstack_post_deploy_contrail', 'contrail_deploy']"
"2017-08-03 09:41:32,600-INFO-sm_ansible_playbook.py:700-run_playbook(): Creating inventory /opt/contrail/server_manager/ansible/playbooks/networking_image/kolla-ansible/ansible/inventory/contrail_cluster_kolla.inv for playbook /opt/contrail/server_manager/ansible/playbooks/networking_image/kolla-ansible/ansible/kolla-host.yml"
"2017-08-03 09:41:32,602-INFO-sm_ansible_playbook.py:703-run_playbook(): Created inventory /opt/contrail/server_manager/ansible/playbooks/networking_image/kolla-ansible/ansible/inventory/contrail_cluster_kolla.inv for playbook /opt/contrail/server_manager/ansible/playbooks/networking_image/kolla-ansible/ansible/kolla-host.yml"
"2017-08-03 09:41:32,632-INFO-sm_ansible_playbook.py:715-run_playbook(): Starting playbook /opt/contrail/server_manager/ansible/playbooks/networking_image/kolla-ansible/ansible/kolla-host.yml"
Ansible callback init - smgr_ip: 10.204.217.129"2017-08-03 09:41:32,755-INFO-sm_ansible_callback.py:43-append(): PLAY [Apply role baremetal]"
"2017-08-03 09:41:32,790-INFO-sm_ansible_callback.py:43-append(): TASK [baremetal : include]"
"2017-08-03 09:41:32,851-INFO-sm_ansible_callback.py:43-append(): TASK [baremetal : include]"
"2017-08-03 09:41:32,934-INFO-sm_ansible_callback.py:43-append(): TASK [baremetal : Install python2 and python-simplejson]"
"2017-08-03 09:41:33,233-INFO-sm_ansible_callback.py:43-append(): fatal: [10.204.217.176]: FAILED! => (item - None) {"changed": true, "failed": true, "rc": 100, "stderr": "Warning: Permanently added '10.204.217.176' (ECDSA) to the list of known hosts.\r\nShared connection to 10.204.217.176 closed.\r\n", "stdout": "/bin/sh: 1: yum: not found\r\n\r\r0% [Working]\r \rIgn http://10.204.217.129:80 ./ InRelease\r\n\r \r17% [Waiting for headers]\r \rIgn http://puppet contrail InRelease\r\n\r \r25% [Working]\r \rIgn http://10.204.217.129:80 ./ Release.gpg\r\n\r \r30% [Waiting for headers]\r \rIgn http://puppet contrail Release.gpg\r\n\r \r33% [Working]\r \rIgn http://10.204.217.129:80 ./ Release\r\n\r \r28% [Waiting for headers]\r \rHit http://puppet contrail Release\r\n\r \r47% [Working]\r \rIgn http://10.204.217.129:80 ./ Packages/DiffIndex\r\n\r50% [Working]\r \rIgn http://puppet contrail/main amd64 Packages/DiffIndex\r\n\r53% [Working]\r \rHit http://10.204.217.129:80 ./ Packages\r\n\r \r53% [Waiting for headers]\r \rIgn http://10.204.217.129:80 ./ Translation-en_US\r\n\r \r58% [Working]\r \r58% [Packages 54.8 kB] [Waiting for headers] [Waiting for headers]\r \rIgn http://10.204.217.129:80 ./ Translation-en\r\n\r \r63% [Packages 54.8 kB] [Waiting for headers]\r \r100% [Waiting for headers]\r \rErr http://puppet contrail/main Sources\r\n 404 Not Found\r\n\r \r100% [Working]\r \rHit http://puppet contrail/main amd64 Packages\r\n\r100% [Working]\r \r100% [Packages 866 kB] [Waiting for headers]\r \rErr http://puppet contrail/main i386 Packages\r\n 404 Not Found\r\n\r \r100% [Packages 866 kB]\r \rIgn http://puppet contrail/main Translation-en_US\r\n\r100% [Packages 866 kB]\r \rIgn http://puppet contrail/main Translation-en\r\n\r100% [Packages 866 kB]\r \r100% [Working]\r \rW: Failed to fetch http://puppet/contrail/repo/openstack_image/dists/contrail/main/source/Sources 404 Not Found\r\n\r\nW: Failed to fetch http://puppet/contrail/repo/openstack_image/dists/contrail/main/binary-i386/Packages 404 Not Found\r\n\r\nE: Some index files failed to download. They have been ignored, or old ones used instead.\r\n", "stdout_lines": ["/bin/sh: 1: yum: not found", "", "", "0% [Working]", " ", "Ign http://10.204.217.129:80 ./ InRelease", "", " ", "17% [Waiting for headers]", " ", "Ign http://puppet contrail InRelease", "", " ", "25% [Working]", " ", "Ign http://10.204.217.129:80 ./ Release.gpg", "", " ", "30% [Waiting for headers]", " ", "Ign http://puppet contrail Release.gpg", "", " ", "33% [Working]", " ", "Ign http://10.204.217.129:80 ./ Release", "", " ", "28% [Waiting for headers]", " ", "Hit http://puppet contrail Release", "", " ", "47% [Working]", " ", "Ign http://10.204.217.129:80 ./ Packages/DiffIndex", "", "50% [Working]", " ", "Ign http://puppet contrail/main amd64 Packages/DiffIndex", "", "53% [Working]", " ", "Hit http://10.204.217.129:80 ./ Packages", "", " ", "53% [Waiting for headers]", " ", "Ign http://10.204.217.129:80 ./ Translation-en_US", "", " ", "58% [Working]", " ", "58% [Packages 54.8 kB] [Waiting for headers] [Waiting for headers]", " ", "Ign http://10.204.217.129:80 ./ Translation-en", "", " ", "63% [Packages 54.8 kB] [Waiting for headers]", " ", "100% [Waiting for headers]", " ", "Err http://puppet contrail/main Sources", " 404 Not Found", "", " ", "100% [Working]", " ", "Hit http://puppet contrail/main amd64 Packages", "", "100% [Working]", " ", "100% [Packages 866 kB] [Waiting for headers]", " ", "Err http://puppet contrail/main i386 Packages", " 404 Not Found", "", " ", "100% [Packages 866 kB]", " ", "Ign http://puppet contrail/main Translation-en_US", "", "100% [Packages 866 kB]", " ", "Ign http://puppet contrail/main Translation-en", "", "100% [Packages 866 kB]", " ", "100% [Working]", " ", "W: Failed to fetch http://puppet/contrail/repo/openstack_image/dists/contrail/main/source/Sources 404 Not Found", "", "W: Failed to fetch http://puppet/contrail/repo/openstack_image/dists/contrail/main/binary-i386/Packages 404 Not Found", "", "E: Some index files failed to download. They have been ignored, or old ones used instead."]}"
"2017-08-03 09:41:33,241-INFO-sm_ansible_utils.py:284-send_REST_request(): Sending post request to http://10.204.217.129:9002/ansible_status?server_id=10.204.217.176&state=provision_failed"
"2017-08-03 09:41:33,243-DEBUG-server_mgr_status.py:132-put_ansible_status(): Server status Data nodec10 provision_failed 2017_08_03__09_41_33"
"2017-08-03 09:41:33,397-DEBUG-server_mgr_status.py:135-put_ansible_status(): ######### cluster is openstack_cluster ##########"
"2017-08-03 09:41:33,400-INFO-sm_ansible_callback.py:43-append(): PLAY RECAP [10.204.217.176] : ok: 2 changed: 0 unreachable: 0 skipped: 0 failed: 1"
"2017-08-03 09:41:33,401-INFO-sm_ansible_utils.py:284-send_REST_request(): Sending post request to http://10.204.217.129:9002/ansible_status?server_id=10.204.217.77&state=provision_failed"
"2017-08-03 09:41:33,403-DEBUG-server_mgr_status.py:132-put_ansible_status(): Server status Data nodeg37 provision_failed 2017_08_03__09_41_33"
"2017-08-03 09:41:33,564-DEBUG-server_mgr_status.py:135-put_ansible_status(): ######### cluster is contrail_cluster ##########"
"2017-08-03 09:41:33,567-INFO-sm_ansible_utils.py:284-send_REST_request(): Sending post request to http://10.204.217.129:9002/ansible_status?server_id=10.204.217.13&state=provision_failed"
"2017-08-03 09:41:33,570-DEBUG-server_mgr_status.py:132-put_ansible_status(): Server status Data nodec28 provision_failed 2017_08_03__09_41_33"
"2017-08-03 09:41:33,681-DEBUG-server_mgr_status.py:135-put_ansible_status(): ######### cluster is contrail_cluster ##########"
"2017-08-03 09:41:33,684-INFO-sm_ansible_utils.py:284-send_REST_request(): Sending post request to http://10.204.217.129:9002/ansible_status?server_id=10.204.217.129&state=provision_failed"
"2017-08-03 09:41:33,686-DEBUG-server_mgr_status.py:132-put_ansible_status(): Server status Data nodei17 provision_failed 2017_08_03__09_41_33"
"2017-08-03 09:41:33,807-DEBUG-server_mgr_status.py:135-put_ansible_status(): ######### cluster is contrail_cluster ##########"
"2017-08-03 09:41:33,811-INFO-sm_ansible_utils.py:284-send_REST_request(): Sending post request to http://10.204.217.129:9002/ansible_status?server_id=10.204.217.131&state=provision_failed"
"2017-08-03 09:41:33,813-DEBUG-server_mgr_status.py:132-put_ansible_status(): Server status Data nodei19 provision_failed 2017_08_03__09_41_33"
"2017-08-03 09:41:33,933-DEBUG-server_mgr_status.py:135-put_ansible_status(): ######### cluster is contrail_cluster ##########"
"2017-08-03 09:41:33,936-INFO-sm_ansible_utils.py:284-send_REST_request(): Sending post request to http://10.204.217.129:9002/ansible_status?server_id=10.204.217.132&state=provision_failed"
"2017-08-03 09:41:33,939-DEBUG-server_mgr_status.py:132-put_ansible_status(): Server status Data nodei20 provision_failed 2017_08_03__09_41_33"
"2017-08-03 09:41:34,066-DEBUG-server_mgr_status.py:135-put_ansible_status(): ######### cluster is contrail_cluster ##########"
"2017-08-03 09:41:34,070-INFO-sm_ansible_utils.py:284-send_REST_request(): Sending post request to http://10.204.217.129:9002/ansible_status?server_id=10.204.217.168&state=provision_failed"
"2017-08-03 09:41:34,073-DEBUG-server_mgr_status.py:132-put_ansible_status(): Server status Data nodec33 provision_failed 2017_08_03__09_41_34"
"2017-08-03 09:41:34,225-DEBUG-server_mgr_status.py:135-put_ansible_status(): ######### cluster is contrail_cluster ##########"
"2017-08-03 09:41:34,228-ERROR-sm_ansible_playbook.py:721-run_playbook(): Playbook Failed: /opt/contrail/server_manager/ansible/playbooks/networking_image/kolla-ansible/ansible/kolla-host.yml"
"2017-08-03 09:41:34,232-INFO-sm_ansible_server.py:43-run(): Process Done"

Changed in juniperopenstack:
assignee: Ram (ram) → Ramprakash R (ramprakash)
information type: Proprietary → Public
Revision history for this message
Abhay Joshi (abhayj) wrote :

Ritam,

Can you please add JSONs used and steps taken to provision?

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/34283
Submitter: Ramprakash R (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R4.0

Review in progress for https://review.opencontrail.org/34284
Submitter: Ramprakash R (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/34283
Committed: http://github.com/Juniper/contrail-server-manager/commit/68f20ed59ef1bb3e4cd8cb079a06dd65b6aad7cb
Submitter: Zuul (<email address hidden>)
Branch: master

commit 68f20ed59ef1bb3e4cd8cb079a06dd65b6aad7cb
Author: Contrail Builder <email address hidden>
Date: Thu Aug 3 15:14:52 2017 +0000

Run contrail_deploy playbook when there are no openstack nodes

By default the tasks variable is passed a string of comma-separated values
representing the playbooks that need to run that includes playbooks for
openstack provisioning. But in the scenario where there are not openstack roles
in the cluster, do not run the openstack playbooks and run only the
contrail_deploy playbook

Change-Id: Ifaf835c26ad0cabd7fb0f8bbc1e8831f04cde1e9
Closes-bug: #1708346

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/34284
Committed: http://github.com/Juniper/contrail-server-manager/commit/7080f72a21107a9b082d7454058906af2ced03e7
Submitter: Zuul (<email address hidden>)
Branch: R4.0

commit 7080f72a21107a9b082d7454058906af2ced03e7
Author: Contrail Builder <email address hidden>
Date: Thu Aug 3 15:14:52 2017 +0000

Run contrail_deploy playbook when there are no openstack nodes

By default the tasks variable is passed a string of comma-separated values
representing the playbooks that need to run that includes playbooks for
openstack provisioning. But in the scenario where there are not openstack roles
in the cluster, do not run the openstack playbooks and run only the
contrail_deploy playbook

Change-Id: Ifaf835c26ad0cabd7fb0f8bbc1e8831f04cde1e9
Closes-bug: #1708346

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.