tmpnb-deploy icon indicating copy to clipboard operation
tmpnb-deploy copied to clipboard

Ubuntu, Ansible, and Docker walk into a traffic surge

Open rgbkrk opened this issue 10 years ago • 2 comments

Deploying new nodes and I'm greeted with this friendly error:

TASK: [notebook | restart docker] *********************************************
failed: [tmp23-user.tmpnb.org] => {"failed": true}
msg:  * Docker is managed via upstart, try using service docker stop
 * Docker is managed via upstart, try using service docker start

failed: [tmp24-user.tmpnb.org] => {"failed": true}
msg:  * Docker is managed via upstart, try using service docker stop
 * Docker is managed via upstart, try using service docker start


FATAL: all hosts have already failed -- aborting

For now I ad-hoc'ed my way around it, but something has changed in either Ansible, Ubuntu, or Docker.

rgbkrk avatar May 08 '15 16:05 rgbkrk

+1, seeing the same thing with Docker 1.5.0 on Ubuntu 14.04

Using this task:

- name: restart docker
  service: name=docker state=restarted
  when: docker_service_state != 'stopped'

ryanwalls avatar May 15 '15 00:05 ryanwalls

I believe this is related https://github.com/ansible/ansible-modules-core/issues/1170 (just bumped into this thread through google)

alon-argus avatar Jul 09 '15 15:07 alon-argus