[Bug 1501033] Re: transient error results in /etc/resolv.conf not populated in iscsi root

Scott Moser smoser at ubuntu.com
Mon Oct 5 14:00:29 UTC 2015


I've modified the image a bit, to add 'set -x' to /sbin/resolvconf, and
to also echo '::: "$0" "$@"' in /sbin/resolvconf before the -x .  so you
can easily find those by looking for '::: /sbin/resolvconf'

I've caught in pass and fail and attach journalctl output here.
Also showing output of some things inside just for reference.  The only differnce between pass and fail in the following output is presence of 'nameserver 10.0.2.3'  The fail case is shown, pass would have that line after DO NOT EDIT.

$ cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN

$ ls -l /etc/resolv.conf
lrwxrwxrwx 1 root root 29 Oct  3 21:37 /etc/resolv.conf -> ../run/resolvconf/resolv.conf

$ cat /run/network/ifstate
eth0=eth0
lo=lo

$ cat  /run/net-eth0.conf
DEVICE='eth0'
PROTO='dhcp'
IPV4ADDR='10.0.2.15'
IPV4BROADCAST='10.0.2.255'
IPV4NETMASK='255.255.255.0'
IPV4GATEWAY='10.0.2.2'
IPV4DNS0='10.0.2.3'
IPV4DNS1='0.0.0.0'
HOSTNAME=''
DNSDOMAIN=''
NISDOMAIN=''
ROOTSERVER='10.0.2.2'
ROOTPATH=''
filename=''
UPTIME='16'
DHCPLEASETIME='86400'
DOMAINSEARCH=''


** Attachment added: "journalctl on failed instance"
   https://bugs.launchpad.net/ubuntu/+source/open-iscsi/+bug/1501033/+attachment/4484752/+files/journalctl-fail.txt

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

Title:
  transient error results in /etc/resolv.conf not populated in iscsi
  root

Status in open-iscsi package in Ubuntu:
  Confirmed

Bug description:
  similar to the issue described in bug 1463461, i am now seeing
  transient errors resulting in /etc/resolv.conf not having any
  nameserver entries when it should.

  The reproduce is similar
   http://bazaar.launchpad.net/~smoser/maas/maas-ephemeral-sniff/view/head:/README.txt

  ./get-maas-eph wily.d wily

  # you probably have to fix 'ipaddr=' in ./tgt-boot-test
  # or set HOST_IP= to some ip address valid for your host.

  ./tgt-boot-test wily.d/root-image wily.d/hwe-w/boot-kernel
  wily.d/hwe-w/boot-initrd

  login with 'ubuntu:passw0rd'
  and cat /etc/resolv.conf.
  you should have something there.

  Related bugs:
   * bug 1463461: resolvconf not updated by /lib/systemd/system/ifup at .service.d/open-iscsi.conf 
   * bug 1432829: resolv.conf not updated correctly for interfaces configured in initramfs 


  ProblemType: Bug
  DistroRelease: Ubuntu 15.10
  Package: open-iscsi 2.0.873-3ubuntu12
  ProcVersionSignature: User Name 4.2.0-10.12-generic 4.2.0
  Uname: Linux 4.2.0-10-generic x86_64
  ApportVersion: 2.18.1-0ubuntu1
  Architecture: amd64
  Date: Tue Sep 29 19:56:40 2015
  ProcEnviron:
   TERM=linux
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: open-iscsi
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/open-iscsi/+bug/1501033/+subscriptions



More information about the foundations-bugs mailing list