[Pkg-ganeti-devel] Bug#853167: ganeti-instance-debootstrap: OS installations fails because sfdisk believes the disk is in use
Martin Weinelt
hexa at darmstadt.ccc.de
Mon Jan 30 12:33:33 UTC 2017
Package: ganeti-instance-debootstrap
Version: 0.16-1
Severity: important
Dear Maintainer,
as agreed on IRC I'll submit this bug for you to triage.
The OS installation through ganeti-instance-debootstrap fails on
stretch because sfdisk believes that the disk is in use.
I'm using the drbd disk template in a two node cluster.
```
Mon Jan 30 13:01:58 2017 * running the instance OS create scripts...
Failure: command execution error:
Could not add os for instance kirk.chaos.hg.tu-darmstadt.de on node
deimos.darmstadt.ccc.de: OS create script failed (exited with exit code
1), last lines in the log file:
This disk is currently in use - repartitioning is probably a bad idea.
Umount all file systems, and swapoff all swap partitions on this disk.
Use the --no-reread flag to suppress this check.
sfdisk: Use the --force flag to overrule all checks.
```
Adding `--force` to the sfdisk call in /usr/share/ganeti/os/debootstrap/common.sh:98
will allow for completion of the os installation.
Adding `--no-reread` didn't change a thing for me.
-- System Information:
Debian Release: 9.0
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 4.9.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages ganeti-instance-debootstrap depends on:
ii debootstrap 1.0.87
ii dump 0.4b46-3+b1
ii kpartx 0.6.4-3
ganeti-instance-debootstrap recommends no packages.
ganeti-instance-debootstrap suggests no packages.
-- Configuration Files:
/etc/ganeti/instance-debootstrap/variants.list changed:
stretch
default
-- no debconf information
More information about the Pkg-ganeti-devel
mailing list