Building with -t tar produces error

Bug #1378033 reported by Chad Roberts
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
diskimage-builder
Fix Released
Medium
Clint Byrum

Bug Description

When building my image (centos 7 image with bits for Sahara [openstack data processing]) for qcow2, it succeeds as expected, but when I add -t tar to generate a docker loadable archive, I get the following.

In case it matters, this is being done on a Fedora 20 machine

tar: ./dev/log: socket ignored
losetup: /dev/loop6: detach failed: No such device or address
/dev/loop6 may be busy, sleeping up to 10 more seconds...
losetup: /dev/loop6: detach failed: No such device or address
/dev/loop6 may be busy, sleeping up to 9 more seconds...
losetup: /dev/loop6: detach failed: No such device or address
/dev/loop6 may be busy, sleeping up to 8 more seconds...
losetup: /dev/loop6: detach failed: No such device or address
/dev/loop6 may be busy, sleeping up to 7 more seconds...
losetup: /dev/loop6: detach failed: No such device or address
/dev/loop6 may be busy, sleeping up to 6 more seconds...
losetup: /dev/loop6: detach failed: No such device or address
/dev/loop6 may be busy, sleeping up to 5 more seconds...
losetup: /dev/loop6: detach failed: No such device or address
/dev/loop6 may be busy, sleeping up to 4 more seconds...
losetup: /dev/loop6: detach failed: No such device or address
/dev/loop6 may be busy, sleeping up to 3 more seconds...
losetup: /dev/loop6: detach failed: No such device or address
/dev/loop6 may be busy, sleeping up to 2 more seconds...
losetup: /dev/loop6: detach failed: No such device or address
/dev/loop6 may be busy, sleeping up to 1 more seconds...
Gave up trying to detach /dev/loop6

If I add ./dev/log to the excludes in the "sudo tar...." line, the tar warning goes away, but the losetup failures remain. It looks like the losetup failure is eventually generating an exit code of 1, which is unfortunate.

This probably isn't super high priority because my tar archive does get built and it works, but it seems like something that should be handled.

Revision history for this message
Clint Byrum (clint-fewbar) wrote :

I believe the problem is that we're treating all losetup failures as temporary.

Changed in diskimage-builder:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to diskimage-builder (master)

Fix proposed to branch: master
Review: https://review.openstack.org/126375

Changed in diskimage-builder:
assignee: nobody → Clint Byrum (clint-fewbar)
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to diskimage-builder (master)

Reviewed: https://review.openstack.org/126375
Committed: https://git.openstack.org/cgit/openstack/diskimage-builder/commit/?id=c7811157845fba6b31635815cfcf9689a5b32680
Submitter: Jenkins
Branch: master

commit c7811157845fba6b31635815cfcf9689a5b32680
Author: Clint Byrum <email address hidden>
Date: Mon Oct 6 11:04:06 2014 -0700

    Do not try to detach non-existant loopback devices

    A user reported symptoms where the losetup line used to detach the
    loopback device was failing in tar mode. We don't need to detach a
    device that does not exist.

    Change-Id: I807996e16199288927b49b4f300ae9b461cb8fe7
    Closes-Bug: #1378033

Changed in diskimage-builder:
status: In Progress → Fix Committed
Jay Dobies (jdob)
Changed in diskimage-builder:
status: Fix Committed → Fix Released
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.