Bug 53490 - Ошибка при добавлении хранилища
Summary: Ошибка при добавлении хранилища
Status: NEW
Alias: None
Product: Sisyphus
Classification: Development
Component: opennebula-addon-linstor_un (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Andrew Vasilyev
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-17 17:40 MSK by Alexander Makeenkov
Modified: 2025-03-18 18:06 MSK (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Makeenkov 2025-03-17 17:40:37 MSK
Версия пакета: 1.8.2-alt3
Версия opennebula: 6.8.0.1-alt4
Версия linstor: 1.30.4-alt3

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

==> oned.log <==
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 <main>': undefined method `elements' 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'
Mon Mar 17 16:52:24 2025 [Z0][ImM][I]: from /var/lib/one/remotes/datastore/linstor_un/../xpath.rb:64:in `<main>'
Mon Mar 17 16:52:24 2025 [Z0][ImM][I]: Datastore template missing 'STORAGE_POOL' 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 <main>': undefined method `elements' for nil:NilClass (NoMethodError)          element = xml.elements[xpath.dup]                      ^^^^^^^^^  from /var/lib/one/remotes/datastore/linstor_un/../xpath.rb:64:in `each'         from /var/lib/one/remotes/datastore/linstor_un/../xpath.rb:64:in `<main>' Datastore template missing 'STORAGE_POOL' attribute.

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

Шаблон:
# cat images-ds.conf 
NAME="linstor-images"
TYPE="IMAGE_DS"
STORAGE_POOL="data"
AUTO_PLACE="2"
BRIDGE_LIST="node1 node2 node3"
DISK_TYPE="BLOCK"
DS_MAD="linstor_un"
TM_MAD="linstor_un"
Comment 1 Alexander Burmatov 2025-03-18 18:06:59 MSK
Попробовал воспроизвести ошибку:
> onedatastore create images-ds.conf
ID: 102
Все создается, не удалось воспроизвести.