Uploaded image for project: 'Common Controller SDK'
  1. Common Controller SDK
  2. CCSDK-2366

cds does not detect failure on awx jobs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • Honolulu Release
    • El Alto Release, Frankfurt Release
    • None
    • None

      as per the log below, when awx job fails, cds still reports SUCCESS, although it's not the case.

      how can we ensure cds detects failure of jobs ?

       

      2020-05-11 08:21:34,814|||DefaultDispatcher-worker-5||||INFO||||||| Executing workflow(pe[e5eb1f1e-3386-435d-b290-d49d8af8db4c])'s step(nso_pe_sync)
      2020-05-11 08:21:34,814|||DefaultDispatcher-worker-5||||INFO||||||| executing node template(nso_pe_sync) component(component-remote-ansible-executor) interface(ComponentRemoteAnsibleExecutor) operation(process) on host (SELF) with timeout(180) sec.
      2020-05-11 08:21:34,815|||DefaultDispatcher-worker-5||||INFO||||||| preparing request id(e5eb1f1e-3386-435d-b290-d49d8af8db4c) for workflow(pe) step(nso_pe_sync)
      2020-05-11 08:21:34,815|||DefaultDispatcher-worker-5||||INFO||||||| resolveNodeTemplateInterfaceOperationInputs for node template (nso_pe_sync), interface name(ComponentRemoteAnsibleExecutor), operationName(process)
      2020-05-11 08:21:34,815|||DefaultDispatcher-worker-5||||INFO||||||| input definition for node template (nso_pe_sync), values ({endpoint-selector="*ansible-remote-endpoint", job-template-name="nso_pe_sync", limit=

      {"get_input":"limit"}

      , inventory={"get_input":"inventory"}, extra-vars={"get_input":"extra-vars"}, tags={"get_input":"tags"}, skip-tags={"get_input":"skip-tags"}})
      2020-05-11 08:21:34,819|||DefaultDispatcher-worker-5||||INFO||||||| Rest request method(GET), url(/api/v2/job_templates/nso_pe_sync/)
      2020-05-11 08:21:34,962|||DefaultDispatcher-worker-5||||INFO||||||| Response status(200 - OK)
      2020-05-11 08:21:34,962|||DefaultDispatcher-worker-5||||INFO||||||| Executor status : "preparing"
      2020-05-11 08:21:34,963|||DefaultDispatcher-worker-5||||INFO||||||| Executor artifacts: ""
      2020-05-11 08:21:34,963|||DefaultDispatcher-worker-5||||INFO||||||| Executor message : ""
      2020-05-11 08:21:34,965|||DefaultDispatcher-worker-5||||INFO||||||| Rest request method(GET), url(/api/v2/job_templates/14/launch/)
      2020-05-11 08:21:35,092|||DefaultDispatcher-worker-5||||INFO||||||| Response status(200 - OK)
      2020-05-11 08:21:35,093|||DefaultDispatcher-worker-5||||INFO||||||| Running job with {"extra_vars":{"ServiceName":"adfe4a08-fdce-4f9a-8ad6-b4530747612a","device":"vmx2","interface":"ge-0/0/0","ipaddress":"172.16.22.233","vlanID":"1234","isCE":"NO"}}, for requestId e5eb1f1e-3386-435d-b290-d49d8af8db4c.
      2020-05-11 08:21:35,096|||DefaultDispatcher-worker-5||||INFO||||||| Rest request method(POST), url(/api/v2/job_templates/14/launch/)
      2020-05-11 08:21:35,367|||DefaultDispatcher-worker-5||||INFO||||||| Response status(201 - Created)
      2020-05-11 08:21:35,368|||DefaultDispatcher-worker-5||||WARN||||||| Ignored fields : {"extra_vars":{"ServiceName":"adfe4a08-fdce-4f9a-8ad6-b4530747612a","interface":"ge-0/0/0","ipaddress":"172.16.22.233","vlanID":"1234","isCE":"NO"}}, for requestId e5eb1f1e-3386-435d-b290-d49d8af8db4c.
      2020-05-11 08:21:35,372|||DefaultDispatcher-worker-5||||INFO||||||| Rest request method(GET), url(/api/v2/jobs/194/)
      2020-05-11 08:21:35,527|||DefaultDispatcher-worker-5||||INFO||||||| Response status(200 - OK)
      2020-05-11 08:21:50,532|||DefaultDispatcher-worker-5||||INFO||||||| Rest request method(GET), url(/api/v2/jobs/194/)
      2020-05-11 08:21:50,664|||DefaultDispatcher-worker-5||||INFO||||||| Response status(200 - OK)
      2020-05-11 08:22:05,670|||DefaultDispatcher-worker-5||||INFO||||||| Execution of job template nso_pe_sync in job #194 finished with status (successful) for requestId e5eb1f1e-3386-435d-b290-d49d8af8db4c
      2020-05-11 08:22:05,674|||DefaultDispatcher-worker-5||||INFO||||||| Rest request method(GET), url(/api/v2/jobs/194/stdout/%3Fformat=txt)
      2020-05-11 08:22:05,709|||DefaultDispatcher-worker-5||||INFO||||||| Response status(406 - Not Acceptable)
      2020-05-11 08:22:05,709|||DefaultDispatcher-worker-5||||WARN||||||| Could not gather response for job 194. Status=406
      2020-05-11 08:22:05,712|||DefaultDispatcher-worker-5||||INFO||||||| Rest request method(GET), url(/api/v2/jobs/194/)
      2020-05-11 08:22:05,854|||DefaultDispatcher-worker-5||||INFO||||||| Response status(200 - OK)
      2020-05-11 08:22:05,859|||DefaultDispatcher-worker-5||||INFO||||||| Artifacts for job 194:
      {}

      2020-05-11 08:22:05,860|||DefaultDispatcher-worker-5||||INFO||||||| Executor status : "successful"
      2020-05-11 08:22:05,860|||DefaultDispatcher-worker-5||||INFO||||||| Executor artifacts: {}
      2020-05-11 08:22:05,860|||DefaultDispatcher-worker-5||||INFO||||||| Executor message : ""
      2020-05-11 08:22:05,860|||DefaultDispatcher-worker-5||||INFO||||||| Preparing Response...
      2020-05-11 08:22:05,860|||DefaultDispatcher-worker-5||||INFO||||||| resolveNodeTemplateInterfaceOperationOutputs for node template (nso_pe_sync),interface name (ComponentRemoteAnsibleExecutor), operationName(process)
      2020-05-11 08:22:05,860|||DefaultDispatcher-worker-5||||INFO||||||| Execute node(nso_pe_sync) -> executed state(SUCCESS)
      2020-05-11 08:22:05,861|||DefaultDispatcher-worker-5||||INFO||||||| Executing workflow(pe[e5eb1f1e-3386-435d-b290-d49d8af8db4c])'s step(nso_pe_config)
      2020-05-11 08:22:05,861|||DefaultDispatcher-worker-5||||INFO||||||| executing node template(nso_pe_config) component(component-remote-ansible-executor) interface(ComponentRemoteAnsibleExecutor) operation(process) on host (SELF) with timeout(180) sec.
      2020-05-11 08:22:05,862|||DefaultDispatcher-worker-5||||INFO||||||| preparing request id(e5eb1f1e-3386-435d-b290-d49d8af8db4c) for workflow(pe) step(nso_pe_config)
      2020-05-11 08:22:05,862|||DefaultDispatcher-worker-5||||INFO||||||| resolveNodeTemplateInterfaceOperationInputs for node template (nso_pe_config), interface name(ComponentRemoteAnsibleExecutor), operationName(process)
      2020-05-11 08:22:05,862|||DefaultDispatcher-worker-5||||INFO||||||| input definition for node template (nso_pe_config), values ({endpoint-selector="*ansible-remote-endpoint", job-template-name="nso_pe_config", limit=

      {"get_input":"limit"}

      , inventory={"get_input":"inventory"}, extra-vars={"get_input":"extra-vars"}, tags={"get_input":"tags"}, skip-tags={"get_input":"skip-tags"}})
      2020-05-11 08:22:05,866|||DefaultDispatcher-worker-5||||INFO||||||| Rest request method(GET), url(/api/v2/job_templates/nso_pe_config/)
      2020-05-11 08:22:06,001|||DefaultDispatcher-worker-5||||INFO||||||| Response status(200 - OK)
      2020-05-11 08:22:06,001|||DefaultDispatcher-worker-5||||INFO||||||| Executor status : "preparing"
      2020-05-11 08:22:06,001|||DefaultDispatcher-worker-5||||INFO||||||| Executor artifacts: ""
      2020-05-11 08:22:06,001|||DefaultDispatcher-worker-5||||INFO||||||| Executor message : ""
      2020-05-11 08:22:06,006|||DefaultDispatcher-worker-5||||INFO||||||| Rest request method(GET), url(/api/v2/job_templates/15/launch/)
      2020-05-11 08:22:06,118|||DefaultDispatcher-worker-5||||INFO||||||| Response status(200 - OK)
      2020-05-11 08:22:06,119|||DefaultDispatcher-worker-5||||INFO||||||| Running job with {"extra_vars":{"ServiceName":"adfe4a08-fdce-4f9a-8ad6-b4530747612a","device":"vmx2","interface":"ge-0/0/0","ipaddress":"172.16.22.233","vlanID":"1234","isCE":"NO"}}, for requestId e5eb1f1e-3386-435d-b290-d49d8af8db4c.
      2020-05-11 08:22:06,123|||DefaultDispatcher-worker-5||||INFO||||||| Rest request method(POST), url(/api/v2/job_templates/15/launch/)
      2020-05-11 08:22:06,417|||DefaultDispatcher-worker-5||||INFO||||||| Response status(201 - Created)
      2020-05-11 08:22:06,422|||DefaultDispatcher-worker-5||||INFO||||||| Rest request method(GET), url(/api/v2/jobs/195/)
      2020-05-11 08:22:06,562|||DefaultDispatcher-worker-5||||INFO||||||| Response status(200 - OK)
      2020-05-11 08:22:21,565|||DefaultDispatcher-worker-5||||INFO||||||| Rest request method(GET), url(/api/v2/jobs/195/)
      2020-05-11 08:22:21,721|||DefaultDispatcher-worker-5||||INFO||||||| Response status(200 - OK)
      2020-05-11 08:22:36,732|||DefaultDispatcher-worker-5||||INFO||||||| Rest request method(GET), url(/api/v2/jobs/195/)
      2020-05-11 08:22:36,903|||DefaultDispatcher-worker-5||||INFO||||||| Response status(200 - OK)
      2020-05-11 08:22:51,912|||DefaultDispatcher-worker-5||||INFO||||||| Rest request method(GET), url(/api/v2/jobs/195/)
      2020-05-11 08:22:52,033|||DefaultDispatcher-worker-5||||INFO||||||| Response status(200 - OK)
      2020-05-11 08:23:07,039|||DefaultDispatcher-worker-5||||INFO||||||| Execution of job template nso_pe_config in job #195 finished with status (failed) for requestId e5eb1f1e-3386-435d-b290-d49d8af8db4c
      2020-05-11 08:23:07,044|||DefaultDispatcher-worker-5||||INFO||||||| Rest request method(GET), url(/api/v2/jobs/195/stdout/%3Fformat=txt)
      2020-05-11 08:23:07,078|||DefaultDispatcher-worker-5||||INFO||||||| Response status(406 - Not Acceptable)
      2020-05-11 08:23:07,078|||DefaultDispatcher-worker-5||||WARN||||||| Could not gather response for job 195. Status=406
      2020-05-11 08:23:07,082|||DefaultDispatcher-worker-5||||INFO||||||| Rest request method(GET), url(/api/v2/jobs/195/)
      2020-05-11 08:23:07,240|||DefaultDispatcher-worker-5||||INFO||||||| Response status(200 - OK)
      2020-05-11 08:23:07,246|||DefaultDispatcher-worker-5||||INFO||||||| Artifacts for job 195:
      {}

      2020-05-11 08:23:07,246|||DefaultDispatcher-worker-5||||INFO||||||| Executor status : "failed"
      2020-05-11 08:23:07,246|||DefaultDispatcher-worker-5||||INFO||||||| Executor artifacts: {}
      2020-05-11 08:23:07,246|||DefaultDispatcher-worker-5||||INFO||||||| Executor message : ""
      2020-05-11 08:23:07,246|||DefaultDispatcher-worker-5||||INFO||||||| Preparing Response...
      2020-05-11 08:23:07,247|||DefaultDispatcher-worker-5||||INFO||||||| resolveNodeTemplateInterfaceOperationOutputs for node template (nso_pe_config),interface name (ComponentRemoteAnsibleExecutor), operationName(process)
      2020-05-11 08:23:07,247|||DefaultDispatcher-worker-5||||INFO||||||| Execute node(nso_pe_config) -> executed state(SUCCESS)
      2020-05-11 08:23:07,247|||DefaultDispatcher-worker-5||||INFO||||||| Execute node(END) -> executed state(SUCCESS)
      2020-05-11 08:23:07,250|||DefaultDispatcher-worker-1||||INFO||||||| workflow(e5eb1f1e-3386-435d-b290-d49d8af8db4c) nodes completed with (0)exceptions
      2020-05-11 08:23:07,250|bca1479b-a6e5-47ea-9a79-3f748c6ede15||DefaultDispatcher-worker-1||/api/v1/execution-service/process||INFO|||onap-cds-cds-blueprints-processor-f9b9fb547-mt5t6|||| resolveWorkflowOutputs for workflow(pe)

            shaabaneltanany shaabaneltanany
            abdelseaudi abdelseaudi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: