Bug 1103740
Summary: | The secondary gear isn't stopped after restore snapshot for scalable stop app | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Brenton Leanhardt <bleanhar> |
Component: | ImageStreams | Assignee: | Brenton Leanhardt <bleanhar> |
Status: | CLOSED ERRATA | QA Contact: | libra bugs <libra-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | high | ||
Version: | 2.1.0 | CC: | adellape, agoldste, dmcphers, jialiu, jkeck, jokerman, libra-onpremise-devel, lzhang, mfojtik, mmccomas, pruan, xiama, yanpzhan |
Target Milestone: | --- | Keywords: | Upstream |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: |
After stopping a scaled application and saving a snapshot, the head gear for the application remained stopped after restoring the snapshot, which was expected. However, secondary gears were started after the restore, which was not the expected behavior. This issue was caused by certain post restore logic not being applied to all gears in the application. This bug fix updates the post-restore logic, and secondary gears are now stopped along with the head gear after restoring a stopped application.
|
Story Points: | --- |
Clone Of: | 1101499 | Environment: | |
Last Closed: | 2014-08-04 13:27:16 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: | |
Embargoed: | |||
Bug Depends On: | 1101499, 1110077 | ||
Bug Blocks: |
Description
Brenton Leanhardt
2014-06-02 12:50:18 UTC
Upstream commits: commit da7e8c83fa197cf7765a410e3b163d5b7b9ef16d Author: jhadvig <jhadvig> Date: Fri May 30 14:32:16 2014 +0200 Bug 1101499: Stopping secondary gear after restore snapshot for scaleable app commit e0daa900c1d55a5bfe74287661adb178ef1680ec Author: jhadvig <jhadvig> Date: Wed Jun 4 12:43:44 2014 +0200 Bug 1101499: Adjusting logic of gear state restoration Verified on:OpenShiftEnterpriseErrata/2.1.z/2014-07-15.1 Steps to verify: 1.Create scalable app and set min scaling value to 2 #rhc app create perlone perl-5.10 -s #rhc cartridge scale -a perlone -c perl-5.10 --min 2 2.stop app and save snapshot #rhc app stop perlone #rhc snapshot save perlone #rhc app show -a perlone --gears 3.restore snapshot and check status of gear #rhc snapshot restore perlone #rhc app show -a perlone --gears Actual results: 2. # rhc app stop perlone RESULT: perlone stopped # rhc snapshot save perlone Pulling down a snapshot of application 'perlone' to perlone.tar.gz ... done # rhc app show -a perlone --gears ID State Cartridges Size SSH URL ------------------------ ------- --------------------- ----- ------------------------------------------------------------------------------ 53c60ddcdb26c87359000053 stopped haproxy-1.4 perl-5.10 small 53c60ddcdb26c87359000053.com.cn 53c60e46db26c87359000073 stopped haproxy-1.4 perl-5.10 small 53c60e46db26c87359000073.com.cn 3. # rhc snapshot restore perlone Restoring from snapshot perlone.tar.gz to application 'perlone' ... done # rhc app show -a perlone --gears ID State Cartridges Size SSH URL ------------------------ ------- --------------------- ----- ------------------------------------------------------------------------------ 53c60ddcdb26c87359000053 stopped haproxy-1.4 perl-5.10 small 53c60ddcdb26c87359000053.com.cn 53c60e46db26c87359000073 stopped haproxy-1.4 perl-5.10 small 53c60e46db26c87359000073.com.cn *** Bug 1110077 has been marked as a duplicate of this bug. *** 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. http://rhn.redhat.com/errata/RHBA-2014-0999.html |