From: Steven Dake Date: Fri, 17 Aug 2012 17:11:21 +0000 (-0700) Subject: Add a tool to register prebuilt JEOS images into glance from github X-Git-Tag: 2014.1~1529 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=b4c6513a76bff8989d74cb658aaaf6f61c152188;p=openstack-build%2Fheat-build.git Add a tool to register prebuilt JEOS images into glance from github Change-Id: Idb02e892f390516557c9cce3ca0fbab7109d33e1 Signed-off-by: Steven Dake --- diff --git a/tools/README b/tools/README index 2864ff85..8226d595 100644 --- a/tools/README +++ b/tools/README @@ -22,6 +22,8 @@ Tools note: This tool does not create a network. Creating a network depends on the specific environment, but an example network creation: +sudo nova-manage network create demonet 10.0.0.0/24 1 256 --bridge=demonetbr0 + + heat-keystone-setup - This tool configures keystone for use with the heat service the first time openstack is installed. @@ -30,4 +32,6 @@ Tools - This script drops the heat database from mysql in the case of developer data corruption or erasing heat. -sudo nova-manage network create demonet 10.0.0.0/24 1 256 --bridge=demonetbr0 ++ glance-jeos-add-from-github.sh + - Register all JEOS images from github prebuilt repositories. + This takes about 1 hour on a typical wireless connection. diff --git a/tools/glance-jeos-add-from-github.sh b/tools/glance-jeos-add-from-github.sh new file mode 100755 index 00000000..9c56ca1f --- /dev/null +++ b/tools/glance-jeos-add-from-github.sh @@ -0,0 +1,8 @@ +#!/bin/bash +# Downloads JEOS images from github and installs them in glance + +for i in F16-x86_64-cfntools F16-i386-cfntools F17-x86_64-cfntools F17-i386-cfntools F16-x86_64-cfntools-openshift U10-x86_64-cfntools +do + echo "Downloading and registering $i with OpenStack glance." +glance add name=$i is_public=true disk_format=qcow2 container_format=bare copy_from="http://cloud.github.com/downloads/heat-api/prebuilt-jeos-images/$i.qcow2" +done