Is it possible to use any of the s3_ and ecs_ modules for EMC ECS? ECS uses the standard s3 API and has the same parameters such as AWS Secret Keys and Access Keys.
I’ve tried using the s3_bucket module but I get ‘Couldn’t connect to AWS: Invalid endpoint:’ when trying to point to my ECS instance.
Does anyone have any knowledge on using Ansible to manage EMC ECS?
Have you tried passing the s3_url:
I’ve tried various uses of s3_url pointing to my ECS instance, it seems to be a bit temperamental. Sometimes I will get invalid endpoint and other times i get ‘NoneType’ object has no attribute ‘endswith’
fatal: [ECS_SERVER]: FAILED! => {
“changed”: false,
“module_stderr”: “Shared connection to ECS_SERVER closed.\r\n”,
“module_stdout”: “Traceback (most recent call last):\r\n File "/tmp/ansible_xCDvEy/ansible_module_s3_bucket.py", line 558, in \r\n main()\r\n File "/tmp/ansible_xCDvEy/ansible_module_s3_bucket.py", line 544, in main\r\n s3_client = get_s3_client(module, aws_connect_kwargs, location, ceph, s3_url)\r\n File "/tmp/ansible_xCDvEy/ansible_module_s3_bucket.py", line 492, in get_s3_client\r\n elif is_walrus(s3_url):\r\n File "/tmp/ansible_xCDvEy/ansible_module_s3_bucket.py", line 469, in is_walrus\r\n return not o.hostname.endswith(‘amazonaws.com’)\r\nAttributeError: ‘NoneType’ object has no attribute ‘endswith’\r\n”,
“msg”: “MODULE FAILURE”,
“rc”: 1
}
I’m a bit confused on why it says "return not o.hostname.endswith(‘amazonaws.com’). This is what made me think it isn’t intended for an ECS instance