Removing a router with HA, removes provider network info (Pike + 2.8.2 OVS)

asked 2018-03-29 18:35:42 -0500

LuisKleber gravatar image

Hi,

Starting with most clear config from packstack installer, I install 2 machines (one is controller + network, and the other is only network). After install, I configure some basic configurations like posted bellow. Then I Remove all test router1, public-net, private-net, ... After clear all network config, I create only a Router and it is created OK on both network servers(HA). With this, a auto HA network is created (on phys_ext) with its VLAN and other information. Whens I create the second router, it works again creating both vRouters on both servers. It uses the righe HA NET and VRRP is OK between them, 1 stays active and the second as backup.

The is when I remove one of these 2 routers. They are removed form network servers, but this action modifies provider:network_type, provider:physical_network and provider:segmentation_id to none. Looking on mysql database, networksegments table is clear after this.

This doen't happen on Mitaka, Ocata and Queens but only on Pike release. After Pike install, I updated openvswitch from 2.7.2 (pike) to 2.8.2(queens) because I need QinQ feature. Could this be the problem? (I need some days to do fresh Pike test with default openvswitch - 2.7)

[root@devel3 ~ (keystone_admin)] openstack network show 90bd6cd3-c620-4a8e-b28d-a12c862cd590
    ]+---------------------------+----------------------------------------------------+
    | Field                     | Value                                              |
    +---------------------------+----------------------------------------------------+
    | admin_state_up            | UP                                                 |
    | availability_zone_hints   |                                                    |
    | availability_zones        | int6                                               |
    | created_at                | 2018-03-26T13:52:16Z                               |
    | description               |                                                    |
    | dns_domain                | None                                               |
    | id                        | 90bd6cd3-c620-4a8e-b28d-a12c862cd590               |
    | ipv4_address_scope        | None                                               |
    | ipv6_address_scope        | None                                               |
    | is_default                | None                                               |
    | is_vlan_transparent       | None                                               |
    | mtu                       | 1500                                               |
    | name                      | HA network tenant a7268cd33f864263bbabf36361987390 |
    | port_security_enabled     | True                                               |
    | project_id                |                                                    |
    | provider:network_type     | vlan                                               |
    | provider:physical_network | phys_ext                                           |
    | provider:segmentation_id  | 81                                                 |
    | qos_policy_id             | None                                               |
    | revision_number           | 3                                                  |
    | router:external           | Internal                                           |
    | segments                  | None                                               |
    | shared                    | False                                              |
    | status                    | ACTIVE                                             |
    | subnets                   | 27d85c90-0f77-465c-ab99-d66258f1c546               |
    | tags                      |                                                    |
    | updated_at                | 2018-03-26T13:52:16Z                               |

After router removed:

| provider:network_type     | none                                                |
| provider:physical_network | none                                               |
| provider:segmentation_id  | none                                               |

Basic configurations changes

**/etc/neutron/plugins/ml2/ml2_conf.ini**
type_drivers = vlan,flat,vxlan
tenant_network_types = vlan
mechanism_drivers = openvswitch
flat_networks = *
network_vlan_ranges = phys_ext:2:100,phys_net1:101:1000,phys_net2:1001:4000

**/etc/neutron/neutron.conf**
core_plugin = neutron.plugins.ml2.plugin.Ml2Plugin
service_plugins =router
debug=true 
allow_overlapping_ips = True
l3_ha = True 
dhcp_agents_per_network = 2

**/etc/neutron/plugins/ml2/openvswitch_agent.ini**
bridge_mappings = phys_ext:br-ex, phys_net1:br-net1, phys_net2:br-net2

**/etc/neutron/dhcp_agent.ini** 
availability_zone = int6
dhcp_driver = neutron.agent.linux.dhcp.Dnsmasq
dnsmasq_config_file =/etc/neutron/dnsmasq-neutron.conf
edit retag flag offensive close merge delete