From 8bcbe63403aaeffc67d0facfef68829a00bebd61 Mon Sep 17 00:00:00 2001 From: shaofeng_cheng Date: Thu, 27 Jul 2017 20:01:32 +0800 Subject: [PATCH] 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 --- doc/source/template_guide/software_deployment.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/source/template_guide/software_deployment.rst b/doc/source/template_guide/software_deployment.rst index e0264a317c..9333b81f2f 100644 --- a/doc/source/template_guide/software_deployment.rst +++ b/doc/source/template_guide/software_deployment.rst @@ -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