Uploaded image for project: 'Puppet Task Runner'
  1. Puppet Task Runner
  2. BOLT-1382

wait_until_available() incorrect results using Orchestrator

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: BOLT 1.23.0
    • Component/s: None
    • Labels:
    • Template:
    • Sprint:
      Bolt Kanban
    • Method Found:
      Needs Assessment
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      The plan function {{wait_until_available}} has been updated such that only targets which cannot be reached are returned as an error result when using the {{PCP}} transport.
    • QA Risk Assessment:
      Needs Assessment

      Description

      The wait_until_available() function seems to all-or-nothing succeed/fail when using --transport pcp. See below for an example.

      The same test plan will return the expected results when run over ssh.

      [root@pe-xl-core-0 bolt-project]# cat site-modules/util/plans/test.pp
      plan util::test (
        TargetSpec $nodes,
      ) {
        $connection_results = wait_until_available(get_targets($nodes),
          wait_time     => 0,
          _catch_errors => true,
        )
       
        return({
          'ok_set'    => $connection_results.ok_set.names,
          'error_set' => $connection_results.error_set.names,
        })
      }
      [root@pe-xl-core-0 bolt-project]# bolt plan run util::test --targets pe-xl-core-0.dev36.puppet.vm,pe-xl-core-1.dev36.puppet.vm
      Starting: plan util::test
      Starting: wait until available on pe-xl-core-0.dev36.puppet.vm, pe-xl-core-1.dev36.puppet.vm
      Finished: wait until available with 0 failures in 0.28 sec
      Finished: plan util::test in 0.29 sec
      {
        "ok_set": [
          "pe-xl-core-0.dev36.puppet.vm",
          "pe-xl-core-1.dev36.puppet.vm"
        ],
        "error_set": [
       
        ]
      }
      [root@pe-xl-core-0 bolt-project]# bolt plan run util::test --targets pe-xl-core-0.dev36.puppet.vm,pe-xl-core-1.dev36.puppet.vm,badname
      Starting: plan util::test
      Starting: wait until available on pe-xl-core-0.dev36.puppet.vm, pe-xl-core-1.dev36.puppet.vm, badname
      Finished: wait until available with 3 failures in 0.23 sec
      Finished: plan util::test in 0.25 sec
      {
        "ok_set": [
       
        ],
        "error_set": [
          "pe-xl-core-0.dev36.puppet.vm",
          "pe-xl-core-1.dev36.puppet.vm",
          "badname"
        ]
      }
      [root@pe-xl-core-0 bolt-project]#
      

        Attachments

          Activity

            People

            • Assignee:
              cas.donoghue Cas Donoghue
              Reporter:
              reid Reid Vandewiele
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Zendesk Support