Registry search fails with the error "returned error 400 for GET. id xxxxx"
search cancel

Registry search fails with the error "returned error 400 for GET. id xxxxx"

book

Article ID: 316996

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

Symptoms:
  • You see a message similar to the following when searching for an image from the management portal on Docker Hub:
[1333][I][2020-05-18T10:49:29.731Z][252][8282/adapters/registry-service][processV1SearchRequest][Performing registry search: https://registry.hub.docker.com/v1/search?q=alpine]
[1335][W][2020-05-18T10:49:29.819Z][253][8282/images][logFailures][Failed to perform registry search: Service https://registry.hub.docker.com/v1/search?q=alpine returned error 400 for GET. id 45798]
[1336][W][2020-05-18T10:49:29.824Z][253][Utils][logWarning][Uncaught failure inside completion: java.lang.NullPointerException
  • A proxy server that requires authentication is configured to allow for access to the internet.


Environment

VMware vSphere Integrated Containers 1.x

Resolution

This is a known issue affecting Admiral and there is currently no resolution.

Workaround:
A VIC Appliance patch has been created to workaround this issue which involves the following:
  • Creation of admiral-proxy systemd service, with associated configuration and start/cleanup scripts, located in /etc/vmware/admiral folder
  • Modification of configure_admiral.sh script, to remove the management of custom.conf file (Admiral custom configuration file, especially for the proxy settings, but not only)
  • Modification of admiral service, to wait after admiral-proxy service to have started, due to configuration of the custom.conf file managed by admiral-proxy now.
  • Docker image for admiral-proxy.
  • Automated creation of certificate folder in /storage/data/admiral/proxy_certs for SSL Termination certificate.
  • Installer script for ease of deployment.

This solution consists of deploying an Anonymous Proxy Container, to which Admiral will connect to. In turn, this Container will pass the request to the Corporate Proxy with Authentication.

In order to install the patched VIC Appliance, open a Support Request asking for VIC Appliance proxy patch.