Bug 906681

Summary: 1.1.z/2013-01-30.2 puddle is shipping old rhc package.
Product: OpenShift Container Platform Reporter: nsun <nsun>
Component: ocAssignee: Brenton Leanhardt <bleanhar>
Status: CLOSED NEXTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 1.1.1CC: bleanhar, jialiu, libra-onpremise-devel, lmeyer, xtian
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-18 14:38:21 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:

Description nsun 2013-02-01 08:26:16 UTC
Description of problem:

Snapshot save one app, the restore it ,it will failed.  
Prompts error message the same as closed BUG 889088, and the BUG fixed at rhc-1.3.2-1.3.el6op,  puddle:
http://buildvm-devops.usersys.redhat.com/puddle/build/OpenShiftEnterprise/1.1.x/2013-01-07.2/

We using puddle and rhc client version :
OpenShiftEnterprise/1.1.z/2012-12-30.2/
rhc-1.3.2-1.2

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


How reproducible:
always

Steps to Reproduce:
1. Create app
2. Snapshot save the app
3. Modify something in app's git repo, then git push
4. Restore the app
  
Actual results:
[root@openshift test]# rhc snapshot restore  r19 -predhat
/usr/lib/ruby/gems/1.8/gems/rhc-1.3.2/lib/rhc/commands/snapshot.rb:66:in `restore': uninitialized constant RHC::TarGz (NameError)
        from /usr/lib/ruby/gems/1.8/gems/rhc-1.3.2/lib/rhc/commands.rb:137:in `send'
        from /usr/lib/ruby/gems/1.8/gems/rhc-1.3.2/lib/rhc/commands.rb:137:in `to_commander'
        from /usr/lib/ruby/gems/1.8/gems/commander-4.0.3/lib/commander/command.rb:180:in `call'
        from /usr/lib/ruby/gems/1.8/gems/commander-4.0.3/lib/commander/command.rb:180:in `call'
        from /usr/lib/ruby/gems/1.8/gems/commander-4.0.3/lib/commander/command.rb:155:in `run'
        from /usr/lib/ruby/gems/1.8/gems/commander-4.0.3/lib/commander/runner.rb:385:in `run_active_command'
        from /usr/lib/ruby/gems/1.8/gems/rhc-1.3.2/lib/rhc/command_runner.rb:61:in `run!'
        from /usr/lib/ruby/gems/1.8/gems/commander-4.0.3/lib/commander/delegates.rb:7:in `run!'
        from /usr/lib/ruby/gems/1.8/gems/rhc-1.3.2/lib/rhc/cli.rb:41:in `start'
        from /usr/lib/ruby/gems/1.8/gems/rhc-1.3.2/bin/rhc:18
        from /usr/bin/rhc:19:in `load'
        from /usr/bin/rhc:19

Expected results:
Restore it successfully.

Additional info:

Comment 2 Brenton Leanhardt 2013-02-01 14:31:09 UTC
Great catch, I'll look into this shortly.

Comment 6 nsun 2013-02-04 03:20:35 UTC
$ rhc app create r19 ruby-1.9 -predhat
...
$ rhc snapshot save r19 -predhat
...
Creating and sending tar.gz
Done
RESULT:
Success

$ rhc snapshot restore r19 -predhat
...
Running .openshift/action_hooks/pre_build
Running .openshift/action_hooks/build
Running .openshift/action_hooks/deploy
hot_deploy_added=false
Done
Running .openshift/action_hooks/post_deploy

RESULT:
Success

Version: 
http://buildvm-devops.usersys.redhat.com/puddle/build/OpenShiftEnterprise/1.1.z/2013-01-31.1/

Comment 7 Luke Meyer 2013-02-18 14:38:21 UTC
Closing as no bug was shipped.
(BTW please set "Version" when reporting bugs.)