-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using controller node for mv method #19
Comments
Well yes, this is the call the plugin gets from OpenNebula: And if this manage node is part of the linstor cluster AFAIK it would maximum create a diskless resource and keep the everything as it is. |
Hello! |
I think it should be enough if it is only a diskless node. So no extra storage pool needed. |
Got it, thank you. |
Hello again :) on linstor-controller: linstor node create hosting-cntl 10.249.252.4 OutputSUCCESS:
Description:
New node 'hosting-cntl' registered.
Details:
Node 'hosting-cntl' UUID is: 3a2f900c-4bf5-4f00-a28e-f8f47a0da2ed
SUCCESS:
Description:
Node 'hosting-cntl' authenticated
Details:
Supported storage providers: [diskless, lvm, lvm_thin, file, file_thin, remote_spdk, ebs_init, ebs_target]
Supported resource layers : [writecache, cache, storage]
Unsupported storage providers:
ZFS: 'cat /sys/module/zfs/version' returned with exit code 1
IO exception occured when running 'zfs '-?'': Cannot run program "zfs": error=2, No such file or directory
ZFS_THIN: 'cat /sys/module/zfs/version' returned with exit code 1
IO exception occured when running 'zfs '-?'': Cannot run program "zfs": error=2, No such file or directory
SPDK: IO exception occured when running 'rpc.py spdk_get_version': Cannot run program "rpc.py": error=2, No such file or directory
EXOS: IO exception occured when running 'lsscsi --version': Cannot run program "lsscsi": error=2, No such file or directory
'/bin/bash -c 'cat /sys/class/sas_phy/*/sas_address'' returned with exit code 1
'/bin/bash -c 'cat /sys/class/sas_device/end_device-*/sas_address'' returned with exit code 1
STORAGE_SPACES: This tool does not exist on the Linux platform.
STORAGE_SPACES_THIN: This tool does not exist on the Linux platform.
Unsupported resource layers:
DRBD: IOException occurred when checking the 'drbdadm --version'
IOException occurred when checking the 'drbdadm --version'
LUKS: IO exception occured when running 'cryptsetup --version': Cannot run program "cryptsetup": error=2, No such file or directory
NVME: IO exception occured when running 'nvme version': Cannot run program "nvme": error=2, No such file or directory
BCACHE: IO exception occured when running 'make-bcache -h': Cannot run program "make-bcache": error=2, No such file or directory then linstor storage-pool create lvmthin hosting-cntl data drbdpool/thinpool OutputSUCCESS:
Successfully set property key(s): StorDriver/StorPoolName
SUCCESS:
Description:
New storage pool 'data' on node 'hosting-cntl' registered.
Details:
Storage pool 'data' on node 'hosting-cntl' UUID is: 9705ff5d-b1e6-410e-8e38-d9a1b9d59b82
SUCCESS:
(hosting-cntl) Changes applied to storage pool 'data' root@linstor-cntl:~# linstor n l
╭──────────────────────────────────────────────────────────────────╮
┊ Node ┊ NodeType ┊ Addresses ┊ State ┊
╞══════════════════════════════════════════════════════════════════╡
┊ hosting-cntl ┊ SATELLITE ┊ 10.249.252.4:3366 (PLAIN) ┊ Online ┊
┊ onenode-prg-01 ┊ SATELLITE ┊ 10.249.252.10:3366 (PLAIN) ┊ Online ┊
┊ onenode-prg-02 ┊ SATELLITE ┊ 10.249.252.11:3366 (PLAIN) ┊ Online ┊
┊ onenode-prg-03 ┊ SATELLITE ┊ 10.249.252.12:3366 (PLAIN) ┊ Online ┊
╰──────────────────────────────────────────────────────────────────╯
root@linstor-cntl:~# linstor sp l
╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
┊ StoragePool ┊ Node ┊ Driver ┊ PoolName ┊ FreeCapacity ┊ TotalCapacity ┊ CanSnapshots ┊ State ┊ SharedName ┊
╞══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╡
┊ DfltDisklessStorPool ┊ hosting-cntl ┊ DISKLESS ┊ ┊ ┊ ┊ False ┊ Ok ┊ hosting-cntl;DfltDisklessStorPool ┊
┊ DfltDisklessStorPool ┊ onenode-prg-01 ┊ DISKLESS ┊ ┊ ┊ ┊ False ┊ Ok ┊ onenode-prg-01;DfltDisklessStorPool ┊
┊ DfltDisklessStorPool ┊ onenode-prg-02 ┊ DISKLESS ┊ ┊ ┊ ┊ False ┊ Ok ┊ onenode-prg-02;DfltDisklessStorPool ┊
┊ DfltDisklessStorPool ┊ onenode-prg-03 ┊ DISKLESS ┊ ┊ ┊ ┊ False ┊ Ok ┊ onenode-prg-03;DfltDisklessStorPool ┊
┊ data ┊ hosting-cntl ┊ LVM_THIN ┊ drbdpool/thinpool ┊ 29.93 GiB ┊ 29.93 GiB ┊ True ┊ Ok ┊ hosting-cntl;data ┊
┊ data ┊ onenode-prg-01 ┊ LVM_THIN ┊ drbdpool/thinpool ┊ 3.49 TiB ┊ 3.49 TiB ┊ True ┊ Ok ┊ onenode-prg-01;data ┊
┊ data ┊ onenode-prg-02 ┊ LVM_THIN ┊ drbdpool/thinpool ┊ 3.49 TiB ┊ 3.49 TiB ┊ True ┊ Ok ┊ onenode-prg-02;data ┊
┊ data ┊ onenode-prg-03 ┊ LVM_THIN ┊ drbdpool/thinpool ┊ 3.49 TiB ┊ 3.49 TiB ┊ True ┊ Ok ┊ onenode-prg-03;data ┊
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ But still cannot call STOP (method "save"): Fri Apr 26 13:18:13 2024 [Z0][VM][I]: New LCM state is SAVE_STOP
Fri Apr 26 13:18:15 2024 [Z0][VMM][I]: ExitCode: 0
Fri Apr 26 13:18:15 2024 [Z0][VMM][I]: Successfully execute virtualization driver operation: save.
Fri Apr 26 13:18:15 2024 [Z0][VMM][I]: ExitCode: 0
Fri Apr 26 13:18:15 2024 [Z0][VMM][I]: Successfully execute network driver operation: clean.
Fri Apr 26 13:18:15 2024 [Z0][VM][I]: New LCM state is EPILOG_STOP
Fri Apr 26 13:18:16 2024 [Z0][TrM][I]: Command execution failed (exit code: 1): /var/lib/one/remotes/tm/linstor/mv onenode-prg-01:/var/lib/one//datastores/109/36/disk.0 hosting-cntl:/var/lib/one//datastores/109/36/disk.0 36 108
Fri Apr 26 13:18:16 2024 [Z0][TrM][I]: Traceback (most recent call last):
Fri Apr 26 13:18:16 2024 [Z0][TrM][I]: File "/var/lib/one/.local/lib/python3.9/site-packages/one/util.py", line 392, in run_main
Fri Apr 26 13:18:16 2024 [Z0][TrM][I]: main_func()
Fri Apr 26 13:18:16 2024 [Z0][TrM][I]: File "/var/lib/one/remotes/tm/linstor/mv", line 203, in main
Fri Apr 26 13:18:16 2024 [Z0][TrM][I]: move_linstor_resource(lin, src_host, src_path, dst_host, dst_path, dst_dir, res_name)
Fri Apr 26 13:18:16 2024 [Z0][TrM][I]: File "/var/lib/one/remotes/tm/linstor/mv", line 51, in move_linstor_resource
Fri Apr 26 13:18:16 2024 [Z0][TrM][I]: res.activate(dst_host)
Fri Apr 26 13:18:16 2024 [Z0][TrM][I]: File "/usr/lib/python3.9/dist-packages/linstor/resource.py", line 212, in wrapper
Fri Apr 26 13:18:16 2024 [Z0][TrM][I]: ret = f(self, *args, **kwargs)
Fri Apr 26 13:18:16 2024 [Z0][TrM][I]: File "/usr/lib/python3.9/dist-packages/linstor/resource.py", line 521, in activate
Fri Apr 26 13:18:16 2024 [Z0][TrM][I]: raise linstor.LinstorError('Could not make resource {} available on node {}: {}'
Fri Apr 26 13:18:16 2024 [Z0][TrM][I]: linstor.errors.LinstorError: Error: Could not make resource OpenNebula-Image-16-vm36-disk0(OpenNebula-Image-16-vm36-disk0) available on node hosting-cntl: ERRO:Autoplacer could not find diskless stor pool on node hosting-cntl matching resource-groups autoplace-settings
Fri Apr 26 13:18:16 2024 [Z0][TrM][E]: Error: Could not make resource OpenNebula-Image-16-vm36-disk0(OpenNebula-Image-16-vm36-disk0) available on node hosting-cntl: ERRO:Autoplacer could not find diskless stor pool on node hosting-cntl matching resource-groups autoplace-settings
Fri Apr 26 13:18:16 2024 [Z0][TrM][E]: Error executing image transfer script: Traceback (most recent call last): File "/var/lib/one/.local/lib/python3.9/site-packages/one/util.py", line 392, in run_main main_func() File "/var/lib/one/remotes/tm/linstor/mv", line 203, in main move_linstor_resource(lin, src_host, src_path, dst_host, dst_path, dst_dir, res_name) File "/var/lib/one/remotes/tm/linstor/mv", line 51, in move_linstor_resource res.activate(dst_host) File "/usr/lib/python3.9/dist-packages/linstor/resource.py", line 212, in wrapper ret = f(self, *args, **kwargs) File "/usr/lib/python3.9/dist-packages/linstor/resource.py", line 521, in activate raise linstor.LinstorError('Could not make resource {} available on node {}: {}' linstor.errors.LinstorError: Error: Could not make resource OpenNebula-Image-16-vm36-disk0(OpenNebula-Image-16-vm36-disk0) available on node hosting-cntl: ERRO:Autoplacer could not find diskless stor pool on node hosting-cntl matching resource-groups autoplace-settings ERROR: Error: Could not make resource OpenNebula-Image-16-vm36-disk0(OpenNebula-Image-16-vm36-disk0) available on node hosting-cntl: ERRO:Autoplacer could not find diskless stor pool on node hosting-cntl matching resource-groups autoplace-settings
Fri Apr 26 13:18:16 2024 [Z0][VM][I]: New LCM state is EPILOG_STOP_FAILURE |
|
Hi!
When you call method STOP for VM, opennebula uses controller as DST:
here
hosting-cntl
is just opennebula-controller (oned, sunstone etc). It's just virtual machine without any configured LVM pools. Moreover this host is not in Opennebula's hosts list.some details:
linstor -m n l
onedatastore show 108
onedatastore show 109
full log
journalctl -u opennebula
The text was updated successfully, but these errors were encountered: