Change default pool subnet

To match documentation and general pattern of service networks,
we change default subnets that will be used by trove instances.

Change-Id: I7a0f23b0cdd314206f299a860685e2f96ac3f625
This commit is contained in:
Dmitriy Rabotyagov 2021-03-31 20:31:41 +03:00 committed by Dmitriy Rabotyagov
parent 875954ef3c
commit c99957f375
3 changed files with 19 additions and 8 deletions

View File

@ -179,11 +179,11 @@ trove_service_net_type: flat
trove_service_net_name: dbaas_service_net trove_service_net_name: dbaas_service_net
# Network segmentation ID if vlan, gre... # Network segmentation ID if vlan, gre...
# trove_service_net_segmentation_id: # trove_service_net_segmentation_id:
trove_service_subnet_name: dbaas_service_subnet trove_service_subnet_name: dbaas_subnet
trove_service_net_subnet_cidr: "192.168.20.0/24" trove_service_net_subnet_cidr: "172.29.252.0/22"
trove_service_net_dhcp: "True" trove_service_net_dhcp: "True"
trove_service_net_allocation_pool_start: "192.168.20.100" trove_service_net_allocation_pool_start: "172.29.252.110"
trove_service_net_allocation_pool_end: "192.168.20.120" trove_service_net_allocation_pool_end: "172.29.255.254"
trove_service_net_endpoint_type: internal trove_service_net_endpoint_type: internal
# RPC encryption keys # RPC encryption keys

View File

@ -39,14 +39,15 @@ An example entry into ``openstack_user_config.yml`` is shown below:
- network: - network:
container_bridge: "br-dbaas" container_bridge: "br-dbaas"
container_type: "veth" container_type: "veth"
container_interface: "eth14" container_interface: "eth13"
host_bind_override: "eth14" host_bind_override: "eth13"
ip_from_q: "dbaas" ip_from_q: "dbaas"
type: "flat" type: "flat"
net_name: "dbaas-mgmt" net_name: "dbaas-mgmt"
group_binds: group_binds:
- neutron_linuxbridge_agent - neutron_linuxbridge_agent
- oslomsg_rpc - oslomsg_rpc
- trove_all
Make sure to modify the other entries in this file as well. Make sure to modify the other entries in this file as well.
@ -71,9 +72,9 @@ manually, if so desired:
--provider:network_type flat \ --provider:network_type flat \
--provider:physical_network dbaas-mgmt --provider:physical_network dbaas-mgmt
neutron subnet-create dbaas_service_net 172.19.0.0/22 --name dbaas_service_subnet neutron subnet-create dbaas_service_net 172.29.252.0/22 --name dbaas_service_subnet
--ip-version=4 \ --ip-version=4 \
--allocation-pool start=172.19.1.100,end=172.19.1.200 \ --allocation-pool start=172.29.252.110,end=172.29.255.255 \
--enable-dhcp \ --enable-dhcp \
--dns-nameservers list=true 8.8.4.4 8.8.8.8 --dns-nameservers list=true 8.8.4.4 8.8.8.8

View File

@ -0,0 +1,10 @@
---
upgrade:
- |
Default value for ``trove_service_net_subnet_cidr`` has been changed from
"192.168.20.0/24" to "172.29.252.0/22". Along with that pool start and
pool end has changed as well, which is represented with variables
``trove_service_net_allocation_pool_start`` and
``trove_service_net_allocation_pool_end``.
Please, define these variables user_variables in case you used default
values in production endironments.