[validation] Filter Neutron sidecar containers
These containers by design are not restarted during upgrade, to prevent dataplane disruption. As they use same image as the agents (which should be checked), filter on the command: all these containers start with "ip netns exec" This will also catch OVN metadata sidecar containers, and other untested sidecar containers (ipv6, ...) as well as fixing up existing Neutron ones as a follow-up for Iedfce29a11b440f14b3880195ecaa0f0181fcb25 Change-Id: Icde32c6516cc253c574c853ad6a86425b79f11cd Closes-Bug: #1807687
This commit is contained in:
parent
d1888ac7cf
commit
c7a117854e
|
@ -41,7 +41,7 @@ for _ip in $( openstack server list -f value -c Networks | awk -F '=' '{ print $
|
|||
echo "================================================================================"
|
||||
CONTAINERS=$( ssh -q -o StrictHostKeyChecking=no \
|
||||
{% if overcloud_ssh_user != '' %}{{overcloud_ssh_user}}{% else %}heat-admin{% endif %}@${_ip} \
|
||||
"sudo docker ps 2>&1 | grep -v -e pcmk -e ID -e qrouter -e openstack-neutron-dhcp-agent | awk '{ print \$2 }'" )
|
||||
"sudo docker ps 2>&1 | grep -v -e pcmk -e ID -e qrouter -e 'neutron.*ip netns exec' | awk '{ print \$2 }'" )
|
||||
for _container in ${CONTAINERS} ; do
|
||||
# non pcs managed containers
|
||||
assert_image_in_file {{ working_dir}}/{{ container_registry_file }} ${_container}
|
||||
|
|
Loading…
Reference in New Issue