manila: Drop leftover of nova-network

nova-network was removed some time ago and has been unavailable. Drop
the remaining implementations to configure manila integrated with
nova-network.

Change-Id: I4e8e89bb5a20596e563a6c3e97c15853b912110e
This commit is contained in:
Takashi Kajinami 2024-10-04 02:02:23 +09:00
parent 6253bb59ce
commit 06a0c2bba6
3 changed files with 20 additions and 21 deletions

View File

@ -655,7 +655,7 @@ Manila Network configuration
----------------------------
**CONFIG_MANILA_NETWORK_TYPE**
Type of networking that the backend will use. A more detailed description of each option is available in the Manila docs. Defaults to 'neutron'. ['neutron', 'nova-network', 'standalone']
Type of networking that the backend will use. A more detailed description of each option is available in the Manila docs. Defaults to 'neutron'. ['neutron', 'standalone']
Manila Standalone network configuration
---------------------------------------

View File

@ -297,7 +297,7 @@ def initConfig(controller):
"MANILANETWORK": [
{"CMD_OPTION": "manila-network-type",
"PROMPT": ("Enter a network type"),
"OPTION_LIST": ['neutron', 'nova-network', 'standalone'],
"OPTION_LIST": ['neutron', 'standalone'],
"VALIDATORS": [validators.validate_options],
"DEFAULT_VALUE": "neutron",
"MASK_INPUT": False,

View File

@ -2,27 +2,26 @@
define packstack::manila::network ($backend_name = $name) {
$manila_network_type = lookup('CONFIG_MANILA_NETWORK_TYPE')
if ($manila_network_type == 'neutron'){
class { 'manila::network::neutron':
auth_type => 'password',
auth_url => lookup('CONFIG_KEYSTONE_PUBLIC_URL_VERSIONLESS'),
password => lookup('CONFIG_NEUTRON_KS_PW'),
case $manila_network_type {
'neutron': {
class { 'manila::network::neutron':
auth_type => 'password',
auth_url => lookup('CONFIG_KEYSTONE_PUBLIC_URL_VERSIONLESS'),
password => lookup('CONFIG_NEUTRON_KS_PW'),
}
}
}
elsif ($manila_network_type == 'nova-network'){
manila::network::nova_network{ $backend_name: }
}
elsif ($manila_network_type == 'standalone'){
manila::network::standalone{ $backend_name:
standalone_network_plugin_gateway => lookup('CONFIG_MANILA_NETWORK_STANDALONE_GATEWAY'),
standalone_network_plugin_mask => lookup('CONFIG_MANILA_NETWORK_STANDALONE_NETMASK'),
standalone_network_plugin_segmentation_id => lookup('CONFIG_MANILA_NETWORK_STANDALONE_SEG_ID'),
standalone_network_plugin_allowed_ip_ranges => lookup('CONFIG_MANILA_NETWORK_STANDALONE_IP_RANGE'),
standalone_network_plugin_ip_version => lookup('CONFIG_MANILA_NETWORK_STANDALONE_IP_VERSION'),
'standalone': {
manila::network::standalone{ $backend_name:
standalone_network_plugin_gateway => lookup('CONFIG_MANILA_NETWORK_STANDALONE_GATEWAY'),
standalone_network_plugin_mask => lookup('CONFIG_MANILA_NETWORK_STANDALONE_NETMASK'),
standalone_network_plugin_segmentation_id => lookup('CONFIG_MANILA_NETWORK_STANDALONE_SEG_ID'),
standalone_network_plugin_allowed_ip_ranges => lookup('CONFIG_MANILA_NETWORK_STANDALONE_IP_RANGE'),
standalone_network_plugin_ip_version => lookup('CONFIG_MANILA_NETWORK_STANDALONE_IP_VERSION'),
}
}
default: {
fail("The value ${manila_network_type} is not a valid value for the Manila network type.")
}
}
else {
fail("The value ${manila_network_type} is not a valid value for the Manila network type.")
}
}