Bug 2070494
| Summary: | View/edit child hostgroups sharing the same parent failed with GUI error undefined method `name' for nil:NilClass after upgrading to 6.10.3 | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Ahmed Eladawy <aeladawy> |
| Component: | Ansible | Assignee: | satellite6-bugs <satellite6-bugs> |
| Status: | NEW --- | QA Contact: | Satellite QE Team <sat-qe-bz-list> |
| Severity: | high | Docs Contact: | |
| Priority: | medium | ||
| Version: | 6.10.3 | CC: | ahumbe, aruzicka, gardar.arnarsson, hakon.gislason, inecas, kgaikwad, momran, pmoravec, satellite6-bugs |
| Target Milestone: | Unspecified | Keywords: | Regression, Triaged, WorkAround |
| Target Release: | Unused | Flags: | momran:
needinfo?
(satellite6-bugs) |
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 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: | |||
|
Description
Ahmed Eladawy
2022-03-31 09:39:07 UTC
Does the same error occur if viewing the child hostgroup from hammer? (In reply to Brad Buckingham from comment #2) > Does the same error occur if viewing the child hostgroup from hammer? No, from hammer , the hostgroup can be viewed and edited without issues. A similar error is encountered when editing hosts in Satellite's 6.10.3 web UI. As a test, we tried the 'hammer host ansible-roles assign' command as per [1], and it worked fine. [1] https://access.redhat.com/documentation/en-us/red_hat_satellite/6.10/html-single/hammer_cli_guide/index#hammer-host-ansible-roles-assign Reproducer: add an ansible role to a HostGroup while removing the same ansible role. Then editing the HG fails with above backtrace. Detailed reproducer in WebUI: - Edit a HostGroup and navigate to Ansible Roles pane - Add an Ansible Role from the Available Roles - do NOT click to Submit button yet! - Meanwhile, open Ansible Roles page and delete the role you are about to add to the HG - Now, Submit the HG change - Edit the same HG It seems we need to validate list of ansible role IDs at the time of submitting a HostGroup change? |