You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"module_stdout": "Traceback (most recent call last):\r\n File \"/root/.ansible/tmp/ansible-tmp-1741796454.1483688-98476-197926412226588/AnsiballZ_cassandra_role.py\", line 107, in <module>\r\n _ansiballz_main()\r\n File \"/root/.ansible/tmp/ansible-tmp-1741796454.1483688-98476-197926412226588/AnsiballZ_cassandra_role.py\", line 99, in _ansiballz_main\r\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\r\n File \"/root/.ansible/tmp/ansible-tmp-1741796454.1483688-98476-197926412226588/AnsiballZ_cassandra_role.py\", line 47, in invoke_module\r\n runpy.run_module(mod_name='ansible_collections.community.cassandra.plugins.modules.cassandra_role', init_globals=dict(_module_fqn='ansible_collections.community.cassandra.plugins.modules.cassandra_role', _modlib_path=modlib_path),\r\n File \"<frozen runpy>\", line 226, in run_module\r\n File \"<frozen runpy>\", line 98, in _run_module_code\r\n File \"<frozen runpy>\", line 88, in _run_code\r\n File \"/tmp/ansible_community.cassandra.cassandra_role_payload_z_lrpdhn/ansible_community.cassandra.cassandra_role_payload.zip/ansible_collections/community/cassandra/plugins/modules/cassandra_role.py\", line 880, in <module>\r\n File \"/tmp/ansible_community.cassandra.cassandra_role_payload_z_lrpdhn/ansible_community.cassandra.cassandra_role_payload.zip/ansible_collections/community/cassandra/plugins/modules/cassandra_role.py\", line 639, in main\r\nNameError: name 'ConsistencyLevel' is not defined. Did you mean: 'consistency_level'?\r\n", "msg": "MODULE FAILURE: No start of json char found\nSee stdout/stderr for the exact error", "rc": 1}
Hi @discostur, I'll reopen this as a bug. This can be handled much better than it is now. We should at least make it more ob
vious what the problem is.
SUMMARY
Cassandra Version: 5.0.3
community.cassandra version: 1.4.0
OS: ubuntu 24.04
ansible [core 2.18.3]
I just tried to setup a new user but it failed with the error above. Ansible code looks like this:
I tried to set consistency_level explicit or don't set it (so use default), but nothing works for me.
Regards,
Kilian
The text was updated successfully, but these errors were encountered: