O3L 2.0: import_to_registry.sh failed behind proxy: "Error: Status 502 trying to push repository oracle/ol-openstack-nova-base"

(Doc ID 2075506.1)

Last updated on JUNE 21, 2018

Applies to:

Oracle OpenStack for Oracle Linux - Version OpenStack 2.0 and later
Linux x86-64

Symptoms

Internal Docker registry needs to be contacted without proxy.
Even with system wide proxy localhost exception (no_proxy variable) configured as below:

# env | grep -i proxy
FTP_PROXY=http://proxy.oracle.com:80
HTTPS_PROXY=http://proxy.oracle.com:80
NO_PROXY=localhost,127.0.0.0/8,dockeregistry.oracle.com
HTTP_PROXY=http://proxy.oracle.com:80                           

./import_to_registry.sh to import the Oracle OpenStack for Oracle Linux Docker images to Docker registry fails:

# ./import_to_registry.sh dockeregistry.oracle.com:5000
Checking file integrity:
ol-openstack-images-2.0.1.tar.bz2: OK

Please wait, this will take quite some time to complete!
The push refers to a repository [dockeregistry.oracle.com:5000/oracle/ol-openstack-nova-base] (len: 1)
Sending image list
Error: Status 502 trying to push repository oracle/ol-openstack-nova-base:
<Abbreviated html codes>

ERROR: Pushing images to remote registry! 
In Oracle OpenStack 4.0.1, the error reads:
# ./import_to_registry.sh dockeregistry.oracle.com:5443
(snip)
The push refers to a repository [dockeregistry.oracle.com:5443/openstack/ol-openstack-nova-ssh]
8a170f71ba8d: Retrying in 1 second
3cf4b8fe5543: Retrying in 1 second
6239be5e676c: Retrying in 1 second
b2c6bf0ff3b0: Retrying in 1 second
92b15d12d35c: Retrying in 1 second
3d572d3241dd: Waiting
(snip)
dd448f79661b: Waiting
401b941ef605: Waiting
received unexpected HTTP status: 502 notresolvable

ERROR: Pushing images to remote registry!

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms