Bug 823853
Summary: | Can't restore the snapshot to the app in win7 and mac | ||||||
---|---|---|---|---|---|---|---|
Product: | OKD | Reporter: | yquan <yquan> | ||||
Component: | oc | Assignee: | Fabiano Franz <ffranz> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | libra bugs <libra-bugs> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | high | ||||||
Version: | 2.x | CC: | qgong, rmillner | ||||
Target Milestone: | --- | Keywords: | Triaged | ||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | rhc-0.93.16-1+ | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2012-06-08 17:59:35 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: | |||||||
Attachments: |
|
Description
yquan
2012-05-22 10:12:32 UTC
This bug still exist in rhc-0.93.6, but the result is after I use command "rhc app snapshot restore",It will not return anything, and keep halt. I tested this bug in Mac os. 1.When restore the snapshot to an app have not added any cartridge,It will return the message like below: Restoring from snapshot php0.tar.gz... Stopping application... Syntax error on line 2 of /var/lib/stickshift/983574aad38c487ebf615a51fbe766d7/php0/conf.d/stickshift.conf: DocumentRoot must be a directory httpd (no pid file) not running Done Removing old git repo: ~/git/php0.git/ Removing old data dir: ~/php0/data/* Restoring ~/git/php0.git and ~/php0/data gzip: stdin: unexpected end of file /bin/tar: Child returned status 1 /bin/tar: Error is not recoverable: exiting now ~ ~ fatal: not a tree object tar: This does not look like a tar archive tar: Exiting with failure status due to previous errors ~ Starting application... Syntax error on line 2 of /var/lib/stickshift/983574aad38c487ebf615a51fbe766d7/php0/conf.d/stickshift.conf: DocumentRoot must be a directory Done Terminating... 2.When restore the snapshot to an app with mysql,it will not return anything, and keep halt. This may be fixed, but double check. Fixed. Created attachment 587313 [details]
The attachemnt is the file that locate: /var/lib/stickshift/410d3c3c463040e98067a5fc083c1173/php-5.3/conf.d/stickshift.conf
Tested again and found failed in mac platform,
(deven_1806, rhc.0.93.12)
OpenShiftmatoMacBook-Pro:~ root# rhc-snapshot -a gqphp -r gqphp.tar.gz
Password: ******
Restoring from snapshot gqphp.tar.gz...
Stopping application...
Syntax error on line 2 of /var/lib/stickshift/410d3c3c463040e98067a5fc083c1173/gqphp/conf.d/stickshift.conf:
DocumentRoot must be a directory
httpd (no pid file) not running
Done
Removing old git repo: ~/git/gqphp.git/
Removing old data dir: ~/gqphp/app/data/*
Restoring ~/git/gqphp.git and ~/app/data
gzip:
stdin: unexpected end of file
/bin/tar: Child returned status 1
/bin/tar: Error is not recoverable: exiting now
~ ~
fatal: not a tree object
tar:
This does not look like a tar archive
tar:
Exiting with failure status due to previous errors
~
Starting application...
Syntax error on line 2 of /var/lib/stickshift/410d3c3c463040e98067a5fc083c1173/php-5.3/conf.d/stickshift.conf:
DocumentRoot must be a directory
Done
Terminating...
The test result in RHEL6 and win7 are passed. Then I do some steps on mac like: 1.create 1 app -t php-5.3 2.embed mysql-5.1 and phpmyadmin-3.4 3.then I want to access the phpmyadmin page, but fail with: The requested URL /phpmyadmin/ was not found on this server. 4.Then I access the app page, could access right. Fixed on rhc-0.93.15-1+, tested on a Mac with a PHP app, MySQL and PHPMyAdmin. It still can't restore success. I tested on mac. testing step: 1.create an php app 2.snapshot save this app 3.restore this app output: OpenShiftmatoMacBook-Pro:~ root# rhc app snapshot restore -a php0 Password: ** Restoring from snapshot php0.tar.gz... Stopping application... Waiting for stop to finish Done Removing old git repo: ~/git/php0.git/ Removing old data dir: ~/php0/app/data/* Restoring ~/git/php0.git and ~/app/data gzip: stdin: unexpected end of file /bin/tar: Child returned status 1 /bin/tar: Error is not recoverable: exiting now ~ ~ fatal: not a tree object tar: This does not look like a tar archive tar: Exiting with failure status due to previous errors ~ Starting application... Syntax error on line 2 of /var/lib/stickshift/b9177844739448018174e356d6268dd4/php-5.3/conf.d/stickshift.conf: DocumentRoot must be a directory Done Terminating... The client tools are now fixed on rhc-0.93.16-1+ (reverted back to the version of previous Sprint). Please note that are still a few error related to snapshot restore but these are being handled on bug 826819. It fixed on rhc-0.93.18. OpenShiftmatoMacBook-Pro:~ root# rhc sshkey list Password: ** SSH keys ======== Name: default Type: ssh-rsa Fingerprint: 62:59:bf:8d:6a:d7:ce:15:7e:ba:71:8c:10:62:13:d9 (In reply to comment #10) > It fixed on rhc-0.93.18. > > OpenShiftmatoMacBook-Pro:~ root# rhc sshkey list > Password: ** > > > SSH keys > ======== > Name: default > Type: ssh-rsa > Fingerprint: 62:59:bf:8d:6a:d7:ce:15:7e:ba:71:8c:10:62:13:d9 Sorry for the Comment10,I opened too many bug pages, My mistake. It's reply for the bug 824318. I tested this case on rhc-0.93.18 and devenv_1812. It can restore successfully. OpenShiftmatoMacBook-Pro:~ root# rhc app snapshot restore -a php0 Password: ** Restoring from snapshot php0.tar.gz... Stopping application... Waiting for stop to finish Done Removing old git repo: ~/git/php0.git/ Removing old data dir: ~/php0/app-root/data/* Restoring ~/git/php0.git and ~/app-root/data ~/git/php0.git ~ ~ Running .openshift/action_hooks/pre_build Running .openshift/action_hooks/build Running .openshift/action_hooks/deploy Starting application... Done Running .openshift/action_hooks/post_deploy |