Bug 1296402

Summary: Unable to set group ownership to "No Group"
Product: Red Hat CloudForms Management Engine Reporter: Chen <cchen>
Component: UI - OPSAssignee: Keenan Brock <kbrock>
Status: CLOSED ERRATA QA Contact: Pavol Kotvan <pakotvan>
Severity: high Docs Contact:
Priority: high    
Version: 5.5.0CC: akarol, cchen, cpelland, dclarizi, hkataria, jhardy, jprause, kbrock, mfeifer, mpovolny, obarenbo, ssainkar
Target Milestone: GA   
Target Release: 5.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: tenant_cfme:group
Fixed In Version: Doc Type: Bug Fix
Doc Text:
In the previous version of CloudForms Management Engine, one was unable to set group ownership to "No Group". This was caused because the dropdown allowed to set no group, but was required to have at least default group. With this fix, select a group dropdown menu does not contain "set group to nil" - only groups and tenants are listed.
Story Points: ---
Clone Of:
: 1296646 (view as bug list) Environment:
Last Closed: 2016-06-29 15:25:52 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: 1296646    

Description Chen 2016-01-07 07:49:03 UTC
Description of problem:

Unable to set template group ownership to "No Group"

Version-Release number of selected component (if applicable):

cfme-5.5.0.13-2.el7cf.x86_64

How reproducible:

100%

Steps to Reproduce:
1. Install a CFME 5.5 in VMware vsphere 5.5
2. Set the ownership to "No Group"


Actual results:

The ownership doesn't change, but remain "Tenant [My Company] Access"

Expected results:

The ownership should be set to "No Group"

Additional info:

CFME 3.2 version doesn't encounter this problem. (There is no group called Tenant My Company Access )

Comment 3 Harpreet Kataria 2016-01-07 17:00:59 UTC
Looked into this issue, it seems that removing group ownership is not working for all entities. UI code seems to be sending up correct values (in this case nil to remove assigned group for a VM) to model method set_ownership in app/models/mixins/ownership_mixin.rb. Tried following commands in UI to verify that group is not getting cleared out for a VM, these commands might be helpful to write a spec test to recreate the issue:

vm = Vm.first
vm.miq_group.name
vm.miq_group=nil
vm.save
vm.miq_group.name

Let me know if more info on this is needed.

~Harpreet

Comment 4 Keenan Brock 2016-01-07 17:48:06 UTC
This will not work.

A vm has to have both a group and tenant owner.
If there is not group, then it will just assigned the tenant's default group.
Since there are no users in the tenant's default group, there will be no changes to access.

What are you trying to do?
Why do you want no group?

Comment 5 Keenan Brock 2016-01-07 18:05:55 UTC
Given: We need to fix the ui and remove "Set group to no group".

But what I want to know is why the customer wants to set it to no group?
What are they hoping to achieve?

I'm hoping we can understand this and potentially update the UI
to fix any confusion that we are causing the customers.

Comment 7 Keenan Brock 2016-02-08 17:03:37 UTC
*** Bug 1303507 has been marked as a duplicate of this bug. ***

Comment 8 Keenan Brock 2016-05-18 17:44:31 UTC
This has been on master since before 5.6 was cut.

To test, you will notice that there should not be a "set group to nil" for a vm anymore.

Comment 12 errata-xmlrpc 2016-06-29 15:25:52 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-2016:1348

Comment 13 Keenan Brock 2016-07-22 15:28:30 UTC
closed and shipped. clearing the need info