Bug 1851415
| Summary: | hammer hostgroup update does not respect ansible-roles argument | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Stefan Nemeth <snemeth> |
| Component: | Ansible - Configuration Management | Assignee: | Oleh Fedorenko <ofedoren> |
| Status: | CLOSED ERRATA | QA Contact: | Danny Synk <dsynk> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.7.0 | CC: | apatel, kgaikwad, ofedoren, rabajaj, roarora |
| Target Milestone: | 6.10.0 | Keywords: | Triaged |
| Target Release: | Unused | ||
| 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: | 2021-11-16 14:09:12 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: | |||
|
Description
Stefan Nemeth
2020-06-26 13:17:04 UTC
Seems like the problem appears only if hammer-cli-katello plugin is installed, since it changes name to id resolving. I suggest to improve hammer-cli-foreman-ansible plugin, so it works with/out hammer-cli-katello being installed. Created redmine issue https://projects.theforeman.org/issues/30226 from this bug Upstream bug assigned to ofedoren Upstream bug assigned to ofedoren Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/30226 has been resolved. *** Bug 1740414 has been marked as a duplicate of this bug. *** Steps to Test:
1. Import Ansible roles to Satellite 6.10, snap 5.
2. Create a host group.
3. Attempt to update the hostgroup using hammer with an arbitrary string as the value of the `--ansible-roles` option:
4. Attempt to update the hostgroup using hammer with one of the imported Ansible roles as the value of the `--ansible-roles` option:
Expected Results:
Using an arbitrary string as the value of the `--ansible-roles` option makes no changes to the Ansible roles assigned to the hostgroup. Using one or more imported roles as the value of the `--ansible-roles` option assigns those roles to the hostgroup.
Actual Results:
Using an arbitrary string as the value of the `--ansible-roles` option makes no changes to the Ansible roles assigned to the hostgroup:
# hammer hostgroup update --id 1 --ansible-roles testingfailure
Could not update the hostgroup:
Error: one of ansible_roles not found.
Using one or more imported roles as the value of the `--ansible-roles` option assigns those roles to the hostgroup:
# hammer hostgroup update --id 1 --ansible-roles ovirt.ovirt.infra
Hostgroup updated.
Verified on Satellite 6.10, snap 5 (tfm-rubygem-hammer_cli_foreman_ansible-0.3.3-2.el7sat.noarch).
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 (Moderate: Satellite 6.10 Release), 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/RHSA-2021:4702 |