Hi,
Currently using ansible 2.7 (since 2.8.0 gives problems with become_user
and become in TaskInclude for
/home/centos/elasticluster/src/elasticluster/share/playbooks/roles/ceph/tasks/mgr.yml)
Running setup with a custom playbook to configure my instances.
When creating volumes for my instances I see:
TASK [openstack volume | attach volume to frontend host]
*******************************************************************************************************************************************************************************
An exception occurred during task execution. To see the full traceback, use
-vvv. The error was: AttributeError: 'module' object has no attribute
'OpenStackCloudTimeout'
failed: [frontend001] (item={u'size': 20, u'src': u'/dev/sdb', u'name':
u'sessiondir-frontend001', u'path': u'/grid', u'label': u'grid', u'fstype':
u'xfs'}) => {"changed": false, "item": {"fstype": "xfs", "label": "grid",
"name": "sessiondir-frontend001", "path": "/grid", "size": 20, "src":
"/dev/sdb"},\
"module_stderr": "Traceback (most recent call last):\n File \"<stdin>\",
line 113, in <module>\n File \"<stdin>\", line 105, in _ansiballz_main\n
File \"<stdin>\", line 48, in invoke_module\n File
\"/tmp/ansible_os_server_volume_payload_zEgRue/__main__.py\", line 147, in
<module>\n File \"/tmp/ans\
ible_os_server_volume_payload_zEgRue/__main__.py\", line 142, in
main\nAttributeError: 'module' object has no attribute
'OpenStackCloudTimeout'\n", "module_stdout": "", "msg": "MODULE
FAILURE\nSee stdout/stderr for the exact error", "rc": 1}
An exception occurred during task execution. To see the full traceback, use
-vvv. The error was: AttributeError: 'module' object has no attribute
'OpenStackCloudTimeout'
failed: [frontend001] (item={u'size': 20, u'src': u'/dev/sdc', u'name':
u'controldir-frontend001', u'path': u'/gctrl', u'label': u'gctrl',
u'fstype': u'xfs'}) => {"changed": false, "item": {"fstype": "xfs",
"label": "gctrl", "name": "controldir-frontend001", "path": "/gctrl",
"size": 20, "src": "/dev/sd\
c"}, "module_stderr": "Traceback (most recent call last):\n File
\"<stdin>\", line 113, in <module>\n File \"<stdin>\", line 105, in
_ansiballz_main\n File \"<stdin>\", line 48, in invoke_module\n File
\"/tmp/ansible_os_server_volume_payload_MacArA/__main__.py\", line 147, in
<module>\n File \"/tmp\
/ansible_os_server_volume_payload_MacArA/__main__.py\", line 142, in
main\nAttributeError: 'module' object has no attribute
'OpenStackCloudTimeout'\n", "module_stdout": "", "msg": "MODULE
FAILURE\nSee stdout/stderr for the exact error", "rc": 1}
I found this note:
https://github.com/ansible/ansible/issues/45151
And tried to apply the patch to os_volume.py and the other files mentioned.
I did a new pip install -e .
But still seeing the same problem. There might be other places that need
fixing, or must I uninstall first?
Maiken
--
You received this message because you are subscribed to the Google Groups
"elasticluster" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticluster/bcfdcb49-f02c-49ea-a14a-8a6ccf398ecc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.