diff --git a/Changelog.md b/Changelog.md index 4a00b65ca1e21b6fe6e1abef87c8ee9f809cc6f8..cead4f9864c1a03b5ad75134e9d577931ebd4bc6 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,4 +1,6 @@ # Changelog +## [2.14] - 2024-09-19 +- Fixes to Infoblox client. ## [2.13] - 2024-09-18 - Run cleanup at 1 AM only, not every minute between 1 and 2 AM. diff --git a/gso/services/infoblox.py b/gso/services/infoblox.py index 8e06be865a43b36474649a1cda3fc697a330e1f7..fc33f3b03280d244818eec6a79d8b3067e75bbed 100644 --- a/gso/services/infoblox.py +++ b/gso/services/infoblox.py @@ -203,9 +203,9 @@ def allocate_host( network_view=network_view, ) created_v6 = ipaddress.IPv6Address(new_host.ipv6addr) - except InfobloxCannotCreateObject: + except InfobloxCannotCreateObject as e: msg = f"Cannot find 1 available IP address in network {ipv6_range}." - logger.warning(msg) + logger.warning(msg, exc_info=e) if created_v6 is None: msg = f"Cannot find 1 available IP address in networks {allocation_networks_v6}." @@ -221,9 +221,9 @@ def allocate_host( new_host.update() new_host = objects.HostRecord.search(conn, name=hostname) created_v4 = ipaddress.IPv4Address(new_host.ipv4addr) - except InfobloxCannotUpdateObject: + except InfobloxCannotUpdateObject as e: msg = f"Cannot find 1 available IP address in network {ipv4_range}." - logger.warning(msg) + logger.warning(msg, exc_info=e) if created_v4 is None: msg = f"Cannot find 1 available IP address in networks {allocation_networks_v4}." diff --git a/setup.py b/setup.py index e6ae8c9b6e2e7f37e6c7179ecc4462d4a09d960e..aeee187a3057e09141b3c382836aa62f2a814c2f 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ from setuptools import find_packages, setup setup( name="geant-service-orchestrator", - version="2.13", + version="2.14", author="GÉANT Orchestration and Automation Team", author_email="goat@geant.org", description="GÉANT Service Orchestrator",