vSphere Lifecycle Manager(vLCM) in vSphere 7.0 fails to download updates with HTTPS url when proxy is configured using credentials
search cancel

vSphere Lifecycle Manager(vLCM) in vSphere 7.0 fails to download updates with HTTPS url when proxy is configured using credentials

book

Article ID: 318829

calendar_today

Updated On:

Products

VMware Aria Suite VMware vCenter Server

Issue/Introduction

Symptoms:
  • vLCM fails to download the updates from HTTPS depot url if proxy is configured on vCenter Server(VCSA) using credentials
  • /var/log/vmware/vmware-updatemgr/vum-server/lifecycle.log:
ImageManagerCTL: 48833: 2020-09-28 14:49:12,290 Downloader:262 INFO Opening https://hostupdate.vmware.com/software/VUM/PRODUCTION/iovp-main/vmw-depot-index.xml for download
ImageManagerCTL: 48833: 2020-09-28 14:49:12,372 DepotCollection:271 INFO Could not download from depot at https://hostupdate.vmware.com/software/VUM/PRODUCTION/iovp-main/vmw-depot-index.xml, skipp
ing (('https://hostupdate.vmware.com/software/VUM/PRODUCTION/iovp-main/vmw-depot-index.xml', '', '<urlopen error [Errno -2] Name or service not known>'))
ImageManagerCTL: 48833: 2020-09-28 14:49:12,372 DepotMgr:137 ERROR Unable to connect to depot(s) https://hostupdate.vmware.com/software/VUM/PRODUCTION/iovp-main/vmw-depot-index.xml:
('https://hostupdate.vmware.com/software/VUM/PRODUCTION/iovp-main/vmw-depot-index.xml', '', "Could not download from depot at https://hostupdate.vmware.com/software/VUM/PRODUCTION/iovp-main/vmw-de
pot-index.xml, skipping (('https://hostupdate.vmware.com/software/VUM/PRODUCTION/iovp-main/vmw-depot-index.xml', '', '<urlopen error [Errno -2] Name or service not known>'))")
Traceback (most recent call last):
  File "/usr/lib/vmware-imagebuilder/site-packages/vmware/esximage/Utils/Proxy.py", line 209, in _https_open
    h.request(req.get_method(), selector, req.data, headers)
  File "/usr/lib/python3.7/http/client.py", line 1252, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1298, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1247, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/vmware-imagebuilder/site-packages/vmware/esximage/Utils/Proxy.py", line 126, in connect
    sock = socket.create_connection((proxyport[0], int(proxyport[1] or 80)))
  File "/usr/lib/python3.7/socket.py", line 707, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

Note: The preceding log excerpts are only examples. Date, time, and environmental variables may vary depending on your environment.
 
  • There are duplicate URLs in the Download Source section.


Environment

VMware vCenter Server 7.0.x
VMware Update Manager 7.0

Resolution

This issue is resolved in VMware vCenter Server 7.0 Update 1c (build number 17327517).

Workaround:
In order to workaround the issue, re-configure the Download Source with HTTP based URLs
  • Log in to the VCSA using vSphere Client
  • Navigate to Menu -> Lifecycle Manager -> Settings
  • Click on Patch Setup
  • Select each Download Source and click Disable
Default Download Source:
https://hostupdate.vmware.com/software/VUM/PRODUCTION/addon-main/vmw-depot-index.xml
https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml
https://hostupdate.vmware.com/software/VUM/PRODUCTION/iovp-main/vmw-depot-index.xml
https://hostupdate.vmware.com/software/VUM/PRODUCTION/vmtools-main/vmw-depot-index.xml

Note: Copy custom download source urls manually and add it as http
  • Click on New and add the Download Sources as http URL's
http://hostupdate.vmware.com/software/VUM/PRODUCTION/addon-main/vmw-depot-index.xml
http://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml
http://hostupdate.vmware.com/software/VUM/PRODUCTION/iovp-main/vmw-depot-index.xml
http://hostupdate.vmware.com/software/VUM/PRODUCTION/vmtools-main/vmw-depot-index.xml
  • Click on Actions and select Sync Updates to confirm
Note: ensure the URLs appear once and are not duplicated.