Instance-image problem

47 views
Skip to first unread message

Jonathan Bayer

unread,
May 17, 2013, 12:24:37 PM5/17/13
to gan...@googlegroups.com
I'm having a problem with instance-image on a new installation.

The main os is CentOS 6.4

Ganeti is 2.6.2
instance-image is 0.5.1

The system is a single node system.
I'm trying to make a clone of a previously-dumped image called centos6minimal

It seems that while it is able to create the LVM partition, and inside that, create the 3 partitions as specified, it then can't seem to mount the new partitions to format and load data on them.

I'm probably missing something silly, but can't figure it out. 

Any help would be appreciated.

This is the variant file:
IMAGE_NAME=centos6minimal
ARCH=x86_64
IMAGE_DEBUG=1
SWAP=yes
SWAP_SIZE=2048
FILESYSTEM="ext4"
IMAGE_DIR="/var/cache/ganeti-instance-image"
IMAGE_TYPE="dump"
and here is the command and the output from the command:

#gnt-instance add -t plain -o image+centos6minimal -s 10g -n sandbox01.a3k -B maxmem=512m,minmem=512m,vcpus=1  --no-start -H kvm:vnc_bind_address=0.0.0.0 ins06.a3k

Fri May 17 11:51:47 2013 * disk 0, size 10.0G
Fri May 17 11:51:47 2013 * creating instance disks...
Fri May 17 11:51:48 2013 adding instance ins06.a3k to cluster config
Fri May 17 11:51:49 2013  - INFO: Waiting for instance ins06.a3k to sync disks.
Fri May 17 11:51:49 2013  - INFO: Instance ins06.a3k's disks are in sync.
Fri May 17 11:51:49 2013 * running the instance OS create scripts...
Failure: command execution error:
Could not add os for instance ins06.a3k on node sandbox01.a3k: OS create script failed (exited with exit code 1), last lines in the log file:
No partitions found
BLKRRPART: Invalid argument
+ '[' no = yes ']'
++ map_disk0 /dev/vmvg/521c08c7-26d9-4628-91db-834247d7f0a8.disk0
++ blockdev=/dev/vmvg/521c08c7-26d9-4628-91db-834247d7f0a8.disk0
+++ /sbin/kpartx -l -p- /dev/vmvg/521c08c7-26d9-4628-91db-834247d7f0a8.disk0
+++ grep -m 1 -- '-1.*/dev/vmvg/521c08c7-26d9-4628-91db-834247d7f0a8.disk0'
+++ gawk '{print $1}'
++ filesystem_dev_base=vmvg-521c08c7--26d9--4628--91db--834247d7f0a8.disk0-1
++ '[' -z vmvg-521c08c7--26d9--4628--91db--834247d7f0a8.disk0-1 ']'
++ /sbin/kpartx -a -p- /dev/vmvg/521c08c7-26d9-4628-91db-834247d7f0a8.disk0
++ filesystem_dev=/dev/mapper/vmvg-521c08c7--26d9--4628--91db--834247d7f0a8.disk0
++ '[' '!' -b /dev/mapper/vmvg-521c08c7--26d9--4628--91db--834247d7f0a8.disk0-1 ']'
++ log_error 'Can'\''t find kpartx mapped partition: /dev/mapper/vmvg-521c08c7--26d9--4628--91db--834247d7f0a8.disk0-1'
++ echo 'Can'\''t find kpartx mapped partition: /dev/mapper/vmvg-521c08c7--26d9--4628--91db--834247d7f0a8.disk0-1'
Can't find kpartx mapped partition: /dev/mapper/vmvg-521c08c7--26d9--4628--91db--834247d7f0a8.disk0-1
++ exit 1
+ filesystem_dev=
+ cleanup
+ '[' 0 -gt 0 ']'




Guido Trotter

unread,
May 21, 2013, 8:49:27 AM5/21/13
to gan...@googlegroups.com, Lance Albertson
+lance, who perhaps knows that's wrong. If not perhaps you can try to file a bug to his repository, at OSUOSL.

Thanks,

Guido

--
Guido Trotter
Ganeti Engineering
Google Germany GmbH
Dienerstr. 12, 80331, München

Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg
Geschäftsführer: Graham Law, Katherine Stephens

Steuernummer: 48/725/00206
Umsatzsteueridentifikationsnummer: DE813741370

Jonathan Bayer

unread,
May 21, 2013, 8:58:55 AM5/21/13
to gan...@googlegroups.com, Guido Trotter, Lance Albertson
On 5/21/2013 8:49 AM, Guido Trotter wrote:
+lance, who perhaps knows that's wrong. If not perhaps you can try to file a bug to his repository, at OSUOSL.

Thanks,


Already did, thanks
Reply all
Reply to author
Forward
0 new messages