Jun 07 11:16:28 controller-5lcp9n997r glance-api[783]: 2022-06-07 11:16:28.549 10 ERROR glance_store._drivers.vmware_template [-]
Failed to upload image 059ca159-ad9f-4fe4-ac4d-b48ded4f7d23 to <ESXi host ip>:
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f5c8ec1cdd0>:
Failed to establish a new connection: [Errno -2] Name or service not known
Jun 07 11:16:28 controller-5lcp9n997r glance-api[783]:
2022-06-07 11:16:28.550 10 ERROR glance_store._drivers.vmware_template
[req-83a653c1-fad0-4849-8f99-bad710598c7e 8eb955f354694aad8af09c549480e8a8 ad3451578f7f4a7a95598ddae16a57b0 -
34c6f078c4784780b3ca0857126f1859 34c6f078c4784780b3ca0857126f1859] Failed to upload to any of the vCenter.
7.x
ESXi hosts are connected to vCenter with short DNS name.
According to the glance-api log, the glance api pod cannot setup connection to https://esxi1
Check DNS resolution in vCenter specifying IP of your DNS server.
Example if DNS server ip 192.168.0.1
# dig +short @192.168.0.1 esxi1.example.com
192.168.0.2
# dig +short @192.168.0.1 esxi1
No DNS record.
Workaround: