ironic.agent element fails to write kernel and ramdisk to specified location

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

Bug Description

If specifying option '-o /home/user/image' with full path to desired image location, cleanup.d/99-ramdisk-create will fail to write kernel and ramdisk to that location as it considers $IMAGE_NAME to be relative path:

dib-run-parts Mon Dec 8 11:36:36 EST 2014 Running /tmp/image.2D0OODJI/hooks/cleanup.d/99-ramdisk-create
/tmp/image.2D0OODJI/hooks/cleanup.d/99-ramdisk-create: line 17: /home/user/diskimage-builder//home/user/images/fedora20/agent2.initramfs: No such file or directory

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/141567

Changed in diskimage-builder:
assignee: nobody → Clint Byrum (clint-fewbar)
status: Triaged → In Progress
Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Thanks for the excellent bug report Vladyslav. I've submitted a patch. :)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to diskimage-builder (master)

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

commit 4dceacd5ed96d570bd015ce2c01ce91d1463499e
Author: Clint Byrum <email address hidden>
Date: Sat Dec 13 09:14:06 2014 -0800

    Allow absolute path to image with ironic-agent

    The element was prepending the work directory forcibly, which will have
    problems when the image name has an absolute path, which is allowed.

    Change-Id: I0cb7b96e24daab8ee73611936af72074c70ac1aa
    Closes-Bug: #1400405

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.