Not able to attach a disk to VM (CEPH)

We’re running OpenNebula with a CEPH datastore. Currently we’re trying to attach new disks (raw format) but everytime we we get an qemu error:

Sat Nov 11 15:24:40 2017 [Z0][VM][I]: New LCM state is HOTPLUG
Sat Nov 11 15:24:41 2017 [Z0][VMM][I]: Successfully execute transfer manager driver operation: tm_attach.
Sat Nov 11 15:24:41 2017 [Z0][VMM][I]: Command execution fail: cat << EOT | /var/tmp/one/vmm/kvm/attach_disk 'one-21404' '/var/lib/one//datastores/100/21404/disk.2' 'vdb' '1' 'PFZNTV9EUklWRVJfQUNUSU9OX0RBVEE+PEhPU1Q+c2VydmVyMzwvSE9TVD48TUlHUl9IT1NULz48REVQTE9ZX0lEPm9uZS0yMTQwNDwvREVQTE9ZX0lEPjxMT0NBTF9ERVBMT1lNRU5UX0ZJTEUvPjxSRU1PVEVfREVQTE9ZTUVOVF9GSUxFLz48Q0hFQ0tQT0lOVF9GSUxFLz48VE1fQ09NTUFORD48IVtDREFUQVtNS0lNQUdFIGNlcGggMTAyNCByYXcgc2VydmVyMzovdmFyL2xpYi9vbmUvL2RhdGFzdG9yZXMvMTAwLzIxNDA0L2Rpc2suMiAyMTQwNCAxMDAKXV0+PC9UTV9DT01NQU5EPjxUTV9DT01NQU5EX1JPTExCQUNLPjwhW0NEQVRBW0RFTEVURSBjZXBoIHNlcnZlcjM6L3Zhci9saWIvb25lLy9kYXRhc3RvcmVzLzEwMC8yMTQwNC9kaXNrLjIgMjE0MDQgMTAwCl1dPjwvVE1fQ09NTUFORF9ST0xMQkFDSz48RElTS19UQVJHRVRfUEFUSD4vdmFyL2xpYi9vbmUvL2RhdGFzdG9yZXMvMTAwLzIxNDA0L2Rpc2suMjwvRElTS19UQVJHRVRfUEFUSD48Vk0+PElEPjIxNDA0PC9JRD48VUlEPjIzPC9VSUQ+PEdJRD4wPC9HSUQ+PFVOQU1FPmRvbWluaXF1ZS5yb3V4QHVuZ2xlaWNoLmNoPC9VTkFNRT48R05BTUU+b25lYWRtaW48L0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25lXV0+PC9QT09MX05BTUU+PFNIQVJFRD48IVtDREFUQVtZRVNdXT48L1NIQVJFRD48VE1fTUFEPjwhW0NEQVRBW2NlcGhdXT48L1RNX01BRD48VFlQRT48IVtDREFUQVtTWVNURU1fRFNdXT48L1RZUEU+PC9URU1QTEFURT48L0RBVEFTVE9SRT48L1ZNTV9EUklWRVJfQUNUSU9OX0RBVEE+' 21404 server3
Sat Nov 11 15:24:41 2017 [Z0][VMM][E]: attach_disk: Command "virsh --connect qemu:///system attach-device one-21404 /var/lib/one//datastores/100/21404/disk.2.attach" failed: error: Failed to attach device from /var/lib/one//datastores/100/21404/disk.2.attach
Sat Nov 11 15:24:41 2017 [Z0][VMM][I]: error: Cannot access storage file '/var/lib/one//datastores/100/21404/disk.2' (as uid:1001, gid:1001): No such file or directory
Sat Nov 11 15:24:41 2017 [Z0][VMM][E]: Could not attach /var/lib/one//datastores/100/21404/disk.2 (vdb) to one-21404
Sat Nov 11 15:24:41 2017 [Z0][VMM][I]: ExitCode: 1
Sat Nov 11 15:24:42 2017 [Z0][VMM][I]: Successfully execute transfer manager driver operation: tm_detach.
Sat Nov 11 15:24:42 2017 [Z0][VMM][I]: Failed to execute virtualization driver operation: attach_disk.
Sat Nov 11 15:24:42 2017 [Z0][VMM][E]: Error attaching new VM Disk: Could not attach /var/lib/one//datastores/100/21404/disk.2 (vdb) to one-21404
Sat Nov 11 15:24:42 2017 [Z0][VM][I]: New LCM state is RUNNING

