yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #00270
[Bug 1080985] Re: 'noblock' setting for resize_rootfs is broken
This bug was fixed in the package cloud-init - 0.7.1-0ubuntu3
---------------
cloud-init (0.7.1-0ubuntu3) raring; urgency=low
* cherry pick relevant patches from trunk up to revision 745
* fix writing of sudoers when suders rule is a string rather than
an array (LP: #1079002)
* add trailing slash to sudoers files that are written
* fix resizefs module when 'noblock' was provided (LP: #1080985)
* make sure there is no blank line before cloud-init entry in
there are no blank lines in /etc/ca-certificates.conf (LP: #1077020)
-- Scott Moser <smoser@xxxxxxxxxx> Mon, 03 Dec 2012 21:45:48 -0500
** Changed in: cloud-init (Ubuntu)
Status: Confirmed => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1080985
Title:
'noblock' setting for resize_rootfs is broken
Status in Init scripts for use on cloud images:
Fix Committed
Status in “cloud-init” package in Ubuntu:
Fix Released
Status in “cloud-init” source package in Quantal:
In Progress
Bug description:
== Begin SRU Information ==
[Impact]
* Users who want to run filesystem resize without blocking first boot are not able to. This is admittedly small impact, but is clearly broken code.
[TestCase]
* launch an instance with userdata like:
#cloud-config
resize_rootfs: noblock
* run 'df' in instance, see root filesystem is not resized
* see /var/log/cloud-init.log showing that resizefs was ignored.
[Regression Potential]
* small chance for regression. Previous code checked a small list of values for a boolean value, and did nothing if it was not "true". The change extends the check to also consider 'noblock'.
== End SRU Information ==
resize_rootfs: noblock
should tell the resize to occur in the background, but it will currently result in:
Nov 20 04:51:45 ubuntu [CLOUDINIT] cc_resizefs.py[DEBUG]: Skipping module named resizefs, resizing disabled
The fix is simple, in cloudinit/config/cc_resizefs.py:
log.warn("resize_root: %s" % resize_root)
if not util.translate_bool(resize_root) and resize_root not in ("noblock"):
log.debug("Skipping module named %s, resizing disabled", name)
return
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1080985/+subscriptions