Add diskimage-builder project install

Disk-image-create file has been removed from 'diskimage-builder/bin/'.
see:
https://github.com/openstack/diskimage-builder/tree/master/bin

So,We nedd install diskimage-builder project before execute
disk-image-create command.

Change-Id: Idd052154ac3603a70a4b23eb17f4c84a8b321358
This commit is contained in:
shaofeng_cheng 2017-07-27 20:01:32 +08:00
parent 1eec2af225
commit 8bcbe63403
1 changed files with 4 additions and 2 deletions

View File

@ -474,10 +474,12 @@ required in later examples:
# Clone the required repositories. Some of these are also available
# via pypi or as distro packages.
git clone https://git.openstack.org/openstack/diskimage-builder.git
git clone https://git.openstack.org/openstack/tripleo-image-elements.git
git clone https://git.openstack.org/openstack/heat-agents.git
# Install diskimage-builder from source
sudo pip install git+https://git.openstack.org/openstack/diskimage-builder.git
# Required by diskimage-builder to discover element collections
export ELEMENTS_PATH=tripleo-image-elements/elements:heat-agents/
@ -506,7 +508,7 @@ required in later examples:
export IMAGE_NAME=fedora-software-config
# Create the image
diskimage-builder/bin/disk-image-create vm $BASE_ELEMENTS $AGENT_ELEMENTS \
disk-image-create vm $BASE_ELEMENTS $AGENT_ELEMENTS \
$DEPLOYMENT_BASE_ELEMENTS $DEPLOYMENT_TOOL -o $IMAGE_NAME.qcow2
# Upload the image, assuming valid credentials are already sourced