Bug 1433229 - Deploy from webconsole fails but rollout latest success
Summary: Deploy from webconsole fails but rollout latest success
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 3.4.1
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Jessica Forrester
QA Contact: XiaochuanWang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-03-17 06:27 UTC by yufchang
Modified: 2017-08-22 08:28 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: The web console had not been updated to use new API endpoints that could resolve ImageStream references at the time of a rollout. Consequence: DeploymentConfigs using an image change trigger with the automatic option turned off could not be manually deployed from the web console. Fix: The web console now uses the deploymentconfigs/instantiate API endpoint to trigger new manual deployments. Result: DeploymentConfigs using an image change trigger with the automatic option turned off can be manually deployed from the web console using the "Deploy" action.
Clone Of:
Environment:
Last Closed: 2017-08-10 05:18:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2017:1716 0 normal SHIPPED_LIVE Red Hat OpenShift Container Platform 3.6 RPM Release Advisory 2017-08-10 09:02:50 UTC

Description yufchang 2017-03-17 06:27:27 UTC
Description of problem:
Using the same DC, Deploy fails when using "Deploy" on web console, but succeed when using rollout latest

Version-Release number of selected component (if applicable):
kubernetes v1.4.0+776c994
Server https://api.ded-stg2-aws.openshift.com:443
openshift v3.4.1.10


How reproducible:
Always

Steps to Reproduce:
1.oc new-app -f https://raw.githubusercontent.com/openshift/origin/master/examples/jenkins/application-template.json
2.oc start-build frontend
3.After build complete, "Deploy" on the web console;
4. oc rollout latest frontend

Expected Result
3. Success in deployment;
4. Success in deployment;

Actual Result:
3. failed

It seemed that "deploy" on webconsole is not using the right command.
please confirm , thanks.



Additional info:

Comment 1 Michal Fojtik 2017-03-17 10:09:01 UTC
Can you please provide the error it fails with in webconsole? A deployer log, events, anything that can tell us why the deploy failed.

Comment 2 zhou ying 2017-03-20 05:58:02 UTC
I guess the root is "automatic": false, on webconsole , the deploy still use 'oc deploy ... --latest' command , we should use 'oc rollout latest' .

Comment 6 Jessica Forrester 2017-04-18 15:20:42 UTC
We never switched to creating a DeploymentRequest and using deploymentconfigs/instantiate, will be fixing that in https://github.com/openshift/origin-web-console/pull/1434/files

Comment 7 Jessica Forrester 2017-04-18 15:26:14 UTC
also the CLI command we reference in the console in the DC Triggers section was already updated, in master it tells the user to run oc rollout latest

Comment 8 Troy Dawson 2017-04-19 19:33:20 UTC
This has been merged into ocp and is in OCP v3.6.39 or newer.

Comment 10 yufchang 2017-04-20 06:55:48 UTC
Verify in OCP v3.6.39; Fixed!

Comment 12 errata-xmlrpc 2017-08-10 05:18:47 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/RHEA-2017:1716


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