WASdev / websphere-liberty-operator

Deploy and manage containerized Liberty applications on Kubernetes. Documentation: https://ibm.biz/wlo-docs
Apache License 2.0
9 stars 4 forks source link

License test failure in OCP #340

Open leochr opened 1 year ago

leochr commented 1 year ago

Build 719

License e2e/kuttl test failed in OCP. It passed in Kind/minikube test though. Could it be a timing issue? or is it checking wrong Pod?

    Name: license
    State: fail

    Errors:
        resource Pod:wlo-test-719/: .metadata.annotations.productChargedContainers: value mismatch, expected: app != actual: ALL
idlewis commented 1 year ago

The test passes if I run it on my local OCP cluster, so it seems likely that it is a timing issue. I will dig further.

idlewis commented 1 year ago

This is a bit odd. The manager pod will have productChargedContainers set to 'ALL', but all application pods should have productChargedContainers set to 'app', and there is no reason that it should be anything different. Also, the test looks for an annotation on the pods to say that the pods are part of that particular test step. So the test shouldn't be matching the pods from the manager deployment. It doesn't seem as though this is a timing issue, but at the moemnt, I can't think how things could go wrong in this manner.