Exception AttributeError: "'Popen' object has no attribute '_child_created'"

Bug #711573 reported by Paul Larson
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Linaro Image Tools
Fix Released
High
Loïc Minier

Bug Description

* This error is when cleaning up, so the image is already successfully generated when you see it. *

Got this when creating a panda image.
This was on revno: 282

sudo ~/work/linaro/linaro-image-tools/linaro-media-create --rootfs ext3 --mmc /dev/mmcblk0 --dev panda --swap_file 256 --hwpack hwpack_linaro-panda_20110201-0_armel_supported.tar.gz --binary linaro-natty-efl-tar-20110201-1.tar.gz --hwpack-force-yes

...
256+0 records in
256+0 records out
268435456 bytes (268 MB) copied, 35.9356 s, 7.5 MB/s
mkswap: /tmp/tmpyhTbtO/root-disc/SWAP.swap: warning: don't erase bootbits sectors
        on whole disk. Use -f to force.
Setting up swapspace version 1, size = 262140 KiB
no label, UUID=cb1e11b2-cb8f-497d-b679-e70aab4d9c91

Creating /etc/flash-kernel.conf

Done creating Linaro image on /dev/mmcblk0
Exception AttributeError: "'Popen' object has no attribute '_child_created'" in <bound method Popen.__del__ of <linaro_media_create.cmd_runner.Popen object at 0x17a8950>> ignored
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "/home/plars/work/linaro/linaro-image-tools/linaro-media-create", line 73, in cleanup_tempdir
    except SubcommandNonZeroReturnValue:
NameError: global name 'SubcommandNonZeroReturnValue' is not defined
Error in sys.exitfunc:
Traceback (most recent call last):
  File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "/home/plars/work/linaro/linaro-image-tools/linaro-media-create", line 73, in cleanup_tempdir
    except SubcommandNonZeroReturnValue:
NameError: global name 'SubcommandNonZeroReturnValue' is not defined

Related branches

James Westby (james-w)
Changed in linaro-image-tools:
status: New → Triaged
importance: Undecided → High
Revision history for this message
Loïc Minier (lool) wrote :

Paul, while this indicates bugs in linaro-image-tools, it also points at umount returning a non-zero code; do you have something in dmesg indicating why it did?

I think we shouldn't trash stdout and stderr here.

Revision history for this message
Guilherme Salgado (salgado) wrote :

It's not failing because umount returns non-zero, it's failing because cleanup_tempdir() is broken; it passes as_root to cmd_runner.Popen(), which doesn't expect that argument. We definitely need some tests for cleanup_tempdir()

description: updated
Loïc Minier (lool)
Changed in linaro-image-tools:
status: Triaged → Fix Committed
assignee: nobody → Loïc Minier (lool)
Loïc Minier (lool)
Changed in linaro-image-tools:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers