Skip to content

Conversation

mandre
Copy link
Contributor

@mandre mandre commented Mar 8, 2023

The proxy and az jobs create resources that may not be cleaned up upon job completion.

One such example was seen in
https://prow.ci.openshift.org/view/gs/origin-ci-test/logs/periodic-ci-shiftstack-shiftstack-ci-main-periodic-4.13-e2e-openstack-az/1632828398344605696 where the leftover port on the proxy machine subnet caused the cleanup script to fail.

The proxy and az jobs create resources that may not be cleaned up upon
job completion.

One such example was seen in
https://prow.ci.openshift.org/view/gs/origin-ci-test/logs/periodic-ci-shiftstack-shiftstack-ci-main-periodic-4.13-e2e-openstack-az/1632828398344605696
where the leftover port on the proxy machine subnet caused the cleanup
script to fail.
@mandre mandre force-pushed the clean-stale-ports branch from d24ffc8 to de7be2a Compare March 8, 2023 15:23
for r in $(./stale.sh -q "$resource"); do
network=$(openstack subnet show "$r" -c network_id -f value)
ports=$(openstack port list --network "$network" -f value -c id)
for port in $ports; do
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you considered adding port to the list above?

for resource in 'loadbalancer' 'server' 'router' 'PORT' 'subnet' '

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes I have, but didn't to do it because we'll probably have to handle too many exceptions.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok then, let's see how this goes.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 9, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mandre, pierreprinetti

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [mandre,pierreprinetti]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit c23415b into main Mar 9, 2023
@openshift-merge-robot openshift-merge-robot deleted the clean-stale-ports branch March 9, 2023 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants