diskimage-builder failed due to "dib-run-parts: command not found" in Bare Metal Service Installation Guide

Bug #1414510 reported by Naohiro Tamura
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ironic
Fix Released
High
Naohiro Tamura

Bug Description

The following diskimage-builder command failed due to "dib-run-parts: command not found".
This step is described in "Image Requirements" section, Bare Metal Service Installation Guide.
http://docs.openstack.org/developer/ironic/deploy/install-guide.html#image-requirements

Steps to reproduce:
-----------------------

1. execute the script tripleo-incubator provides
naohirot@ubuntu2:~/work/image$ export TRIPLEO_OS_DISTRO=ubuntu
naohirot@ubuntu2:~/work/image$ export TRIPLEO_OS_FAMILY=debian
naohirot@ubuntu2:~/work/image$ bash ./install-dependencies

2. execute diskimage-builder
naohirot@ubuntu2:~/work/image$ git clone https://github.com/openstack/diskimage-builder.git
naohirot@ubuntu2:~/work/image/diskimage-builder$ cd diskimage-builder
naohirot@ubuntu2:~/work/image/diskimage-builder$ bin/disk-image-create ubuntu baremetal -o my-image
Building elements: base ubuntu baremetal
Expanded element dependencies to: dib-run-parts manifests baremetal cache-url pkg-map base ubuntu cloud-init-datasources dpkg dkms
Not enough RAM to use tmpfs for build. (4048236 < 4G)
Building in /tmp/image.UYgqyc4M
/home/naohirot/work/image/diskimage-builder/bin/../lib/common-functions: line 184: dib-run-parts: command not found
umount2: Invalid argument
umount: /tmp/image.UYgqyc4M: not mounted
umount2: Invalid argument
umount: /tmp/image.Cp19OLoj: not mounted

Analysis:
---------
diskimage-builder requires dib-utils.
It worked after having installed dib-utils.

naohirot@ubuntu2:~/work/image$ git clone https://github.com/openstack/dib-utils.git
naohirot@ubuntu2:~/work/image$ (cd dib-utils; ./setup.py build; sudo ./setup.py install)
naohirot@ubuntu2:~/work/image/diskimage-builder$ bin/disk-image-create ubuntu baremetal -o my-image

Changed in ironic:
assignee: nobody → Naohiro Tamura (naohirot)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ironic (master)

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

Changed in ironic:
status: New → In Progress
Dmitry Tantsur (divius)
Changed in ironic:
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ironic (master)

Reviewed: https://review.openstack.org/149904
Committed: https://git.openstack.org/cgit/openstack/ironic/commit/?id=e852f5f16c5b50a20eed6b886bfd3d20e0dfa993
Submitter: Jenkins
Branch: master

commit e852f5f16c5b50a20eed6b886bfd3d20e0dfa993
Author: Naohiro Tamura <email address hidden>
Date: Mon Jan 26 10:35:59 2015 +0900

    Replace DIB installation step from git clone to pip

    This replaces DIB installation step from git clone to pip
    in Bare Metal Service Installation Guide so that all of DIB required
    packages such as dib-utils can be installed automatically.
    Without this change, diskimage-builder command fails due to
    "dib-run-parts: command not found".
    The install-dependencies script which tripleo-incubator provides
    doesn't install all of DIB required packages.

    Closes-Bug: #1414510
    Change-Id: I0f68fc79b5addbf38713a42e8ac2d631e4f2f219

Changed in ironic:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in ironic:
milestone: none → kilo-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in ironic:
milestone: kilo-2 → 2015.1.0
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.