Commit Graph

10 Commits

Author SHA1 Message Date
Erik Olof Gunnar Andersson 1dbdcac58f Updated Infoblox backend
This implementation replaces the existing Infoblox driver,
and is based on the official Infoblox Python client.

The following new configuring options are now available.
- wapi_host, wapi_version, cert and key

The original wapi_url option still works, but can now be
alternatively replaced by wapi_host and wapi_version.

Finally, the deprecated configuration options for designate.conf
was removed, and all Infoblox configuration now happens in the pools
configuration.

Depends-On: https://review.opendev.org/c/openstack/requirements/+/905764
Change-Id: I35e03b9818851487686153bc68ad90c081e61966
2024-05-17 09:46:14 +02:00
Erik Olof Gunnar Andersson 68fc28527a pyupgrade changes for Python3.8+
Result of running

$ pyupgrade --py38-plus $(git ls-files | grep ".py$")

This was inspired by Nova [1] and Octavia [2]

Fixed PEP8 errors introduced by pyupgrade by running:

$ autopep8 --select=E127,E128,E501 --max-line-length 79 -r \
  --in-place designate

and manual updates.

[1]: https://review.opendev.org/c/openstack/nova/+/896986
[2]: https://review.opendev.org/c/openstack/octavia/+/899263

Change-Id: Idfa757d7ba238012db116fdb3e98cc7c5ff4b169
2023-11-03 11:19:07 +00:00
Erik Olof Gunnar Andersson 85646cf19a Use i18n and not gettext for infoblox
Change-Id: I76d414775dd67865d71f23f5cb945003dc9e7c53
2023-07-30 18:41:54 +02:00
Scott Solkhon d0e1bb1872 Reload Infoblox config after deleting zone
If you delete a zone using the Infoblox backend
the zone will be deleted from Infoblox but the
zone within OpenStack will go into an ERROR state
unless an operator manually logs into Infoblox
and issues a reload of the running configuration.

This commit fixes this bug by issuing a 'restart
if needed' after deleting the zone. This does not
happen when creating zones as 'restart if needed'
can be passed through as a param into that API call.

Co-Authored-By: Jay Faulkner <jay@jvf.cc>
Change-Id: I296c5f085cce27033461be81ca58c85f095df89a
Closes-Bug: #1840253
2022-11-11 08:03:20 -08:00
Erik Olof Gunnar Andersson 6ad30a39e6 Remove translation of log messages
* Removed all log translation.
* Always lazy-load logging.
* Fixed broken log lines and updated tests.

Logs should no longer be translated (starting with Pike)[1].

Also, according to OpenStack Guideline[2], logged string message should be
interpolated by the logger.

[1]: http://lists.openstack.org/pipermail/openstack-dev/2017-March/thread.html#113365
[2]: https://docs.openstack.org/oslo.i18n/latest/user/guidelines.html#adding-variables-to-log-messages

Change-Id: I07825694f173a8bebd7d62ade089c38d3c666283
2018-03-14 12:54:05 -07:00
Russell Tweed e4de365775 Resolve get_dns_view error after selecting multi-tenant view
Adds a second comparison check when deciding whether to display the single
tenant view or multi-tenant view in Infoblox. The issue is that the DB field
is set to '0', which is not interpreted as false.

Change-Id: Id0fac71cc6d82123a7ee5d5983467acd1b8e5a9e
Closes-Bug: 1752349
2018-03-07 19:14:26 +00:00
junbo 3383616959 correct LOG.warning args in object_manipulator.py
Change-Id: Ifa054afd6e0342f805eb7eccd08c921f740342c9
Closes-Bug: #1730194
2017-11-05 22:43:19 +08:00
Selvakumar S 7ac7eb4c28 Infoblox: Reverse lookup zone creation fails
Zone creation with reverse lookup fails with infoblox as backend server.
currently it is handled for default zone_format i.e 'FORWARD' and it is
not handled for 'IPV4' and 'IPV6'. This patch handles the IPV4 and IPV6
formats along with default one.

Change-Id: Iad44842fc1e3e691268182514e14a6d0f60fdc1d
Closes-Bug: #1628057
Reference: https://ipam.illinois.edu/wapidoc/objects/zone_forward.html#zone-format
2016-09-28 09:21:51 +00:00
ZhiQiang Fan b9ce7e5903 replace logging with oslo.log
oslo.log provides more features and is a fundamental recommended
library to use.

Also the library oslo.log provides compatibility for log levels,
logging namespace is not needed.

Change-Id: I5636cdf3f804d4f811bd05add3fb42c0beea58a2
2016-04-26 02:59:12 +08:00
John Belamaric 65a53e5438 Infoblox Backend
Add a backend for integrating with Infoblox grids. Infoblox will
serve as a secondary for Designate-controlled zones.

Implements: blueprint infoblox-backend

Change-Id: Ic6cd00850442c7b31ca5034f1306d37e69991014
2015-05-26 10:05:31 -07:00