Re: [Starlingx-discuss] Issue in running ansible playbook
Hi folks - anyone have some insight for Pavan on this? Thanks, Bill... From: Pavan Gupta <pavan.gupta@calsoftinc.com> Sent: Friday, August 16, 2019 5:40 AM To: Zvonar, Bill <Bill.Zvonar@windriver.com> Cc: saichandu.behara@calsoftinc.com Subject: Issue in running ansible playbook Hi Bill, With Stx2.0, we are looking in to the following issue after running this command: 'ansible-playbook /usr/share/ansible/stx-ansible/playbooks/bootstrap/bootstrap.yml'. If you have any pointers, kindly let us know. TASK [persist-config : debug] ******************************************************************************* ok: [localhost] => { "populate_result": { "changed": true, "failed": false, "failed_when_result": false, "msg": "non-zero return code", "rc": 1, "stderr": "No handlers could be found for logger \"controllerconfig.common.rest_api_utils\"\nTraceback (most recent call last):\n File \"/tmp/.ansible-sysadmin/tmp/ansible-tmp-1565850999.9-200492702943299/populate_initial_config.py\", line 950, in <module>\n with openstack.OpenStack() as client:\n File \"/usr/lib64/python2.7/site-packages/controllerconfig/openstack.py\", line 62, in __enter__\n raise Exception('Failed to connect')\nException: Failed to connect\n", "stderr_lines": [ "No handlers could be found for logger \"controllerconfig.common.rest_api_utils\"", "Traceback (most recent call last):", " File \"/tmp/.ansible-sysadmin/tmp/ansible-tmp-1565850999.9-200492702943299/populate_initial_config.py\", line 950, in <module>", " with openstack.OpenStack() as client:", " File \"/usr/lib64/python2.7/site-packages/controllerconfig/openstack.py\", line 62, in __enter__", " raise Exception('Failed to connect')", "Exception: Failed to connect" ], "stdout": "Failed to provision the initial system config.\n", "stdout_lines": [ "Failed to provision the initial system config." ] } }
Hi Bill, We could resolve this issue, it was related to Openstack authentication. Instead of using standard username/password (St8rlingX*/ St8rlingX*), we were using our own credentials. At present, we are resolving issue with docker version, K8s doesn't accept latest version of docker, it is asking for version 18.06. Pavan From: Zvonar, Bill <Bill.Zvonar@windriver.com> Sent: 21 August 2019 17:05 To: Pavan Gupta <pavan.gupta@calsoftinc.com>; starlingx-discuss@lists.starlingx.io Cc: saichandu.behara@calsoftinc.com Subject: RE: Issue in running ansible playbook Hi folks - anyone have some insight for Pavan on this? Thanks, Bill... From: Pavan Gupta <pavan.gupta@calsoftinc.com <mailto:pavan.gupta@calsoftinc.com> > Sent: Friday, August 16, 2019 5:40 AM To: Zvonar, Bill <Bill.Zvonar@windriver.com <mailto:Bill.Zvonar@windriver.com> > Cc: saichandu.behara@calsoftinc.com <mailto:saichandu.behara@calsoftinc.com> Subject: Issue in running ansible playbook Hi Bill, With Stx2.0, we are looking in to the following issue after running this command: 'ansible-playbook /usr/share/ansible/stx-ansible/playbooks/bootstrap/bootstrap.yml'. If you have any pointers, kindly let us know. TASK [persist-config : debug] **************************************************************************** *** ok: [localhost] => { "populate_result": { "changed": true, "failed": false, "failed_when_result": false, "msg": "non-zero return code", "rc": 1, "stderr": "No handlers could be found for logger \"controllerconfig.common.rest_api_utils\"\nTraceback (most recent call last):\n File \"/tmp/.ansible-sysadmin/tmp/ansible-tmp-1565850999.9-200492702943299/popula te_initial_config.py\", line 950, in <module>\n with openstack.OpenStack() as client:\n File \"/usr/lib64/python2.7/site-packages/controllerconfig/openstack.py\", line 62, in __enter__\n raise Exception('Failed to connect')\nException: Failed to connect\n", "stderr_lines": [ "No handlers could be found for logger \"controllerconfig.common.rest_api_utils\"", "Traceback (most recent call last):", " File \"/tmp/.ansible-sysadmin/tmp/ansible-tmp-1565850999.9-200492702943299/popula te_initial_config.py\", line 950, in <module>", " with openstack.OpenStack() as client:", " File \"/usr/lib64/python2.7/site-packages/controllerconfig/openstack.py\", line 62, in __enter__", " raise Exception('Failed to connect')", "Exception: Failed to connect" ], "stdout": "Failed to provision the initial system config.\n", "stdout_lines": [ "Failed to provision the initial system config." ] } }
Odd. Test teams have not encountered a bootstrap issue in stx2.0 Pavan, is sysinv-api up? You may want to check sysinv and puppet logs for clue. Can you also share the ansible.log (should be under /home/sysadmin) and the content of host override file (localhost.yml)? Tee From: Zvonar, Bill [mailto:Bill.Zvonar@windriver.com] Sent: August-21-19 7:35 AM To: Pavan Gupta; starlingx-discuss@lists.starlingx.io Cc: saichandu.behara@calsoftinc.com Subject: Re: [Starlingx-discuss] Issue in running ansible playbook Hi folks - anyone have some insight for Pavan on this? Thanks, Bill... From: Pavan Gupta <pavan.gupta@calsoftinc.com> Sent: Friday, August 16, 2019 5:40 AM To: Zvonar, Bill <Bill.Zvonar@windriver.com> Cc: saichandu.behara@calsoftinc.com Subject: Issue in running ansible playbook Hi Bill, With Stx2.0, we are looking in to the following issue after running this command: 'ansible-playbook /usr/share/ansible/stx-ansible/playbooks/bootstrap/bootstrap.yml'. If you have any pointers, kindly let us know. TASK [persist-config : debug] ******************************************************************************* ok: [localhost] => { "populate_result": { "changed": true, "failed": false, "failed_when_result": false, "msg": "non-zero return code", "rc": 1, "stderr": "No handlers could be found for logger \"controllerconfig.common.rest_api_utils\"\nTraceback (most recent call last):\n File \"/tmp/.ansible-sysadmin/tmp/ansible-tmp-1565850999.9-200492702943299/populate_initial_config.py\", line 950, in <module>\n with openstack.OpenStack() as client:\n File \"/usr/lib64/python2.7/site-packages/controllerconfig/openstack.py\", line 62, in __enter__\n raise Exception('Failed to connect')\nException: Failed to connect\n", "stderr_lines": [ "No handlers could be found for logger \"controllerconfig.common.rest_api_utils\"", "Traceback (most recent call last):", " File \"/tmp/.ansible-sysadmin/tmp/ansible-tmp-1565850999.9-200492702943299/populate_initial_config.py\", line 950, in <module>", " with openstack.OpenStack() as client:", " File \"/usr/lib64/python2.7/site-packages/controllerconfig/openstack.py\", line 62, in __enter__", " raise Exception('Failed to connect')", "Exception: Failed to connect" ], "stdout": "Failed to provision the initial system config.\n", "stdout_lines": [ "Failed to provision the initial system config." ] } }
participants (3)
-
Ngo, Tee
-
Pavan Gupta
-
Zvonar, Bill