Bug 1380555 - [3.3] oc cluster up cannot find default openshift/origin:v3.3.0.32 image
Summary: [3.3] oc cluster up cannot find default openshift/origin:v3.3.0.32 image
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 3.3.0
Hardware: Unspecified
OS: All
high
high
Target Milestone: ---
: 3.3.1
Assignee: Corey Daley
QA Contact: Wang Haoran
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-30 00:20 UTC by Nick Schuetz
Modified: 2019-12-16 06:57 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: OpenShift Container Platform was trying to load an image version of OpenShift Origin that did not exist, based on the Container Platform version. Consequence: oc cluster up was throwing an error Fix: oc cluster up when run using the OpenShift Container Platform binary now uses the correct image name and repository Result: the oc cluster up command now works correctly
Clone Of:
Environment:
Last Closed: 2017-01-26 20:42:19 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:0199 0 normal SHIPPED_LIVE OpenShift Container Platform 3.3.1.11 and 3.2.1.23 bug fix update 2017-01-27 01:41:56 UTC

Description Nick Schuetz 2016-09-30 00:20:53 UTC
Description of problem:

When running 'oc cluster up' it fails to find the default image: openshift/origin:v3.3.0.32

Version-Release number of selected component (if applicable):

3.3.0.32

How reproducible:

Always

Steps to Reproduce:
1. Run oc cluster up with no args
2.
3.

Actual results:

$ oc cluster up
-- Checking OpenShift client ... OK
-- Checking Docker client ... OK
-- Checking Docker version ... OK
-- Checking for existing OpenShift container ... OK
-- Checking for openshift/origin:v3.3.0.32 image ... 
   Pulling image openshift/origin:v3.3.0.32
FAIL
   Error: error pulling Docker image openshift/origin:v3.3.0.32
   Caused By:
     Error: Tag v3.3.0.32 not found in repository docker.io/openshift/origin

Expected results:

A cluster should be provisioned on the users workstation from the orign:v3.3.0.32 image

Additional info:

Comment 1 Nick Schuetz 2016-09-30 03:36:37 UTC
Similar: https://bugzilla.redhat.com/show_bug.cgi?id=1379934

Comment 2 Nick Schuetz 2016-09-30 13:31:40 UTC
Actually, the default image should be: registry.access.redhat.com/openshift3/ose:v3.3.0.32

Comment 7 Cesar Wong 2016-10-18 15:01:08 UTC
We need the default image prefix to be registry.access.redhat.com/openshift3/ose when the binary is an OSE binary (by looking at version info).

Comment 8 Corey Daley 2016-10-18 15:24:49 UTC
My initial thoughts on this are that including code that points to registry.access.redhat.com in the Orgin code base seems clunky.  I would much rather include something in the OSE build pipeline that takes care of this.  I have reached out to Scott to see if that is an option.

Comment 9 Scott Dodson 2016-10-18 15:48:21 UTC
We'd need to patch the OSE code base for this like we've done the image format string. Corey can you open a PR against OSE for this?

Comment 10 Corey Daley 2016-10-18 15:55:23 UTC
Yes, sounds like a good plan to me.

Comment 13 wewang 2016-10-25 09:03:47 UTC
As I understand, I should verify command:
oc cluster up --image=registry.access.redhat.com/openshift3/ose 
and 
oc cluster up ,which use openshift/origin  in mac, is it right?

Comment 14 Corey Daley 2016-10-25 13:59:23 UTC
please verify that "oc cluster up" uses the ose image,

Comment 15 wewang 2016-10-28 06:29:20 UTC
Tested oc(v3.3.1.3) in mac, it works now:

[zhangwangs-MacBook-Air:Desktop zhangwang$oc cluster up --image=registry.access.redhat.com/openshift3/ose --create-machine
-- Checking OpenShift client ... OK
-- Create Docker machine ... 
   Creating docker-machine openshift
-- Checking Docker client ... OK
-- Checking Docker version ... OK
-- Checking for existing OpenShift container ... OK
-- Checking for registry.access.redhat.com/openshift3/ose:v3.3.1.3 image ... 
   Pulling image registry.access.redhat.com/openshift3/ose:v3.3.1.3
   Pulled 1/4 layers, 25% complete
   Pulled 2/4 layers, 50% complete
   Pulled 2/4 layers, 50% complete
   Pulled 3/4 layers, 75% complete
   Pulled 4/4 layers, 100% complete
   Extracting
   Image pull complete
-- Checking Docker daemon configuration ... OK
-- Checking for available ports ... OK
-- Checking type of volume mount ... 
   Using Docker shared volumes for OpenShift volumes
-- Creating host directories ... OK
-- Finding server IP ... 
   Using docker-machine IP 192.168.99.101 as the host IP
   Using 192.168.99.101 as the server IP
-- Starting OpenShift container ... 
   Creating initial OpenShift configuration
   Starting OpenShift using container 'origin'
   Waiting for API server to start listening
   OpenShift server started
-- Installing registry ... OK
-- Installing router ... OK
-- Importing image streams ... OK
-- Importing templates ... OK
-- Login to server ... OK
-- Creating initial project "myproject" ... OK
-- Server Information ... 
   OpenShift server started.
   The server is accessible via web console at:
       https://192.168.99.101:8443

   You are logged in as:
       User:     developer
       Password: developer

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

Comment 21 Troy Dawson 2016-12-08 20:39:03 UTC
I mis-read the pull request when I closed this.  The pull request was for the master branch instead of the enterprise-3.3 branch.
Re-Opening and setting back to assigned.

Comment 24 Wang Haoran 2016-12-19 03:18:03 UTC
We don't have new puddles now for enterprise-3.3, moved to modified.

Comment 26 Wang Haoran 2016-12-23 02:19:26 UTC
The oc cluster now are using the correct registry, but the images is still not released.

oc cluster up
-- Checking OpenShift client ... OK
-- Checking Docker client ... OK
-- Checking Docker version ... OK
-- Checking for existing OpenShift container ... OK
-- Checking for registry.access.redhat.com/openshift3/ose:v3.3.1.8 image ... 
   Pulling image registry.access.redhat.com/openshift3/ose:v3.3.1.8
FAIL
   Error: error pulling Docker image registry.access.redhat.com/openshift3/ose:v3.3.1.8
   Caused By:
     Error: error parsing HTTP 404 response body: invalid character 'F' looking for beginning of value: "File not found.\""

Comment 27 Wang Haoran 2016-12-26 09:12:18 UTC
Change to verify, since it works with the pre released image under brew registry。

Comment 29 errata-xmlrpc 2017-01-26 20:42:19 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:0199


Note You need to log in before you can comment on or make changes to this bug.