Hello,
I one of my long running and long existing VMs cannot be started anymore - it fails with a strange error message ($subject). I tried to delete it and attach its persistent disk to a different VM - I get the same error message in the VM error log.
Versions of the related components and OS (frontend, hypervisors, VMs):
OpenNebula 6.2 community edition
Steps to reproduce:
onevm attach 5443 --image 120
Current results:
No disk is attached (logs below).
Expected results:
Another disk should be visible from the VM.
** Log file snippet: **
Tue May 24 14:11:52 2022 [Z0][VM][I]: New LCM state is HOTPLUG
Tue May 24 14:11:54 2022 [Z0][VMM][I]: Successfully execute transfer manager driver operation: tm_attach.
Tue May 24 14:11:55 2022 [Z0][VMM][I]: Command execution fail (exit code: 1): cat << EOT | /var/lib/one/tmp/vmm/kvm/attach_disk '...ea' '/var/lib/one//datastores/0/5443/disk.2' 'sdb' '1' 'P...T4=' 5443 myhostname
Tue May 24 14:11:55 2022 [Z0][VMM][E]: attach_disk: Command "set -e -o pipefail
Tue May 24 14:11:55 2022 [Z0][VMM][I]: virsh --connect qemu:///system attach-device ...ea <(
Tue May 24 14:11:55 2022 [Z0][VMM][I]: cat <<EOT
Tue May 24 14:11:55 2022 [Z0][VMM][I]: <disk type='network' device='disk'><driver name='qemu' type='save_as' cache='none' discard='unmap'/><source name='one/one-120' protocol='rbd'><host name='ceph-mon1'/><host name='ceph-mon2'/><host name='ceph-mon3'/></source> <auth username='libvirt'> <secret type='ceph' uuid='...'/> </auth><target dev='sdb'/><address type='drive' controller='0' bus='0' target='1' unit='0'/></disk>
Tue May 24 14:11:55 2022 [Z0][VMM][I]: EOT
Tue May 24 14:11:55 2022 [Z0][VMM][I]: )" failed: error: Failed to attach device from /dev/fd/63
Tue May 24 14:11:55 2022 [Z0][VMM][I]: error: unsupported configuration: unknown driver format value 'save_as'
Tue May 24 14:11:55 2022 [Z0][VMM][I]: Could not attach one/one-120 (sdb) to ...ea
Tue May 24 14:11:55 2022 [Z0][VMM][I]: ExitCode: 1
Tue May 24 14:11:55 2022 [Z0][VMM][I]: Successfully execute transfer manager driver operation: tm_detach.
Tue May 24 14:11:55 2022 [Z0][VMM][I]: Failed to execute virtualization driver operation: attach_disk.
The image itself indeed has FORMAT=save_as
attribute, which is not visible in Sunstone, only in the command line:
oneimage show 120
IMAGE 120 INFORMATION
ID : 120
NAME : Image Name
USER : oneadmin
GROUP : somegroup
LOCK : None
DATASTORE : cephds
TYPE : OS
REGISTER TIME : 05/09 16:26:13
PERSISTENT : Yes
SOURCE : one/one-120
PATH : one/one-94
FORMAT : save_as
SIZE : 20G
STATE : rdy
RUNNING_VMS : 0
PERMISSIONS
OWNER : um-
GROUP : um-
OTHER : ---
IMAGE SNAPSHOTS
AC ID PARENT DATE SIZE NAME
=> 0 -1 01/04 15:25:18 20G 2017-01-04-mysnapshot
IMAGE TEMPLATE
DEV_PREFIX="sd"
VIRTUAL MACHINES
What should I do in order to be able to attach this disk to a vm? Thanks!
-Yenya