ceph-ansible inventory generation incorrectly sets whitespace for ansible_connection: local
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
Low
|
John Fulton |
Bug Description
Changes to fix #1798044 [1] broke the recently added support for "ansible_
[1] https:/
[3]
[root@overcloud0 ceph-ansible]# cat inventory.yml
mgrs:
hosts:
overcloud0:
ansible_user: root
ansible_host: 192.168.24.2
ansible_
ansible_connection: local
mons:
hosts:
overcloud0:
ansible_user: root
ansible_host: 192.168.24.2
ansible_
ansible_connection: local
osds:
hosts:
overcloud0:
ansible_user: root
ansible_host: 192.168.24.2
ansible_
ansible_connection: local
clients:
hosts:
overcloud0:
ansible_user: root
ansible_host: 192.168.24.2
ansible_
ansible_connection: local
[root@overcloud0 ceph-ansible]# ansible -i inventory.yml -m ping all
[WARNING]: While constructing a mapping from /root/underclou
overcloud0 | UNREACHABLE! => {
"changed": false,
"msg": "Failed to connect to the host via ssh: Permission denied (publickey,
"unreachable": true
}
[root@overcloud0 ceph-ansible]# vim inventory.yml
[root@overcloud0 ceph-ansible]#
[root@overcloud0 ceph-ansible]# cat inventory.yml
mgrs:
hosts:
overcloud0:
ansible_user: root
ansible_host: 192.168.24.2
ansible_
ansible_
mons:
hosts:
overcloud0:
ansible_user: root
ansible_host: 192.168.24.2
ansible_
ansible_
osds:
hosts:
overcloud0:
ansible_user: root
ansible_host: 192.168.24.2
ansible_
ansible_
clients:
hosts:
overcloud0:
ansible_user: root
ansible_host: 192.168.24.2
ansible_
ansible_
[root@overcloud0 ceph-ansible]#
[root@overcloud0 ceph-ansible]# ansible -i inventory.yml -m ping all
overcloud0 | SUCCESS => {
"changed": false,
"ping": "pong"
}
[root@overcloud0 ceph-ansible]#
tags: | added: rocky-backport-potential |
tags: | removed: rocky-backport-potential |
Fix proposed to branch: master /review. openstack. org/613793
Review: https:/