Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2172118 - Ansible job failed on single host reported as failed on all hosts
Summary: Ansible job failed on single host reported as failed on all hosts
Keywords:
Status: CLOSED DUPLICATE of bug 2167396
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Ansible - Configuration Management
Version: 6.13.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Sam Bible
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-02-21 14:33 UTC by Radek Mynar
Modified: 2023-02-28 13:01 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-02-28 13:01:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Radek Mynar 2023-02-21 14:33:22 UTC
Description of problem:
When an Ansible Command job is launched on multiple hosts and fails on single of them, it is reported as failed on all hosts.

Version-Release number of selected component (if applicable):
Satellite 6.13 SNAP 10.0

How reproducible:
always

Steps to Reproduce:
1. register multiple hosts (self registered satellite and one host may be enough), make sure REX is configured properly
2. create a test directory and test file on single host (i.e. "mkdir /root/testdir; head -c 32768 /dev/random > /root/testdir/testfile") - keep at least one machine without /root/testdir
3. go to Monitor->Jobs->Run Jobs
4. select category "Ansible Commands", template "Run Command - Script Default"
5. select all prepared hosts, list files in /root/testdir (i.e. command "ls -lha /root/testdir")
6. finish wizard, run and wait for results

Actual results:
Job is marked as failed on all hosts although it should pass on hosts with /root/testdir

Expected results:
Job should be marked as failed only on hosts where the subcommand failed (i.e. without /root/testdir)

Additional info:
Launching the same command using SSH (category "Commands", template "Run Command - Script Default") with same search query works as expected

Comment 1 Eric Helms 2023-02-21 16:54:08 UTC
Is this the same as the issue reported here? https://bugzilla.redhat.com/show_bug.cgi?id=2136531

Comment 2 Brad Buckingham 2023-02-23 15:29:57 UTC
Adding needinfo based upon comment 1.

Comment 3 nalfassi 2023-02-28 09:22:02 UTC
Looks like it's also a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=2167396

Comment 4 Radek Mynar 2023-02-28 09:36:16 UTC
I can confirm that described behavior is the same as described in both mentioned BZs.

Comment 5 nalfassi 2023-02-28 13:01:47 UTC

*** This bug has been marked as a duplicate of bug 2167396 ***


Note You need to log in before you can comment on or make changes to this bug.