Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Merge "Disable tunneled mode when use_tls_for_live_migration" into st…
Browse files Browse the repository at this point in the history
…able/victoria
  • Loading branch information
Zuul authored and openstack-gerrit committed May 18, 2021
2 parents 676bb17 + 86de3c3 commit e361984
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 13 deletions.
34 changes: 25 additions & 9 deletions deployment/nova/nova-compute-container-puppet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,15 @@ parameters:
default: 0
tags:
- role_specific
EnableInternalTLS:
type: boolean
default: false
UseTLSTransportForLiveMigration:
type: boolean
default: true
description: If set to true and if EnableInternalTLS is enabled, it will
set the libvirt URI's transport to tls and configure the
relevant keys for libvirt.

# DEPRECATED: the following options are deprecated and are currently maintained
# for backwards compatibility. They will be removed in future release.
Expand Down Expand Up @@ -740,16 +749,23 @@ resources:
conditions:
enable_instance_ha: {equals: [{get_param: EnableInstanceHA}, true]}

use_tls_for_live_migration:
and:
- {get_param: EnableInternalTLS}
- {get_param: UseTLSTransportForLiveMigration}

enable_live_migration_tunnelled:
or:
- and:
- equals: [{get_param: NovaNfsEnabled}, true]
- equals: [{get_param: [RoleParameters, NovaNfsEnabled]}, '']
- equals: [{get_param: [RoleParameters, NovaNfsEnabled]}, true]
- equals: [{get_param: [RoleParameters, NovaEnableRbdBackend]}, true]
- and:
- equals: [{get_param: [RoleParameters, NovaEnableRbdBackend]}, '']
- equals: [{get_param: NovaEnableRbdBackend}, true]
and:
- or:
- and:
- {get_param: NovaNfsEnabled}
- equals: [{get_param: [RoleParameters, NovaNfsEnabled]}, '']
- equals: [{get_param: [RoleParameters, NovaNfsEnabled]}, true]
- equals: [{get_param: [RoleParameters, NovaEnableRbdBackend]}, true]
- and:
- equals: [{get_param: [RoleParameters, NovaEnableRbdBackend]}, '']
- {get_param: NovaEnableRbdBackend}
- not: use_tls_for_live_migration

libvirt_file_backed_memory_enabled:
not:
Expand Down
4 changes: 0 additions & 4 deletions deployment/nova/nova-libvirt-container-puppet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -273,12 +273,8 @@ conditions:

use_tls_for_live_migration:
and:
- equals:
- {get_param: EnableInternalTLS}
- true
- equals:
- {get_param: UseTLSTransportForLiveMigration}
- true

libvirt_specific_ca_unset:
equals:
Expand Down

0 comments on commit e361984

Please sign in to comment.