Bug 1396970

Summary: App with manual Build and Deployment steps does not deploy and gives the error "Err Pull Image"
Product: OpenShift Container Platform Reporter: Vladislav Walek <vwalek>
Component: openshift-controller-managerAssignee: Samuel Padgett <spadgett>
Status: CLOSED DUPLICATE QA Contact: zhou ying <yinzhou>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.3.0CC: aos-bugs, jforrest, pweil, vwalek
Target Milestone: ---Keywords: UpcomingRelease
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-02 18:40:10 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Vladislav Walek 2016-11-21 10:05:43 UTC
Description of problem:

Hi,
when you create new app and you will:
- Disable "Automatically build a new image when the builder image changes"
- Disable "Launch the first build when the build configuration is created"
- Disable "Autodeploy when: New image is available"
- Disable "Autodeploy when: Deployment configuration changes"

and manually run, oc start-build <bc> and then oc deploy --latest, then the deploy will fail with message "image can't be pulled". 
The issue is within the dc. After adding the address of registry and namespace before the image setting it will work:

From
     containers:
          name: <NAME>
          image: '<IMAGE>:latest'
To:
      containers:
          name: <NAME>
          image: '<IP_REGISTRY>:5000/<NAMESPACE>/<IMAGE>:latest'

I did the test with both, it doesn't work as mentioned above.

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

OpenShift Container Platform 3.3.0

How reproducible:

Create 2 projects, one as above, one normally. Build the app, deploy the app.

Steps to Reproduce:
1. create project with settings above
2. start build
3. start deploy

Actual results:

the deploy fails if set above, the dc must be edited manually

Expected results:

with the settings above, the deploy should be fine

Additional info:

Comment 1 Michail Kargakis 2016-11-28 09:34:59 UTC
This is fixed in 3.4 for the web console (removing the ability to "Autodeploy when: New image is available" does not remove the image change trigger anymore, just sets Automatic to False).

https://github.com/openshift/origin-web-console/pull/810

Vladislav, do we need to backport the fix to 3.3?

Comment 4 Samuel Padgett 2016-12-02 18:40:10 UTC
Duplicate of

https://bugzilla.redhat.com/show_bug.cgi?id=1383804

with target release 3.4.0.

*** This bug has been marked as a duplicate of bug 1383804 ***