Bug 790662

Summary: undefined method `server_identity' error is seen when running migrate script.
Product: OKD Reporter: Johnny Liu <jialiu>
Component: ContainersAssignee: Dan McPherson <dmcphers>
Status: CLOSED NOTABUG QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.x   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-15 15:28:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Johnny Liu 2012-02-15 06:04:22 UTC
Description of problem:
After update package, and run migrate-mongo-app-descriptors.rb to move mongo data to the new descriptor enabled format, then run migrate script, the following error is thrown out:
# ./migrate-2.0.4 
Getting all RHLogins...
RHLogins.length: 2
Gathering apps for user: jialiu with uuid: 534e1e9b1dcd4cda837e94676f699a43
/usr/lib/ruby/gems/1.8/gems/activemodel-3.0.10/lib/active_model/attribute_methods.rb:392:in `method_missing': undefined method `server_identity' for #<Application:0x7ff9acb157f8> (NoMethodError)
	from ./migrate-2.0.4:130:in `migrate'
	from ./migrate-2.0.4:128:in `each'
	from ./migrate-2.0.4:128:in `migrate'
	from ./migrate-2.0.4:125:in `each'
	from ./migrate-2.0.4:125:in `migrate'
	from ./migrate-2.0.4:124:in `initialize'
	from ./migrate-2.0.4:124:in `new'
	from ./migrate-2.0.4:124:in `migrate'
	from ./migrate-2.0.4:123:in `each'
	from ./migrate-2.0.4:123:in `migrate'
	from ./migrate-2.0.4:373


Version-Release number of selected component (if applicable):
Old instance: devenv_stage_127
After update packages:
rubygem-cloud-sdk-common-0.4.4-1.el6_2.noarch
rubygem-cloud-sdk-controller-0.4.6-1.el6_2.noarch
rubygem-cloud-sdk-node-0.4.5-1.el6_2.noarch
rhc-broker-0.86.6-1.el6_2.noarch
migrate-2.0.4

How reproducible:
Always

Steps to Reproduce:
1. Start a old instance (devenv_stage_127)
2. Create an app
3. Log into instance, upgrade packages to the latest.
# yum update
4. Run misc/maintenance/bin/migrate-mongo-app-descriptors.rb to move mongo data
to the new descriptor enabled format.
5. Run migrate script
# ./migrate-2.0.4

  
Actual results:
Error message is thrown out.


Expected results:
No error message is seen.

Additional info:

Comment 1 Dan McPherson 2012-02-15 15:28:08 UTC
Thanks for pointing this out.  But migrate 2.0.4 is from last release.  The only migrate script for this release is the descriptor one Krishna sent out.

Sorry for the confusion.  The naming scheme was supposed to be OpenShift 2, sprint 4.  So this sprint's migration would be 2.0.5 if there was one.