-
Notifications
You must be signed in to change notification settings - Fork 38
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
base: 9.10-stable
Are you sure you want to change the base?
9.10 fix delete #2058
Conversation
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.
29f5534
to
d7efa2b
Compare
@@ -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: |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
No description provided.