** Description changed:

  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.
  
- 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

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

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

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to