Rocky setup hosts fails to recreate destroyed container after upgrading from old versions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack-Ansible |
Invalid
|
Undecided
|
Jesse Pretorius |
Bug Description
I had an issue with repo install and I was trying to resolve it by recreating the container.
1) openstack-ansible lxc-container-
2) removed the facts from /etc/openstack_
3) openstack-ansible setup-hosts.yml
The container doesn't have any networking configured and it fails at task:
TASK [lxc_container_
ok: [ctrl1_
ok: [ctrl1_
ok: [ctrl1_
ok: [ctrl1_
ok: [ctrl1_
ok: [ctrl1_
ok: [ctrl1_
ok: [ctrl1_
ok: [ctrl1_
ok: [ctrl1_
ok: [ctrl1_
ok: [ctrl1_
ok: [ctrl1_
ok: [ctrl1_
ok: [ctrl1_
ok: [ctrl1_
ok: [ctrl1_
ok: [ctrl1_
FAILED - RETRYING: Execute first script (5 retries left).
FAILED - RETRYING: Execute first script (4 retries left).
FAILED - RETRYING: Execute first script (3 retries left).
FAILED - RETRYING: Execute first script (2 retries left).
FAILED - RETRYING: Execute first script (1 retries left).
fatal: [ctrl1_
root@winterfell
total 44K
-rwxr-xr-x 1 root root 99 Sep 26 23:19 autodev
-rw-r--r-- 1 root root 1.2K Sep 26 23:21 config
-rw-r--r-- 1 root root 929 Sep 26 23:20 config.
-rw-r--r-- 1 root root 945 Sep 26 23:21 config.
-rw-r--r-- 1 root root 960 Sep 26 23:21 config.
-rw-r--r-- 1 root root 973 Sep 26 23:21 config.
-rw-r--r-- 1 root root 1.1K Sep 26 23:21 config.
-rw-r--r-- 1 root root 1.1K Sep 26 23:21 config.
-rw-r--r-- 1 root root 1.1K Sep 26 23:21 config.
-rwxr-xr-x 1 root root 1.1K Sep 26 23:22 container-
drwxr-xr-x 21 root root 4.0K Sep 26 23:28 rootfs
root@winterfell
root@ctrl1_
1: lo: <LOOPBACK,
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
Changed in openstack-ansible: | |
assignee: | nobody → Jesse Pretorius (jesse-pretorius) |
So I managed to create the container correctly but I had to add the old legacy configs manually for config and eth1.
It seems that the tasks only work when containers configs already exists and it tries to convert to new syntax.