openshift / openshift-ansible

Install and config an OpenShift 3.x cluster
https://try.openshift.com
Apache License 2.0
2.18k stars 2.31k forks source link

docker does not work when upgrading to kernel 4.4 #11102

Closed jozefizso closed 5 years ago

jozefizso commented 5 years ago

Description

docker does not work when upgrading to kernel 4.4

Version
> ansible --version
ansible 2.6.6
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/home/vagrant/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/site-packages/ansible
  executable location = /usr/bin/ansible
  python version = 2.7.5 (default, Oct 30 2018, 23:45:53) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]

> git describe
openshift-ansible-3.11.76-1
Steps To Reproduce
  1. Add elrepo-kernel and elrepo-release repositories
  2. Install the kernel-lt package (long-term support kernel 4.4)
  3. Reboot and start with new kernel
  4. Use openshift_docker_options=" --selinux-enabled --log-driver=journald --storage-driver=overlay "
  5. Run ansible-playbook playbooks/prerequisites.yml
Expected Results

Docker should work.

Observed Results

Docker fails to start.

TASK [container_runtime : Start the Docker service] **************************************************************************************************************************************************************************************************************
FAILED - RETRYING: Start the Docker service (3 retries left).
FAILED - RETRYING: Start the Docker service (3 retries left).
FAILED - RETRYING: Start the Docker service (3 retries left).
FAILED - RETRYING: Start the Docker service (2 retries left).
FAILED - RETRYING: Start the Docker service (2 retries left).
FAILED - RETRYING: Start the Docker service (2 retries left).
FAILED - RETRYING: Start the Docker service (1 retries left).
FAILED - RETRYING: Start the Docker service (1 retries left).
FAILED - RETRYING: Start the Docker service (1 retries left).
fatal: [master.okd.lab]: FAILED! => {"attempts": 3, "changed": false, "msg": "Unable to start service docker: Job for docker.service failed because the control process exited with error code. See \"systemctl status docker.service\" and \"journalctl -xe\" for details.\n"}
Jan 30 12:11:46 master.okd.lab systemd[1]: Starting Docker Application Container Engine...
-- Subject: Unit docker.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit docker.service has begun starting up.
Jan 30 12:11:46 master.okd.lab dockerd-current[11668]: time="2019-01-30T12:11:46.998177789Z" level=info msg="libcontainerd: new containerd process, pid: 11676"
Jan 30 12:11:48 master.okd.lab dockerd-current[11668]: Error starting daemon: SELinux is not supported with the overlay2 graph driver on this kernel. Either boot into a newer kernel or disable selinux in docker (--selinux-enabled=false)
Jan 30 12:11:48 master.okd.lab systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
Jan 30 12:11:48 master.okd.lab systemd[1]: Failed to start Docker Application Container Engine.
-- Subject: Unit docker.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit docker.service has failed.
--
-- The result is failed.
Jan 30 12:11:48 master.okd.lab systemd[1]: Unit docker.service entered failed state.
Jan 30 12:11:48 master.okd.lab systemd[1]: docker.service failed.
Additional Information

Provide any additional information which may help us diagnose the issue.

vrutkovs commented 5 years ago

Please file this against docker package for centos