summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorsdake <sdake@redhat.com>2013-06-02 12:02:39 -0700
committersdake <sdake@redhat.com>2013-06-02 12:02:39 -0700
commit609e9789cfd3d91c2b30019c21b8a2203fcc1f51 (patch)
tree9a061f1fd109a4c6d27c1d95edf32f40112321c5 /tools
parent5e92be740d9caf45a24224133d4e3ed82982a269 (diff)
downloadheat-templates-609e9789cfd3d91c2b30019c21b8a2203fcc1f51.tar.gz
Add sudo -E to heat-jeos recommended command
Normally heat would be run without root capabilities. The directory /var/lib/libvirt/images is typically not world readable. As a result, the glance operation requires root permissions to actually read the file, and may be a source of confusion for users. Also break the notification into two lines since it wraps on 80 character windows. Change-Id: I905f3c24ed253ddc1e843bc73c93464c65d3df0b
Diffstat (limited to 'tools')
-rwxr-xr-xtools/heat-jeos.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/heat-jeos.sh b/tools/heat-jeos.sh
index 1c7e66c..54034ca 100755
--- a/tools/heat-jeos.sh
+++ b/tools/heat-jeos.sh
@@ -41,8 +41,9 @@ FMTFILE="${LIBVIRT_IMGDIR}/${TDLNAME}.${DISK_FORMAT}"
qemu-img convert -c -O ${DISK_FORMAT} ${DSKFILE} ${FMTFILE}
if [ -f ${FMTFILE} ]; then
- echo "Image ${FMTFILE} complete, now add image to glance, e.g:"
- GLANCECMD="glance add name=${TDLNAME} is_public=true disk_format=${DISK_FORMAT} container_format=bare"
+ echo "Image ${FMTFILE} creation complete."
+ echo "Add the image to glance with the command:"
+ GLANCECMD="sudo -E glance add name=${TDLNAME} is_public=true disk_format=${DISK_FORMAT} container_format=bare"
echo "${GLANCECMD} < ${FMTFILE}"
else
echo "Error creating image file ${FMTFILE}"