Permalink
Browse files

Fixup glance uploads..

  • Loading branch information...
1 parent 76b9640 commit 4e5e25ad3abbc483439ec6bd6ff71fdccc06a927 @kiall kiall committed Jan 22, 2012
Showing with 9 additions and 10 deletions.
  1. +1 −1 glance-api.conf.tmpl
  2. +1 −2 glance-test.sh
  3. +7 −7 glance.sh
View
@@ -3,7 +3,7 @@
verbose = True
# Show debugging output in logs (sets DEBUG log level output)
-debug = False
+debug = True
# Which backend store should Glance use by default is not specified
# in a request to add a new image to Glance? Default: 'file'
View
@@ -2,5 +2,4 @@
# Import Settings
. settings
-glance -A $SERVICE_TOKEN show 2
-(glance -A $SERVICE_TOKEN index && echo "Success" ) || echo "Failed"
+glance -A $SERVICE_TOKEN index || echo "Failed"
View
@@ -16,21 +16,21 @@ sed -e "s,%MYSQL_HOST%,$MYSQL_HOST,g" -i glance-registry.conf
sed -e "s,%MYSQL_GLANCE_PASS%,$MYSQL_GLANCE_PASS,g" -i glance-registry.conf
sed -e "s,%SERVICE_TOKEN%,$SERVICE_TOKEN,g" glance-api.conf.tmpl > glance-api.conf
+service glance-api stop
+service glance-registry stop
+
+sleep 2
+
cp glance-registry.conf glance-api.conf /etc/glance/
chown glance:glance /etc/glance/glance-registry.conf
chown glance:glance /etc/glance/glance-api.conf
-service glance-api restart
-sleep 2
-service glance-registry restart
-sleep 2
-
glance-manage db_sync
-service glance-api restart
+service glance-api start
sleep 2
-service glance-registry restart
+service glance-registry start
sleep 2
./glance-upload-ttylinux.sh

0 comments on commit 4e5e25a

Please sign in to comment.