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

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

    <bug>
          <bug_id>53490</bug_id>
          
          <creation_ts>2025-03-17 17:40:37 +0300</creation_ts>
          <short_desc>Ошибка при добавлении хранилища</short_desc>
          <delta_ts>2025-08-18 17:15:06 +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>opennebula-addon-linstor_un</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="Alexander Makeenkov">amakeenk</reporter>
          <assigned_to name="thatman@altlinux.org">thatman</assigned_to>
          <cc>burmatov202002</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>261206</commentid>
    <comment_count>0</comment_count>
    <who name="Alexander Makeenkov">amakeenk</who>
    <bug_when>2025-03-17 17:40:37 +0300</bug_when>
    <thetext>Версия пакета: 1.8.2-alt3
Версия opennebula: 6.8.0.1-alt4
Версия linstor: 1.30.4-alt3

При добавлении хранилища возникает ошибка:

==&gt; oned.log &lt;==
Mon Mar 17 16:52:24 2025 [Z0][InM][D]: Monitoring datastore linstor-images (102)
Mon Mar 17 16:52:24 2025 [Z0][ReM][D]: Req:3952 UID:0 one.datastore.allocate result SUCCESS, 102
Mon Mar 17 16:52:24 2025 [Z0][ImM][I]: Command execution failed (exit code: 255): /var/lib/one/remotes/datastore/linstor_un/monitor 102
Mon Mar 17 16:52:24 2025 [Z0][ImM][I]: /var/lib/one/remotes/datastore/linstor_un/../xpath.rb:70:in `block in &lt;main&gt;&apos;: undefined method `elements&apos; for nil:NilClass (NoMethodError)
Mon Mar 17 16:52:24 2025 [Z0][ImM][I]: 
Mon Mar 17 16:52:24 2025 [Z0][ImM][I]: element = xml.elements[xpath.dup]
Mon Mar 17 16:52:24 2025 [Z0][ImM][I]: ^^^^^^^^^
Mon Mar 17 16:52:24 2025 [Z0][ImM][I]: from /var/lib/one/remotes/datastore/linstor_un/../xpath.rb:64:in `each&apos;
Mon Mar 17 16:52:24 2025 [Z0][ImM][I]: from /var/lib/one/remotes/datastore/linstor_un/../xpath.rb:64:in `&lt;main&gt;&apos;
Mon Mar 17 16:52:24 2025 [Z0][ImM][I]: Datastore template missing &apos;STORAGE_POOL&apos; attribute.
Mon Mar 17 16:52:24 2025 [Z0][ImM][E]: Error monitoring datastore 102: L3Zhci9saWIvb25lL3JlbW90ZXMvZGF0YXN0b3JlL2xpbnN0b3JfdW4vLi4veHBhdGgucmI6NzA6aW4gYGJsb2NrIGluIDxtYWluPic6IHVuZGVmaW5lZCBtZXRob2QgYGVsZW1lbnRzJyBmb3IgbmlsOk5pbENsYXNzIChOb01ldGhvZEVycm9yKSAgICAgICAgICBlbGVtZW50ID0geG1sLmVsZW1lbnRzW3hwYXRoLmR1cF0gICAgICAgICAgICAgICAgICAgICAgXl5eXl5eXl5eIAlmcm9tIC92YXIvbGliL29uZS9yZW1vdGVzL2RhdGFzdG9yZS9saW5zdG9yX3VuLy4uL3hwYXRoLnJiOjY0OmluIGBlYWNoJyAJZnJvbSAvdmFyL2xpYi9vbmUvcmVtb3Rlcy9kYXRhc3RvcmUvbGluc3Rvcl91bi8uLi94cGF0aC5yYjo2NDppbiBgPG1haW4+JyBEYXRhc3RvcmUgdGVtcGxhdGUgbWlzc2luZyAnU1RPUkFHRV9QT09MJyBhdHRyaWJ1dGUu. Decoded info: /var/lib/one/remotes/datastore/linstor_un/../xpath.rb:70:in `block in &lt;main&gt;&apos;: undefined method `elements&apos; for nil:NilClass (NoMethodError)          element = xml.elements[xpath.dup]                      ^^^^^^^^^  from /var/lib/one/remotes/datastore/linstor_un/../xpath.rb:64:in `each&apos;         from /var/lib/one/remotes/datastore/linstor_un/../xpath.rb:64:in `&lt;main&gt;&apos; Datastore template missing &apos;STORAGE_POOL&apos; attribute.

Команда добавления:
# onedatastore create images-ds.conf

Шаблон:
# cat images-ds.conf 
NAME=&quot;linstor-images&quot;
TYPE=&quot;IMAGE_DS&quot;
STORAGE_POOL=&quot;data&quot;
AUTO_PLACE=&quot;2&quot;
BRIDGE_LIST=&quot;node1 node2 node3&quot;
DISK_TYPE=&quot;BLOCK&quot;
DS_MAD=&quot;linstor_un&quot;
TM_MAD=&quot;linstor_un&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>261336</commentid>
    <comment_count>1</comment_count>
    <who name="Alexander Burmatov">burmatov202002</who>
    <bug_when>2025-03-18 18:06:59 +0300</bug_when>
    <thetext>Попробовал воспроизвести ошибку:
&gt; onedatastore create images-ds.conf
ID: 102
Все создается, не удалось воспроизвести.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>