Bug 1382837

Summary: Reordering tenant Automate domains breaks root domain ordering
Product: Red Hat CloudForms Management Engine Reporter: Satoe Imaishi <simaishi>
Component: AutomateAssignee: mkanoor
Status: CLOSED ERRATA QA Contact: Milan Falešník <mfalesni>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.6.0CC: cpelland, dajohnso, jhardy, mfalesni, mkanoor, obarenbo, simaishi, tfitzger
Target Milestone: GAKeywords: ZStream
Target Release: 5.6.3   
Hardware: x86_64   
OS: Linux   
Whiteboard: automate:tenant_cfme
Fixed In Version: 5.6.3.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1377476 Environment:
Last Closed: 2016-11-30 19:56:25 UTC Type: ---
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:
Bug Depends On: 1377476    
Bug Blocks:    

Comment 2 CFME Bot 2016-10-07 20:46:32 UTC
New commit detected on ManageIQ/manageiq/darga:
https://github.com/ManageIQ/manageiq/commit/9bc6a0a2fc0dc4b045b8d37e10adc8bdce407121

commit 9bc6a0a2fc0dc4b045b8d37e10adc8bdce407121
Author:     Madhu Kanoor <mkanoor>
AuthorDate: Wed Oct 5 09:44:32 2016 -0400
Commit:     Oleg Barenboim <chessbyte>
CommitDate: Fri Oct 7 16:43:38 2016 -0400

    Merge pull request #11680 from pkomanek/reordering_ae_domains_by_tenant_break_root_tenant_ordering
    
    Broken ordering ae_domains for a root tenant.
    (cherry picked from commit 70b2769af2033d9411452f12029b8acc1bcb30bb)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1382837

 app/models/tenant.rb       |  2 +-
 spec/models/tenant_spec.rb | 15 +++++++++++++++
 2 files changed, 16 insertions(+), 1 deletion(-)

Comment 3 mkanoor 2016-10-10 13:54:51 UTC
Backported to Darga by Oleg

Comment 4 Milan Falešník 2016-11-10 09:25:56 UTC
Verified in 5.6.3.0

When following the video instructions (creating ~5 bogus domains as admin and then 2 custom domains as an admin of a child tenant) and reordering as shown in the video, the order of the other domains does not break during reordering of the domains the user can reorder.

Comment 6 errata-xmlrpc 2016-11-30 19:56:25 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://rhn.redhat.com/errata/RHSA-2016-2839.html