[openstack] KeyError: 'volumes is not found. openstack.compute.v2.server.Server objects do not support setting arbitrary keys through the dict interface
cmoulliard opened this issue · 0 comments
cmoulliard commented
Issue
The execution of the following command:
ansible-playbook playbook/openstack/openstack_vm_create_paswordstore.yml
-e k8s_type=masters
-e k8s_version=124
-e key_name=test-adm-key
-e vm_name=${VM_NAME}
-e '{"openstack": {"vm": {"network": "provider_net_shared",
"image": "Fedora-Cloud-Base-35",
"flavor": "g.standard.xxl"}}}'
generates this error:
TASK [openstack/vm : Create VM instance] **************************************************************************************************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv.
The error was: KeyError: 'volumes is not found. openstack.compute.v2.server.Server objects do not support setting arbitrary keys through the dict interface.'
fatal: [localhost]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n File \"/Users/cmoullia/.ansible/tmp/ansible-tmp-1681800729.3588831-32623-200500566825782/AnsiballZ_server.py\", line 102, in <module>\n _ansiballz_main()\n File \"/Users/cmoullia/.ansible/tmp/ansible-tmp-1681800729.3588831-32623-200500566825782/AnsiballZ_server.py\", line 94, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/Users/cmoullia/.ansible/tmp/ansible-tmp-1681800729.3588831-32623-200500566825782/AnsiballZ_server.py\", line 40, in invoke_module\n runpy.run_module(mod_name='ansible_collections.openstack.cloud.plugins.modules.server', init_globals=None, run_name='__main__', alter_sys=True)\n File \"/usr/local/Cellar/python@3.9/3.9.16/Frameworks/Python.framework/Versions/3.9/lib/python3.9/runpy.py\", line 225, in run_module\n return _run_module_code(code, init_globals, run_name, mod_spec)\n File \"/usr/local/Cellar/python@3.9/3.9.16/Frameworks/Python.framework/Versions/3.9/lib/python3.9/runpy.py\", line 97, in _run_module_code\n _run_code(code, mod_globals, init_globals,\n File \"/usr/local/Cellar/python@3.9/3.9.16/Frameworks/Python.framework/Versions/3.9/lib/python3.9/runpy.py\", line 87, in _run_code\n exec(code, run_globals)\n File \"/var/folders/t2/jwchtqkn5y76hrfrws7dqtqm0000gn/T/ansible_openstack.cloud.server_payload_z75z738p/ansible_openstack.cloud.server_payload.zip/ansible_collections/openstack/cloud/plugins/modules/server.py\", line 805, in <module>\n File \"/var/folders/t2/jwchtqkn5y76hrfrws7dqtqm0000gn/T/ansible_openstack.cloud.server_payload_z75z738p/ansible_openstack.cloud.server_payload.zip/ansible_collections/openstack/cloud/plugins/modules/server.py\", line 801, in main\n File \"/var/folders/t2/jwchtqkn5y76hrfrws7dqtqm0000gn/T/ansible_openstack.cloud.server_payload_z75z738p/ansible_openstack.cloud.server_payload.zip/ansible_collections/openstack/cloud/plugins/module_utils/openstack.py\", line 407, in __call__\n File \"/var/folders/t2/jwchtqkn5y76hrfrws7dqtqm0000gn/T/ansible_openstack.cloud.server_payload_z75z738p/ansible_openstack.cloud.server_payload.zip/ansible_collections/openstack/cloud/plugins/modules/server.py\", line 551, in run\n File \"/var/folders/t2/jwchtqkn5y76hrfrws7dqtqm0000gn/T/ansible_openstack.cloud.server_payload_z75z738p/ansible_openstack.cloud.server_payload.zip/ansible_collections/openstack/cloud/plugins/modules/server.py\", line 633, in _create_server\n File \"/var/folders/t2/jwchtqkn5y76hrfrws7dqtqm0000gn/T/ansible_openstack.cloud.server_payload_z75z738p/ansible_openstack.cloud.server_payload.zip/ansible_collections/openstack/cloud/plugins/modules/server.py\", line 558, in _exit_hostvars\n File \"/var/folders/t2/jwchtqkn5y76hrfrws7dqtqm0000gn/T/ansible_openstack.cloud.server_payload_z75z738p/ansible_openstack.cloud.server_payload.zip/ansible/module_utils/basic.py\", line 2176, in exit_json\n File \"/var/folders/t2/jwchtqkn5y76hrfrws7dqtqm0000gn/T/ansible_openstack.cloud.server_payload_z75z738p/ansible_openstack.cloud.server_payload.zip/ansible/module_utils/basic.py\", line 2169, in _return_formatted\n File \"/var/folders/t2/jwchtqkn5y76hrfrws7dqtqm0000gn/T/ansible_openstack.cloud.server_payload_z75z738p/ansible_openstack.cloud.server_payload.zip/ansible/module_utils/basic.py\", line 436, in remove_values\n File \"/usr/local/Cellar/ansible@2.9/2.9.27_4/libexec/lib/python3.9/site-packages/openstack/resource.py\", line 711, in __setitem__\n raise KeyError(\n
KeyError: 'volumes is not found. openstack.compute.v2.server.Server objects do not support setting arbitrary keys through the dict interface.'\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}