Informations:

OpenNebula Version: 5.4.1
libvirt 1.2.9
Datastore 100 is a CEPH datastore
Images are in raw format

Thanks a lot for your help!

Kind regards

Dominique

Hello,
If you mean attach Volatile disk - change DISK_TYPE in datastore attributes. You need change FILE to RBD.

P.S. Thanks @heathen for help!

2 Likes

Can you link to the post where @heathen provided the help?

I wrote the solution to the problem.

I understand from your post that @heathen has discussed this particular problem already somewhere.

It does not matter. It was a private discussion. Stop flooding

Hi, @marcindulak!

We have a private messages discussion: Anton has asked me about the same problem and I advised him to change DISK_TYPE property of the ceph system datastore from FILE to RBD. In this case it’s possible to have volatile disks on the rbd ceph pool.

BR

Hi @UAnton!

Thanks for your help.

The image datastore is already DISK_TYPE RBD
Do I have to set this attribute also in the system datastore?

Hello,
Yes, you need chenge this attribute in the system datastore.

hmm… @UAnton I still get the same error…

All used datastores now uses DISK_TYPE RBD

Hi, Dominique!

Please, list all of your datastores with onedatastore list and then fire onedatastore show <ID> with each datastore ID you have and then paste here the output. You may want to remove host\secret information.

BR,
Vladimir

onedatastore list:

 ID NAME                SIZE AVAIL CLUSTERS     IMAGES TYPE DS      TM      STAT
   0 system                 - -     0                 0 sys  -       ssh     off
   2 files              18.2G 26%   0                 0 fil  fs      ssh     on  
 100 ceph_system         5.8T 66%   0                 0 sys  -       ceph    on  
 101 cephds              5.8T 66%   0                40 img  ceph    ceph    on  
 103 ceph_hdd_ds        12.7T 99%   0                 6 img  ceph    ceph    on 

onedatastore show 100

DATASTORE 100 INFORMATION                                                       
ID             : 100                 
NAME           : ceph_system         
USER           : USER            
GROUP          : GROUP            
CLUSTERS       : 0                   
TYPE           : SYSTEM              
DS_MAD         : -                   
TM_MAD         : ceph                
BASE PATH      : /var/lib/one//datastores/100
DISK_TYPE      : RBD                 
STATE          : READY               

DATASTORE CAPACITY                                                              
TOTAL:         : 5.8T                
FREE:          : 3.8T                
USED:          : 2T                  
LIMIT:         : -                   

PERMISSIONS                                                                     
OWNER          : um-                 
GROUP          : u--                 
OTHER          : ---                 

DATASTORE TEMPLATE                                                              
ALLOW_ORPHANS="NO"
BRIDGE_LIST="SERVERS"
CEPH_HOST="SERVERS"
CEPH_SECRET="SECRET"
CEPH_USER="libvirt"
DISK_TYPE="RBD"
DS_MIGRATE="NO"
NAME="ceph_system"
POOL_NAME="one"
SHARED="YES"
TM_MAD="ceph"
TYPE="SYSTEM_DS"       

onedatastore show 101:

DATASTORE 101 INFORMATION                                                       
ID             : 101                 
NAME           : cephds              
USER           : USER            
GROUP          : GROUP
CLUSTERS       : 0                   
TYPE           : IMAGE               
DS_MAD         : ceph                
TM_MAD         : ceph                
BASE PATH      : /var/lib/one//datastores/101
DISK_TYPE      : RBD                 
STATE          : READY               

