Bug 1202294
Summary: | user can't vew discovery_rules with "Discovery Reader/Manager" role | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Sachin Ghai <sghai> | ||||
Component: | WebUI | Assignee: | orabin | ||||
WebUI sub component: | Foreman | QA Contact: | Sachin Ghai <sghai> | ||||
Status: | CLOSED CURRENTRELEASE | Docs Contact: | |||||
Severity: | high | ||||||
Priority: | unspecified | CC: | bkearney, lzap, sghai | ||||
Version: | 6.1.0 | Keywords: | Triaged | ||||
Target Milestone: | Unspecified | ||||||
Target Release: | Unused | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
URL: | http://projects.theforeman.org/issues/9895 | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2015-08-12 13:58:13 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: | 1193977 | ||||||
Attachments: |
|
Description
Sachin Ghai
2015-03-16 10:29:17 UTC
Steps to Reproduce: 0. login with admin user 1. discover a host 2. define a discovery rule 3. create a new user and assign "Discovery Reader" role 4. logout 5. login with new user 6. go to configure --> discovery rules. In another scenario, where I defined "Discovery Manager" role to a user. User can create a new discovery rule with this new role. But as soon as user creates it, rule doesn't listed on UI. The rules list remains empty. Ori, we need to tune permissions in the engine.rb file. Created redmine issue http://projects.theforeman.org/issues/9895 from this bug Moving to POST since upstream bug http://projects.theforeman.org/issues/9895 has been closed ------------- Ori Rabin Applied in changeset commit:foreman_discovery|0d9cee21e5360614c517176ab0c47ed312018246. The first PR is: https://github.com/theforeman/foreman_discovery/pull/173 But we will have another one for this BZ tomorrow. @Bryan: yeah..if a normal user tries to create discovery-rules then UI doesn't show them. Discovery-rules are important part of auto-provisioning which only works for admin, not for a user who has 'Discovery Manager/Reader' role assigned. User has workaround either switch to CLI to enable/disable them or swtich to admin account. I strongly feel that its a must-fix for GA. Verified with sat6.1 GA snap5. I can see the discovery_rules via Discovery/manager/reader roles. I created a user and assigned Discovery_Manager role. I created a new role and now I can see same rule with reader as well Manager role. Thanks for fixing this issue. Created attachment 1028119 [details]
I can see the discovery_rule via a normal user
This bug is slated to be released with Satellite 6.1. This bug was fixed in version 6.1.1 of Satellite which was released on 12 August, 2015. |