Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1445907

Summary: DCI failing for cisco in post-run due to authentication issues
Product: Red Hat OpenStack Reporter: caboucha
Component: dciAssignee: Gonéri Le Bouder <goneri>
Status: CLOSED NOTABUG QA Contact: nlevinki <nlevinki>
Severity: high Docs Contact:
Priority: unspecified    
Version: 8.0 (Liberty)CC: goneri
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-04-26 19:54:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description caboucha 2017-04-26 18:20:07 UTC
Description of problem:
Seeing Failures in authentication during post-run step of DCI.  It successfully deployed under and overcloud.  Working with Goneri Le Bouder on this issue.  This was created for mgmt to track this issue.

Version-Release number of selected component (if applicable):


How reproducible:
Error occurs when running the following using Cisco's dci-agent configuration and environment.
 systemctl restart dci-ansible


Steps to Reproduce:
1.
2.
3.

Actual results:
Failure results can be seen here.
https://www.distributed-ci.io/#!/jobs/eba72319-65a7-42fb-be89-805418ed7ce5/logs
Apr 26 12:50:57 bxb-cvd-dci ansible-playbook[10623]: TASK [setup] *******************************************************************
Apr 26 12:50:57 bxb-cvd-dci ansible-setup[14715]: Invoked with filter=* gather_subset=['all'] fact_path=/etc/ansible/facts.d gather_timeout=10
Apr 26 12:50:57 bxb-cvd-dci ansible-playbook[10623]: ok: [localhost]
Apr 26 12:50:57 bxb-cvd-dci ansible-playbook[10623]: TASK [Add undercloud] **********************************************************
Apr 26 12:50:57 bxb-cvd-dci ansible-playbook[10623]: task path: /usr/share/dci-ansible-agent/dci-ansible-agent.yml:162
Apr 26 12:50:57 bxb-cvd-dci ansible-playbook[10623]: creating host via 'add_host': hostname=undercloud
Apr 26 12:50:57 bxb-cvd-dci ansible-playbook[10623]: changed: [localhost] => {"add_host": {"groups": ["undercloud"], "host_name": "undercloud", "host_vars": {"ansible_fqdn": "10.86.7.213", "ansible_host": "10.86.7.213", "ansible_password": "openstack", "ansible_user": "stack"}}, "changed": true}
Apr 26 12:50:59 bxb-cvd-dci ansible-playbook[10623]: TASK [Set authorized key of stack@undercloud (1/2)] ****************************
Apr 26 12:50:59 bxb-cvd-dci ansible-playbook[10623]: task path: /usr/share/dci-ansible-agent/dci-ansible-agent.yml:170
Apr 26 12:50:59 bxb-cvd-dci ansible-playbook[10623]: fatal: [localhost -> 10.86.7.213]: FAILED! => {"changed": false, "failed": true, "module_stderr": "Shared connection to 10.86.7.213 closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n  File \"/tmp/ansible_EYjbKs/ansible_module_authorized_key.py\", line 527, in <module>\r\n    main()\r\n  File \"/tmp/ansible_EYjbKs/ansible_module_authorized_key.py\", line 523, in main\r\n    results = enforce_state(module, module.params)\r\n  File \"/tmp/ansible_EYjbKs/ansible_module_authorized_key.py\", line 438, in enforce_state\r\n    existing_keys = readkeys(module, params[\"keyfile\"])\r\n  File \"/tmp/ansible_EYjbKs/ansible_module_authorized_key.py\", line 368, in readkeys\r\n    key_data = parsekey(module, line)\r\n  File \"/tmp/ansible_EYjbKs/ansible_module_authorized_key.py\", line 352, in parsekey\r\n    key = key_parts[(type_index + 1)]\r\nIndexError: list index out of range\r\n", "msg": "MODULE FAILURE"}
Apr 26 12:51:02 bxb-cvd-dci ansible-playbook[10623]: PLAY RECAP *********************************************************************
Apr 26 12:51:02 bxb-cvd-dci ansible-playbook[10623]: localhost                  : ok=26   changed=11   unreachable=0    failed=1
Apr 26 12:51:02 bxb-cvd-dci systemd[1]: dci-ansible-agent.service: main process exited, code=exited, status=2/INVALIDARGUMENT
Apr 26 12:51:02 bxb-cvd-dci systemd[1]: Failed to start DCI Ansible Agent.
Apr 26 12:51:02 bxb-cvd-dci systemd[1]: Unit dci-ansible-agent.service entered failed state.
Apr 26 12:51:02 bxb-cvd-dci systemd[1]: dci-ansible-agent.service failed.


Expected results:
Success when running dci-ansible agent

Additional info:

Comment 1 Gonéri Le Bouder 2017-04-26 19:54:22 UTC
Problem was coming from an invalid authorized_keys file.