DATASTORE CAPACITY                                                              
TOTAL:         : 3.2T                
FREE:          : 1.3T                
USED:          : 2T                  
LIMIT:         : -                   

PERMISSIONS                                                                     
OWNER          : um-                 
GROUP          : u--                 
OTHER          : ---                 

DATASTORE TEMPLATE                                                              
BRIDGE_LIST="SERVERS"
CEPH_HOST="SERVERS"
CEPH_SECRET="SECRET"
CEPH_USER="libvirt"
CLONE_TARGET="SELF"
DISK_TYPE="RBD"
DRIVER="raw"
DS_MAD="ceph"
LN_TARGET="NONE"
NAME="cephds"
POOL_NAME="one"
STAGING_DIR="/var/tmp/one-staging/"
TM_MAD="ceph"
TYPE="IMAGE_DS"

onedatastore show 103

DATASTORE 103 INFORMATION                                                       
ID             : 103                 
NAME           : ceph_hdd_ds         
USER           : USER            
GROUP          : GROUP            
CLUSTERS       : 0                   
TYPE           : IMAGE               
DS_MAD         : ceph                
TM_MAD         : ceph                
BASE PATH      : /var/lib/one//datastores/103
DISK_TYPE      : RBD                 
STATE          : READY               

DATASTORE CAPACITY                                                              
TOTAL:         : 4.3T                
FREE:          : 4.2T                
USED:          : 110.4G              
LIMIT:         : -                   

PERMISSIONS                                                                     
OWNER          : um-                 
GROUP          : u--                 
OTHER          : ---                 

DATASTORE TEMPLATE                                                              
ALLOW_ORPHANS="NO"
BRIDGE_LIST="SERVERS"
CEPH_HOST="SERVERS"
CEPH_SECRET="SECRET"
CEPH_USER="libvirt"
CLONE_TARGET="SELF"
DISK_TYPE="RBD"
DRIVER="raw"
DS_MAD="ceph"
LN_TARGET="NONE"
POOL_NAME="one-hdd"
STAGGING_DIR="/var/tmp/one-staging"
TM_MAD="ceph"
TYPE="IMAGE_DS"

onedatastore show 2

DATASTORE 2 INFORMATION                                                         
ID             : 2                   
NAME           : files               
USER           : USER            
GROUP          : GROUP            
CLUSTERS       : 0                   
TYPE           : FILE                
DS_MAD         : fs                  
TM_MAD         : ssh                 
BASE PATH      : /var/lib/one//datastores/2
DISK_TYPE      : FILE                
STATE          : READY               

DATASTORE CAPACITY                                                              
TOTAL:         : 18.2G               
FREE:          : 4.8G                
USED:          : 12.5G               
LIMIT:         : -                   

PERMISSIONS                                                                     
OWNER          : um-                 
GROUP          : u--                 
OTHER          : ---                 

DATASTORE TEMPLATE                                                              
CLONE_TARGET="SYSTEM"
DS_MAD="fs"
LN_TARGET="SYSTEM"
RESTRICTED_DIRS="/"
SAFE_DIRS="/var/tmp"
TM_MAD="ssh"
TYPE="FILE_DS"

datastore 0 I left out since it is turned off

This is pretty weird. Would you mind to paste /var/lib/one//datastores/100/21404/disk.2.attach content as well?

