Bug #1480

Hot-plugging attachement not working if contextualisation disk present

Added by Emmanuel Mathot almost 9 years ago. Updated over 8 years ago.

Status:ClosedStart date:09/18/2012
Priority:NormalDue date:
Assignee:Carlos Martín% Done:

0%

Category:Core & System
Target version:Release 3.8
Resolution:fixed Pull request:
Affected Versions:OpenNebula 3.6

Description

the clone of the new disk to attach fails because it tries to overwrite the context disk.

To reproduce:

- Instantiate a VM with 3 disks and a contextualisation disk
- detach the second disk
- attach a new disk

--> the problem is that the new disk tries to take place of the context disk

see log (disk.5 is the context disk)

Tue Sep 18 15:13:09 2012 [VMM][I]: Command execution fail: /var/lib/one/remotes/tm/vmware/clone frontend:/var/lib/one/datastores/100/6570d236b79cac63acfd971efb0d9b17 host:/var/lib/one/datastores/102/498/disk.5 498 100
Tue Sep 18 15:13:09 2012 [VMM][I]: clone: Cloning ../../100/6570d236b79cac63acfd971efb0d9b17 in host:/var/lib/one/datastores/102/498/disk.5
Tue Sep 18 15:13:09 2012 [VMM][E]: clone: Command "cd /var/lib/one/datastores/102/498
Tue Sep 18 15:13:09 2012 [VMM][I]: 
Tue Sep 18 15:13:09 2012 [VMM][I]: if which sudo > /dev/null; then
Tue Sep 18 15:13:09 2012 [VMM][I]: SUDO_CMD="sudo " 
Tue Sep 18 15:13:09 2012 [VMM][I]: fi
Tue Sep 18 15:13:09 2012 [VMM][I]: 
Tue Sep 18 15:13:09 2012 [VMM][I]: $SUDO_CMD vmkfstools -U /var/lib/one/datastores/102/498/disk.5/disk.vmdk
Tue Sep 18 15:13:09 2012 [VMM][I]: $SUDO_CMD vmkfstools -i ../../100/6570d236b79cac63acfd971efb0d9b17/disk.vmdk -d thin /var/lib/one/datastores/102/498/disk.5/disk.vmdk" failed: Failed to delete virtual disk: Not a directory (1310729).
Tue Sep 18 15:13:09 2012 [VMM][I]: Failed to clone disk: The destination file system does not support large files (12).
Tue Sep 18 15:13:09 2012 [VMM][E]: Error cloning frontend:/var/lib/one/datastores/100/6570d236b79cac63acfd971efb0d9b17 to host:/var/lib/one/datastores/102/498/disk.5
Tue Sep 18 15:13:09 2012 [VMM][I]: ExitCode: 255
Tue Sep 18 15:13:09 2012 [VMM][I]: Failed to execute transfer manager driver operation: tm_attach.
Tue Sep 18 15:13:09 2012 [VMM][E]: Error attaching new VM Disk: Error cloning frontend:/var/lib/one/datastores/100/6570d236b79cac63acfd971efb0d9b17 to host:/var/lib/one/datastores/102/498/disk.5

Associated revisions

Revision 31adafb2
Added by Carlos Martín over 8 years ago

Bug #1480: Add DISK_ID to context, and make sure new attached disks do not collide with existing DISK_IDs

Revision 93368249
Added by Ruben S. Montero over 8 years ago

bug #1480: Get Context disk number from its attributes in VMM Drivers

Revision cd47efe5
Added by Ruben S. Montero over 8 years ago

bug #1480: Clear disk array before reusing it

Revision 1aa148c6
Added by Carlos Martín over 8 years ago

Bug #1480: onedb migrator adds new attribute CONTEXT/DISK_ID

History

#1 Updated by Tino Vázquez almost 9 years ago

  • Status changed from New to Closed
  • Assignee set to Tino Vázquez
  • % Done changed from 0 to 100
  • Resolution set to fixed

Now it picks the last deployment file.

#2 Updated by Tino Vázquez almost 9 years ago

  • Status changed from Closed to New
  • Resolution deleted (fixed)

#3 Updated by Tino Vázquez almost 9 years ago

  • Assignee changed from Tino Vázquez to Carlos Martín

#4 Updated by Ruben S. Montero over 8 years ago

  • Status changed from New to Assigned
  • % Done changed from 100 to 0

#5 Updated by Ruben S. Montero over 8 years ago

  • Status changed from Assigned to Closed
  • Resolution set to fixed

Also available in: Atom PDF