Description of problem:
The TestNamespaced* Argo CD remote E2E tests are failing with namespace 'argocd-e2e-external' is not permitted . Example:
time="2022-11-30T19:58:26+01:00" level=error msg="`../../dist/argocd app create argocd-e2e-external/test-namespaced-app-creation-without-force-update --repo http://argocd-e2e-server:9081/argo-e2e/testdata.git --dest-name in-cluster --path guestbook --project default --dest-namespace argocd-e2e--test-namespaced-app-creation-without-force-up-aolga --server argocd-test-server-argocd-e2e.apps.rjeczkowaws-411x.ocp-gitops-qe.com --auth-token eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJhcmdvY2QiLCJzdWIiOiJhZG1pbjpsb2dpbiIsImV4cCI6MTY2OTkyMTA5OSwibmJmIjoxNjY5ODM0Njk5LCJpYXQiOjE2Njk4MzQ2OTksImp0aSI6Ijk5YmI2ODRmLTU3YWMtNDdkZC04ZmViLTU0NmIyMDM4MDc2ZSJ9.MOD5U0QkSizn9BSXs9JAEUNwxpza9SAZCHMkRxNt1Bw --insecure` failed exit status 20: time=\"2022-11-30T19:58:26+01:00\" level=fatal msg=\"rpc error: code = Unknown desc = namespace 'argocd-e2e-external' is not permitted\"" execID=d05c3 actions.go:156: failed expectation: error --- FAIL: TestNamespacedAppCreationWithoutForceUpdate (12.09s)
argocd-server pod logs:
$ oc logs pod/argocd-test-server-64f449ffd9-58c9v time="2022-12-01T11:37:53Z" level=info msg="received unary call /version.VersionService/Version" grpc.method=Version grpc.request.content= grpc.service=version.VersionService grpc.start_time="2022-12-01T11:37:53Z" span.kind=server system=grpc time="2022-12-01T11:37:53Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=Version grpc.service=version.VersionService grpc.start_time="2022-12-01T11:37:53Z" grpc.time_ms=11.955 span.kind=server system=grpc time="2022-12-01T11:37:54Z" level=info msg="received unary call /application.ApplicationService/Get" grpc.method=Get grpc.request.content="name:\"test-namespaced-app-creation\" " grpc.service=application.ApplicationService grpc.start_time="2022-12-01T11:37:54Z" span.kind=server system=grpc time="2022-12-01T11:37:54Z" level=info msg="finished unary call with code NotFound" error="rpc error: code = NotFound desc = error getting application: applications.argoproj.io \"test-namespaced-app-creation\" not found" grpc.code=NotFound grpc.method=Get grpc.service=application.ApplicationService grpc.start_time="2022-12-01T11:37:54Z" grpc.time_ms=6.84 span.kind=server system=grpc time="2022-12-01T11:37:54Z" level=info msg="received unary call /application.ApplicationService/Create" grpc.method=Create grpc.request.content="%!v(PANIC=String method: reflect.Value.Interface: cannot return value obtained from unexported field or method)" grpc.service=application.ApplicationService grpc.start_time="2022-12-01T11:37:54Z" span.kind=server system=grpc time="2022-12-01T11:37:54Z" level=error msg="finished unary call with code Unknown" error="namespace 'argocd-e2e-external' is not permitted" grpc.code=Unknown grpc.method=Create grpc.service=application.ApplicationService grpc.start_time="2022-12-01T11:37:54Z" grpc.time_ms=48.635 span.kind=server system=grpc
Steps to Reproduce:
- Running individual test
repo: https://gitlab.cee.redhat.com/gitops/gitops-components-automated-testing
$ export ARGOCD_VERSION=2.5.2 $ ./scripts/argocd-e2e-test-single.sh TestNamespacedAppCreation
- Running the entire ArgoCD E2E remote tests suite
repo: https://gitlab.cee.redhat.com/gitops/gitops-components-automated-testing
$ export ARGOCD_VERSION=2.5.2 $ make argocd-e2e-tests target
https://gitlab.cee.redhat.com/gitops/gitops-components-automated-testing#-make-argocd-e2e-tests (edited)
Prerequisites (if any, like setup, operators/versions):
- OCP 4.11 cluster
- GitOps Operator v1.7.0-22 installed (IIB: 382903)