ERROR: sector 0 does not have an msdos signature... and others.

650 views
Skip to first unread message

Janusz Syrytczyk

unread,
Jan 17, 2012, 3:35:27 PM1/17/12
to gan...@googlegroups.com
Hello,

I already have Ganeti 2.4 working but I'm testing 2.5 now, single
machine, plain storage. I currently can't create machines
debootstrap+default, or, more precisely, I create them without being
able to boot from hdd. I can only boot and install from cd.

BlackStone ~ # gnt-instance add -t plain --disk 0:size=20G  -o
debootstrap+default -B memory=512M g229.linuxlaptop.local
Tue Jan 17 20:18:32 2012  - INFO: Selected nodes for instance
g229.linuxlaptop.local via iallocator hail:
blackstone.linuxlaptop.local
Tue Jan 17 20:18:32 2012 * disk 0, vg ganeti, name
d4cdfb83-2903-484d-964a-0d6023443f1b.disk0
Tue Jan 17 20:18:33 2012 * creating instance disks...
Tue Jan 17 20:18:35 2012 adding instance g229.linuxlaptop.local to
cluster config
Tue Jan 17 20:18:36 2012  - INFO: Waiting for instance
g229.linuxlaptop.local to sync disks.
Tue Jan 17 20:18:36 2012  - INFO: Instance g229.linuxlaptop.local's
disks are in sync.
Tue Jan 17 20:18:36 2012 * running the instance OS create scripts...
Failure: command execution error:
('Could not add os for instance g229.linuxlaptop.local on node
blackstone.linuxlaptop.local: OS create script failed (exited with
exit code 1), last lines in the log file:\nDisk
/dev/ganeti/d4cdfb83-2903-484d-964a-0d6023443f1b.disk0: 2610
cylinders, 255 heads, 63 sectors/track\n\nsfdisk: ERROR: sector 0 does
not have an msdos signature\n
/dev/ganeti/d4cdfb83-2903-484d-964a-0d6023443f1b.disk0: unrecognized
partition table type\nOld situation:\nNo partitions found\nNew
situation:\nUnits = cylinders of 8225280 bytes, blocks of 1024 bytes,
counting from 0\n\n   Device Boot Start     End   #cyls    #blocks
Id  System\n/dev/ganeti/d4cdfb83-2903-484d-964a-0d6023443f1b.disk0p1
*      0+   2609    2610-  20964824+  83
Linux\n/dev/ganeti/d4cdfb83-2903-484d-964a-0d6023443f1b.disk0p2
 0       -       0          0    0
Empty\n/dev/ganeti/d4cdfb83-2903-484d-964a-0d6023443f1b.disk0p3
 0       -       0          0    0
Empty\n/dev/ganeti/d4cdfb83-2903-484d-964a-0d6023443f1b.disk0p4
 0       -       0          0    0  Empty\nSuccessfully wrote the new
partition table\n\nRe-reading the partition table ...\nBLKRRPART:
Invalid argument\n\nwhich: no run-parts in ((null))',)

Burnin fails similarly:

BlackStone ~ # time  /usr/lib64/ganeti/tools/burnin -o
debootstrap+default --disk-size=2G -H kvm --mem-size=512M -p
--vcpu-count=4 -t plain g228.linuxlaptop.local
- Testing global parameters
- Creating instances
 * instance g228.linuxlaptop.local
   on blackstone.linuxlaptop.local
Submitted jobs 178
Waiting for job 178 for g228.linuxlaptop.local ...
Job 178 for g228.linuxlaptop.local has failed: Failure: command execution error:
('Could not add os for instance g228.linuxlaptop.local on node
blackstone.linuxlaptop.local: OS create script failed (exited with
exit code 1), last lines in the log file:\nDisk
/dev/ganeti/7025bfb0-a4af-4563-9f05-de4d230e56e3.disk0: 261 cylinders,
255 heads, 63 sectors/track\n\nsfdisk: ERROR: sector 0 does not have
an msdos signature\n
/dev/ganeti/7025bfb0-a4af-4563-9f05-de4d230e56e3.disk0: unrecognized
partition table type\nOld situation:\nNo partitions found\nNew
situation:\nUnits = cylinders of 8225280 bytes, blocks of 1024 bytes,
counting from 0\n\n   Device Boot Start     End   #cyls    #blocks
Id  System\n/dev/ganeti/7025bfb0-a4af-4563-9f05-de4d230e56e3.disk0p1
*      0+    260     261-   2096482   83
Linux\n/dev/ganeti/7025bfb0-a4af-4563-9f05-de4d230e56e3.disk0p2
 0       -       0          0    0
Empty\n/dev/ganeti/7025bfb0-a4af-4563-9f05-de4d230e56e3.disk0p3
 0       -       0          0    0
Empty\n/dev/ganeti/7025bfb0-a4af-4563-9f05-de4d230e56e3.disk0p4
 0       -       0          0    0  Empty\nSuccessfully wrote the new
partition table\n\nRe-reading the partition table ...\nBLKRRPART:
Invalid argument\n\nwhich: no run-parts in ((null))',)
- Non-idempotent jobset failed, aborting
- Error detected: opcode buffer follows:


- Tue Jan 17 20:20:32 2012 * disk 0, vg ganeti, name
7025bfb0-a4af-4563-9f05-de4d230e56e3.disk0
Tue Jan 17 20:20:32 2012 * creating instance disks...
Tue Jan 17 20:20:36 2012 adding instance g228.linuxlaptop.local to
cluster config
Tue Jan 17 20:20:37 2012  - INFO: Waiting for instance
g228.linuxlaptop.local to sync disks.
Tue Jan 17 20:20:37 2012  - INFO: Instance g228.linuxlaptop.local's
disks are in sync.
Tue Jan 17 20:20:37 2012 * running the instance OS create scripts...

-


- Removing instances
Traceback (most recent call last):
 File "/usr/lib64/ganeti/tools/burnin", line 1090, in <module>
   main()
 File "/usr/lib64/ganeti/tools/burnin", line 1086, in main
   return Burner().BurninCluster()
 File "/usr/lib64/ganeti/tools/burnin", line 996, in BurninCluster
   self.BurnCreateInstances()
 File "/usr/lib64/ganeti/tools/burnin", line 233, in wrapper
   val = fn(self, *args, **kwargs)
 File "/usr/lib64/ganeti/tools/burnin", line 254, in batched
   self.CommitQueue()
 File "/usr/lib64/ganeti/tools/burnin", line 387, in CommitQueue
   self.queued_ops)
 File "/usr/lib64/ganeti/tools/burnin", line 310, in MaybeRetry
   val = fn(*args)
 File "/usr/lib64/ganeti/tools/burnin", line 425, in ExecJobSet
   raise BurninFailure()
__main__.BurninFailure

real    0m23.704s
user    0m0.160s
sys     0m0.040s

Cluster basic data:

BlackStone ~ # gnt-cluster info
Cluster name: cl01.linuxlaptop.local
Cluster UUID: be9c5041-916c-4443-9d66-2257257471f3
Creation time: 2012-01-10 22:19:04
Modification time: 2012-01-17 00:02:12
Master node: blackstone.linuxlaptop.local
Architecture (this node): 64bit (x86_64)
Tags: (none)
Default hypervisor: kvm
Enabled hypervisors: kvm
Hypervisor parameters:
 - kvm:
     acpi: True
     boot_order: disk
     cdrom2_image_path:
     cdrom_disk_type:
     cdrom_image_path:
     disk_cache: default
     disk_type: paravirtual
     floppy_image_path:
     initrd_path:
     kernel_args: ro
     kernel_path:
     keymap:
     kvm_flag:
     mem_path:
     migration_bandwidth: 32
     migration_downtime: 30
     migration_mode: live
     migration_port: 8102
     nic_type: paravirtual
     reboot_behavior: reboot
     root_path: /dev/vda1
     security_domain:
     security_model: none
     serial_console: True
     spice_bind:
     spice_ip_version: 0
     usb_mouse:
     use_chroot: False
     use_localtime: False
     vhost_net: False
     vnc_bind_address: 192.168.1.150
     vnc_password_file: /etc/ganeti/vnc-cluster-password
     vnc_tls: False
     vnc_x509_path:
     vnc_x509_verify: False
OS-specific hypervisor parameters:
OS parameters:
Hidden OSes:
Blacklisted OSes:
Cluster parameters:
 - candidate pool size: 10
 - master netdev: br1
 - lvm volume group: ganeti
 - lvm reserved volumes: (none)
 - drbd usermode helper: None
 - file storage path: /srv/ganeti/file-storage
 - shared file storage path: /var/lib/ganeti-storage/shared
 - maintenance of node health: True
 - uid pool:
 - default instance allocator: hail
 - primary ip version: 4
 - preallocation wipe disks: False
 - OS search path: /usr/share/ganeti/os
Default node parameters:
   oob_program: None
Default instance parameters:
 - default:
     auto_balance: True
     memory: 128
     vcpus: 1
Default nic parameters:
 - default:
     link: br1
     mode: bridged

Any obvious reason? I've tried several versions of debianutils, no
change. Thank you.
JS

Guido Trotter

unread,
Jan 21, 2012, 3:12:51 AM1/21/12
to gan...@googlegroups.com

You can try passing a ganeti kernel and initrd, as that might make debootstrap skip that part. But the problem lies in how the debootstrap scripts prepare the disk: take a look at them, and perhaps run them in debugging mode, to find out what's wrong or what you need to add. They're just bash scripts, so they should be easy to follow. Perhaps one of the programs they use changed some requirements. Wouldn't be the first time.

Regards,

Guido

Reply all
Reply to author
Forward
0 new messages