Infoblox driver get_dns_view error after changing multi_tenant option
Bug #1752349 reported by
Erich Birngruber
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Designate |
Fix Released
|
High
|
Russell Tweed |
Bug Description
The Infoblox backend driver does a wrong comparison for the multi_tenant pool target option, when it was changed from "True" to "False":
the problematic line:
if not self.connector.
After changing this from True to False in the pools.yaml file and updating the pool info in the database, the value in the designate database is a VARCHAR '0'.
This does not work correctly for the "if not" comparison above, therefore it will always keep taking the wrong code path.
A fix would be to check for an empty value or the '0' value from the database:
if not self.connector.
Best,
Erich
Changed in designate: | |
status: | New → Triaged |
importance: | Undecided → High |
tags: | added: low-hanging-fruit |
To post a comment you must log in.
Seems like the underlying issue is why that value's getting to set to VARCHAR '0' rather than something that actually parses as false.
However, adding the second comparison as per the description seems like it'd work for now.