Bug 1660097 - Datacenter parent assigned to wrong cluster
Summary: Datacenter parent assigned to wrong cluster
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Providers
Version: 5.9.4
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: GA
: 5.9.7
Assignee: Adam Grare
QA Contact: Nandini Chandra
Red Hat CloudForms Documentation
URL:
Whiteboard:
Depends On: 1659214
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-12-17 13:47 UTC by Satoe Imaishi
Modified: 2022-03-13 16:32 UTC (History)
7 users (show)

Fixed In Version: 5.9.7.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1659214
Environment:
Last Closed: 2019-01-23 14:35:55 UTC
Category: ---
Cloudforms Team: RHEVM
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2019:0110 0 None None None 2019-01-23 14:36:05 UTC

Comment 3 CFME Bot 2018-12-17 14:42:18 UTC
New commit detected on ManageIQ/manageiq-providers-ovirt/gaprindashvili:

https://github.com/ManageIQ/manageiq-providers-ovirt/commit/d1d161f69320b908902289bd8a0ec6bdc9d9e6c8
commit d1d161f69320b908902289bd8a0ec6bdc9d9e6c8
Author:     Adam Grare <agrare>
AuthorDate: Mon Dec 17 09:03:36 2018 -0500
Commit:     Adam Grare <agrare>
CommitDate: Mon Dec 17 09:03:36 2018 -0500

    Scope EmsFolder and ResourcePool queries by ems_id

    When searching for EmsFolders and ResourcePools by uid_ems scope by the
    ems_id to prevent resources from being assigned to a folder in the wrong
    EMS.

    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1660097

 app/models/manageiq/providers/redhat/inventory_collection_default/infra_manager.rb | 10 +-
 1 file changed, 5 insertions(+), 5 deletions(-)

Comment 4 Nandini Chandra 2018-12-21 21:11:49 UTC
Verified in 5.9.7.0

Comment 5 Nandini Chandra 2018-12-21 21:20:40 UTC
Reproducer steps:

1)Add a provider from the UI, let it do a refresh (In this case,provider had just one cluster)
2)stop evmserverd - > service evmserverd stop
3)Delete the provider through rails c
  irb(main):003:0> ExtManagementSystem.delete(1)
  => 1
4)Verify that the cluster exists even after its provider has been deleted through rail c
 irb(main):007:0> EmsCluster.count
  PostgreSQLAdapter#log_after_checkout, connection_pool: size: 5, connections: 1, in use: 1, waiting_in_queue: 0
  => 1
4)start evmserver -> service evmserverd stop
5)Re-add the same provider
6)Navigate to the cluster summary screen through Compute->Infrastructure->Clusters.

Before fix:
"Multiple Relationship Found" error in the logs while navigating to the cluster summary screen through Compute->Infrastructure->Clusters.

After fix:
No errors in the logs and it should be possible to navigate to the cluster summary screen through Compute->Infrastructure->Clusters.

Comment 6 Nandini Chandra 2018-12-21 22:00:44 UTC
Step 5 should read:

5)Re-add the same provider through UI

Comment 8 errata-xmlrpc 2019-01-23 14:35:55 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/RHBA-2019:0110


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