-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Be selective on FIP and port deletion. (#712)
* Be selective on FIP and port deletion. * All ports we create are in 10.1.0/24, so only delete those ports. * Floating IPs that are attached won't be deleted. * Comments for the IP range. This avoids a developer changing these independently. * Cosmetic: Fix cleanup.py help. Name subnet in test. * Reenable link to gxscs health mon. * Pass --ipaddr filter into cleanup script. The cleanup job now takes in filtering args specifically for ports: - If a port is connected, it won't be deleted (no change) - If the port has a name with matching prefix, it will always be deleted (new) - If the port has a name but not matching the prefix, it won't be (new) - If it has no name and no IP filters are passed, we delete it (new) - If it has no name and there are IP filters, then we try to match them, if one matches, we delete it (enhanced to allow several IPs) Use this in pre_cloud.yaml when calling cleanup.py, update comment in entropy-check.py accordingly. * Simplify and fix ipaddr option parsing. Thanks, @mbuechse, my brain failed to understand python correctly here. Signed-off-by: Kurt Garloff <[email protected]> Co-authored-by: Matthias Büchse <[email protected]>
- Loading branch information
Showing
4 changed files
with
47 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters