Backgrounded resizing does not work

Bug #1338614 reported by Mohammed Naser
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-init
Fix Released
Medium
Jay Faulkner

Bug Description

When setting resize_rootfs to 'noblock', cloud-init should fork a new process and continue with it's own initialization process. However, it seems that this is currently broken, as you see from these logs that it still blocks on it:

Jul 7 12:34:20 localhost [CLOUDINIT] cc_resizefs.py[DEBUG]: Resizing (via forking) root filesystem (type=ext4, val=noblock)
Jul 7 12:34:20 localhost [CLOUDINIT] util.py[WARNING]: Failed forking and calling callback NoneType
Jul 7 12:34:20 localhost [CLOUDINIT] util.py[DEBUG]: Failed forking and calling callback NoneType#012Traceback (most recent call last):#012 File "/usr/lib/python2.6/site-packages/cloudinit/util.py", line 220, in fork_cb#012 child_cb(*args)#012TypeError: 'NoneType' object is not callable

Also, when looking at timings, you can see that it was blocked on it for the whole time

Jul 7 12:33:38 localhost [CLOUDINIT] util.py[DEBUG]: Cloud-init v. 0.7.4 running 'init' at Mon, 07 Jul 2014 12:33:38 +0000. Up 5.67 seconds.
Jul 7 12:34:20 localhost [CLOUDINIT] util.py[DEBUG]: backgrounded Resizing took 41.487 seconds
Jul 7 12:34:20 localhost [CLOUDINIT] util.py[DEBUG]: cloud-init mode 'init' took 41.799 seconds (41.80)

Related branches

Scott Moser (smoser)
Changed in cloud-init:
status: New → Incomplete
status: Incomplete → Confirmed
importance: Undecided → Medium
Changed in cloud-init:
assignee: nobody → Jay Faulkner (jason-oldos)
Changed in cloud-init:
status: Confirmed → In Progress
Revision history for this message
Scott Moser (smoser) wrote :

fixed in trunk at 1018. thank you Jay.

Changed in cloud-init:
status: In Progress → Fix Committed
Revision history for this message
Scott Moser (smoser) wrote :

fixed in 0.7.6

Changed in cloud-init:
status: Fix Committed → 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.