Bug 1171286
Summary: | Storage: Adding a new Storage Manager does not work. Crashes with the error - Error caught: [ArgumentError] wrong number of arguments (2 for 1) | |||
---|---|---|---|---|
Product: | Red Hat CloudForms Management Engine | Reporter: | Aparna Karve <akarve> | |
Component: | Appliance | Assignee: | Rich Oliveri <roliveri> | |
Status: | CLOSED ERRATA | QA Contact: | Milan Falešník <mfalesni> | |
Severity: | unspecified | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 5.4.0 | CC: | jhardy, jrafanie, mfalesni, roliveri, xlecauch | |
Target Milestone: | GA | |||
Target Release: | 5.4.0 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | 5.4.0.0.11 | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1171899 (view as bug list) | Environment: | ||
Last Closed: | 2015-06-16 12:45:55 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: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1171899 |
Description
Aparna Karve
2014-12-05 19:47:37 UTC
The following error is seen on the console - [----] F, [2014-12-05T19:26:53.495938 #88970:3fcfa9433bdc] FATAL -- : Error caught: [ArgumentError] wrong number of arguments (2 for 1) /manageiq/vmdb/app/models/storage_manager.rb:34:in `initialize' /.rvm/gems/ruby-1.9.3-p484/gems/default_value_for-2.0.3/lib/default_value_for.rb:138:in `initialize' /manageiq/vmdb/app/models/storage_manager.rb:45:in `new' /manageiq/vmdb/app/models/storage_manager.rb:45:in `new_of_type' /manageiq/vmdb/app/controllers/storage_manager_controller.rb:94:in `create' New commit detected on manageiq/master: https://github.com/ManageIQ/manageiq/commit/ff12fb2b91f7b0cd948a44a32aee2db7db8e0860 commit ff12fb2b91f7b0cd948a44a32aee2db7db8e0860 Author: Richard Oliveri <roliveri> AuthorDate: Mon Dec 8 16:26:53 2014 -0500 Commit: Richard Oliveri <roliveri> CommitDate: Mon Dec 8 16:26:53 2014 -0500 Remove "initialize" method from StorageManager model. The initialize method of the StorageManager model class was calling super() and in so doing, not passing the proper args to the subclass. Given this was all the method did, the entire method has been removed. https://bugzilla.redhat.com/show_bug.cgi?id=1171286 https://bugzilla.redhat.com/show_bug.cgi?id=1171899 vmdb/app/models/storage_manager.rb | 4 ---- 1 file changed, 4 deletions(-) New commit detected on cfme/5.3.z: https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=29bb3e20fdbc7c54243bfa973b5913c5777b7968 commit 29bb3e20fdbc7c54243bfa973b5913c5777b7968 Author: Richard Oliveri <roliveri> AuthorDate: Mon Dec 8 16:26:53 2014 -0500 Commit: Richard Oliveri <roliveri> CommitDate: Tue Dec 9 12:39:02 2014 -0500 Remove "initialize" method from StorageManager model. The initialize method of the StorageManager model class was calling super() and in so doing, not passing the proper args to the subclass. Given this was all the method did, the entire method has been removed. https://bugzilla.redhat.com/show_bug.cgi?id=1171286 https://bugzilla.redhat.com/show_bug.cgi?id=1171899 vmdb/app/models/storage_manager.rb | 4 ---- 1 file changed, 4 deletions(-) Assuming the error from constructor comes during save of the new storage provider, no such message appeared when creating a new one in 5.4.0.0.11. Therefore moving to VERIFIED but I'd like to have a response from Rich on this. If all of this is correct, then just clear the needinfo :) Yes, that is correct. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2015-1100.html |