[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:33:26 UTC 2015


ok.  a bit more debug, i think i have the problem understood now.
The last set of changes to open-iscsi added moved the invocation of /lib/open-iscsi/net-interface-handler to udev rules in /lib/open-iscsi/net-interface-handler .

I caught the output of /lib/open-iscsi/net-interface-handler via
modification of the program, redirecting its output to /run/net-
interface-handler.log and see this log
(http://paste.ubuntu.com/12689756/) with a snippet.

I believe the problem is that the udev rule is running before the
resolvconf service has run.

| :: start /lib/open-iscsi/net-interface-handler start
| <snip>
| ::: /sbin/resolvconf -a eth0.iscsi-network
| + PATH=/sbin:/bin
| + MYNAME=resolvconf
| + RUN_DIR=/run/resolvconf
| + ENABLE_UPDATES_FLAGFILE=/run/resolvconf/enable-updates
| + POSTPONED_UPDATE_FLAGFILE=/run/resolvconf/postponed-update
| + CMD=-a
| + IFACE=eth0.iscsi-network
| + [ ! eth0.iscsi-network ]
| + [ -d /run/resolvconf/interface ]
| + report_err /run/resolvconf/interface either does not exist or is not a directo
| ry
| + echo resolvconf: Error: /run/resolvconf/interface either does not exist or is
| not a directory
| resolvconf: Error: /run/resolvconf/interface either does not exist or is not a directory
| + exit 1
| + set +x
| :: end /lib/open-iscsi/net-interface-handler start
| <snip>

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