[Bug 1366891] [NEW] warning to console in container on failed resize

Scott Moser smoser at ubuntu.com
Mon Sep 8 16:50:00 UTC 2014


Public bug reported:

inside a container, a device may exist, but even as root not be able to write to it.
currently that results in warning to console.

$ lsb_release -sc
trusty

$ awk '$5 == "/" { print $0 }' /proc/self/mountinfo 
79 61 253:1 /var/lib/lxc/t1/rootfs / rw,relatime - ext4 /dev/disk/by-label/cloudimg-rootfs rw,data=ordered


$ ls -l /dev/disk/by-label/cloudimg-rootfs
lrwxrwxrwx 1 root root 11 Sep  4 12:49 /dev/disk/by-label/cloudimg-rootfs -> ../../loop0
$ ls -l /dev/loop0
brw-rw---- 1 root disk 7, 0 Sep  4 12:49 /dev/loop0

$ sudo sh -c 'echo hi >/dev/loop0'
sh: 1: cannot create /dev/loop0: Operation not permitted
# outside this would give I/O error.

$ sudo python -c 'import os; print(os.access("/dev/loop0", os.W_OK))'
False

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: cloud-init 0.7.5-0ubuntu1.1
ProcVersionSignature: User Name 3.13.0-35.62-generic 3.13.11.6
Uname: Linux 3.13.0-35-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.3
Architecture: amd64
Date: Mon Sep  8 16:24:56 2014
Ec2AMI: ami-00000064
Ec2AMIManifest: FIXME
Ec2AvailabilityZone: nova
Ec2InstanceType: m1.medium
Ec2Kernel: aki-00000002
Ec2Ramdisk: ari-00000002
PackageArchitecture: all
ProcEnviron:
 TERM=screen
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: cloud-init
UpgradeStatus: No upgrade log present (probably fresh install)
mtime.conffile..etc.init.cloud.init.local.conf: 2014-09-08T14:38:58.888631

** Affects: cloud-init
     Importance: Medium
         Status: In Progress

** Affects: cloud-init (Ubuntu)
     Importance: Medium
         Status: Confirmed


** Tags: amd64 apport-bug ec2-images trusty

** Also affects: cloud-init
   Importance: Undecided
       Status: New

** Changed in: cloud-init
   Importance: Undecided => Medium

** Changed in: cloud-init (Ubuntu)
   Importance: Undecided => Medium

** Changed in: cloud-init
       Status: New => Confirmed

** Changed in: cloud-init (Ubuntu)
       Status: New => Confirmed

** Changed in: cloud-init
       Status: Confirmed => In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in Ubuntu.
https://bugs.launchpad.net/bugs/1366891

Title:
  warning to console in container on failed resize

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1366891/+subscriptions



More information about the Ubuntu-server-bugs mailing list