Bug 2107577
Summary: | execution of roles with missing modules doesn't fail the execution | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Evgeni Golov <egolov> |
Component: | Ansible - Configuration Management | Assignee: | Adam Ruzicka <aruzicka> |
Status: | CLOSED ERRATA | QA Contact: | Sam Bible <sbible> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.11.0 | CC: | aruzicka, gtalreja, jpasqual, lstejska, oezr, pcreech, pmendezh, rlavi, zhunting |
Target Milestone: | 6.12.0 | Keywords: | Triaged |
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | tfm-rubygem-smart_proxy_ansible-3.4.1 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2022-11-16 13:34:39 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
Evgeni Golov
2022-07-15 12:50:35 UTC
Upstream bug assigned to aruzicka Upstream bug assigned to aruzicka Upstream PR got merged, moving to POST Verified on 6.12.0 - 6.1 Steps to reproduce: 1. Create an ansible playbook as provided above by Evgeni 2. Assign it to a host, and run it Expected results: The playbook errors, and the job also fails Actual results: The playbook errors, and the Job is listed as a success Additional Info: I essentially got the same error as Evgeni did, listed below. TASK [Apply roles] ************************************************************* ERROR! couldn't resolve module/action 'nonexisting_module'. This often indicates a misspelling, missing collection, or incorrect module path. The error appears to be in '/etc/ansible/roles/testy-2107577/tasks/main.yml': line 2, column 3, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: --- - name: this will fail ^ here PLAY RECAP ********************************************************************* dhcp-3-58.vms.sat.rdu2.redhat.com : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Exit status: 0 rubygem-smart_proxy_ansible.noarch 3.4.0-1.el8sat rubygem-foreman_ansible.noarch 7.1.2-1.el8sat I don't think smart_proxy_ansible 3.4.0 contains the fix for that? cc @aruzicka It indeed does not. Afaik the fix was not released yet. cc @lstejskal *** Bug 2118459 has been marked as a duplicate of this bug. *** Verified on 6.12.0 - 6.1 Steps to reproduce: 1. Create an ansible playbook as provided above by Evgeni 2. Assign it to a host, and run it Expected results: The playbook errors, and the job also fails Actual results: The playbook errors, and the Job fails as well. Edit: Verified on 6.12.0 - 10 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 (Important: Satellite 6.12 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-2022:8506 |