Install python-neutron-lbaas before starting neutron

When installing onto pre-provisioned servers ("split-stack"), if the
python-neutron-lbaas package is not pre-installed, the deploy would
fail when Neutron LBaaS is enabled because tripleo would start Neutron
before installing the required package.

This commit moves neutron::services::lbaas into an earlier step to
ensure the packages are installed at an appropriate time.

Closes-bug: 1777023
Change-Id: I4aebcb66363918e692703d787d823ea0f39f0388
This commit is contained in:
Lars Kellogg-Stedman 2018-06-14 13:11:33 -04:00 committed by Carlos Goncalves
parent eb68ecef7f
commit fee53d8b0d
2 changed files with 11 additions and 2 deletions

View File

@ -34,9 +34,13 @@ class tripleo::profile::base::neutron::lbaas(
include ::tripleo::profile::base::neutron
#LBaaS Driver needs to be run @ $step>=5 as the neutron service needs to already be active which is run @ $step==4
if $step >= 5 {
if $step >= 4 {
include ::neutron::services::lbaas
}
# LBaaS agent needs to be run @ $step>=5 as the neutron service needs to
# already be active which is run @ $step==4
if $step >= 5 {
class {'::neutron::agents::lbaas':
manage_haproxy_package => $manage_haproxy_package
}

View File

@ -0,0 +1,5 @@
---
fixes:
- |
Fix deployment issue where neutron-server would crash on start on
split-stack deployments when neutron-lbaas is enabled.