configure_networking net-DEVICE.conf in /tmp, but upstart job expects /run
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
open-iscsi (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Precise |
Fix Released
|
Medium
|
Unassigned |
Bug Description
=== Begin SRU Information ===
[Impact]
Open-iscsi's /etc/init/
the 'ipconfig' code in the client writes a file named /run/${DEVICE}.conf
The klibc in 12.04 writes that file to /tmp. This is simply a verison
and expectation mismatch between klibc and open-iscsi in 12.04.
It can result in the network interface upon which the iscsi target
resides being brought down, as /etc/init/
longer functions correctly.
With a network block-device under your root filesystem, bringing
down the network is not good.
The fix here is done in the initramfs and should be forwards compatible.
If a file has been written named /tmp/net-
has *not* been written /run/net-
/tmp to /run. That will later be picked up by iscsi-network-
which will then function correctly.
[Test Case]
its easy to see that if the net-DEVICE.conf file is not written in
/run, then the code in /etc/init/
the desired affect.
[Regression Potential]
There should not be much chance for regression here. Likely, fallout
would be limited to iscsi root instances.
[Other Info]
The maas "ephemeral images" have been using this patch for several
months, and the changes are the same as applied in quantal.
=== End SRU Information ===
This bug was initially opened with misunderstanding.
The issue present is that open-iscsi's upstart job expects ipconfig files to be in /run, but they are written by ipconfig in precise to /tmp.
ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: initramfs-tools 0.103ubuntu0.1
ProcVersionSign
Uname: Linux 3.5.0-13-generic x86_64
ApportVersion: 2.5.1-0ubuntu7
Architecture: amd64
Date: Sat Sep 8 03:28:37 2012
Ec2AMI: ami-00000148
Ec2AMIManifest: FIXME
Ec2Availability
Ec2InstanceType: m1.small
Ec2Kernel: unavailable
Ec2Ramdisk: unavailable
PackageArchitec
ProcEnviron:
TERM=screen
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: initramfs-tools
UpgradeStatus: No upgrade log present (probably fresh install)
description: | updated |
tags: |
added: verification-done removed: verification-needed |
Moving to kblic-utils.