Commit a71768cc authored by David Johnson's avatar David Johnson

Attempt to use the distro neutron lbaas dashboard package.

parent ad44fc0d
...@@ -1736,17 +1736,20 @@ EOF ...@@ -1736,17 +1736,20 @@ EOF
# Install the neutron lbaas dashboard panel, and update the neutron # Install the neutron lbaas dashboard panel, and update the neutron
# db for lbaas. # db for lbaas.
if [ $USE_NEUTRON_LBAAS -eq 1 -a $OSVERSION -ge $OSNEWTON ]; then if [ $USE_NEUTRON_LBAAS -eq 1 -a $OSVERSION -ge $OSNEWTON ]; then
maybe_install_packages python-neutron-lbaas-dashboard
if [ $? -eq 1 ]; then
git clone https://git.openstack.org/openstack/neutron-lbaas-dashboard git clone https://git.openstack.org/openstack/neutron-lbaas-dashboard
cd neutron-lbaas-dashboard cd neutron-lbaas-dashboard
git checkout stable/${OSRELEASE} git checkout stable/${OSRELEASE}
python setup.py install python setup.py install
cp -p neutron_lbaas_dashboard/enabled/_1481_project_ng_loadbalancersv2_panel.py \ cp -p neutron_lbaas_dashboard/enabled/_1481_project_ng_loadbalancersv2_panel.py \
/usr/share/openstack-dashboard/openstack_dashboard/local/enabled/ /usr/share/openstack-dashboard/openstack_dashboard/local/enabled/
echo "OPENSTACK_NEUTRON_NETWORK['enable_lb'] = True" \
>> /etc/openstack-dashboard/local_settings.py
/usr/share/openstack-dashboard/manage.py collectstatic --noinput \ /usr/share/openstack-dashboard/manage.py collectstatic --noinput \
&& /usr/share/openstack-dashboard/manage.py compress && /usr/share/openstack-dashboard/manage.py compress
service_restart apache2 service_restart apache2
fi
echo "OPENSTACK_NEUTRON_NETWORK['enable_lb'] = True" \
>> /etc/openstack-dashboard/local_settings.py
su -s /bin/sh -c "neutron-db-manage --config-file /etc/neutron/neutron.conf --subproject neutron-lbaas upgrade head" neutron su -s /bin/sh -c "neutron-db-manage --config-file /etc/neutron/neutron.conf --subproject neutron-lbaas upgrade head" neutron
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment