Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-24072

Ansible jobs/roles alwasy return success on the webUI if there are too many lines being logged

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Normal Normal
    • None
    • 6.11.4
    • None
    • Moderate
    • No

      Description of problem:

      Running a role or a job template that will print a LOT of messages (using the debug module, for example), the job always return success on the task status regardless of the actual return on the ansible execution.

      Version-Release number of selected component (if applicable):

      How reproducible:
      Always

      Steps to Reproduce:
      1. Create a job template with the following code, having a debug tasks printing all vars:

      ~~~

      • hosts: all
        tasks:
      • name: Debug
        debug:
        var: vars
      • name: Fail task
        fail:
        msg: "This task will always fail"
        ~~~

      2. Run it against any host and note that it will return success.

      Actual results:

      If enough debug lines are printed, task will return success even if a later task fails.

      Expected results:

      Wait for all tasks to be executed and return the proper status.

      Additional info:

      Removing the debug task, the job behaves as expected and returns "fail"

      ~~~

      • hosts: all
        tasks:
      • name: Fail task
        fail:
        msg: "This task will always fail"
        ~~~

      Same behavior was observed on Satellite 6.11 and 6.12.

            jira-bugzilla-migration RH Bugzilla Integration
            rhn-support-jpasqual Joniel Pasqualetto
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: