-
Bug
-
Resolution: Done
-
Normal
-
ACM 2.10.0
-
False
-
None
-
False
-
-
-
Moderate
-
No
Description of problem:
Application UI topology is missing ansible jobs node, in this case, I have 3 ansible jobs deployed successful, only 1 shows up
➜ ~ oc get ansiblejob -n auto-git-ansible-cred-wizard-ns NAME AGE ansible-regular-test 99m posthook-test-1-262337 99m prehook-test-1-abb0e8 100m
Additional info:
Based on the recent app backend has changed - posthookjobshistory and prehookjobshistory are removed from the hub appsub status. Only the last ansible job is remained in the appsub status.
if UI wants to get the history of all ansible jobs launched by the appsub, all the ansible jobs can be fetched from the same appsub NS using the 2 annotations in the appsub
apiVersion: tower.ansible.com/v1alpha1 kind: AnsibleJob annotations: apps.open-cluster-management.io/hook-type: prehook or posthook =========> ansible jobs type: prehook or posthook apps.open-cluster-management.io/hosting-subscription: auto-git-ansible-cred-wizard-ns/auto-git-ansible-cred-wizard-subscription-1 =======> the appsub namespaced name