minishift: HTTP Proxy not being used for https://registry.access.redhat.com/v1/_ping

General information

-- Copying oc binary from the OpenShift container image to VM .Error copying the oc binary to /var/l
ib/minishift/bin: ssh command error:
command : docker create --name tmp registry.access.redhat.com/openshift3/ose:v3.9.31
err     : Process exited with status 1
output  : Unable to find image 'registry.access.redhat.com/openshift3/ose:v3.9.31' locally
Trying to pull repository registry.access.redhat.com/openshift3/ose ...
Get https://registry.access.redhat.com/v1/_ping: Bad Request

Otherwise while accessing https://registry.access.redhat.com/v1/_ping from IE while in office network is returning “true” .

  • Minishift version: minishift v1.20.0+1bd6d5c/CDK v3.5.0-1
  • OS: Windows
  • Hypervisor: VirtualBox 5.2

Steps to reproduce

C:>minishift start --http-proxy=http://company-proxy:8001/ --https-proxy=http://ap-auto.pro xy.att.com:8001/ – Starting profile ‘minishift’ – Using proxy for the setup – Check if deprecated options are used … OK – Checking if https://mirror.openshift.com is reachable … FAIL – Checking if requested OpenShift version ‘v3.9.31’ is valid … SKIP – Checking if requested OpenShift version ‘v3.9.31’ is supported … OK – Checking if requested hypervisor ‘virtualbox’ is supported on this platform … OK – Checking if VirtualBox is installed … OK – Checking the ISO URL … OK – Checking if provided oc flags are supported … OK – Starting local OpenShift cluster using ‘virtualbox’ hypervisor … – Starting Minishift VM …-- Setting proxy information … .OK … OK – Registering machine using subscription-manager – Checking for IP address … OK – Checking for nameservers … OK – Checking if external host is reachable from the Minishift VM … Pinging 8.8.8.8 … FAIL VM is unable to ping external host – Checking HTTP connectivity from the VM … Retrieving http://minishift.io/index.html … OK – Checking if persistent storage volume is mounted … OK – Checking available disk space … 1% used OK – OpenShift cluster will be configured with … Version: v3.9.31 – Copying oc binary from the OpenShift container image to VM .Error copying the oc binary to /var/l ib/minishift/bin: ssh command error: command : docker create --name tmp registry.access.redhat.com/openshift3/ose:v3.9.31 err : Process exited with status 1 output : Unable to find image ‘registry.access.redhat.com/openshift3/ose:v3.9.31’ locally Trying to pull repository registry.access.redhat.com/openshift3/ose … Get https://registry.access.redhat.com/v1/_ping: Bad Request

Expected

Actual

Logs

You can start Minishift with minishift start --show-libmachine-logs -v5 to collect logs. Please consider posting this on http://gist.github.com/ and post the link in the issue.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 17 (11 by maintainers)

Most upvoted comments

@praveenkumar I am not observing any such failure with Win10+CDK-3.5+proxy+VirtualBox(5.2.12). What i can see from @bjethwan m start log is

-- Checking if https://mirror.openshift.com is reachable ... FAIL
-- Checking if requested OpenShift version 'v3.9.31' is valid ... SKIP

might cause the problem or is this upstream specific nothing deal with registry.access.redhat.com ?

@bjethwan would you please check your proxy setting to allow https://mirror.openshift.com

PS C:\CDK_BINARY\CDK-3.5-PROD> ./minishift start --vm-driver virtualbox --http-proxy http://<ip>:<port> --https-proxy https://<ip>:<port>
-- Starting profile 'minishift'
-- Using proxy for the setup
-- Check if deprecated options are used ... OK
-- Checking if https://mirror.openshift.com is reachable ... OK
-- Checking if requested OpenShift version 'v3.9.31' is valid ... OK
-- Checking if requested OpenShift version 'v3.9.31' is supported ... OK
-- Checking if requested hypervisor 'virtualbox' is supported on this platform ... OK
-- Checking if VirtualBox is installed ... OK
-- Checking the ISO URL ... OK
-- Checking if provided oc flags are supported ... OK
-- Starting local OpenShift cluster using 'virtualbox' hypervisor ...
-- Minishift VM will be configured with ...
   Memory:    4 GB
   vCPUs :    2
   Disk size: 20 GB
