Limit ovn sanity checks to q-svc
The sanity checks related to neutron-server config only make sense when q-svc service is enabled. When building a devstack without q-svc (for example a compute-only devstack) do not force this configuration to be present where it's meaningless. Change-Id: I5b9176d4a55a826f498e367f1f02569429dbe546
This commit is contained in:
parent
02a7e96743
commit
6b01ecf9ea
|
@ -416,9 +416,9 @@ function ovn_sanity_check {
|
|||
die $LINENO "The q-agt/neutron-agt service must be disabled with OVN."
|
||||
elif is_service_enabled q-l3 neutron-l3; then
|
||||
die $LINENO "The q-l3/neutron-l3 service must be disabled with OVN."
|
||||
elif [[ ! $Q_ML2_PLUGIN_MECHANISM_DRIVERS =~ "ovn" ]]; then
|
||||
elif is_service_enabled q-svc neutron-api && [[ ! $Q_ML2_PLUGIN_MECHANISM_DRIVERS =~ "ovn" ]]; then
|
||||
die $LINENO "OVN needs to be enabled in \$Q_ML2_PLUGIN_MECHANISM_DRIVERS"
|
||||
elif [[ ! $Q_ML2_PLUGIN_TYPE_DRIVERS =~ "geneve" ]]; then
|
||||
elif is_service_enabled q-svc neutron-api && [[ ! $Q_ML2_PLUGIN_TYPE_DRIVERS =~ "geneve" ]]; then
|
||||
die $LINENO "Geneve needs to be enabled in \$Q_ML2_PLUGIN_TYPE_DRIVERS to be used with OVN"
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue