Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

9.10 fix delete #2058

Open
wants to merge 2 commits into
base: 9.10-stable
Choose a base branch
from

Conversation

zhang-shengping
Copy link
Contributor

No description provided.

if pool nonexists, the pool update method will create a new pool.
check if pool exist, before delete monitor.
if the pool exists, we delete monitor directly.
if bigip partition is missing,
we can not delete pool in neutron db.
it is because pool has relationship with pool member and listener.

when the partition is missing,
member can not update(create if missing)
allocate route domain in the misssing partition.

when the partition is missing,
listener can not update(create if missing)
in the missing partition.
@zhang-shengping zhang-shengping marked this pull request as ready for review June 19, 2023 04:23
@@ -835,10 +836,12 @@ def annotate_service_members(self, service):
self.network_builder._annotate_service_route_domains(service)
except f5ex.InvalidNetworkType as exc:
LOG.warning(exc.message)
except HTTPError as err:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Does this change improve anything?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It will throw the original HTTPError, rather cover up by f5ex.RouteDomainCreationException.
The caller will not tell what Exception happens exactly.

try:
self.driver.annotate_service_members(service)
except HTTPError as err:
if err.response.status_code == 400:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why do we need to ignore it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Why do we need to ignore it?

Olvan delete the whole partition, and nothing is left. When you try to annotate the route domain for members, the partition is disappeared, and the method returns 400 HTTPError. It will break the pool deleting process, it cause the pool cannot be deleted in the Neutron DB at last.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants