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
Use correct container CLI for docker or cri-o #9829
Conversation
667da76
to
4397d3e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall, looks good. Just one item.
@@ -43,6 +43,7 @@ repoquery_installed: "{{ (ansible_pkg_mgr == 'dnf') | ternary('dnf repoquery --l | |||
openshift_use_crio: False | |||
openshift_use_crio_only: False | |||
openshift_crio_enable_docker_gc: True | |||
openshift_container_cli: "{{ openshift_use_crio | ternary('crictl', 'docker') }}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to cast openshift_use_crio to bool.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I forgot that my other change had not landed.
https://github.com/openshift/openshift-ansible/pull/9732/files#diff-3f7ba27815bc4fa8679d59a6e27e5d5cR136
@michaelgugino Updated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/retest Please review the full test history for this PR and help us cut down flakes. |
2 similar comments
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
Rebased for merge conflicts. |
/test gcp-crio |
Image management tasks updated to use openshift_container_cli which will be defined as either 'crictl' when using cri-o runtime or 'docker' when using docker. Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1618969
Rebased for merge conflict. |
/retest |
/lgtm |
I thought crictl would work for docker too? Anyway, we can figure that out in the future. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: michaelgugino, mtnbikenc, sdodson The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@sdodson I think this is more about using what is installed. If we are not using cri-o, then we don't have crictl. If nodes are only using cri-o, they would not have docker. The commands themselves should be (mostly) interchangeable. |
ok, I thought we were installing crictl all the time but maybe that didn't make it in. |
/retest Please review the full test history for this PR and help us cut down flakes. |
gcp-crio test is having a really hard time. This could be related to openshift/origin#20325 @mrunalp, thoughts? |
@mtnbikenc: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
@sdodson @mtnbikenc crictl doesn't seem to actually work with docker daemon, even though the commands are similar, they talk to different endpoints. |
crio tests had previously passed on the same commit, merging |
/cherrypick release-3.10 |
@mtnbikenc: #9829 failed to apply on top of branch "release-3.10":
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Image management tasks updated to use openshift_container_cli which will
be defined as either 'crictl' when using cri-o runtime or 'docker' when
using docker.
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1618969