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

Container Runtime Version of Docker is Unknown #10653

Closed
diegodurante opened this issue Dec 22, 2017 · 1 comment
Closed

Container Runtime Version of Docker is Unknown #10653

diegodurante opened this issue Dec 22, 2017 · 1 comment

Comments

@diegodurante
Copy link

Rancher versions:
rancher/server: v1.6.12
rancher/agent: v1.2.7

Cattle | v0.183.30
User Interface | v1.6.30
Rancher CLI | v0.6.5
Rancher Compose | v0.12.5

Infrastructure Stack versions:
healthcheck: v0.3.3
ipsec: v0.2.1
network-services: v0.2.7
scheduler: v0.6.3
kubernetes (if applicable): v1.8.3-rancher3

> kubectl version
Client Version: version.Info{Major:"1", Minor:"8", GitVersion:"v1.8.0", GitCommit:"6e937839ac04a38cac63e6a7a306c5d035fe7b0a", GitTreeState:"clean", BuildDate:"2017-09-28T22:57:57Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"8+", GitVersion:"v1.8.3-rancher3", GitCommit:"772c4c54e1f4ae7fc6f63a8e1ecd9fe616268e16", GitTreeState:"clean", BuildDate:"2017-11-27T19:51:43Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}

Docker version: (docker version,docker info preferred)

ubuntu@data2-staging:~$ sudo docker info
Containers: 12
 Running: 11
 Paused: 0
 Stopped: 1
Images: 10
Server Version: 17.03.2-ce
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 74
 Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 4ab9917febca54791c5f071a9d1f404867857fcc
runc version: 54296cf40ad8143b62dbcaa1d90e520a2136ddfe
init version: 949e6fa
Security Options:
 apparmor
 seccomp
  Profile: default
Kernel Version: 4.4.0-31-generic
Operating System: Ubuntu 16.04.1 LTS
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 1.954 GiB
Name: data2-staging
ID: FIWH:MTQG:FLOG:NFDA:PZXW:ZVGQ:6WUJ:YOK7:USXB:NWEV:RA5P:EY74
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false

WARNING: No swap limit support
ubuntu@data2-staging:~$ sudo docker version
Client:
 Version:      17.03.2-ce
 API version:  1.27
 Go version:   go1.7.5
 Git commit:   f5ec1e2
 Built:        Tue Jun 27 03:35:14 2017
 OS/Arch:      linux/amd64

Server:
 Version:      17.03.2-ce
 API version:  1.27 (minimum version 1.12)
 Go version:   go1.7.5
 Git commit:   f5ec1e2
 Built:        Tue Jun 27 03:35:14 2017
 OS/Arch:      linux/amd64
 Experimental: false

Operating system and kernel: (cat /etc/os-release, uname -r preferred)

ubuntu@data2-staging:~$ cat /etc/os-release
NAME="Ubuntu"
VERSION="16.04.1 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.1 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
UBUNTU_CODENAME=xenial
ubuntu@data2-staging:~$ uname -r
4.4.0-31-generic

Type/provider of hosts: (VirtualBox/Bare-metal/AWS/GCE/DO) General cloud provider

Setup details: (single node rancher vs. HA rancher, internal DB vs. external DB) single node rancher

Environment Template: (Cattle/Kubernetes/Swarm/Mesos) Kubernetes with plane isolation required

Steps to Reproduce:

  1. Create a template from Kubernetes default but set: "Plane isolation = required"
  2. Create a rancher environment that use template just created
  3. Create a Virtual Machine and install docker with command provided by rancher documentation curl https://releases.rancher.com/install-docker/17.03.sh | sh
  4. Add this VM as rancher host with command provided by rancher UI adding label etcd=true and public IP
  5. Repeat these steps to add another 2 etcd hosts and 1 orchestration host (label orchestration=true)
  6. From Rancher UI, go to "Kubernetes -> CLI" and execute command kubectl describe nodes

Results:
===> Container Runtime Version: docker://Unknown

