Juniper / contrail-container-builder

Build contrail networking control components as micro-services
Apache License 2.0
17 stars 38 forks source link

ifdown vhost0 hangs indefinitely , until `contrail-vrouter-agent-dpdk` container is restarted. #19

Open linusali opened 5 years ago

linusali commented 5 years ago

During a minor version update process in RHOSP13 + Contrail 5.1.0 environment, the RHOSP update hangs indefinitely. It was found that the /etc/sysconfig/network-scripts/ifdown-vhost is trying to unbind the NIC while it is still being used by the contrail-vrouter-agent-dpdk container, hence it is hanging until someone manually stop and remove the container.

While examining the network-function-vrouter-* and ifdown-vhost scripts it was found that the container is started with a static name contrail-vrouter-agent-dpdk @ https://github.com/Juniper/contrail-container-builder/blob/7ba3017d20a39f206082c5b96450c79f36241b44/containers/vrouter/base/network-functions-vrouter-dpdk#L113, while the stop function is using $CONTRAIL_VROUTER_AGENT_DPDK_CONTAINER_NAME which has a different value in my network-functions-vrouter-dpdk-env file , which is some how derived from my container location vars that points to an internal satellite server.

So I think, since we wanted to use custom docker name , it is better to update the docker startup function to name the container $CONTRAIL_VROUTER_AGENT_DPDK_CONTAINER_NAME instead of the static one.