Elasticluster and docker installation - centos7

24 views
Skip to first unread message

Maiken Pedersen

unread,
Apr 16, 2020, 3:09:46 PM4/16/20
to elasticluster
Hi,

I wanted to add docker ce to the worker nodes and using  elasticluster version 1.3.dev26 I get:

TASK [docker-ce : Fail if base OS not supported] *******************************************************************************************************************************
fatal
: [compute001]: FAILED! => {"msg": "The conditional check 'not is_rhel7_or_later' failed. The error was: error while evaluating conditional (not is_rhel7_or_later): 'is_rhel7_or_later' is undefined\n\nThe error appears to be in '/home/centos/elasticluster/src/elasticluster/share/playbooks/roles/docker-ce/tasks/init-RedHat.yml': line 3, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: 'Fail if base OS not supported'\n  ^ here\n"}
fatal
: [compute002]: FAILED! => {"msg": "The conditional check 'not is_rhel7_or_later' failed. The error was: error while evaluating conditional (not is_rhel7_or_later): 'is_rhel7_or_later' is undefined\n\nThe error appears to be in '/home/centos/elasticluster/src/elasticluster/share/playbooks/roles/docker-ce/tasks/init-RedHat.yml': line 3, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: 'Fail if base OS not supported'\n  ^ here\n"}

I am using Centos7 image for the (openstack) cluster.

is_rhel7_or_later variable seems not to be defined?

Riccardo Murri

unread,
Apr 16, 2020, 3:29:02 PM4/16/20
to Maiken Pedersen, elasticluster
Hello Maiken,

thanks for spotting this issue!  Should be fixed now, in the "master" branch and in the Docker image 1.3.dev28
(It was just a typo, should have been `is_rhel7_or_later_compatible`)

Ciao,
R

Maiken Pedersen

unread,
Apr 16, 2020, 4:01:08 PM4/16/20
to elasticluster
Oh excellent :)

Maiken Pedersen

unread,
Apr 16, 2020, 4:35:44 PM4/16/20
to elasticluster
Spotted another issue.

Now on 1.3dev28:

TASK [docker-ce : Install Docker Community Edition] **************************************************************************************************************************************************
[WARNING]: Updating cache and auto-installing missing dependency: python-apt
fatal
: [compute002]: FAILED! => {"changed": false, "cmd": "apt-get update", "msg": "[Errno 2] No such file or directory", "rc": 2}
fatal
: [compute001]: FAILED! => {"changed": false, "cmd": "apt-get update", "msg": "[Errno 2] No such file or directory", "rc": 2}


It tryes apt-get although I am on Centos7

Best,
Maiken

Riccardo Murri

unread,
Apr 17, 2020, 4:59:31 AM4/17/20
to Maiken Pedersen, elasticluster
Hello Maiken,


TASK [docker-ce : Install Docker Community Edition] **************************************************************************************************************************************************
[WARNING]: Updating cache and auto-installing missing dependency: python-apt
fatal
: [compute002]: FAILED! => {"changed": false, "cmd": "apt-get update", "msg": "[Errno 2] No such file or directory", "rc": 2}
fatal
: [compute001]: FAILED! => {"changed": false, "cmd": "apt-get update", "msg": "[Errno 2] No such file or directory", "rc": 2}


It tryes apt-get although I am on Centos7

Can you please try again with the latest "master" branch?

Thanks,
R

Maiken Pedersen

unread,
Apr 17, 2020, 6:20:57 AM4/17/20
to elasticluster
Great, thanks a lot. All good now.
Reply all
Reply to author
Forward
0 new messages