> kubectl describe nodes
Name:               data2-staging.novalocal
Roles:              <none>
Labels:             beta.kubernetes.io/arch=amd64
                    beta.kubernetes.io/instance-type=rancher
                    beta.kubernetes.io/os=linux
                    etcd=true
                    failure-domain.beta.kubernetes.io/region=Region1
                    failure-domain.beta.kubernetes.io/zone=FailureDomain1
                    io.rancher.host.docker_version=17.03
                    io.rancher.host.linux_kernel_version=4.4
                    kubernetes.io/hostname=data2-staging.novalocal
Annotations:        io.rancher.labels.etcd=
                    io.rancher.labels.io.rancher.host.docker_version=
                    io.rancher.labels.io.rancher.host.linux_kernel_version=
                    node.alpha.kubernetes.io/ttl=0
                    volumes.kubernetes.io/controller-managed-attach-detach=true
Taints:             <none>
CreationTimestamp:  Thu, 21 Dec 2017 17:18:11 +0000
Conditions:
  Type             Status  LastHeartbeatTime                 LastTransitionTime                Reason                       Message
  ----             ------  -----------------                 ------------------                ------                       -------
  OutOfDisk        False   Fri, 22 Dec 2017 08:34:04 +0000   Thu, 21 Dec 2017 17:18:11 +0000   KubeletHasSufficientDisk     kubelet has sufficient disk space available
  MemoryPressure   False   Fri, 22 Dec 2017 08:34:04 +0000   Thu, 21 Dec 2017 17:18:11 +0000   KubeletHasSufficientMemory   kubelet has sufficient memory available
  DiskPressure     False   Fri, 22 Dec 2017 08:34:04 +0000   Thu, 21 Dec 2017 17:18:11 +0000   KubeletHasNoDiskPressure     kubelet has no disk pressure
  Ready            True    Fri, 22 Dec 2017 08:34:04 +0000   Thu, 21 Dec 2017 17:18:11 +0000   KubeletReady                 kubelet is posting ready status
Addresses:
  InternalIP:  89.31.77.232
  ExternalIP:  89.31.77.232
  Hostname:    data2-staging.novalocal
Capacity:
 cpu:     1
 memory:  2048512Ki
 pods:    110
Allocatable:
 cpu:     1
 memory:  1946112Ki
 pods:    110
System Info:
 Machine ID:
 System UUID:                2DF7017E-0906-4234-BB23-EBA518C048ED
 Boot ID:                    bf70be01-ab46-4650-96c2-d9860c3acf19
 Kernel Version:             4.4.0-31-generic
 OS Image:                   Ubuntu 16.04.1 LTS
 Operating System:           linux
 Architecture:               amd64
 Container Runtime Version:  docker://Unknown
 Kubelet Version:            v1.8.3-rancher3
 Kube-Proxy Version:         v1.8.3-rancher3
ExternalID:                  7944fc91-b1b9-4ec2-88ea-a846ceb318dd
Non-terminated Pods:         (0 in total)
  Namespace                  Name    CPU Requests  CPU Limits  Memory Requests  Memory Limits
  ---------                  ----    ------------  ----------  ---------------  -------------
Allocated resources:
  (Total limits may be over 100 percent, i.e., overcommitted.)
  CPU Requests  CPU Limits  Memory Requests  Memory Limits
  ------------  ----------  ---------------  -------------
  0 (0%)        0 (0%)      0 (0%)           0 (0%)
Events:
  Type     Reason                    Age                  From                              Message
  ----     ------                    ----                 ----                              -------
  Warning  checkLimitsForResolvConf  1m (x1908 over 15h)  kubelet, data2-staging.novalocal  Resolv.conf file '/etc/resolv.conf' contains search line consisting of more than 3 domains!


