Browse code

Merge "If heat is enabled, replace nova flavors."

Jenkins authored on 2012/10/30 01:25:34
Showing 2 changed files
... ...
@@ -189,6 +189,7 @@ function init_heat() {
189 189
     mysql -u$MYSQL_USER -p$MYSQL_PASSWORD -e 'CREATE DATABASE heat CHARACTER SET utf8;'
190 190
 
191 191
     $HEAT_DIR/bin/heat-db-setup $os_PACKAGE -r $MYSQL_PASSWORD
192
+    $HEAT_DIR/tools/nova_create_flavors.sh
192 193
 }
193 194
 
194 195
 # install_heat() - Collect source and prepare
... ...
@@ -1897,15 +1897,6 @@ else
1897 1897
 fi
1898 1898
 
1899 1899
 
1900
-# Heat
1901
-# ----
1902
-
1903
-if is_service_enabled heat; then
1904
-    echo_summary "Configuring Heat"
1905
-    init_heat
1906
-fi
1907
-
1908
-
1909 1900
 # Launch Services
1910 1901
 # ===============
1911 1902
 
... ...
@@ -2025,8 +2016,12 @@ screen_it swift "cd $SWIFT_DIR && $SWIFT_DIR/bin/swift-proxy-server ${SWIFT_CONF
2025 2025
 is_service_enabled swift3 || \
2026 2026
     screen_it n-obj "cd $NOVA_DIR && $NOVA_BIN_DIR/nova-objectstore"
2027 2027
 
2028
-# launch heat engine, api and metadata
2028
+
2029
+# Configure and launch heat engine, api and metadata
2029 2030
 if is_service_enabled heat; then
2031
+    # Initialize heat, including replacing nova flavors
2032
+    echo_summary "Configuring Heat"
2033
+    init_heat
2030 2034
     echo_summary "Starting Heat"
2031 2035
     start_heat
2032 2036
 fi
... ...
@@ -2098,6 +2093,11 @@ if is_service_enabled horizon; then
2098 2098
     echo "Horizon is now available at http://$SERVICE_HOST/"
2099 2099
 fi
2100 2100
 
2101
+# Warn that the default flavors have been changed by Heat
2102
+if is_service_enabled heat; then
2103
+    echo "Heat has replaced the default flavors. View by running: nova flavor-list"
2104
+fi
2105
+
2101 2106
 # If Keystone is present you can point ``nova`` cli to this server
2102 2107
 if is_service_enabled key; then
2103 2108
     echo "Keystone is serving at $KEYSTONE_AUTH_PROTOCOL://$SERVICE_HOST:$KEYSTONE_API_PORT/v2.0/"