Bug 1152700 - node - skip partial deployments
Summary: node - skip partial deployments
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Containers
Version: 2.1.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Jason DeTiberus
QA Contact: libra bugs
URL:
Whiteboard:
Depends On: 1148252
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-10-14 18:24 UTC by Jason DeTiberus
Modified: 2014-11-03 20:24 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Previously, incomplete deployments that had never been activated caused the broker to no longer update the deployments list for the application. This created a situation where the user would be unable to rollback a failed deployment if the last successful deployment was after an incomplete one. This bug fix updates node logic to skip incomplete deployments when reporting to the broker, and as a result users can successfully rollback deployments in this scenario.
Clone Of: 1148252
Environment:
Last Closed: 2014-11-03 19:55:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2014:1796 0 normal SHIPPED_LIVE Moderate: Red Hat OpenShift Enterprise 2.2 Release Advisory 2014-11-04 00:52:02 UTC

Comment 2 Anping Li 2014-10-16 02:16:20 UTC
Failed on OSE-2.2 puddle-2014-10-15.1, the  prior deployment can be roll-back. 
please refer to the step 4.
1) [hanli1@broker sphp]$ rhc show-app sphp --configuration
sphp @ http://sphp-hanli1dom.ose22-app-20141015.com.cn/ (uuid: 543e29774add71fc25000027)
----------------------------------------------------------------------------------------
  Deployment:        auto (on git push)
  Keep Deployments:  10
  Deployment Type:   git
  Deployment Branch: master

[hanli1@broker sphp]$ rhc deployment-list -a sphp
Oct 15  4:00 PM, deployment df29bcd6
9:45 AM, deployment 5cc02ac8
9:45 AM, deployment 307f5271
9:46 AM, deployment a1ca1ab2
9:46 AM, deployment e29ef07b
9:46 AM, deployment fef49c71

2) change keep-deployments 3 
[hanli1@broker sphp]$ rhc app-configure sphp --keep-deployments 3
Configuring application 'sphp' ... done

After git push:

sphp @ http://sphp-hanli1dom.ose22-app-20141015.com.cn/ (uuid: 543e29774add71fc25000027)
----------------------------------------------------------------------------------------
  Deployment:        auto (on git push)
  Keep Deployments:  3
  Deployment Type:   git
  Deployment Branch: master

Your application 'sphp' is now configured as listed above.

[hanli1@broker sphp]$ rhc deployment-list -a sphp
9:46 AM, deployment e29ef07b
9:46 AM, deployment fef49c71
9:54 AM, deployment cfba2fe1


3) [root@node2 ~]# oo-devel-node report-deployments -c 543e29774add71fc25000027
Completed reporting deployments to Broker for gear 543e29774add71fc25000027

4) rollback the deploy


[hanli1@broker sphp]$ rhc app deploy fef49c71 -a sphp
Deployment of git ref 'fef49c71' in progress for application sphp ...
Git ref fef49c71 is invalid
Error deploying git ref. You can try to deploy manually with:
ssh -t 543e29774add71fc25000027.com.cn 'gear deploy fef49c71'
SSH command finished with exit status = 255

[sphp-hanli1dom.ose22-app-20141015.com.cn 543e29774add71fc25000027]\> gear deploy fef49c71
Git ref fef49c71 is invalid

Comment 4 Anping Li 2014-10-21 02:32:11 UTC
Verified and pass. 
the prior deployment can be roll-back by rhc deployment-activate fef49c71 - sphp.

Comment 6 errata-xmlrpc 2014-11-03 19:55:29 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://rhn.redhat.com/errata/RHSA-2014-1796.html


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