Bug 1202336
Summary: | auto-provision a host via normal user who has "Discovery_Manager" role assigned, rasies undefined method `transaction' for nil:NilClass | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Sachin Ghai <sghai> | ||||
Component: | Discovery Plugin | Assignee: | Lukas Zapletal <lzap> | ||||
Status: | CLOSED ERRATA | QA Contact: | Sachin Ghai <sghai> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 6.1.0 | CC: | bbuckingham, lzap | ||||
Target Milestone: | Unspecified | Keywords: | Triaged | ||||
Target Release: | Unused | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2016-07-27 11:08:14 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 12:41:33 UTC
Valid bug, medium severity (workaround is obvious). Looks like no permission to read hosts or something. We have two more permissions-related bugs this compose. We need to review them. Hello, is this new Sat 6.1 instance or upgraded one? Once you reproduce, can you do: foreman-rake: Role.find_by_name("Discovery Manager").permissions Preferably: Role.find_by_name("Discovery Manager").permissions.collect(&:name) Expected result is: ["view_discovered_hosts", "provision_discovered_hosts", "edit_discovered_hosts", "destroy_discovered_hosts", "view_discovery_rules", "new_discovery_rules", "edit_discovery_rules", "execute_discovery_rules", "delete_discovery_rules"] Nine of them. Took a chance and made big review of our permissions, found few other issues. Sachin see the description in the PR when testing this. This needs to be tested well. Sachin, when testing this, test it please with both clean installation and upgrade from 6.0. In both cases please attach output of foreman-rake console output of these commands: > Role.find_by_name("Discovery Manager").permissions.collect(&:name).sort => ["assign_locations", "assign_organizations", "auto_provision_discovered_hosts", "create_discovery_rules", "destroy_discovered_hosts", "destroy_discovery_rules", "edit_discovered_hosts", "edit_discovery_rules", "execute_discovery_rules", "provision_discovered_hosts", "submit_discovered_hosts", "view_discovered_hosts", "view_discovery_rules", "view_locations", "view_organizations"] > Role.find_by_name("Discovery Reader").permissions.collect(&:name).sort => ["view_discovered_hosts", "view_discovery_rules", "view_locations", "view_organizations"] These are permissions that are expected to appear. If something is missing in the upgraded case, we need to ask users to add those manually in the readme notes. This should be fixed in 6.2 beta. Lukas, Thanks! I will pull in to 6.2 and move to ON_QA for verification. Verified with Satellite6.2 GA snap13.1 The reported issue is no longer reproducible. I can auto-provision a host using normal user who has 'Discovery_Manager" role assigned. 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:1501 |