container name already taken logic seems to be broken for neutron templates
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
New
|
Undecided
|
Miro Tomaska |
Bug Description
I think there is a logic issue inside the neutron puppet templates when detecing if the container already exists. This was discovered while debugging another issue in ovn_metata_
Exception:
echo 'Starting a new child container neutron-
+ nsenter --net=/
Error: creating container storage: the container name "neutron-
The haproxy has the logic[1] to handle such scenario but it doesnt look to be working. I suspect is due to extra $ chanracter in the grep -q "${NAME}$" on Line 40 [1]. Unless I am not understanding something... the $ at the end should be removed.
Additionaly, this logic can be actually replaced by `run --replace` argument for the podman case. Docker does not seem to have equivalent to `podman run --replace`
I will propose a patch to fix this
[1] https:/
[2] https:/
Changed in tripleo: | |
assignee: | nobody → Miro Tomaska (mtomaska) |
Fix proposed to branch: stable/wallaby /review. opendev. org/c/openstack /puppet- tripleo/ +/894931
Review: https:/