| Summary: | cannot migrate successfully with script migrate-2.0.8 | ||
|---|---|---|---|
| Product: | OKD | Reporter: | Meng Bo <bmeng> |
| Component: | Pod | Assignee: | Rob Millner <rmillner> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | libra bugs <libra-bugs> |
| Severity: | medium | Docs Contact: | |
| Priority: | high | ||
| Version: | 1.x | CC: | lnader, mfisher, 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: | 2012-04-13 18:30:24 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
Meng Bo
2012-03-27 10:10:58 UTC
There were a few namespace changes that happened in this sprint. Migrate needed to catch up. From my last run... ##################################################### Summary: # of users: 16 # of apps: 20 # of failures: 0 Application counts per thread: [20] Total execution time: 136s ##################################################### still get the same problem (NoMethodError) when run migrate-2.0.8, follow the steps in https://engineering.redhat.com/trac/Libra/ticket/158 please run migrate-mongo-2.0.8 first. Still seeing the issue. Migrate-mongo fixes a similar issue with user.namespace to app.domain.namespace. The missing attribute, "optimize" doesn't appear in our code. This must be driven by an update in activemodel. [root@ip-10-110-178-90 ~]# ./li-test/misc/maintenance/bin/migrate-2.0.8 Getting all RHLogins... /usr/lib/ruby/gems/1.8/gems/activemodel-3.0.10/lib/active_model/attribute_methods.rb:392:in `method_missing': undefined method `optimize=' for #<Application:0x7f8405d10660> (NoMethodError) from /usr/lib/ruby/gems/1.8/gems/stickshift-common-0.7.2/lib/stickshift-common/models/model.rb:133:in `send' from /usr/lib/ruby/gems/1.8/gems/stickshift-common-0.7.2/lib/stickshift-common/models/model.rb:133:in `attributes=' from /usr/lib/ruby/gems/1.8/gems/bson-1.5.2/lib/bson/ordered_hash.rb:81:in `each' from /usr/lib/ruby/gems/1.8/gems/bson-1.5.2/lib/bson/ordered_hash.rb:81:in `each' from /usr/lib/ruby/gems/1.8/gems/stickshift-common-0.7.2/lib/stickshift-common/models/model.rb:132:in `attributes=' from /usr/lib/ruby/gems/1.8/gems/stickshift-common-0.7.2/lib/stickshift-common/models/user_model.rb:79:in `hash_to_obj' from /usr/lib/ruby/gems/1.8/gems/stickshift-controller-0.7.4/lib/stickshift-controller/app/models/application.rb:218:in `hash_to_obj' from /usr/lib/ruby/gems/1.8/gems/stickshift-controller-0.7.4/lib/stickshift-controller/app/models/cloud_user.rb:149:in `hash_to_obj' from /usr/lib/ruby/gems/1.8/gems/stickshift-controller-0.7.4/lib/stickshift-controller/app/models/cloud_user.rb:148:in `each' from /usr/lib/ruby/gems/1.8/gems/stickshift-controller-0.7.4/lib/stickshift-controller/app/models/cloud_user.rb:148:in `hash_to_obj' from /usr/lib/ruby/gems/1.8/gems/stickshift-common-0.7.2/lib/stickshift-common/models/user_model.rb:26:in `find_all' from /usr/lib/ruby/gems/1.8/gems/stickshift-common-0.7.2/lib/stickshift-common/models/user_model.rb:25:in `map!' from /usr/lib/ruby/gems/1.8/gems/stickshift-common-0.7.2/lib/stickshift-common/models/user_model.rb:25:in `find_all' from ./li-test/misc/maintenance/bin/migrate-2.0.8:185:in `migrate' from ./li-test/misc/maintenance/bin/migrate-2.0.8:530 Found it - we used to have an optimize parameter on the Application model. git diff origin/stage -- ./stickshift/controller/lib/stickshift-controller/app/models/application.rb ... - attr_accessor :user, :creation_time, :uuid, :aliases, :cart_data, :optimize, + attr_accessor :user, :creation_time, :uuid, :aliases, :cart_data, The migrate-mongo script needs to remove this parameter from mongodb. Fixed in commit 03a190a. verified with latest script migrate-mongo-2.0.8 and migrate-2.0.8 issue has been fixed. |