Status: New
Owner: ----
New issue 269 by [email protected]: gnt-instance grow-disk does not work in
ganeti 2.6.0
http://code.google.com/p/ganeti/issues/detail?id=269
What software version are you running? Please provide the output of "gnt-
cluster --version" and "gnt-cluster version".
What distribution are you using?
ubuntu 12.04 lts
What steps will reproduce the problem?
1.
root@ubuntuxen01:~# gnt-instance add \
-n ubuntuxen01 \
-o linux+ubuntu-12.04_amd64 \
-t plain \
--disk 0:size=8G \
--disk 1:size=2G \
-B minmem=512M,maxmem=1G \
-H xen-pvm:kernel_path=/boot/pv-grub-4.1.2_64.gz \
--no-name-check \
--no-ip-check \
ubuntutest01
Mon Sep 24 14:14:08 2012 * disk 0, size 8.0G
Mon Sep 24 14:14:08 2012 * disk 1, size 2.0G
Mon Sep 24 14:14:08 2012 * creating instance disks...
Mon Sep 24 14:14:09 2012 adding instance ubuntutest01 to cluster config
Mon Sep 24 14:14:09 2012 - INFO: Waiting for instance ubuntutest01 to sync
disks.
Mon Sep 24 14:14:09 2012 - INFO: Instance ubuntutest01's disks are in sync.
Mon Sep 24 14:14:09 2012 * running the instance OS create scripts...
Mon Sep 24 14:15:32 2012 * starting instance...
2.
root@ubuntuxen01:~# gnt-instance info ubuntutest01
Instance name: ubuntutest01
UUID: 8fca004e-968f-4e37-a2f9-43d972045623
Serial number: 2
Creation time: 2012-09-24 14:14:09
Modification time: 2012-09-24 14:15:32
State: configured to be up, actual state is up
Nodes:
- primary: ubuntuxen01.domain.intern
group: default (UUID 32c7a1cc-5996-4f4a-aade-fa32cb67c1e8)
- secondaries:
Operating system: linux+ubuntu-12.04_amd64
Allocated network port: None
Hypervisor: xen-pvm
- blockdev_prefix: default (sd)
- bootloader_args: default ()
- bootloader_path: default ()
- cpu_mask: default (all)
- initrd_path: default ()
- kernel_args: default ((hd0)/boot/grub/menu.lst)
- kernel_path: /boot/pv-grub-4.1.2_64.gz
- reboot_behavior: default (reboot)
- root_path: default ()
- use_bootloader: default (False)
Hardware:
- always_failover: default (False)
- auto_balance: default (True)
- maxmem: 1024
- memory: default (1024)
- minmem: 512
- spindle_use: default (1)
- vcpus: default (2)
- NICs:
- nic/0: MAC: aa:00:00:09:5c:27, IP: None, mode: bridged, link: br0
Disk template: plain
Disks:
- disk/0: lvm, size 8.0G
access mode: rw
logical_id: system/2f801264-fe51-4e8c-9388-f5740798e97e.disk0
on primary: /dev/system/2f801264-fe51-4e8c-9388-f5740798e97e.disk0
(252:2)
- disk/1: lvm, size 2.0G
access mode: rw
logical_id: system/083ab68c-64dc-4689-aa16-1022f0b68778.disk1
on primary: /dev/system/083ab68c-64dc-4689-aa16-1022f0b68778.disk1
(252:4)
3.
root@ubuntuxen01:~# gnt-instance grow-disk -d ubuntutest01 0 1G
2012-09-24 14:16:15,201: gnt-instance grow-disk pid=3988 cli:2238 INFO
Command line: gnt-instance grow-disk -d ubuntutest01 0 1G
Mon Sep 24 14:16:15 2012 Growing disk 0 of instance 'ubuntutest01' by 1.0G
to 9.0G
2012-09-24 14:16:21,232: gnt-instance grow-disk pid=3988 cli:2245 ERROR
Error during command processing
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/ganeti/cli.py", line 2241, in
GenericMain
result = func(options, args)
File "/usr/lib/pymodules/python2.7/ganeti/client/gnt_instance.py", line
673, in GrowDisk
SubmitOrSend(op, opts)
File "/usr/lib/pymodules/python2.7/ganeti/cli.py", line 2053, in
SubmitOrSend
return SubmitOpCode(op, cl=cl, feedback_fn=feedback_fn, opts=opts)
File "/usr/lib/pymodules/python2.7/ganeti/cli.py", line 2030, in
SubmitOpCode
reporter=reporter)
File "/usr/lib/pymodules/python2.7/ganeti/cli.py", line 2011, in PollJob
return GenericPollJob(job_id, _LuxiJobPollCb(cl), reporter)
File "/usr/lib/pymodules/python2.7/ganeti/cli.py", line 1833, in
GenericPollJob
errors.MaybeRaise(msg)
File "/usr/lib/pymodules/python2.7/ganeti/errors.py", line 506, in
MaybeRaise
raise errcls(*args)
ProgrammerError: Can only act on disks belonging to the target instance
Unhandled Ganeti error: Can only act on disks belonging to the target
instance
4.
root@ubuntuxen01:~# gnt-instance info ubuntutest01
Instance name: ubuntutest01
UUID: 8fca004e-968f-4e37-a2f9-43d972045623
Serial number: 3
Creation time: 2012-09-24 14:14:09
Modification time: 2012-09-24 14:16:21
State: configured to be up, actual state is up
Nodes:
- primary: ubuntuxen01.domain.intern
group: default (UUID 32c7a1cc-5996-4f4a-aade-fa32cb67c1e8)
- secondaries:
Operating system: linux+ubuntu-12.04_amd64
Allocated network port: None
Hypervisor: xen-pvm
- blockdev_prefix: default (sd)
- bootloader_args: default ()
- bootloader_path: default ()
- cpu_mask: default (all)
- initrd_path: default ()
- kernel_args: default ((hd0)/boot/grub/menu.lst)
- kernel_path: /boot/pv-grub-4.1.2_64.gz
- reboot_behavior: default (reboot)
- root_path: default ()
- use_bootloader: default (False)
Hardware:
- always_failover: default (False)
- auto_balance: default (True)
- maxmem: 1024
- memory: default (1024)
- minmem: 512
- spindle_use: default (1)
- vcpus: default (2)
- NICs:
- nic/0: MAC: aa:00:00:09:5c:27, IP: None, mode: bridged, link: br0
Disk template: plain
Disks:
- disk/0: lvm, size 8.0G
access mode: rw
logical_id: system/2f801264-fe51-4e8c-9388-f5740798e97e.disk0
on primary: /dev/system/2f801264-fe51-4e8c-9388-f5740798e97e.disk0
(252:2)
root@ubuntuxen01:~#
it seams like grow-disk removes the second disk!!!
5.
root@ubuntuxen01:~# gnt-cluster verify
Submitted jobs 45, 46
Waiting for job 45 ...
Mon Sep 24 14:21:21 2012 * Verifying cluster config
Mon Sep 24 14:21:21 2012 * Verifying cluster certificate files
Mon Sep 24 14:21:21 2012 * Verifying hypervisor parameters
Mon Sep 24 14:21:21 2012 * Verifying all nodes belong to an existing group
Waiting for job 46 ...
Mon Sep 24 14:21:21 2012 * Verifying group 'default'
Mon Sep 24 14:21:21 2012 * Gathering data (1 nodes)
Mon Sep 24 14:21:23 2012 * Gathering disk information (1 nodes)
Mon Sep 24 14:21:23 2012 * Verifying configuration file consistency
Mon Sep 24 14:21:23 2012 * Verifying node status
Mon Sep 24 14:21:23 2012 * Verifying instance status
Mon Sep 24 14:21:23 2012 * Verifying orphan volumes
Mon Sep 24 14:21:23 2012 - ERROR: node ubuntuxen01.domain.intern: volume
system/083ab68c-64dc-4689-aa16-1022f0b68778.disk1 is unknown
Mon Sep 24 14:21:23 2012 - ERROR: node ubuntuxen01.domain.intern: volume
system/root is unknown
Mon Sep 24 14:21:23 2012 - ERROR: node ubuntuxen01.domain.intern: volume
system/5de84566-cb73-4ce0-9aa6-c8d426a62d61.disk1 is unknown
Mon Sep 24 14:21:23 2012 - ERROR: node ubuntuxen01.domain.intern: volume
system/swap is unknown
Mon Sep 24 14:21:23 2012 * Verifying N+1 Memory redundancy
Mon Sep 24 14:21:23 2012 * Other Notes
Mon Sep 24 14:21:23 2012 - NOTICE: 1 non-redundant instance(s) found.
Mon Sep 24 14:21:23 2012 * Hooks Results
What is the expected output? What do you see instead?
Please provide any additional information below.