<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>56944</bug_id>
          
          <creation_ts>2025-11-20 18:42:20 +0300</creation_ts>
          <short_desc>500-ая ошибка при добавлении связанного клона Proxmox</short_desc>
          <delta_ts>2025-11-28 02:49:57 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>openuds-server</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Vladislav Glinkin">glinkinvd</reporter>
          <assigned_to name="thatman@altlinux.org">thatman</assigned_to>
          <cc>lepata</cc>
    
    <cc>shaba</cc>
    
    <cc>thatman</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>277532</commentid>
    <comment_count>0</comment_count>
    <who name="Vladislav Glinkin">glinkinvd</who>
    <bug_when>2025-11-20 18:42:20 +0300</bug_when>
    <thetext>Версия пакета: openuds-server-4.0.0-alt4

При добавлении связанного клона Proxmox возникает 500-ая ошибка, из-за чего меню в веб-интерфейсе не отображается.
В логах:
DEBUG 2025-11-20 15:07:19,658 urllib3.connectionpool:_make_request 544 https://XX.XX.XX.XX:8006 &quot;GET /api2/json/cluster/ha/groups HTTP/1.1&quot; 500 86

Данная проблема связана с тем, что с версии Proxmox 9.* API запрос GET /api2/json/cluster/ha/groups устарел.
HA Groups are deprecated and migrated to HA Node Affinity rules since Proxmox VE 9.0. (https://pve.proxmox.com/wiki/High_Availability)

Вместно него предлагается использование GET /api2/json/cluster/ha/rules
--- a/client.py
+++ b/client.py
@@ -461,7 +461,7 @@ class ProxmoxClient:

     @cached(&apos;hagrps&apos;, consts.CACHE_DURATION, key_helper=caching_key_helper)
     def list_ha_groups(self, **kwargs: typing.Any) -&gt; list[str]:
-        return [g[&apos;group&apos;] for g in self.do_get(&apos;cluster/ha/groups&apos;)[&apos;data&apos;]]
+        return [g[&apos;group&apos;] for g in self.do_get(&apos;cluster/ha/rules&apos;)[&apos;data&apos;]]

     def enable_vm_ha(self, vmid: int, started: bool = False, group: typing.Optional[str] = None) -&gt; None:
         &quot;&quot;&quot;

Шаги воспроизведения:
1) В OpenUDS Server открыть страницу Поставщики услуг, нажать Новый → Поставщик платформы Proxmox
2) Вкладка Основной:
- Имя: pve
- Хост: Адрес хоста pve01
- Пароль пользователя root
3) Нажать Сохранить.
4) Нажать два раза на созданного поставщика.
5) Нажать Новый → Связанный клон Proxmox</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>278045</commentid>
    <comment_count>1</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2025-11-28 02:49:57 +0300</bug_when>
    <thetext>openuds-server-4.0.0-alt5 -&gt; sisyphus:

Fri Nov 28 2025 Alexander Burmatov &lt;thatman@altlinux&gt; 4.0.0-alt5
- Fix deprecated request to PVE 9 (ALT #56944) (thx smasher@).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>