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

crictl rpc error: code = Unimplemented desc = unknown service runtime.v1alpha2.RuntimeService #356

Closed
hmtai opened this issue Jul 17, 2018 · 6 comments

Comments

@hmtai
Copy link

hmtai commented Jul 17, 2018

When I use crictl,it can not work on my environment.

# crictl info
DEBU[0000] StatusRequest: &StatusRequest{Verbose:true,}
DEBU[0000] StatusResponse: nil
FATA[0000] getting status of runtime failed: rpc error: code = Unimplemented desc = unknown service runtime.v1alpha2.RuntimeService

My environment info:

# cat /etc/*release
NAME="Red Hat Enterprise Linux Server"
VERSION="7.5 (Maipo)"
ID="rhel"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="7.5"
PRETTY_NAME="Red Hat Enterprise Linux"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:7.5:GA:server"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7"
REDHAT_BUGZILLA_PRODUCT_VERSION=7.5
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="7.5"
Red Hat Enterprise Linux Server release 7.5 (Maipo)
Red Hat Enterprise Linux Server release 7.5 (Maipo)
# cat /proc/version
Linux version 3.10.0-862.6.3.el7.x86_64 (mockbuild@x86-017.build.eng.bos.redhat.com) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-28) (GCC) ) #1 SMP Fri Jun 15 17:57:37 EDT 2018
# containerd --version
containerd github.com/containerd/containerd v1.1.0 209a7fc3e4a32ef71a8c7b50c68fc8398415badf
# crictl --version
crictl version 1.11.0-22-gf95ba2f
@feiskyer
Copy link
Member

Seems CRI v1alpha2 is not supported in conatinerd v1.1.0. Maybe upgrade it to a new version?

/cc @Random-Liu

@hmtai
Copy link
Author

hmtai commented Jul 17, 2018

All of the binaries are make by myself through repos,may be I confused the containerd and cri version.When I download cri-containerd from release tarball and install on redhat:

wget https://storage.googleapis.com/cri-containerd-release/cri-containerd-${VERSION}.linux-amd64.tar.gz

crictl can work now.
Thanks:)

@feiskyer
Copy link
Member

@hmtai Cool!

@Random-Liu may give more details of building containerd.

@Random-Liu
Copy link
Contributor

@hmtai Seems to be a version skew. You are either using an old crictl with new containerd, or old containerd with new crictl.

@hmtai
Copy link
Author

hmtai commented Jul 18, 2018

Yes,the containerd and crictl version does not match.Actually I build the same containerd crictlversion as above on s390x and crictl can work well.When I build by myself I don't know what version containerd runc crictl should I use that can make them work together.

@Random-Liu
Copy link
Contributor

I think we can close this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants