Hi!
I’m working on the vCloud driver for OpenNebula and now I’m trying to add the attach_disk capability to the driver. First I want to try to attach volatile disks.
I have some problems with the connection between one core and the attach_disk action file and for that I need to understand which ONE files are executed in the attach_disk call.
I think that ONE core don’t execute var/lib/one/remotes/vmm/vcloud/attach_disk, but I don’t know why.
When I attach disk from sunstone, the VM still in HOTPLUG state and don’t change the state.
I have checked oned.log file and the action was executed succesfully.
Mon Nov 14 15:06:27 2016 [Z0][ReM][D]: Req:3440 UID:0 VirtualMachineAttach invoked , 663, "DISK=[…"
Mon Nov 14 15:06:28 2016 [Z0][ReM][D]: Req:3440 UID:0 VirtualMachineAttach result SUCCESS, 663
The driver’s entry in oned.conf is this:
VM_MAD = [
NAME = “vcloud”,
SUNSTONE_NAME = “VMWare vCloud”,
EXECUTABLE = “one_vmm_sh”,
ARGUMENTS = “-p -t 15 -r 0 vcloud -s sh”,
TYPE = “xml”,
KEEP_SNAPSHOTS = “yes”,
IMPORTED_VMS_ACTIONS = “terminate, terminate-hard, hold, release, suspend,
resume, delete, reboot, reboot-hard, resched, unresched, poweroff,
poweroff-hard, disk-attach, disk-detach, nic-attach, nic-detach,
snap-create, snap-delete”
]
I started to follow the chain of calls:
one_vmm_sh -> one_vmm_exec -> madcommon.sh -> one_vmm_exec.rb --> function attach_disk
-> tm_attach I don’t know what is doing this.
-> var/lib/one/remotes/vmm/vcloud/attach_disk
I don’t know where is the trouble and where the chain of calls is stopped, has someone any idea?
Thanks.