Anomalie #74
addvm error
100%
Description
Mehdi tu as changé quelque chose ?
Creating VM
Wed Jul 27 00:28:40 2011 - INFO: Selected nodes for instance lisp.tetaneutral.net via iallocator hail: h4.tetaneutral.net, h5.tetaneutral.net
Wed Jul 27 00:28:42 2011 * creating instance disks...
Wed Jul 27 00:28:57 2011 adding instance lisp.tetaneutral.net to cluster config
Wed Jul 27 00:28:57 2011 - INFO: Waiting for instance lisp.tetaneutral.net to sync disks.
Wed Jul 27 00:28:57 2011 - INFO: - device disk/0: 0.20% done, 17m 27s remaining (estimated)
Wed Jul 27 00:29:58 2011 - INFO: - device disk/0: 23.20% done, 15m 59s remaining (estimated)
Wed Jul 27 00:30:58 2011 - INFO: - device disk/0: 38.40% done, 13m 55s remaining (estimated)
Wed Jul 27 00:31:58 2011 - INFO: - device disk/0: 42.90% done, 17m 50s remaining (estimated)
Wed Jul 27 00:32:58 2011 - INFO: - device disk/0: 46.90% done, 2h 10m 45s remaining (estimated)
Wed Jul 27 00:33:58 2011 - INFO: - device disk/0: 58.50% done, 1m 41s remaining (estimated)
Wed Jul 27 00:34:58 2011 - INFO: - device disk/0: 80.30% done, 47s remaining (estimated)
Wed Jul 27 00:35:45 2011 - INFO: - device disk/0: 94.10% done, 58s remaining (estimated)
Wed Jul 27 00:36:44 2011 - INFO: - device disk/0: 96.00% done, 1m 25s remaining (estimated)
Wed Jul 27 00:37:44 2011 - INFO: - device disk/0: 99.00% done, 46s remaining (estimated)
Wed Jul 27 00:38:30 2011 - INFO: Instance lisp.tetaneutral.net's disks are in sync.
Wed Jul 27 00:38:30 2011 * running the instance OS create scripts...
Failure: command execution error:
Could not add os for instance lisp.tetaneutral.net on node h4.tetaneutral.net: OS create script failed (exited with exit code 1), last lines in the log file:
I: Configuring tasksel-data...
I: Configuring grub-pc...
I: Configuring tasksel...
I: Configuring grub...
I: Configuring initramfs-tools...
I: Base system installed successfully.
Disabling root's password
passwd: password expiry information changed.
Get:1 http://ftp.fr.debian.org squeeze Release.gpg [1672 B]
Ign http://ftp.fr.debian.org/debian/ squeeze/main Translation-en
Hit http://ftp.fr.debian.org squeeze Release
Hit http://ftp.fr.debian.org squeeze/main amd64 Packages
Fetched 1672 B in 0s (10.5 kB/s)
Reading package lists...
Generating locales (this might take a while)...
en_US.UTF-8... done
Generation complete.
/usr/sbin/grub-setup: warn: This msdos-style partition label has no post-MBR gap; embedding won't be possible!.
/usr/sbin/grub-setup: error: embedding is not possible, but this is required for cross-disk install.
run-parts: /etc/ganeti/instance-debootstrap/hooks/tetaneutral exited with return code 1
Historique
#1 Mis à jour par Mehdi Abaakouk il y a plus de 13 ans
Le problème était ici:
root@h4:~# diff -uN /usr/share/ganeti/os/debootstrap/common.sh <(ssh root@h1 cat /usr/share/ganeti/os/debootstrap/common.sh) --- /usr/share/ganeti/os/debootstrap/common.sh 2010-09-15 22:34:12.000000000 +0200 +++ /dev/fd/63 2011-07-27 12:33:55.695617766 +0200 @@ -91,7 +91,7 @@ # some versions of sfdisk need manual specification of # head/sectors for devices such as drbd which don't # report geometry - sfdisk -H 255 -S 63 --quiet --Linux "$1" <<EOF + sfdisk -H 255 -S 63 -D --quiet --Linux "$1" <<EOF 0,,L,* EOF }
J'avais appliqué ce patch à ganeti-instance-debootstrap pour réserver le 1 sector pour grub, c'est maintenant appliqué sur h4 aussi.
J'ai ajouté cette modification au wiki