Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

e2e-test: fix e2e-test pipelines #1651

Merged

Conversation

liudalibj
Copy link
Member

  • pin operator manager to use release v0.8.0 tag

From last Saturday, the opensource e2e test pipelines are failed with error:

[2024-01-06T00:22:04.027Z] confidential-containers-system   cc-operator-daemon-install-jptsh                          0/1     Error              4 (65s ago)   3m12s

eg: https://github.com/confidential-containers/cloud-api-adaptor/actions/runs/7429572885/job/20218312686#step:5:1827

Did a dig found that log from the cc-operator-daemon-install looks like:

kubectl logs -f -n confidential-containers-system   cc-operator-daemon-install-88f4z
/opt/kata-artifacts/scripts/kata-deploy.sh: line 417: SNAPSHOTTER: unbound variable
Environment variables passed to this script
* NODE_NAME: peer-pods-worker-0
* DEBUG: false
* SHIMS: remote
* DEFAULT_SHIM:
* CREATE_RUNTIMECLASSES: true
* CREATE_DEFAULT_RUNTIMECLASS: false

This is because the operator change from confidential-containers/operator#303

As we want to keep the operator using v0.8.0:

kubectl describe po -n confidential-containers-system   cc-operator-controller-manager-68ff8494b7-mqdkb
...
  Normal   Pulled     21m                kubelet  Successfully pulled image "quay.io/confidential-containers/operator:latest" in 7.676360911s (7.676367738s including waiting)

We should use github.com/confidential-containers/operator/config/release?ref=v0.8.0, it pin the operator image to v0.8.0 tag:
https://github.com/confidential-containers/operator/blob/v0.8.0/config/release/kustomization.yaml#L7

- pin operator manager to use release v0.8.0 tag

Signed-off-by: Da Li Liu <liudali@cn.ibm.com>
@stevenhorsman
Copy link
Member

Hey @liudalibj - have you tried this out locally as confidential-containers/operator#262 suggested that this pinning might not work fully and be enough and you might still get "quay.io/confidential-containers/operator:latest"?
Assuming it does work, then I'm ok with this change, but it highlights that it's probably not sustainable for us to remain on a back-level version for much longer given the 'suboptimal' pinning in the project, but it will be good for us to ensure things like 262 are raised and resolved before we go too much further.

@liudalibj liudalibj added the test_e2e_libvirt Run Libvirt e2e tests label Jan 8, 2024
@liudalibj
Copy link
Member Author

Hey @liudalibj - have you tried this out locally as confidential-containers/operator#262 suggested that this pinning might not work fully and be enough and you might still get "quay.io/confidential-containers/operator:latest"? Assuming it does work, then I'm ok with this change, but it highlights that it's probably not sustainable for us to remain on a back-level version for much longer given the 'suboptimal' pinning in the project, but it will be good for us to ensure things like 262 are raised and resolved before we go too much further.

I tied it locally

kubectl apply -k github.com/confidential-containers/operator/config/release?ref=v0.8.0

this command can make cc-operator-daemon-install pod works again in the the new created peerpod env.

I added the test_e2e_libvirt label too, we can check the result later.

Copy link
Member

@stevenhorsman stevenhorsman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM as long as the tests pass. Thanks!

Copy link
Contributor

@tumberino tumberino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@stevenhorsman
Copy link
Member

Given that this passes the e2e test with libvirt and other PRs are not, I think we need to merge it to unblock things now. Thanks @liudalibj!

@stevenhorsman stevenhorsman merged commit defb3f1 into confidential-containers:main Jan 8, 2024
27 checks passed
@liudalibj liudalibj deleted the pin-operator-0.8.0 branch January 13, 2024 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test_e2e_libvirt Run Libvirt e2e tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants