[Bug 1632405] Re: virt-customize enters infinite loop: dhclient-script: cannot open /etc/fstab

Ubuntu Foundations Team Bug Bot 1632405 at bugs.launchpad.net
Fri Feb 8 00:20:01 UTC 2019


The attachment "lp1632405_xenial.debdiff" seems to be a debdiff.  The
ubuntu-sponsors team has been subscribed to the bug report so that they
can review and hopefully sponsor the debdiff.  If the attachment isn't a
patch, please remove the "patch" flag from the attachment, remove the
"patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe
the team.

[This is an automated message performed by a Launchpad user owned by
~brian-murray, for any issue please contact him.]

** Tags added: patch

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1632405

Title:
  virt-customize enters infinite loop: dhclient-script: cannot open
  /etc/fstab

Status in libguestfs package in Ubuntu:
  Confirmed
Status in libguestfs source package in Xenial:
  In Progress

Bug description:
  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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libguestfs/+bug/1632405/+subscriptions



More information about the Ubuntu-sponsors mailing list