Details
-
Bug
-
Status: Done
-
Major
-
Resolution: Done
-
None
-
None
-
Empty show more show less
-
All / Cross Project
Description
Per discussion on Freenode #lf-releng the openstack-cron template job causes ports to possibly be deleted too soon thereby causing job failures due to race conditions.
Ports should be deleted only if they're created_at is >30 minutes and they are in a down state.
There's a race condition in the openstack-cron job that could cause the script to delete a port before it is assigned to a VM for use. This was discovered in https://jira.linuxfoundation.org/servicedesk/customer/portal/2/IT-20080 which is periodically failing ODL CSIT jobs. In this script https://github.com/lfit/releng-global-jjb/blob/master/shell/openstack-cleanup-orphaned-ports.sh
This script should be improved to also check the create_at time and only delete the port if it is sufficiently old suggestion in the meantime is something like > 30 minutes.