openstack overcloud ffwd-upgrade run --yes generates inventory with wrong ansible_ssh_user

Bug #1769974 reported by Marius Cornea
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
Carlos Camacho

Bug Description

openstack overcloud ffwd-upgrade run --yes generates inventory with wrong ansible_ssh_user:

(undercloud) [stack@undercloud-0 ~]$ openstack overcloud ffwd-upgrade run --yes
Warning! The TripleO Fast Forward Upgrade workflow is currently considered under development. In particular invocations of the ffwd-upgrade cli should be initially limited to development/test environments. Once and if you decide to use ffwd-upgrade in production, ensure you are adequately prepared with valid backup of your current deployment state.
Continuing fast forward upgrade
Started Mistral Workflow tripleo.package_update.v1.update_nodes. Execution ID: b00c6b64-b809-4556-b0ec-97f1d9b60a79
Waiting for messages on queue 'ffwdupgrade' with no timeout.
[u'Using /tmp/ansible-mistral-actionAS5fdE/ansible.cfg as config file',
 u' [WARNING]: Skipping unexpected key (hostvars) in group (_meta), only "vars",',
 u'"children" and "hosts" are valid',
 u'',
 u'PLAY [overcloud] ***************************************************************',
 u'',
 u'TASK [Gathering Facts] *********************************************************',
 u'fatal: [192.168.24.15]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: Could not create directory \'/home/mistral/.ssh\'.\\r\\nWarning: Permanently added \'192.168.24.15\' (ECDSA) to the list of known hosts.\\r\\nPermission denied (publickey,gssapi-keyex,gssapi-with-mic).\\r\\n", "unreachable": true}',
 u'fatal: [192.168.24.13]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: Could not create directory \'/home/mistral/.ssh\'.\\r\\nWarning: Permanently added \'192.168.24.13\' (ECDSA) to the list of known hosts.\\r\\nPermission denied (publickey,gssapi-keyex,gssapi-with-mic).\\r\\n", "unreachable": true}',
 u'fatal: [192.168.24.17]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: Could not create directory \'/home/mistral/.ssh\'.\\r\\nWarning: Permanently added \'192.168.24.17\' (ECDSA) to the list of known hosts.\\r\\nPermission denied (publickey,gssapi-keyex,gssapi-with-mic).\\r\\n", "unreachable": true}',
 u'fatal: [192.168.24.19]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: Could not create directory \'/home/mistral/.ssh\'.\\r\\nWarning: Permanently added \'192.168.24.19\' (ECDSA) to the list of known hosts.\\r\\nPermission denied (publickey,gssapi-keyex,gssapi-with-mic).\\r\\n", "unreachable": true}',
 u'fatal: [192.168.24.12]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: Could not create directory \'/home/mistral/.ssh\'.\\r\\nWarning: Permanently added \'192.168.24.12\' (ECDSA) to the list of known hosts.\\r\\nPermission denied (publickey,gssapi-keyex,gssapi-with-mic).\\r\\n", "unreachable": true}',
 u'fatal: [192.168.24.10]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: Could not create directory \'/home/mistral/.ssh\'.\\r\\nWarning: Permanently added \'192.168.24.10\' (ECDSA) to the list of known hosts.\\r\\nPermission denied (publickey,gssapi-keyex,gssapi-with-mic).\\r\\n", "unreachable": true}',
 u'fatal: [192.168.24.18]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: Could not create directory \'/home/mistral/.ssh\'.\\r\\nWarning: Permanently added \'192.168.24.18\' (ECDSA) to the list of known hosts.\\r\\nPermission denied (publickey,gssapi-keyex,gssapi-with-mic).\\r\\n", "unreachable": true}',
 u'fatal: [192.168.24.23]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: Could not create directory \'/home/mistral/.ssh\'.\\r\\nWarning: Permanently added \'192.168.24.23\' (ECDSA) to the list of known hosts.\\r\\nPermission denied (publickey,gssapi-keyex,gssapi-with-mic).\\r\\n", "unreachable": true}',
 u'',
 u'PLAY RECAP *********************************************************************',
 u'192.168.24.10 : ok=0 changed=0 unreachable=1 failed=0 ',
 u'192.168.24.12 : ok=0 changed=0 unreachable=1 failed=0 ',
 u'192.168.24.13 : ok=0 changed=0 unreachable=1 failed=0 ',
 u'192.168.24.15 : ok=0 changed=0 unreachable=1 failed=0 ',
 u'192.168.24.17 : ok=0 changed=0 unreachable=1 failed=0 ',
 u'192.168.24.18 : ok=0 changed=0 unreachable=1 failed=0 ',
 u'192.168.24.19 : ok=0 changed=0 unreachable=1 failed=0 ',
 u'192.168.24.23 : ok=0 changed=0 unreachable=1 failed=0 ',

[root@undercloud-0 stack]# grep ansible_ssh_user /tmp/ansible-mistral-actionAS5fdE/inventory.yaml
    ansible_ssh_user: overcloud
    ansible_ssh_user: overcloud
    ansible_ssh_user: overcloud
  vars: {ansible_ssh_user: overcloud}

Changed in tripleo:
assignee: nobody → Carlos Camacho (ccamacho)
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-tripleoclient (stable/queens)

Fix proposed to branch: stable/queens
Review: https://review.openstack.org/567013

tags: added: queens-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-tripleoclient (master)

Reviewed: https://review.openstack.org/566960
Committed: https://git.openstack.org/cgit/openstack/python-tripleoclient/commit/?id=c8892adcc9ecb34dd05f22ce1a910db2f95096f2
Submitter: Zuul
Branch: master

commit c8892adcc9ecb34dd05f22ce1a910db2f95096f2
Author: Carlos Camacho <email address hidden>
Date: Tue May 8 20:03:51 2018 +0200

    Add ssh-user to get_tripleo_ansible_inventory

    We were missing --ssh-user when calling
    get_tripleo_ansible_inventory assigning
    overcloud as the ssh_user by default.

    This is failing after adding the --stack option
    as he had only one before

    Change-Id: I447a050ce67d626e7050a22c9821f883ebeda2ee
    Closes-Bug: 1767379
    Closes-Bug: 1769974

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-tripleoclient (stable/queens)

Reviewed: https://review.openstack.org/567013
Committed: https://git.openstack.org/cgit/openstack/python-tripleoclient/commit/?id=003e47890a6998400ef6b0a7bc3ca689e8a43a7e
Submitter: Zuul
Branch: stable/queens

commit 003e47890a6998400ef6b0a7bc3ca689e8a43a7e
Author: Carlos Camacho <email address hidden>
Date: Tue May 8 20:03:51 2018 +0200

    Add ssh-user to get_tripleo_ansible_inventory

    We were missing --ssh-user when calling
    get_tripleo_ansible_inventory assigning
    overcloud as the ssh_user by default.

    This is failing after adding the --stack option
    as he had only one before

    (cherry picked from commit c8892adcc9ecb34dd05f22ce1a910db2f95096f2)
    Change-Id: I447a050ce67d626e7050a22c9821f883ebeda2ee
    Closes-Bug: 1767379
    Closes-Bug: 1769974

tags: added: in-stable-queens
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-tripleoclient 10.1.0

This issue was fixed in the openstack/python-tripleoclient 10.1.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-tripleoclient 9.2.2

This issue was fixed in the openstack/python-tripleoclient 9.2.2 release.

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.