Merge "Remove deprecated compute groups"
This commit is contained in:
commit
1cb23bd5f5
@ -728,7 +728,7 @@ neutron_tenant_network_types: "vxlan"
|
||||
|
||||
# valid values: ["dvr", "dvr_no_external"]
|
||||
neutron_compute_dvr_mode: "dvr"
|
||||
computes_need_external_bridge: "{{ enable_neutron_dvr | bool and (neutron_compute_dvr_mode == 'dvr' or inventory_hostname in groups['external-compute']) or enable_neutron_provider_networks | bool or enable_opendaylight | bool and neutron_plugin_agent != 'vmware_dvs' and not enable_onos | bool }}"
|
||||
computes_need_external_bridge: "{{ enable_neutron_dvr | bool and neutron_compute_dvr_mode == 'dvr' or enable_neutron_provider_networks | bool or enable_opendaylight | bool and neutron_plugin_agent != 'vmware_dvs' and not enable_onos | bool }}"
|
||||
|
||||
# Default DNS resolvers for virtual networks
|
||||
neutron_dnsmasq_dns_servers: "1.1.1.1,8.8.8.8,8.8.4.4"
|
||||
|
@ -6,23 +6,9 @@ localhost ansible_connection=local
|
||||
[network]
|
||||
localhost ansible_connection=local
|
||||
|
||||
# inner-compute is the groups of compute nodes which do not have
|
||||
# external reachability.
|
||||
# DEPRECATED, the group will be removed in S release of OpenStack,
|
||||
# use variable neutron_compute_dvr_mode instead.
|
||||
[inner-compute]
|
||||
|
||||
# external-compute is the groups of compute nodes which can reach
|
||||
# outside.
|
||||
# DEPRECATED, the group will be removed in S release of OpenStack,
|
||||
# use variable neutron_compute_dvr_mode instead.
|
||||
[external-compute]
|
||||
[compute]
|
||||
localhost ansible_connection=local
|
||||
|
||||
[compute:children]
|
||||
inner-compute
|
||||
external-compute
|
||||
|
||||
[storage]
|
||||
localhost ansible_connection=local
|
||||
|
||||
|
@ -15,23 +15,9 @@ control03
|
||||
network01
|
||||
network02
|
||||
|
||||
# inner-compute is the groups of compute nodes which do not have
|
||||
# external reachability.
|
||||
# DEPRECATED, the group will be removed in S release of OpenStack,
|
||||
# use variable neutron_compute_dvr_mode instead.
|
||||
[inner-compute]
|
||||
|
||||
# external-compute is the groups of compute nodes which can reach
|
||||
# outside.
|
||||
# DEPRECATED, the group will be removed in S release of OpenStack,
|
||||
# use variable neutron_compute_dvr_mode instead.
|
||||
[external-compute]
|
||||
[compute]
|
||||
compute01
|
||||
|
||||
[compute:children]
|
||||
inner-compute
|
||||
external-compute
|
||||
|
||||
[monitoring]
|
||||
monitoring01
|
||||
|
||||
|
@ -48,16 +48,6 @@
|
||||
run_once: true
|
||||
with_items: "{{ tenant_network_types }}"
|
||||
|
||||
- name: Checking for deprecated inner-compute and external-compute groups
|
||||
local_action:
|
||||
module: debug
|
||||
msg: "WARNING: inner-compute and external-compute groups are DEPRECATED"
|
||||
changed_when: false
|
||||
run_once: True
|
||||
when:
|
||||
- (groups['inner-compute'] | default([]) | length > 0
|
||||
or groups['external-compute'] | default([]) | length > 0)
|
||||
|
||||
- name: Checking whether Ironic enabled
|
||||
local_action: fail msg="Ironic must be enabled when using networking-baremetal/ironic-neutron-agent"
|
||||
changed_when: false
|
||||
|
@ -4,11 +4,7 @@
|
||||
{% if enable_neutron_dvr | bool %}
|
||||
{% if inventory_hostname in groups['network'] %}
|
||||
agent_mode = dvr_snat
|
||||
{% elif inventory_hostname in groups['external-compute'] %}
|
||||
agent_mode = dvr
|
||||
{% elif inventory_hostname in groups['inner-compute'] %}
|
||||
agent_mode = dvr_no_external
|
||||
{% elif inventory_hostname in groups['compute'] %}
|
||||
{% else %}
|
||||
agent_mode = {{ neutron_compute_dvr_mode }}
|
||||
{% endif %}
|
||||
{% else %}
|
||||
|
@ -176,14 +176,14 @@ function configure_kolla_cli {
|
||||
if [ "$MODE" == 'aio' ]; then
|
||||
kolla-cli setdeploy local
|
||||
kolla-cli host add localhost
|
||||
for group in control deployment external-compute monitoring network storage; do
|
||||
for group in control deployment compute monitoring network storage; do
|
||||
kolla-cli group addhost $group localhost
|
||||
done
|
||||
else
|
||||
for node_num in $(seq 1 ${NUMBER_OF_COMPUTE_NODES}); do
|
||||
node_name="compute0${node_num}"
|
||||
kolla-cli host add $node_name
|
||||
kolla-cli group addhost external-compute $node_name
|
||||
kolla-cli group addhost compute $node_name
|
||||
done
|
||||
|
||||
for node_num in $(seq 1 ${NUMBER_OF_STORAGE_NODES}); do
|
||||
|
@ -0,0 +1,7 @@
|
||||
---
|
||||
upgrade:
|
||||
- |
|
||||
Previously deprecated compute groups 'inner-compute' and 'external-compute'
|
||||
have now been removed in favor of the more simple 'compute' group. Please
|
||||
be sure to update your inventory. Set 'neutron_compute_dvr_mode' on nodes
|
||||
with which you wish to customise the value for neutron's 'agent_mode'.
|
Loading…
Reference in New Issue
Block a user