-- Starting Minishift VM .................................-- Setting proxy information ... .OK
 OK
-- Registering machine using subscription-manager
   Registration in progress .................... OK [50s]
-- Checking for IP address ... OK
-- Checking for nameservers ... OK
-- Checking if external host is reachable from the Minishift VM ...
   Pinging 8.8.8.8 ... OK
-- Checking HTTP connectivity from the VM ...
   Retrieving http://minishift.io/index.html ... OK
-- Checking if persistent storage volume is mounted ... OK
-- Checking available disk space ... 1% used OK
   Importing 'registry.access.redhat.com/openshift3/ose:v3.9.31' . CACHE MISS
   Importing 'registry.access.redhat.com/openshift3/ose-docker-registry:v3.9.31' . CACHE MISS
   Importing 'registry.access.redhat.com/openshift3/ose-haproxy-router:v3.9.31' . CACHE MISS
-- OpenShift cluster will be configured with ...
   Version: v3.9.31
-- Copying oc binary from the OpenShift container image to VM ........................................................................... OK
-- Starting OpenShift cluster .................................................................
Using nsenter mounter for OpenShift volumes
Using public hostname IP 192.168.99.100 as the host IP
Using 192.168.99.100 as the server IP
Starting OpenShift using registry.access.redhat.com/openshift3/ose:v3.9.31 ...
OpenShift server started.

The server is accessible via web console at:
    https://192.168.99.100:8443

You are logged in as:
    User:     developer
    Password: <any value>

To login as administrator:
    oc login -u system:admin


-- Applying addon 'admin-user':..
-- Applying addon 'anyuid':.
 Add-on 'anyuid' changed the default security context constraints to allow pods to run as any user.
 Per default OpenShift runs containers using an arbitrarily assigned user ID.
 Refer to https://docs.openshift.org/latest/architecture/additional_concepts/authorization.html#security-context-constraints and
 https://docs.openshift.org/latest/creating_images/guidelines.html#openshift-origin-specific-guidelines for more information.
-- Applying addon 'xpaas':.........................................................................................................................
XPaaS OpenShift imagestream and templates installed
See https://github.com/openshift/openshift-ansible/tree/release-3.9/roles/openshift_examples/files/examples/v3.9
-- Exporting of OpenShift images is occuring in background process with pid 6100.
PS C:\CDK_BINARY\CDK-3.5-PROD> .\minishift.exe ssh
[docker@minishift ~]$ docker info
Containers: 9
 Running: 7
 Paused: 0
 Stopped: 2
Images: 7
Server Version: 1.13.1
Storage Driver: overlay2
 Backing Filesystem: xfs
 Supports d_type: true
 Native Overlay Diff: true
Logging Driver: journald
Cgroup Driver: systemd
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
 Authorization: rhel-push-plugin
Swarm: inactive
Runtimes: docker-runc runc
Default Runtime: docker-runc
Init Binary: docker-init
containerd version:  (expected: aa8187dbd3b7ad67d8e5e3a15115d3eef43a7ed1)
runc version: 5eda6f6fd0c2884c2c8e78a6e7119e8d0ecedb77 (expected: 9df8b306d01f59d3a8029be411de015b7304dd8f)
init version: N/A (expected: 949e6facb77383876aeff8a6944dde66b3089574)
Security Options:
 seccomp
  Profile: default
 selinux
Kernel Version: 3.10.0-862.6.3.el7.x86_64
Operating System: Red Hat Enterprise Linux Server 7.5 (Maipo)
OSType: linux
Architecture: x86_64
Number of Docker Hooks: 3
CPUs: 2
Total Memory: 3.858 GiB
Name: minishift
ID: KPDA:RLRX:KOET:PKEI:46J2:TRVX:EVK5:QBOC:T7VH:AHTV:ZZAH:EEOS
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Http Proxy: http://<ip>:<port>
Https Proxy: https://<ip>:<port>
No Proxy: localhost,127.0.0.1,172.30.1.1
Registry: https://registry.access.redhat.com/v1/
Labels:
 provider=virtualbox
Experimental: false
Insecure Registries:
 172.30.0.0/16
 127.0.0.0/8
Live Restore Enabled: false
Registries: registry.access.redhat.com (secure), docker.io (secure)
[docker@minishift ~]$