if [ $1 -eq 1 ] ; then
# Initial installation
/sbin/chkconfig --add neutron-server
- for agent in dhcp l3 metadata lbaas; do
+ for agent in dhcp l3 metadata; do
/sbin/chkconfig --add neutron-$agent-agent
done
fi
# Package removal, not upgrade
/sbin/service neutron-server stop >/dev/null 2>&1
/sbin/chkconfig --del neutron-server
- for agent in dhcp l3 metadata lbaas; do
+ for agent in dhcp l3 metadata; do
/sbin/service neutron-$agent-agent stop >/dev/null 2>&1
/sbin/chkconfig --del neutron-$agent-agent
done
if [ $1 -ge 1 ] ; then
# Package upgrade, not uninstall
/sbin/service neutron-server condrestart >/dev/null 2>&1 || :
- for agent in dhcp l3 metadata lbaas; do
+ for agent in dhcp l3 metadata; do
/sbin/service neutron-$agent-agent condrestart >/dev/null 2>&1 || :
done
fi
NEUTRON_AUTH="--os-username neutron --os-password neutron --os-tenant-name neutron --os-auth-url http://127.0.0.1:35357/v2.0"
CORE_PLUGIN="neutron.plugins.ml2.plugin.Ml2Plugin"
-if [[ $PLATFORM =~ Ubuntu ]]; then UBUNTU=true; fi
+if [[ $PLATFORM =~ Ubuntu ]]
+then UBUNTU=true
+else
+ #Tests for RPM packages are disabled
+ #until migration to CentOS 7 is completed
+ echo "RPM tests are temporarily disabled"
+ exit 0
+fi
if [ -z $PACKAGE ]; then echo "Package for testing is not specified"; exit 1; fi
echo "127.0.10.1 $(hostname)" >> /etc/hosts