Bug 1441144

Summary: UI: "Refresh Relationships and Power states" on RHOS provider throws error in evm.log
Product: Red Hat CloudForms Management Engine Reporter: Satyajit Bulage <sbulage>
Component: ProvidersAssignee: Jerry Keselman <jkeselma>
Status: CLOSED ERRATA QA Contact: Satyajit Bulage <sbulage>
Severity: high Docs Contact:
Priority: high    
Version: 5.8.0CC: agrare, cpelland, dajohnso, fdewaley, jfrey, jhardy, jkeselma, obarenbo, rwsu, sacpatil, sbulage, simaishi
Target Milestone: GA   
Target Release: 5.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: ui:provider:cloud:openstack
Fixed In Version: 5.9.0.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-03-01 13:11:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:
Attachments:
Description Flags
evm.log during refresh rhos provider none

Description Satyajit Bulage 2017-04-11 10:04:04 UTC
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:

Comment 2 Adam Grare 2017-04-13 13:21:38 UTC
[----] 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'

Comment 3 Adam Grare 2017-04-17 12:32:19 UTC
*** Bug 1440122 has been marked as a duplicate of this bug. ***

Comment 4 Jerry Keselman 2017-04-17 15:50:58 UTC
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.

Comment 5 Jerry Keselman 2017-04-17 18:13:17 UTC
A fix is available based on the answer we are awaiting from sbulage.

Comment 6 Jerry Keselman 2017-04-17 19:28:29 UTC
*** Bug 1412847 has been marked as a duplicate of this bug. ***

Comment 8 Satyajit Bulage 2017-04-18 13:16:24 UTC
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.

Comment 10 Satoe Imaishi 2017-04-18 13:41:00 UTC
In that case... putting back to ON_DEV.

Comment 11 Jerry Keselman 2017-04-18 18:06:00 UTC
This issue has been fixed via https://github.com/ManageIQ/manageiq/pull/14795.  Moving to POST.

Comment 12 Jerry Keselman 2017-04-18 18:21:12 UTC
Jumped to gun moving it to POST before the PR is merged.  Moving back to ON_DEV.

Comment 13 Dave Johnson 2017-11-15 15:41:01 UTC
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.

Comment 14 Satyajit Bulage 2017-12-07 13:36:33 UTC
Not getting swift related error in rhos11 provider.

Verified Version: 5.9.0.11.20171127204214_e316988

Comment 15 Sachin 2017-12-28 06:11:39 UTC
Workaround: Create a swift container as admin user. Example,
~~~
touch file1
swift upload c1 file1
~~~

and refresh object-storage

Comment 18 errata-xmlrpc 2018-03-01 13:11:36 UTC
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