Name:               orchestration1-staging.novalocal
Roles:              <none>
Labels:             beta.kubernetes.io/arch=amd64
                    beta.kubernetes.io/instance-type=rancher
                    beta.kubernetes.io/os=linux
                    failure-domain.beta.kubernetes.io/region=Region1
                    failure-domain.beta.kubernetes.io/zone=FailureDomain1
                    io.rancher.host.docker_version=17.03
                    io.rancher.host.linux_kernel_version=4.4
                    kubernetes.io/hostname=orchestration1-staging.novalocal
                    orchestration=true
Annotations:        io.rancher.labels.io.rancher.host.docker_version=
                    io.rancher.labels.io.rancher.host.linux_kernel_version=
                    io.rancher.labels.orchestration=
                    node.alpha.kubernetes.io/ttl=0
                    volumes.kubernetes.io/controller-managed-attach-detach=true
Taints:             <none>
CreationTimestamp:  Thu, 21 Dec 2017 17:18:14 +0000
Conditions:
  Type             Status  LastHeartbeatTime                 LastTransitionTime                Reason                       Message
  ----             ------  -----------------                 ------------------                ------                       -------
  OutOfDisk        False   Fri, 22 Dec 2017 08:34:10 +0000   Thu, 21 Dec 2017 17:18:14 +0000   KubeletHasSufficientDisk     kubelet has sufficient disk space available
  MemoryPressure   False   Fri, 22 Dec 2017 08:34:10 +0000   Thu, 21 Dec 2017 17:18:14 +0000   KubeletHasSufficientMemory   kubelet has sufficient memory available
  DiskPressure     False   Fri, 22 Dec 2017 08:34:10 +0000   Thu, 21 Dec 2017 17:18:14 +0000   KubeletHasNoDiskPressure     kubelet has no disk pressure
  Ready            True    Fri, 22 Dec 2017 08:34:10 +0000   Thu, 21 Dec 2017 17:18:14 +0000   KubeletReady                 kubelet is posting ready status
Addresses:
  InternalIP:  89.31.77.236
  ExternalIP:  89.31.77.236
  Hostname:    orchestration1-staging.novalocal
Capacity:
 cpu:     1
 memory:  2048512Ki
 pods:    110
Allocatable:
 cpu:     1
 memory:  1946112Ki
 pods:    110
System Info:
 Machine ID:
 System UUID:                34B9B53E-E12D-44D0-9270-24A0C12D9AF6
 Boot ID:                    4ef94100-099e-4c03-84cc-f2c52b55cd93
 Kernel Version:             4.4.0-31-generic
 OS Image:                   Ubuntu 16.04.1 LTS
 Operating System:           linux
 Architecture:               amd64
 Container Runtime Version:  docker://Unknown
 Kubelet Version:            v1.8.3-rancher3
 Kube-Proxy Version:         v1.8.3-rancher3
ExternalID:                  be1d172d-5073-4879-b976-bcac6ae56772
Non-terminated Pods:         (0 in total)
  Namespace                  Name    CPU Requests  CPU Limits  Memory Requests  Memory Limits
  ---------                  ----    ------------  ----------  ---------------  -------------
Allocated resources:
  (Total limits may be over 100 percent, i.e., overcommitted.)
  CPU Requests  CPU Limits  Memory Requests  Memory Limits
  ------------  ----------  ---------------  -------------
  0 (0%)        0 (0%)      0 (0%)           0 (0%)
Events:
  Type     Reason                    Age                  From                                       Message
  ----     ------                    ----                 ----                                       -------
  Warning  checkLimitsForResolvConf  1m (x1831 over 15h)  kubelet, orchestration1-staging.novalocal  Resolv.conf file '/etc/resolv.conf' contains search line consisting of more than 3 domains!

I tried also by installing same Docker version but instead to use script provided by rancher documentation I installed it manually but the output is the same.

@superseb
Copy link
Contributor

This is a bug in Kubernetes, not being able to parse Docker CE structure, kubernetes/kubernetes#54039 and kubernetes/kubernetes#54040. This was released in v1.8.6 and v1.9, so will be included in newer releases of Rancher.

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

2 participants