]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
ceph-facts: fix _container_exec_cmd fact value v4.0.14
authorDimitri Savineau <dsavinea@redhat.com>
Wed, 29 Jan 2020 02:34:24 +0000 (21:34 -0500)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 29 Jan 2020 10:48:44 +0000 (11:48 +0100)
commit9da917501b7acc2659c4cffb2ef75f6a76cc9aaf
tree68714b24f213dd01d45123bfb29548ad418bc3e9
parent44eadcd05e359cb9cd1a2130f39138a0e18857d1
ceph-facts: fix _container_exec_cmd fact value

When using different name between the inventory_hostname and the
ansible_hostname then the _container_exec_cmd fact will get a wrong
value based on the inventory_hostname instead of the ansible_hostname.
This happens when the ceph cluster is already running (update/upgrade).

Later the container exec commands will fail because the container name
is wrong.

We should always set the _container_exec_cmd based on the
ansible_hostname fact.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1795792
Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit 1fcafffdad43476d1d99766a57b4087cfe43718b)
roles/ceph-facts/tasks/facts.yml