Red Hat Bugzilla – Bug 1441144
UI: "Refresh Relationships and Power states" on RHOS provider throws error in evm.log
Last modified: 2018-03-01 08:11:36 EST
Created attachment 1270719 [details] evm.log during refresh rhos provider Description of problem: Version-Release number of selected component (if applicable):5.8.0.9-alpha2.20170404195944_1d7ece4 How reproducible:100% Steps to Reproduce: 1. Add RHOS provider 2. Select RHOs Provider and "Refresh Relationships and Power states" 3. Actual results: See error in evm.log Expected results: It should not throw any error in evm.log Additional info:
[----] E, [2017-04-11T05:48:05.554599 #15750:95b140] ERROR -- : [NoMethodError]: undefined method `each' for nil:NilClass Method:[rescue in block in refresh] [----] E, [2017-04-11T05:48:05.555138 #15750:95b140] ERROR -- : /var/www/miq/vmdb/app/models/manageiq/providers/storage_manager/swift_manager/refresh_parser/cross_linkers/openstack.rb:14:in `cross_link' /var/www/miq/vmdb/app/models/manageiq/providers/storage_manager/swift_manager/refresh_parser/cross_linkers.rb:13:in `cross_link' /var/www/miq/vmdb/app/models/manageiq/providers/storage_manager/swift_manager/refresh_parser.rb:30:in `ems_inv_to_hashes' /var/www/miq/vmdb/app/models/manageiq/providers/storage_manager/swift_manager/refresh_parser.rb:9:in `ems_inv_to_hashes' /var/www/miq/vmdb/app/models/manageiq/providers/storage_manager/swift_manager/refresher.rb:6:in `parse_legacy_inventory' /var/www/miq/vmdb/app/models/ems_refresh/refreshers/ems_refresher_mixin.rb:150:in `block in parse_targeted_inventory'
*** Bug 1440122 has been marked as a duplicate of this bug. ***
Looking at the code, it appears that there are no objects and we are still trying to run through them without checking. Can you validate that there are no objects? I just want to make sure this isn't an issue of the user not being able to see objects that are actually there.
A fix is available based on the answer we are awaiting from sbulage@redhat.com.
*** Bug 1412847 has been marked as a duplicate of this bug. ***
Hello Jerry, Yes, Object is not created on the latest build as I ran "Refresh Relationships and Power States" as soon as a RHOS provider was added. Thanks, Satyajit Bulage.
In that case... putting back to ON_DEV.
This issue has been fixed via https://github.com/ManageIQ/manageiq/pull/14795. Moving to POST.
Jumped to gun moving it to POST before the PR is merged. Moving back to ON_DEV.
Satyajit, re-assigning to you in an effort to help osp ON_QAs... please verify if you can. Work with pakotvan and his rhos11 test env.
Not getting swift related error in rhos11 provider. Verified Version: 5.9.0.11.20171127204214_e316988
Workaround: Create a swift container as admin user. Example, ~~~ touch file1 swift upload c1 file1 ~~~ and refresh object-storage
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://access.redhat.com/errata/RHSA-2018:0380