Bug 1972947
| Summary: | Application failing to deploy resources; nothing show in topology view | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Advanced Cluster Management for Kubernetes | Reporter: | Lars Kellogg-Stedman <lars> | ||||
| Component: | App Lifecycle | Assignee: | Xiangjing Li <xiangli> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Eveline Cai <ecai> | ||||
| Severity: | unspecified | Docs Contact: | bswope <bswope> | ||||
| Priority: | unspecified | ||||||
| Version: | rhacm-2.2 | CC: | cdoan, juhsu, kcormier, xiangli | ||||
| Target Milestone: | --- | Flags: | ming:
rhacm-2.2.z+
|
||||
| Target Release: | rhacm-2.2.8 | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2021-09-20 22:14:41 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
Lars Kellogg-Stedman
2021-06-17 00:00:15 UTC
G2Bsync 864290490 comment xiangjingli Fri, 18 Jun 2021 21:48:26 UTC G2Bsync Verified the following appsub on ACM 2.2 and 2.3 but can't reproduce it. ``` apiVersion: v1 kind: Namespace metadata: name: lars-sandbox --- apiVersion: apps.open-cluster-management.io/v1 kind: Channel metadata: name: larsks-example-k8s-app-channel namespace: lars-sandbox spec: pathname: https://github.com/larsks/example-k8s-app type: GitHub --- apiVersion: apps.open-cluster-management.io/v1 kind: PlacementRule metadata: annotations: apps.open-cluster-management.io/git-commit: e55dfaf702ae648bf530743d9999649aa9484aa0 name: lars-acm-example-placement-1 namespace: lars-sandbox spec: clusterSelector: {} --- apiVersion: apps.open-cluster-management.io/v1 kind: Subscription metadata: name: lars-acm-example-subscription-1 namespace: lars-sandbox spec: channel: lars-sandbox/larsks-example-k8s-app-channel placement: placementRef: kind: PlacementRule name: lars-acm-example-placement-1 ``` By applying the appsub, the two appsub annotations are set as expected. These two annotations are used by topology view for getting the deployed resources list. ``` annotations: apps.open-cluster-management.io/deployables: apps.open-cluster-management.io/topo ``` It looks like a env issue on customer cluster. I would suggest to clean up the lars-sandbox NS first, make sure the NS is removed and there is not any deployable resources there. then re-run the appsub as above. 1. oc delete namespace lars-sandbox --wait=false --ignore-not-found 2. re-applyu the appsub Mike, This appears to be completely reproducible. After deleting the "lars-sandbox" namespace on both the hub cluster and the target cluster, I then: 1. Submitted https://github.com/larsks/example-acm-app using `kustomize build | oc apply -f-`. This creates the app in ACM, which then successfully deploys the resources from https://github.com/larsks/example-k8s-app. 2. I then commit a change to https://github.com/larsks/example-k8s-app that removes the secret resource. At this point, ACM appears to remove the resources from the target cluster, and ends up in the state pictures in the existing attachment. Hi Mike, I'm going to try this with our latest code and see if there are any improvements, if not, we should raise this with dev. |