By the way, if you’ve made a clean ONE 5.4 install oneadmin:onegroup should has uid\gid 9869 (I see that your’s is uid:1001, gid:1001). Please check ONE processes and /var/lib/one/datastores/100/21404/* permissions.

Is error the same after you changed DISK_TYPE to RBD? Did you restart opennebula service (it should work even ?

cat /var/lib/one//datastores/100/21404/disk.2.attach

<disk type='file' device='disk'>
  <driver name='qemu' type='raw'  />
  <source file='/var/lib/one//datastores/100/21404/disk.2' >
  
  </source>
  
  <target dev='vdb'/>
  
</disk>

User permissions are correct

Yes the same error as before.
No I didn’t restart the opennebula service => Will do this during this day.

Thank you very much!

That’s pretty weird, it shouldn’t be like that. It should point to RBD image on the ceph pool if your disk type is RBD and storage driver is ceph.

I’ve made a test. I changed DISK_TYPE of my system ds to FILE and tried to attach a volatile FS (swap should be the same) disk. Got the same error as you (see below). Then I changed DISK_TYPE back to RBD and repeat attempt. This time successful. The only difference between your’s and my DS properties is ALLOW_ORPHANS (I’ve set it to YES), but it shouldn’t have any influence.

My log (failed the first and successful the second)
Tue Nov 14 22:44:30 2017 [Z0][VM][I]: New LCM state is HOTPLUG
Tue Nov 14 22:44:31 2017 [Z0][VMM][I]: Successfully execute transfer manager driver operation: tm_attach.
Tue Nov 14 22:44:31 2017 [Z0][VMM][I]: Command execution fail: cat << EOT | /var/tmp/one/vmm/kvm/attach_disk 'one-21164' '/var/lib/one//datastores/0/64/disk.2' 'vdb' '1' 'PFZNTV9EUklWRVJfQUNU...'  21164 e002n02
Tue Nov 14 22:44:31 2017 [Z0][VMM][E]: attach_disk: Command "virsh --connect qemu:///system attach-device one-64 /var/lib/one//datastores/0/64/disk.2.attach" failed: error: Failed to attach device from /var/lib/one//datastores/0/64/disk.2.attach
Tue Nov 14 22:44:31 2017 [Z0][VMM][I]: error: Cannot access storage file '/var/lib/one//datastores/0/64/disk.2' (as uid:9869, gid:9869): No such file or directory
Tue Nov 14 22:44:32 2017 [Z0][VMM][E]: Could not attach /var/lib/one//datastores/0/64/disk.2 (vdb) to one-64
Tue Nov 14 22:44:32 2017 [Z0][VMM][I]: ExitCode: 1
Tue Nov 14 22:44:33 2017 [Z0][VMM][I]: Successfully execute transfer manager driver operation: tm_detach.
Tue Nov 14 22:44:33 2017 [Z0][VMM][I]: Failed to execute virtualization driver operation: attach_disk.
Tue Nov 14 22:44:33 2017 [Z0][VMM][E]: Error attaching new VM Disk: Could not attach /var/lib/one//datastores/0/64/disk.2 (vdb) to one-64
Tue Nov 14 22:44:33 2017 [Z0][VM][I]: New LCM state is RUNNING

Followed by

Tue Nov 14 22:45:50 2017 [Z0][VM][I]: New LCM state is HOTPLUG
Tue Nov 14 22:45:52 2017 [Z0][VMM][I]: Successfully execute transfer manager driver operation: tm_attach.
Tue Nov 14 22:45:52 2017 [Z0][VMM][I]: ExitCode: 0
Tue Nov 14 22:45:52 2017 [Z0][VMM][I]: Successfully execute virtualization driver operation: attach_disk.
Tue Nov 14 22:45:52 2017 [Z0][VMM][I]: VM Disk successfully attached.
Tue Nov 14 22:45:52 2017 [Z0][VM][I]: New LCM state is RUNNING

I didn’t even restart ONE.

I would strongly advice you to check again that the DS 100 DISK_TYPE value is RBD (without any hidden characters, spaces and so on).

I managed to add a voltaile disk. But only if the VM was deployed on a specific server.
We currently have 5 servers with 2 different OS states (2 are newer than the other 3)

So probably it’s caused by this.
Also already created images couldn’t be attached. But there I assume it’s a Parameter problem…

=> I will dig into it

Thank you very much @heathen for your help!

1 Like

Sorry to “reopen” this issue
But I tried to add already created images, so which are already shown as one images, and I get the following error:

Sat Dec  9 18:07:18 2017 [Z0][VMM][D]: Message received: LOG E 22734 attach_disk: Command "virsh --connect qemu:///system attach-device one-22734 /var/lib/one//datastores/100/22734/disk.2.attach" failed: error: Failed to attach device from /var/lib/one//datastores/100/22734/disk.2.attach

Sat Dec  9 18:07:18 2017 [Z0][VMM][D]: Message received: LOG I 22734 error: internal error: unable to execute QEMU command 'device_add': Property 'virtio-blk-device.drive' can't find value 'drive-virtio-disk1'

Sat Dec  9 18:07:18 2017 [Z0][VMM][D]: Message received: LOG E 22734 Could not attach one/one-sys-22734-2 (vdb) to one-22734

It now is a different error, probably I’m missing something

Thanks for your help

Kind regards

I’m still getting this error from qemu, which I’m not able to resolve

Any help?

Thanks a lot!

ONE - 5.4.1
OS - Ubuntu 16.04

sudo dpkg -l | grep qemu-block-extra
ii qemu-block-extra:amd64 1:2.5+dfsg-5ubuntu10.16 amd64 extra block
sudo dpkg -l | grep libvirt
ii libvirt-bin 1.3.1-1ubuntu10.15 amd64 programs for the libvirt
ii libvirt0:amd64 1.3.1-1ubuntu10.15 amd64 library for interfacing
ii python-libvirt 1.3.1-1ubuntu1.1 amd64 libvirt Python bindings

I am trying to hot plug virtio disk which was created in ONE and I am also getting the same error as above


sudo grep -r ‘drive-virtio-disk1’ *
one/15.log:Sat Dec 23 19:47:54 2017 [Z0][VMM][I]: error: internal error: unable to execute QEMU command ‘device_add’: Property ‘virtio-blk-device.drive’ can’t find value 'drive-virtio-disk1’
one/15.log:Sat Dec 23 19:48:59 2017 [Z0][VMM][I]: error: internal error: unable to execute QEMU command ‘device_add’: Property ‘virtio-blk-device.drive’ can’t find value 'drive-virtio-disk1’
one/15.log:Sat Dec 23 20:04:34 2017 [Z0][VMM][I]: error: internal error: unable to execute QEMU command ‘device_add’: Property ‘virtio-blk-device.drive’ can’t find value 'drive-virtio-disk1’
one/15.log:Sat Dec 23 20:52:40 2017 [Z0][VMM][I]: error: internal error: unable to execute QEMU command ‘device_add’: Property ‘virtio-blk-device.drive’ can’t find value 'drive-virtio-disk1’
one/oned.log:Sat Dec 23 19:47:54 2017 [Z0][VMM][D]: Message received: LOG I 15 error: internal error: unable to execute QEMU command ‘device_add’: Property ‘virtio-blk-device.drive’ can’t find value 'drive-virtio-disk1’
one/oned.log:Sat Dec 23 19:48:59 2017 [Z0][VMM][D]: Message received: LOG I 15 error: internal error: unable to execute QEMU command ‘device_add’: Property ‘virtio-blk-device.drive’ can’t find value 'drive-virtio-disk1’
one/oned.log:Sat Dec 23 20:04:34 2017 [Z0][VMM][D]: Message received: LOG I 15 error: internal error: unable to execute QEMU command ‘device_add’: Property ‘virtio-blk-device.drive’ can’t find value 'drive-virtio-disk1’
one/oned.log:Sat Dec 23 20:52:39 2017 [Z0][VMM][D]: Message received: LOG I 15 error: internal error: unable to execute QEMU command ‘device_add’: Property ‘virtio-blk-device.drive’ can’t find value ‘drive-virtio-disk1’

I found a bug but it seems to be related to rados block and it is quite old so not sure if this is still relevant - https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1495895

Any one having issues with Ubuntu16.04 + ONE while adding virtio disk?

Also if anyone could suggest if Centos7 KVM Packages are much stable or are they having such same issues?

Regards
Kiran R

Haven’t been here for a while…

You definitely have configuration issues. Please be sure you have the latest OpenNebula, and force driver sync between hosts with (from your ONE controller): onehost sync --force.