warning to console in container on failed resize

Bug #1366891 reported by Scott Moser
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-init
Fix Released
Medium
Unassigned
cloud-init (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

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

Related branches

Revision history for this message
Scott Moser (smoser) wrote :
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
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package cloud-init - 0.7.6~bzr1016-0ubuntu1

---------------
cloud-init (0.7.6~bzr1016-0ubuntu1) utopic; urgency=medium

  * New upstream snapshot.
    * upstart: block networking from coming up until after
      cloud-init-local has run. (LP: #1368861)
    * upstart: ensure /run mounted before cloud-init-local (LP: #1353008)
    * log failures in route info.
    * Openstack: do not search redundant urls for openstack datasource.
      do not load urls just to check if they're present when crawling.
    * ConfigDrive: fixes for better consumption of vendor-data
    * resizefs: make sure target is writable before attempting
      in order to avoid failures in containers. (LP: #1366891)
    * freebsd fixes.
    * ssh_authkey_fingerprints: correctly allow disabling (LP: #1340903)
    * CloudStack: work around bug in metadata service (LP: #1356855)
    * docs: fix doc about disk-setup 'table_type' (LP: #1313114)
    * resolv.conf: fix rendering if options not provided (LP: #1328953)
    * ensure keys exist before running ssh on systemd (LP: #1333920)
 -- Scott Moser <email address hidden> Fri, 12 Sep 2014 18:12:31 -0400

Changed in cloud-init (Ubuntu):
status: Confirmed → Fix Released
Mathew Hodson (mhodson)
Changed in cloud-init:
status: In Progress → Fix Released
Revision history for this message
James Falcon (falcojr) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.