Skip to content

PVE9 node evacuate fails with 500 Internal Server Error: cannot index groups: ha groups have been migrated to rules #69

@guerby

Description

@guerby

Hi,

On a Proxmox VE 9 cluster pvecontrol node evacuate fails after migrating the first VM with the following backtrace.

The documentation says:

https://pve.proxmox.com/pve-docs/api-viewer/#/cluster/ha/groups

"Get HA groups. (deprecated in favor of HA rules)"

Testing:

# pvesh get /cluster/ha/groups
cannot index groups: ha groups have been migrated to rules
# pvesh get /cluster/ha/rules
#

I replaced the cluster.py ha "groups" line by

            "groups": self.api.cluster.ha.rules.get(),

And it seems to have worked, but my proxmox cluster has no HA setup.

Sincerely,

Laurent

guerby@lgdell:~$ uvx --from pvecontrol pvecontrol  -c g1 node evacuate --online --follow  g1 g2 g3 g20 g21 g22 g23
....
Confirm (yes):yes
Migrate VM: 112 / xxx g1 to g3
Traceback (most recent call last):
  File "/home/guerby/.cache/uv/archive-v0/JUrtD1PkfdU46XBxpI28T/bin/pvecontrol", line 12, in <module>
    sys.exit(main())
             ~~~~^^
  File "/home/guerby/.cache/uv/archive-v0/JUrtD1PkfdU46XBxpI28T/lib/python3.13/site-packages/pvecontrol/__init__.py", line 159, in main
    pvecontrol(auto_envvar_prefix="PVECONTROL")
    ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/guerby/.cache/uv/archive-v0/JUrtD1PkfdU46XBxpI28T/lib/python3.13/site-packages/click/core.py", line 1462, in __call__
    return self.main(*args, **kwargs)
           ~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/home/guerby/.cache/uv/archive-v0/JUrtD1PkfdU46XBxpI28T/lib/python3.13/site-packages/click/core.py", line 1383, in main
    rv = self.invoke(ctx)
  File "/home/guerby/.cache/uv/archive-v0/JUrtD1PkfdU46XBxpI28T/lib/python3.13/site-packages/click/core.py", line 1850, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
  File "/home/guerby/.cache/uv/archive-v0/JUrtD1PkfdU46XBxpI28T/lib/python3.13/site-packages/click/core.py", line 1850, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
  File "/home/guerby/.cache/uv/archive-v0/JUrtD1PkfdU46XBxpI28T/lib/python3.13/site-packages/click/core.py", line 1246, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/guerby/.cache/uv/archive-v0/JUrtD1PkfdU46XBxpI28T/lib/python3.13/site-packages/click/core.py", line 814, in invoke
    return callback(*args, **kwargs)
  File "/home/guerby/.cache/uv/archive-v0/JUrtD1PkfdU46XBxpI28T/lib/python3.13/site-packages/click/decorators.py", line 34, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/guerby/.cache/uv/archive-v0/JUrtD1PkfdU46XBxpI28T/lib/python3.13/site-packages/pvecontrol/actions/node.py", line 133, in evacuate
    proxmox.refresh()
    ~~~~~~~~~~~~~~~^^
  File "/home/guerby/.cache/uv/archive-v0/JUrtD1PkfdU46XBxpI28T/lib/python3.13/site-packages/pvecontrol/models/cluster.py", line 104, in refresh
    _ = self.ha
        ^^^^^^^
  File "/home/guerby/.cache/uv/archive-v0/JUrtD1PkfdU46XBxpI28T/lib/python3.13/site-packages/pvecontrol/models/cluster.py", line 78, in ha
    "groups": self.api.cluster.ha.groups.get(),
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/home/guerby/.cache/uv/archive-v0/JUrtD1PkfdU46XBxpI28T/lib/python3.13/site-packages/proxmoxer/core.py", line 167, in get
    return self(args)._request("GET", params=params)
           ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
  File "/home/guerby/.cache/uv/archive-v0/JUrtD1PkfdU46XBxpI28T/lib/python3.13/site-packages/proxmoxer/core.py", line 147, in _request
    raise ResourceException(
    ...<6 lines>...
    )
proxmoxer.core.ResourceException: 500 Internal Server Error: cannot index groups: ha groups have been migrated to rules

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions