Skip to content

AttributeError: property 'state' of 'ProxmoxACL' object has no setter

Hi, first time i'm playing around with your collection/role trying to setup a fresh proxmox8 host. The 'Create ACL.' example from the docs did not work for me. (https://jlecomte.gitlab.io/ansible/ansible-proxmox-collection/modules/julien_lecomte.proxmox.acl_module.html)

Not sure if this is a python error or something in my code? Or maybe due to changes in proxmox 8 beta?

Last row from error trace (see below for full) /julien_lecomte/proxmox/plugins/modules/acl.py", line 105, in _on_load\nAttributeError: property 'state' of 'ProxmoxACL' object has no setter\n",

tasks from main.yml tasks: - name: Create group 'admins' julien_lecomte.proxmox.group: name: 'admins' become: true - name: Create user 'bahoop' and add to group 'admins' julien_lecomte.proxmox.user: name: 'bahoop@pam' groups: [ "admins" ] become: true - name: Create ACL. julien_lecomte.proxmox.acl: path: "/" roles: [ "PVEAdmin" ] groups: [ "admins" ] become: true

ansible [core 2.14.5], python version = 3.11.3 on macos ventura (13.4) proxmox host is a clean 8 beta installation

error log from ansible-playbook -vvv The full traceback is: Traceback (most recent call last): File "", line 107, in File "", line 99, in _ansiballz_main File "", line 47, in invoke_module File "", line 226, in run_module File "", line 98, in _run_module_code File "", line 88, in _run_code File "/tmp/ansible_julien_lecomte.proxmox.acl_payload_c3phemic/ansible_julien_lecomte.proxmox.acl_payload.zip/ansible_collections/julien_lecomte/proxmox/plugins/modules/acl.py", line 153, in File "/tmp/ansible_julien_lecomte.proxmox.acl_payload_c3phemic/ansible_julien_lecomte.proxmox.acl_payload.zip/ansible_collections/julien_lecomte/proxmox/plugins/modules/acl.py", line 147, in main File "/tmp/ansible_julien_lecomte.proxmox.acl_payload_c3phemic/ansible_julien_lecomte.proxmox.acl_payload.zip/ansible_collections/julien_lecomte/proxmox/plugins/module_utils/pvesh.py", line 25, in run File "/tmp/ansible_julien_lecomte.proxmox.acl_payload_c3phemic/ansible_julien_lecomte.proxmox.acl_payload.zip/ansible_collections/julien_lecomte/proxmox/plugins/module_utils/pvesh.py", line 71, in load File "/tmp/ansible_julien_lecomte.proxmox.acl_payload_c3phemic/ansible_julien_lecomte.proxmox.acl_payload.zip/ansible_collections/julien_lecomte/proxmox/plugins/modules/acl.py", line 105, in _on_load AttributeError: property 'state' of 'ProxmoxACL' object has no setter fatal: [pve3.home]: FAILED! => { "changed": false, "module_stderr": "Traceback (most recent call last):\n File \"\", line 107, in \n File \"\", line 99, in _ansiballz_main\n File \"\", line 47, in invoke_module\n File \"\", line 226, in run_module\n File \"\", line 98, in _run_module_code\n File \"\", line 88, in _run_code\n File \"/tmp/ansible_julien_lecomte.proxmox.acl_payload_c3phemic/ansible_julien_lecomte.proxmox.acl_payload.zip/ansible_collections/julien_lecomte/proxmox/plugins/modules/acl.py\", line 153, in \n File \"/tmp/ansible_julien_lecomte.proxmox.acl_payload_c3phemic/ansible_julien_lecomte.proxmox.acl_payload.zip/ansible_collections/julien_lecomte/proxmox/plugins/modules/acl.py\", line 147, in main\n File \"/tmp/ansible_julien_lecomte.proxmox.acl_payload_c3phemic/ansible_julien_lecomte.proxmox.acl_payload.zip/ansible_collections/julien_lecomte/proxmox/plugins/module_utils/pvesh.py\", line 25, in run\n File \"/tmp/ansible_julien_lecomte.proxmox.acl_payload_c3phemic/ansible_julien_lecomte.proxmox.acl_payload.zip/ansible_collections/julien_lecomte/proxmox/plugins/module_utils/pvesh.py\", line 71, in load\n File \"/tmp/ansible_julien_lecomte.proxmox.acl_payload_c3phemic/ansible_julien_lecomte.proxmox.acl_payload.zip/ansible_collections/julien_lecomte/proxmox/plugins/modules/acl.py\", line 105, in _on_load\nAttributeError: property 'state' of 'ProxmoxACL' object has no setter\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1 }
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information