The bootstrap ran fine but the install is failing as below on "step1" with 'module' object has no attribute 'HTTPError'.
TASK [common_deploy : Common | Create a data container for ECS configuration control] ******************************************************************************************************************************************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: AttributeError: 'module' object has no attribute 'HTTPError'
fatal: [192.168.100.189]: FAILED! => {"changed": false, "failed": true, "module_stderr": "Traceback (most recent call last):\n File \"/tmp/ansible_4FOhhl/ansible_module_docker.py\", line 526, in \n import docker.client\n File \"/usr/lib/python2.7/site-packages/docker/__init__.py\", line 6, in \n from .client import Client, AutoVersionClient, from_env # flake8: noqa\n File \"/usr/lib/python2.7/site-packages/docker/client.py\", line 11, in \n from . import api\n File \"/usr/lib/python2.7/site-packages/docker/api/__init__.py\", line 2, in \n from .build import BuildApiMixin\n File \"/usr/lib/python2.7/site-packages/docker/api/build.py\", line 7, in \n from .. import errors\n File \"/usr/lib/python2.7/site-packages/docker/errors.py\", line 4, in \n c lass APIError(requests.exceptions.HTTPError):\nAttributeError: 'module' object has no attribute 'HTTPError'\n", "module_stdout": "", "msg": "MODULE FAILURE", "rc": 1}
PLAY RECAP *********************************************************************************************************************************************************************************************************************************************************************
Playbook run took 0 days, 0 hours, 0 minutes, 19 seconds
Operation failed.
Running "step1" a 2nd time fails as the ECS disk is already partitioned, however when I re-format the drive and re-run "step1" again I hot the same error-> APIError(requests.exceptions.HTTPError):\nAttributeError: 'module' object has no attribute 'HTTPError'\n
PLAY RECAP *********************************************************************************************************************************************************************************************************************************************************************
Playbook run took 0 days, 0 hours, 0 minutes, 18 seconds
PLAY [Common | Ping data nodes before doing anything else] *******************************************************************************************************************************************************************************************************************
PLAY [Common | Start and enable ECS services] **********************************************************************************************************************************************************************************************************************************
TASK [common_start_enable_service : Common | Enable ECS service and start ECS] *************************************************************************************************************************************************************************************************
changed: [192.168.100.189]
PLAY RECAP *********************************************************************************************************************************************************************************************************************************************************************
micksul
3 Posts
3415
0
Posted November 9th, 2018 08:00
The issue was that the obj docker container IP range matched the network I used to deploy ECS.
I performed a workaround and ECS CE is up and running.