Bug 1036513

Summary: Failed to start zend-5.6/6.1 app after snapshot restore with hot_deploy maker enabled
Product: OpenShift Online Reporter: Lei Zhang <lzhang>
Component: ImageAssignee: Vojtech Vitek <vvitek>
Status: CLOSED DUPLICATE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 2.xCC: hripps, mfojtik, vvitek, xtian
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-04 13:54:14 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 Lei Zhang 2013-12-02 08:11:15 UTC
Description of problem:
Given one zend-5.6/6.1 app created(e.g.,myzend61), change something in local git repo and git push, do snapshot save and then do snapshot restore and found zend app failed to start after snapshot restore done, when accessing the home page, 503 error shows


[rayzhang@ray Work]$ rhc snapshot restore -a myzend61 -f myzend61.tar.gz 
Restoring from snapshot myzend61.tar.gz...
Removing old git repo: ~/git/myzend61.git/
Removing old data dir: ~/app-root/data/*
Restoring ~/git/myzend61.git and ~/app-root/data
Activation status: success
RESULT:
Success
[rayzhang@ray Work]$ rhc cartridge status -a myzend61 -c zend-6.1
RESULT:
Application is either stopped or inaccessible



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

How reproducible:
always

Steps to Reproduce:
1.create one zend-6.1/zend-5.6 app
#rhc app create myzend61 zend-6.1
2.change something in local git repo and git push, and then do snapshot save
#sed -i 's/Welcome to/HI/g' php/index.php
#git add -A &&git commit -amp&&git push
#rhc snapshot save myzend61
3.restore snapshot and check the status of zend app
#rhc snapshot restore -a myzend61 -f myzend61.tar.gz 
#rhc cartridge status -a myzend61 -c zend-6.1

Blow is the test log of zend-5.6 
http://pastebin.test.redhat.com/179217

Actual results:
zend app failed to start after snapshot restore

Expected results:
zend app should be started after snapshot restore

Additional info:

Comment 1 Michal Fojtik 2013-12-04 12:37:56 UTC
I'm able to reproduce this bug. The workaround is to restart the app after snapshot is restored. In that case all Zend services are started and app is working normally. Vojtech?

Comment 6 Michal Fojtik 2013-12-04 13:42:58 UTC
I would recommend closing this one as duplicate of this new bug:

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

(as this is affecting all cartridges, not just Zend).

Comment 7 Vojtech Vitek 2013-12-04 13:54:14 UTC

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