[Bug 1632405] [NEW] virt-customize enters infinite loop: dhclient-script: cannot open /etc/fstab
Launchpad Bug Tracker
1632405 at bugs.launchpad.net
Fri Feb 8 00:20:00 UTC 2019
You have been subscribed to a public bug by Ubuntu Foundations Team Bug Bot (crichton):
When running virt-customize against an existing raw image, it seems to
hang and do nothing. With verbose flag passed the logs are filled with:
/sbin/dhclient-script: 31: /sbin/dhclient-script: cannot open /etc/fstab: No such file
RTNETLINK answers: File exists
/sbin/dhclient-script: 31: /sbin/dhclient-script: cannot open /etc/fstab: No such file
RTNETLINK answers: File exists
/sbin/dhclient-script: 31: /sbin/dhclient-script: cannot open /etc/fstab: No such file
RTNETLINK answers: File exists
/sbin/dhclient-script: 31: /sbin/dhclient-script: cannot open /etc/fstab: No such file
RTNETLINK answers: File exists
/sbin/dhclient-script: 31: /sbin/dhclient-script: cannot open /etc/fstab: No such file
RTNETLINK answers: File exists
/sbin/dhclient-script: 31: /sbin/dhclient-script: cannot open /etc/fstab: No such file
over and over again.
$ dpkg -l | grep guestfs
ii libguestfs-hfsplus:amd64 1:1.32.2-4ubuntu2 amd64 guest disk image management system - HFS+ support
ii libguestfs-perl 1:1.32.2-4ubuntu2 amd64 guest disk image management system - Perl bindings
ii libguestfs-reiserfs:amd64 1:1.32.2-4ubuntu2 amd64 guest disk image management system - ReiserFS support
ii libguestfs-rescue:amd64 1:1.32.2-4ubuntu2 amd64 guest disk image management system - virt-rescue enhancements
ii libguestfs-rsync:amd64 1:1.32.2-4ubuntu2 amd64 guest disk image management system - rsync support
ii libguestfs-tools 1:1.32.2-4ubuntu2 amd64 guest disk image management system - tools
ii libguestfs-xfs:amd64 1:1.32.2-4ubuntu2 amd64 guest disk image management system - XFS support
ii libguestfs0:amd64 1:1.32.2-4ubuntu2 amd64 guest disk image management system - shared library
$ lsb_release -rd
Description: Ubuntu 16.04.1 LTS
Release: 16.04
According to
https://answers.launchpad.net/ubuntu/+source/libguestfs/+question/372927
this is fixed in 1.34, though I haven't verified this for myself.
******************SRU TEMPLATE******************
[Impact]
On Xenial libguestfs fails to configure network and gets into infinite loop,
because /etc/fstab file is not present which is required by dhclient-script.
Currently the libguestfs version for xenial is 1.32.2-4ubuntu2 which misses
the upstream commit [1] that solves the problem.
[Test Case]
$ lsb_release -rd
Description: Ubuntu 16.04.5 LTS
Release: 16.04
$ dpkg -l | grep guest
ii libguestfs-hfsplus:amd64 1:1.32.2-4ubuntu2 amd64 guest disk image management system - HFS+ support
ii libguestfs-perl 1:1.32.2-4ubuntu2 amd64 guest disk image management system - Perl bindings
ii libguestfs-reiserfs:amd64 1:1.32.2-4ubuntu2 amd64 guest disk image management system - ReiserFS support
ii libguestfs-tools 1:1.32.2-4ubuntu2 amd64 guest disk image management system - tools
ii libguestfs-xfs:amd64 1:1.32.2-4ubuntu2 amd64 guest disk image management system - XFS support
ii libguestfs0:amd64 1:1.32.2-4ubuntu2 amd64 guest disk image management system - shared library
$ sudo guestfish -a xenial-server-cloudimg-amd64-disk1.img --network -v << EOF
run
mount /dev/sda1 /
command 'apt update'
EOF
libguestfs: launch: program=guestfish
libguestfs: launch: version=1.32.2
libguestfs: launch: backend registered: unix
libguestfs: launch: backend registered: uml
....
[ 3.684953] input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input2
/sbin/dhclient-script: 35: /sbin/dhclient-script: cannot open /etc/fstab: No such file
RTNETLINK answers: File exists
/sbin/dhclient-script: 35: /sbin/dhclient-script: cannot open /etc/fstab: No such file
RTNETLINK answers: File exists
/sbin/dhclient-script: 35: /sbin/dhclient-script: cannot open /etc/fstab: No such file
RTNETLINK answers: File exists
/sbin/dhclient-script: 35: /sbin/dhclient-script: cannot open /etc/fstab: No such file
RTNETLINK answers: File exists
/sbin/dhclient-script: 35: /sbin/dhclient-script: cannot open /etc/fstab: No such file
RTNETLINK answers: File exists
/sbin/dhclient-script: 35: /sbin/dhclient-script: cannot open /etc/fstab: No such file
RTNETLINK answers: File exists
/sbin/dhclient-script: 35: /sbin/dhclient-script: cannot open /etc/fstab: No such file
RTNETLINK answers: File exists
/sbin/dhclient-script: 35: /sbin/dhclient-script: cannot open /etc/fstab: No such file
RTNETLINK answers: File exists
[Regression Potential]
This may impact libguestfs functionality when netwrok flag is enabled.
[Other Info]
Upstream commit :
https://github.com/libguestfs/libguestfs/commit/fd60be95091a1923e108f72caf251f5549eeccd0
# git
git describe --contains fd60be9509
v1.33.43~10
# rmadison
=> libguestfs | 1:1.32.2-4ubuntu2 | xenial/universe | source
libguestfs | 1:1.36.13-1ubuntu3 | bionic/universe | source
libguestfs | 1:1.36.13-1ubuntu3.2 | bionic-updates/universe | source
libguestfs | 1:1.38.4-1ubuntu2 | cosmic/universe | source
libguestfs | 1:1.40.1-1ubuntu1 | disco/universe | source
** Affects: libguestfs (Ubuntu)
Importance: Undecided
Status: Confirmed
** Affects: libguestfs (Ubuntu Xenial)
Importance: Medium
Assignee: Ioanna Alifieraki (joalif)
Status: In Progress
** Tags: patch sts
--
virt-customize enters infinite loop: dhclient-script: cannot open /etc/fstab
https://bugs.launchpad.net/bugs/1632405
You received this bug notification because you are a member of Ubuntu Sponsors Team, which is subscribed to the bug report.
More information about the Ubuntu-sponsors
mailing list