Bug 790662 - undefined method `server_identity' error is seen when running migrate script.
Summary: undefined method `server_identity' error is seen when running migrate script.
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: OKD
Classification: Red Hat
Component: Containers
Version: 1.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Dan McPherson
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-15 06:04 UTC by Johnny Liu
Modified: 2012-02-15 15:28 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-15 15:28:08 UTC
Target Upstream Version:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.