From 98f860f0cce327b7e0896bc710a23c0a45a4943d Mon Sep 17 00:00:00 2001 From: Olivier Lemasle Date: Tue, 31 Aug 2021 17:53:33 +0200 Subject: [PATCH] CloudStack: fix data-server DNS resolution CloudStack DNS resolution should be done against the DNS search domain (with the final dot, DNS resolution does not work with e.g. Fedora 34) LP: #1942232 --- cloudinit/sources/DataSourceCloudStack.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloudinit/sources/DataSourceCloudStack.py b/cloudinit/sources/DataSourceCloudStack.py index 54810439e8d..8cb0d5a7ac7 100644 --- a/cloudinit/sources/DataSourceCloudStack.py +++ b/cloudinit/sources/DataSourceCloudStack.py @@ -160,7 +160,7 @@ def availability_zone(self): def get_data_server(): # Returns the metadataserver from dns try: - addrinfo = getaddrinfo("data-server.", 80) + addrinfo = getaddrinfo("data-server", 80) except gaierror: LOG.debug("DNS Entry data-server not found") return None