Use default value for NovaLiveMigrationWaitForVIFPlug

The support to set config paramter NovaLiveMigrationWaitForVIFPlug
was added in I0048d1f57eeb3418b52f225f87810ea1a7250a0f which
default to true but has a condition as well, because of which
live-migration fails with timeout.

This changes removes the condition and uses the default value.

Also change Ib9fe6e1bfea1d5f62b2f2b6fdb12d16878108c3f fixes
the issue in networking-ovn project.

Change-Id: Iba2b7a94c23ff3bcc311e92b63d6c05d9cb6d065
This commit is contained in:
Rajesh Tailor 2019-08-21 16:51:52 +05:30
parent 3cdc1a4a0a
commit 8230470198
2 changed files with 2 additions and 14 deletions

View File

@ -306,11 +306,6 @@ parameters:
type: number type: number
tags: tags:
- role_specific - role_specific
NeutronMechanismDrivers:
default: 'ovn'
description: |
The mechanism drivers for the Neutron tenant network.
type: comma_delimited_list
NovaLiveMigrationWaitForVIFPlug: NovaLiveMigrationWaitForVIFPlug:
description: Whether to wait for `network-vif-plugged` events before starting guest transfer. description: Whether to wait for `network-vif-plugged` events before starting guest transfer.
default: true default: true
@ -436,8 +431,6 @@ conditions:
is_not_additional_cell: {equals: [{get_param: NovaAdditionalCell}, false]} is_not_additional_cell: {equals: [{get_param: NovaAdditionalCell}, false]}
is_ovn_in_neutron_mechanism_driver: {contains: ['ovn', {get_param: NeutronMechanismDrivers}]}
nova_nfs_enabled: nova_nfs_enabled:
or: or:
- and: - and:
@ -506,11 +499,7 @@ outputs:
nova::compute::instance_usage_audit_period: 'hour' nova::compute::instance_usage_audit_period: 'hour'
nova::compute::consecutive_build_service_disable_threshold: {get_param: NovaAutoDisabling} nova::compute::consecutive_build_service_disable_threshold: {get_param: NovaAutoDisabling}
nova::compute::rbd::ephemeral_storage: {get_param: NovaEnableRbdBackend} nova::compute::rbd::ephemeral_storage: {get_param: NovaEnableRbdBackend}
nova::compute::live_migration_wait_for_vif_plug: nova::compute::live_migration_wait_for_vif_plug: {get_param: NovaLiveMigrationWaitForVIFPlug}
if:
- is_ovn_in_neutron_mechanism_driver
- false
- {get_param: NovaLiveMigrationWaitForVIFPlug}
# TUNNELLED mode provides a security improvement for migration, but # TUNNELLED mode provides a security improvement for migration, but
# can't be used in combination with block migration. So we only enable it # can't be used in combination with block migration. So we only enable it
# when shared storage is available (Ceph RDB is currently the only option). # when shared storage is available (Ceph RDB is currently the only option).

View File

@ -4,6 +4,5 @@ features:
Add parameter `NovaLiveMigrationWaitForVIFPlug` which allows to set Add parameter `NovaLiveMigrationWaitForVIFPlug` which allows to set
`live_migration_wait_for_vif_plug` which in turn allows whether to `live_migration_wait_for_vif_plug` which in turn allows whether to
wait for ``network-vif-plugged`` events before starting guest transfer. wait for ``network-vif-plugged`` events before starting guest transfer.
The default value for the parameter is set to true and it is set The default value for the parameter is set to true.
to false when `ovn` is in `NeutronMechanismDrivers` list.