Uploaded image for project: 'Red Hat Advanced Cluster Management'
  1. Red Hat Advanced Cluster Management
  2. ACM-14255

Cluster Curator - Post Hook fails with status 409 even when AnsibleJob is completed Successfully

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • ACM 2.12.0, MCE 2.7.0
    • Cluster Lifecycle
    • False
    • None
    • False
    • Moderate
    • None

      Description of problem:

      After creating a cluster with the cluster curator, a status 409 error shows up even though the AnsibleJob for the posthook is completed.

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

      2.12.0-DOWNSTREAM-2024-09-09-17-23-12

      How reproducible:

      Sometimes

      Steps to Reproduce:

      1. Create a template with prehook and posthook automation
      2. Create a cluster with the template created

      Actual results:

      The cluster posthook jobs failed curator-job-n2cpw DesiredCuration: install Failed - Failed to replace status: 409 Reason: Conflict HTTP response headers: HTTPHeaderDict({'Audit-Id': 'd918f4dc-7479-402c-ad6c-796b4c419558', 'Cache-Control': 'no-cache, private', 'Content-Length': '378', 'Content-Type': 'application/json', 'Date': 'Wed, 11 Sep 2024 05:36:15 GMT', 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains; preload', 'X-Kubernetes-Pf-Flowschema-Uid': '3546bdf1-d600-415b-9a3a-1ca7254a5d3d', 'X-Kubernetes-Pf-Prioritylevel-Uid': 'abad45fb-3241-4807-8099-f7caf01814af'}) HTTP response body: b'{"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"Operation cannot be fulfilled on ansiblejobs.tower.ansible.com \\"posthookjob-ssvf2
      ": the object has been modified; please apply your changes to the latest version and try again","reason":"Conflict","details":{"name":"posthookjob-ssvf2","group":"tower.ansible.com","kind":"ansiblejobs"},"code":409}\n' Original traceback: File "/usr/lib/python3.6/site-packages/openshift/dynamic/client.py", line 42, in inner resp = func(self, *args, **kwargs) File "/usr/lib/python3.6/site-packages/openshift/dynamic/client.py", line 249, in request _return_http_data_only=params.get('_return_http_data_only', True) File "/usr/lib/python3.6/site-packages/kubernetes/client/api_client.py", line 353, in call_api _preload_content, _request_timeout, _host) File "/usr/lib/python3.6/site-packages/kubernetes/client/api_client.py", line 184, in __call_api _request_timeout=_request_timeout) File "/usr/lib/python3.6/site-packages/kubernetes/client/api_client.py", line 413, in request body=body) File "/usr/lib/python3.6/site-packages/kubernetes/client/rest.py", line 302, in PATCH body=body) File "/usr/lib/python3.6/site-packages/kubernetes/client/rest.py", line 235, in request raise ApiException(http_resp=r)

      Expected results:

      Cluster created with pre and post hook ran successfully.

      Additional info:

            fxiang@redhat.com Feng Xiang
            rh-ee-almng Almen Ng
            David Huynh David Huynh
            ACM QE Team
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: