Mariadb recovery not working when kolla-ansible run in container
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
kolla-ansible | Status tracked in Dalmatian | |||||
Antelope |
In Progress
|
Medium
|
Unassigned | |||
Bobcat |
In Progress
|
Medium
|
Unassigned | |||
Caracal |
In Progress
|
Medium
|
Unassigned | |||
Dalmatian |
Fix Released
|
Medium
|
Michal Arbet |
Bug Description
Hi,
When kolla-ansible is running in container, it's not working
Problem is that tmp files are created on host where container is running...
LOG and ls >>
TASK [mariadb : Writing hostname of host with the largest seqno to temp file] *******
skipping: [controller0]
ok: [controller1 -> localhost]
ok: [controller2 -> localhost]
TASK [mariadb : Registering mariadb_
fatal: [controller0]: FAILED! => {"msg": "The 'file' lookup had an issue accessing the file '/tmp/kolla_
fatal: [controller1]: FAILED! => {"msg": "The 'file' lookup had an issue accessing the file '/tmp/kolla_
fatal: [controller2]: FAILED! => {"msg": "The 'file' lookup had an issue accessing the file '/tmp/kolla_
PLAY RECAP *******
controller0 : ok=18 changed=4 unreachable=0 failed=1 skipped=14 rescued=0 ignored=0
controller1 : ok=18 changed=4 unreachable=0 failed=1 skipped=12 rescued=0 ignored=0
controller2 : ok=18 changed=4 unreachable=0 failed=1 skipped=12 rescued=0 ignored=0
(kolla-
(kolla-
(kolla-
exit
root@deploy:~# ls -la /tmp/ | grep recov
-rw-r--r-- 1 kolla kolla 12 Jul 17 10:03 kolla_mariadb_
Changed in kolla-ansible: | |
assignee: | nobody → Michal Arbet (michalarbet) |
Changed in kolla-ansible: | |
status: | New → In Progress |
Reviewed: https:/ /review. opendev. org/c/openstack /kolla- ansible/ +/920304 /opendev. org/openstack/ kolla-ansible/ commit/ 84e95d25a0d8a0c 5e0fb68e877744a c26549c0b4
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 84e95d25a0d8a0c 5e0fb68e877744a c26549c0b4
Author: Michal Arbet <email address hidden>
Date: Thu May 23 18:24:10 2024 +0200
Fix mariadb recovery
This patch modifies tasks that are delegated to
localhost to use local connection.
Firstly, this is correct since SSH connection is not used,
and secondly, it fixes the issue when kolla-ansible is
packaged in a docker container. If the local connection
is not used, the tasks will fail because temporary data are
stored outside the container, whereas we need it to be
stored inside the container so we can read them and set_facts.
Closes-Bug: #2073370 bfeea8e97056cfa 9308c977098
Change-Id: I9547d5da78da30