Merge "Clean up local state paths"
diff --git a/files/apts/general b/files/apts/general
index be7bf98..12a92e0 100644
--- a/files/apts/general
+++ b/files/apts/general
@@ -20,3 +20,4 @@
euca2ools # only for testing client
tar
python-cmd2 # dist:precise
+python-netaddr
diff --git a/files/rpms/general b/files/rpms/general
index 6d89d2e..e4f143d 100644
--- a/files/rpms/general
+++ b/files/rpms/general
@@ -5,6 +5,7 @@
openssh-server
psmisc
pylint
+python-netaddr
python-pep8
python-pip
python-unittest2
diff --git a/lib/nova b/lib/nova
index f428895..297a338 100644
--- a/lib/nova
+++ b/lib/nova
@@ -12,6 +12,7 @@
#
# install_nova
# configure_nova
+# create_nova_conf
# init_nova
# start_nova
# stop_nova
@@ -274,8 +275,8 @@
fi
}
-# init_nova() - Initialize databases, etc.
-function init_nova() {
+# create_nova_conf() - Create a new nova.conf file
+function create_nova_conf() {
# Remove legacy ``nova.conf``
rm -f $NOVA_DIR/bin/nova.conf
@@ -299,7 +300,6 @@
add_nova_opt "libvirt_type=$LIBVIRT_TYPE"
add_nova_opt "libvirt_cpu_mode=none"
add_nova_opt "instance_name_template=${INSTANCE_NAME_PREFIX}%08x"
- add_nova_opt "image_service=nova.image.glance.GlanceImageService"
if is_service_enabled n-api; then
add_nova_opt "enabled_apis=$NOVA_ENABLED_APIS"
@@ -353,7 +353,10 @@
# Attempt to convert flags to options
add_nova_opt ${I//--}
done
+}
+# init_nova() - Initialize databases, etc.
+function init_nova() {
# Nova Database
# -------------
diff --git a/stack.sh b/stack.sh
index 1702509..e58c439 100755
--- a/stack.sh
+++ b/stack.sh
@@ -97,7 +97,7 @@
# Warn users who aren't on an explicitly supported distro, but allow them to
# override check and attempt installation with ``FORCE=yes ./stack``
-if [[ ! ${DISTRO} =~ (oneiric|precise|quantal|f16|f17) ]]; then
+if [[ ! ${DISTRO} =~ (oneiric|precise|quantal|raring|f16|f17) ]]; then
echo "WARNING: this script has not been tested on $DISTRO"
if [[ "$FORCE" != "yes" ]]; then
echo "If you wish to run this script anyway run with FORCE=yes"
@@ -1793,6 +1793,8 @@
if is_service_enabled nova; then
echo_summary "Configuring Nova"
+ # Rebuild the config file from scratch
+ create_nova_conf
init_nova
fi