Bug 1062621
Summary: | 'rhc app show --state/--gear' shows db gear stop after restore snapshot for scalable app | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Brenton Leanhardt <bleanhar> |
Component: | Containers | Assignee: | Brenton Leanhardt <bleanhar> |
Status: | CLOSED ERRATA | QA Contact: | libra bugs <libra-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 2.0.0 | CC: | anli, chunchen, jhonce, libra-onpremise-devel, lzhang |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | 1030305 | Environment: | |
Last Closed: | 2014-05-15 14:40:48 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: | 1030305 | ||
Bug Blocks: |
Description
Brenton Leanhardt
2014-02-07 14:11:13 UTC
We'll likely pick this up in the rebase but if the work is done sooner and the backport is trivial we should consider pulling this in. Verified with steps as below: 1. create app and add mysql gears: [ose215@dhcp-9-237 ~]$ rhc app show myjbossews20s --gears ID State Cartridges Size SSH URL ------------------------ ------- ------------------------ ----- -------------------------------------------------------------------------------- 532fa2a18fcf31fa2e000078 started haproxy-1.4 jbossews-2.0 small 532fa2a18fcf31fa2e000078.com.cn 532fa2e78fcf31fa2e000097 started mysql-5.5 small 532fa2e78fcf31fa2e000097.com.cn 2. Snapshot saveing app [ose215@dhcp-9-237 ~]$ rhc snapshot save myjbossews20s Pulling down a snapshot to myjbossews20s.tar.gz... Saving snapshot for secondary mysql-5.5 gear Creating and sending tar.gz Creating and sending tar.gz RESULT: Success 3.rhc app show myjbossews20s --gears ID State Cartridges Size SSH URL ------------------------ ------- ------------------------ ----- -------------------------------------------------------------------------------- 532fa2a18fcf31fa2e000078 started haproxy-1.4 jbossews-2.0 small 532fa2a18fcf31fa2e000078.com.cn 532fa2e78fcf31fa2e000097 started mysql-5.5 small 532fa2e78fcf31fa2e000097.com.cn 4.[ose215@dhcp-9-237 ~]$ rhc cartridge status mysql-5.5 -a myjbossews20s RESULT: MySQL is running 5.[ose215@dhcp-9-237 ~]$ rhc snapshot restore myjbossews20s -f myjbossews20s.tar.gz Restoring from snapshot myjbossews20s.tar.gz... Removing old git repo: ~/git/myjbossews20s.git/ Removing old data dir: ~/app-root/data/* Restoring ~/git/myjbossews20s.git and ~/app-root/data Restoring snapshot for mysql-5.5 gear Removing old data dir: ~/app-root/data/* Restoring ~/app-root/data Old and new names are the same, no need to rename + tmp=/var/lib/openshift/532fa2a18fcf31fa2e000078/jbossews//tmp + '[' -d /var/lib/openshift/532fa2a18fcf31fa2e000078/jbossews//tmp ']' + for d in '$tmp/*' + '[' -d '/var/lib/openshift/532fa2a18fcf31fa2e000078/jbossews//tmp/*' ']' + '[' -d /var/lib/openshift/532fa2a18fcf31fa2e000078/jbossews//work/ ']' + rm -rf /var/lib/openshift/532fa2a18fcf31fa2e000078/jbossews//work/ ++ ls /var/lib/openshift/532fa2a18fcf31fa2e000078/app-root/runtime/repo//webapps + '[' '' ']' Activation status: success RESULT: Success 6.[ose215@dhcp-9-237 ~]$ rhc cartridge status mysql-5.5 -a myjbossews20sRESULT: MySQL is running 7.[ose215@dhcp-9-237 ~]$ rhc app show myjbossews20s --gears ID State Cartridges Size SSH URL ------------------------ ------- ------------------------ ----- -------------------------------------------------------------------------------- 532fa2a18fcf31fa2e000078 started haproxy-1.4 jbossews-2.0 small 532fa2a18fcf31fa2e000078.com.cn 532fa2e78fcf31fa2e000097 started mysql-5.5 small 532fa2e78fcf31fa2e000097.com.cn 8. ssh gears and access mysql mysql> use myjbossews20s Database changed mysql> create table t1(id int); Query OK, 0 rows affected (0.08 sec) |