-
Bug
-
Resolution: Done
-
Normal
-
None
-
False
-
False
-
-
GITOPS Sprint 213
applicationset e2e TestSimpleGitFilesPreserveResourcesOnDeletion is failing on OCP clusters 4.7 (IIB 158975) , 4.8 (IIB 158976), 4.9 (IIB 158977), 4.10 (IIB 158978) with latest gitops-operator 1.4 installed (with applicationset 0.2.0).
- These OCP clusters can be used for testing (1.4 gitops operator installed) : https://docs.google.com/spreadsheets/d/1GmHnvoNuF9JnRSltUCOwFz9cZS_uTkvkdgwN0WEDlbc/edit#gid=0&range=17:21
Steps to reproduce
- checkout appset-test-script branch: https://gitlab.cee.redhat.com/gitops/gitops-components-automated-testing/-/tree/appset-test-script
- run
$ make appset-e2e-tests
The underlying script is using release-0.2.0 branch of the **
https://github.com/argoproj/applicationset.git repo
- test output
(...) === RUN TestSimpleGitFilesPreserveResourcesOnDeletion time="2022-01-19T17:21:46+01:00" level=info msg="mkdir -p /tmp/applicationset-e2e" dir= execID=uEgpP time="2022-01-19T17:21:46+01:00" level=debug duration=3.768222ms execID=uEgpP time="2022-01-19T17:21:46+01:00" level=info msg="clean state" duration=1.199430002s id= name=TestSimpleGitFilesPreserveResourcesOnDeletion password=password username=admin time="2022-01-19T17:21:47+01:00" level=info msg="action: creating namespace 'applicationset-e2e'" time="2022-01-19T17:21:47+01:00" level=info msg="expectation succeeded: no error and output contained ''" time="2022-01-19T17:27:36+01:00" level=info msg="expectation pending: pod predicate does not match pods" (...) time="2022-01-19T17:27:39+01:00" level=info msg="expectation pending: pod predicate does not match pods" time="2022-01-19T17:27:42+01:00" level=info msg="expectation pending: pod predicate does not match pods" time="2022-01-19T17:27:45+01:00" level=info msg="expectation pending: pod predicate does not match pods" applicationset_test.go:365: timeout waiting for: pod predicate does not match pods --- FAIL: TestSimpleGitFilesPreserveResourcesOnDeletion (363.30s) (...)
- engineering-{dev,prod}-guestbook app shows
Namespace "applicationset-e2e" for Deployment "guestbook-ui" is not managed
$ oc describe application engineering-dev-guestbook -n argocd-appset-e2e
Name: engineering-dev-guestbook
Namespace: argocd-appset-e2e
Labels: <none>
Annotations: <none>
API Version: argoproj.io/v1alpha1
Kind: Application
Metadata:
Creation Timestamp: 2022-01-19T17:14:19Z
Generation: 6
Managed Fields:
API Version: argoproj.io/v1alpha1
Fields Type: FieldsV1
fieldsV1:
f:metadata:
f:ownerReferences:
.:
k:{"uid":"c8fa3943-f450-4469-9e99-834ed55c349e"}:
f:spec:
.:
f:destination:
.:
f:namespace:
f:server:
f:project:
f:source:
.:
f:path:
f:repoURL:
f:targetRevision:
f:syncPolicy:
.:
f:automated:
f:status:
.:
f:health:
f:summary:
f:sync:
.:
f:comparedTo:
.:
f:destination:
f:source:
Manager: applicationset-controller
Operation: Update
Time: 2022-01-19T17:14:19Z
API Version: argoproj.io/v1alpha1
Fields Type: FieldsV1
fieldsV1:
f:status:
f:conditions:
f:health:
f:status:
f:reconciledAt:
f:resources:
f:sourceType:
f:sync:
f:comparedTo:
f:destination:
f:namespace:
f:server:
f:source:
f:path:
f:repoURL:
f:targetRevision:
f:revision:
f:status:
Manager: argocd-application-controller
Operation: Update
Time: 2022-01-19T17:14:19Z
Owner References:
API Version: argoproj.io/v1alpha1
Block Owner Deletion: true
Controller: true
Kind: ApplicationSet
Name: simple-git-generator
UID: c8fa3943-f450-4469-9e99-834ed55c349e
Resource Version: 4174073
UID: 573e1d50-9674-4b0f-b102-54cbafaf0415
Spec:
Destination:
Namespace: applicationset-e2e
Server: https://kubernetes.default.svc
Project: default
Source:
Path: guestbook
Repo URL: https://github.com/argoproj/argocd-example-apps.git
Target Revision: HEAD
Sync Policy:
Automated:
Status:
Conditions:
Last Transition Time: 2022-01-19T17:18:54Z
Message: Namespace "applicationset-e2e" for Deployment "guestbook-ui" is not managed
Type: ComparisonError
Health:
Status: Missing
Reconciled At: 2022-01-19T17:18:54Z
Resources:
Health:
Status: Missing
Kind: Service
Name: guestbook-ui
Namespace: applicationset-e2e
Status: Unknown
Version: v1
Group: apps
Health:
Status: Missing
Kind: Deployment
Name: guestbook-ui
Namespace: applicationset-e2e
Status: Unknown
Version: v1
Source Type: Directory
Summary:
Sync:
Compared To:
Destination:
Namespace: applicationset-e2e
Server: https://kubernetes.default.svc
Source:
Path: guestbook
Repo URL: https://github.com/argoproj/argocd-example-apps.git
Target Revision: HEAD
Revision: 53e28ff20cc530b9ada2173fbbd64d48338583ba
Status: Unknown
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal ResourceUpdated 4m45s argocd-application-controller Updated sync status: -> Unknown
Normal ResourceUpdated 4m45s argocd-application-controller Updated health status: -> Missing
$ oc describe application engineering-prod-guestbook -n appset-e2e Error from server (NotFound): namespaces "appset-e2e" not found [Downloads]$ oc describe application engineering-prod-guestbook -n argocd-appset-e2e Name: engineering-prod-guestbook Namespace: argocd-appset-e2e Labels: <none> Annotations: <none> API Version: argoproj.io/v1alpha1 Kind: Application Metadata: Creation Timestamp: 2022-01-19T17:14:19Z Generation: 4 Managed Fields: API Version: argoproj.io/v1alpha1 Fields Type: FieldsV1 fieldsV1: f:metadata: f:ownerReferences: .: k:{"uid":"c8fa3943-f450-4469-9e99-834ed55c349e"}: f:spec: .: f:destination: .: f:namespace: f:server: f:project: f:source: .: f:path: f:repoURL: f:targetRevision: f:syncPolicy: .: f:automated: f:status: .: f:health: f:summary: f:sync: .: f:comparedTo: .: f:destination: f:source: Manager: applicationset-controller Operation: Update Time: 2022-01-19T17:14:19Z API Version: argoproj.io/v1alpha1 Fields Type: FieldsV1 fieldsV1: f:status: f:conditions: f:health: f:status: f:reconciledAt: f:resources: f:sourceType: f:sync: f:comparedTo: f:destination: f:namespace: f:server: f:source: f:path: f:repoURL: f:targetRevision: f:revision: f:status: Manager: argocd-application-controller Operation: Update Time: 2022-01-19T17:14:19Z Owner References: API Version: argoproj.io/v1alpha1 Block Owner Deletion: true Controller: true Kind: ApplicationSet Name: simple-git-generator UID: c8fa3943-f450-4469-9e99-834ed55c349e Resource Version: 4174072 UID: f990ff16-1a3b-42e3-974c-8e493795d6ca Spec: Destination: Namespace: applicationset-e2e Server: https://kubernetes.default.svc Project: default Source: Path: guestbook Repo URL: https://github.com/argoproj/argocd-example-apps.git Target Revision: HEAD Sync Policy: Automated: Status: Conditions: Last Transition Time: 2022-01-19T17:14:19Z Message: Namespace "applicationset-e2e" for Deployment "guestbook-ui" is not managed Type: ComparisonError Health: Status: Missing Reconciled At: 2022-01-19T17:18:54Z Resources: Health: Status: Missing Kind: Service Name: guestbook-ui Namespace: applicationset-e2e Status: Unknown Version: v1 Group: apps Health: Status: Missing Kind: Deployment Name: guestbook-ui Namespace: applicationset-e2e Status: Unknown Version: v1 Source Type: Directory Summary: Sync: Compared To: Destination: Namespace: applicationset-e2e Server: https://kubernetes.default.svc Source: Path: guestbook Repo URL: https://github.com/argoproj/argocd-example-apps.git Target Revision: HEAD Revision: 53e28ff20cc530b9ada2173fbbd64d48338583ba Status: Unknown Events: Type Reason Age From Message ---- ------ ---- ---- ------- Normal ResourceUpdated 5m8s argocd-application-controller Updated sync status: -> Unknown Normal ResourceUpdated 5m8s argocd-application-controller Updated health status: -> Missing Normal ResourceUpdated 5m7s argocd-application-controller Updated sync status: -> Unknown Normal ResourceUpdated 5m7s argocd-application-controller Updated health status: -> Missing