Upgrade from 12.0.10 to 13.0.1 fails without local SSH keys
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack-Ansible |
Fix Released
|
High
|
Jean-Philippe Evrard | ||
Mitaka |
Fix Released
|
High
|
Jesse Pretorius |
Bug Description
Upgrading from 12.0.10 to 13.0.1 and encountered the following error while running setup-hosts.yml:
TASK: [lxc_hosts | Fail if a ssh public key is not set in a var and not present on the host] ***
failed: [cinder02] => {"failed": true}
msg: Please set the lxc_container_
failed: [infra03] => {"failed": true}
msg: Please set the lxc_container_
skipping: [infra01]
failed: [cinder01] => {"failed": true}
msg: Please set the lxc_container_
failed: [infra02] => {"failed": true}
msg: Please set the lxc_container_
failed: [compute01] => {"failed": true}
msg: Please set the lxc_container_
failed: [compute02] => {"failed": true}
msg: Please set the lxc_container_
FATAL: all hosts have already failed -- aborting
PLAY RECAP *******
to retry, use: --limit @/root/
cinder01 : ok=28 changed=7 unreachable=0 failed=1
cinder02 : ok=28 changed=7 unreachable=0 failed=1
compute01 : ok=28 changed=7 unreachable=0 failed=1
compute02 : ok=28 changed=7 unreachable=0 failed=1
infra01 : ok=26 changed=7 unreachable=0 failed=0
infra02 : ok=27 changed=7 unreachable=0 failed=1
infra03 : ok=27 changed=7 unreachable=0 failed=1
In my environment, I did not have an SSH key for root on any hosts other than infra01 (the deploy host). That key was listed in authorized_keys on every host, however. Generating a local key on each host with 'ssh-keygen -t rsa -C "<email>"' allowed the playbook to properly complete.
Changed in openstack-ansible: | |
assignee: | nobody → Jean-Philippe Evrard (jean-philippe-evrard) |
Changed in openstack-ansible: | |
status: | New → In Progress |
confirm observing this behavior - I generated a local key on each host as described as well.