Description of problem: Always get "Archive at app3.tar.gz does not contain the target application: ./*/app3" while restoring apps. This may be caused by the directory structure changes. Version-Release number of selected component (if applicable): fork_ami_US2105_169 rhc-0.99.2 How reproducible: Always Steps to Reproduce: 1.Create an app 2.Save snapshot of it $ rhc app snapshot save -a <appname> -d 3.Restore the app $ rhc app snapshot restore -a <appname> -f app3.tar.gz -d Actual results: <----------------output----------------> Archive at app3.tar.gz does not contain the target application: ./*/app3 If you created this archive rather than exported with rhc-snapshot, be sure the directory structure inside the archive starts with ./<app_uuid>/ i.e.: tar -czvf <app_name>.tar.gz ./<app_uuid>/ <--------------------------------------> Expected results: The app should be restored successfully. Additional info:
After embedding mysql-5.1 to the app, restore will succeed.
Fixed with https://github.com/mrunalp/rhc/commit/fd09f900742c7faec74f35721064b47bbdf41a0b
Tested on fork_ami_US2105_178 Seems the above fix has not come into latest ami, so leave this bug for next fork_ami
Tested on fork_ami_us2105_189, and still reproduced this problem. The fixing code has not merged in, so I replaced current code with fix in comment 2 and it works for me. Assign it back now since the fix has not came in for two ami builds.
Fix will be available in next AMI.
Test this on devenv2259 and it works
verified this on AMI: fork_ami_US2105_203 (ami-3943fe50)