Description of problem: A tenant cannot import a datastore without it being locked. Even if the tenant is superadmin of the tenant1. Once the datastore is visible the superadmin tenant of tenant1 one is not able to unlock the domain. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. Create tenant1 and tenant2. 2. Create a project under tenant1 or tenant2 3. Create a group and add role superadmin 4. Create a user and add it to the group. 5. Login with the newly created user and upload a domain (not create as create works). 6. The domain is locked and cannot be unlocked by the tenant. Actual results: The domain is locked and cannot be unlocked by the tenant. Expected results: The domain should not be locked for the tenant which uploads the domain. The tenant should be able to unlock the domain. Additional info:
(In reply to ldomb from comment #0) > Description of problem: > > A tenant cannot import a datastore without it being locked. Even if the > tenant is superadmin of the tenant1. Once the datastore is visible the > superadmin tenant of tenant1 one is not able to unlock the domain. > > Version-Release number of selected component (if applicable): > > > How reproducible: > > > Steps to Reproduce: > 1. Create tenant1 and tenant2. > 2. Create a project under tenant1 or tenant2 > 3. Create a group and add role superadmin > 4. Create a user and add it to the group. > 5. Login with the newly created user and upload a domain (not create as > create works). > 6. The domain is locked and cannot be unlocked by the tenant. > > Actual results: > > The domain is locked and cannot be unlocked by the tenant. > > Expected results: > The domain should not be locked for the tenant which uploads the domain. The > tenant should be able to unlock the domain. > > Additional info: Version tested 5.6.3.3.20161128141841_49d925b
https://github.com/ManageIQ/manageiq/pull/13031
New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/15127377c058298455b82f03805afa0bc95e9eb5 commit 15127377c058298455b82f03805afa0bc95e9eb5 Author: Madhu Kanoor <mkanoor> AuthorDate: Tue Dec 6 15:06:32 2016 -0500 Commit: Madhu Kanoor <mkanoor> CommitDate: Tue Dec 6 17:00:18 2016 -0500 When importing domains from the UI pass in the tenant_id https://bugzilla.redhat.com/show_bug.cgi?id=1401247 app/services/automate_import_service.rb | 3 ++- spec/services/automate_import_service_spec.rb | 8 ++++++-- 2 files changed, 8 insertions(+), 3 deletions(-)