Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

rocky linux_bridge selfsevice network router interface down

Hello!

I installed openstack with some nodes. 1 controller and 2 compute nodes. The network service is on the controller node.

I configured a provider network. It works. I configured a selfservice network. It works between nodes which were connected to. If I want to use only the selfservice network, and i want to conect to the internet through this network it doesn't work (internet access). I created a router with interface. But this interface is in down state.

I use linux_bridge, not openvswitch. As the example described on openstack.org

Did i miss something, or did i do wrong?

thank you. Johnny

root@mantis(controller)~ # openstack network list
+--------------------------------------+----------+--------------------------------------+
| ID                                   | Name     | Subnets                              |
+--------------------------------------+----------+--------------------------------------+
| 165c112f-7e3c-4b52-a2e2-dbd013defd10 | external | 5b48de07-3c3b-4fad-91e4-527fc6504abf |
| e1c5cd35-6e4e-4b4f-a1ba-6b49244e0c6d | internal | fa606c14-65fa-4f4f-ae47-bb87cc46e89a |
+--------------------------------------+----------+--------------------------------------+
root@mantis(controller)~ # openstack network show e1c5cd35-6e4e-4b4f-a1ba-6b49244e0c6d
+---------------------------+--------------------------------------+
| Field                     | Value                                |
+---------------------------+--------------------------------------+
| admin_state_up            | UP                                   |
| availability_zone_hints   |                                      |
| availability_zones        | nova                                 |
| created_at                | 2018-12-15T14:11:52Z                 |
| description               |                                      |
| dns_domain                | None                                 |
| id                        | e1c5cd35-6e4e-4b4f-a1ba-6b49244e0c6d |
| ipv4_address_scope        | None                                 |
| ipv6_address_scope        | None                                 |
| is_default                | None                                 |
| is_vlan_transparent       | None                                 |
| mtu                       | 1450                                 |
| name                      | internal                             |
| port_security_enabled     | True                                 |
| project_id                | ba546ea8e5224748860d3476d2401106     |
| provider:network_type     | vxlan                                |
| provider:physical_network | None                                 |
| provider:segmentation_id  | 1                                    |
| qos_policy_id             | None                                 |
| revision_number           | 1                                    |
| router:external           | Internal                             |
| segments                  | None                                 |
| shared                    | True                                 |
| status                    | ACTIVE                               |
| subnets                   | fa606c14-65fa-4f4f-ae47-bb87cc46e89a |
| tags                      |                                      |
| updated_at                | 2018-12-15T14:11:52Z                 |
+---------------------------+--------------------------------------+
root@mantis(controller)~ # openstack network show 165c112f-7e3c-4b52-a2e2-dbd013defd10
+---------------------------+--------------------------------------+
| Field                     | Value                                |
+---------------------------+--------------------------------------+
| admin_state_up            | UP                                   |
| availability_zone_hints   |                                      |
| availability_zones        | nova                                 |
| created_at                | 2018-12-15T13:57:26Z                 |
| description               |                                      |
| dns_domain                | None                                 |
| id                        | 165c112f-7e3c-4b52-a2e2-dbd013defd10 |
| ipv4_address_scope        | None                                 |
| ipv6_address_scope        | None                                 |
| is_default                | False                                |
| is_vlan_transparent       | None                                 |
| mtu                       | 1500                                 |
| name                      | external                             |
| port_security_enabled     | True                                 |
| project_id                | ba546ea8e5224748860d3476d2401106     |
| provider:network_type     | flat                                 |
| provider:physical_network | provider                             |
| provider:segmentation_id  | None                                 |
| qos_policy_id             | None                                 |
| revision_number           | 1                                    |
| router:external           | External                             |
| segments                  | None                                 |
| shared                    | True                                 |
| status                    | ACTIVE                               |
| subnets                   | 5b48de07-3c3b-4fad-91e4-527fc6504abf |
| tags                      |                                      |
| updated_at                | 2018-12-15T13:57:26Z                 |
+---------------------------+--------------------------------------+

root@mantis(controller)~ # openstack subnet list
+--------------------------------------+-------+--------------------------------------+-----------------+
| ID                                   | Name  | Network                              | Subnet          |
+--------------------------------------+-------+--------------------------------------+-----------------+
| 5b48de07-3c3b-4fad-91e4-527fc6504abf | local | 165c112f-7e3c-4b52-a2e2-dbd013defd10 | 192.168.96.0/21 |
| fa606c14-65fa-4f4f-ae47-bb87cc46e89a | int1  | e1c5cd35-6e4e-4b4f-a1ba-6b49244e0c6d | 10.1.0.0/24     |
+--------------------------------------+-------+--------------------------------------+-----------------+
root@mantis(controller)~ # openstack subnet show fa606c14-65fa-4f4f-ae47-bb87cc46e89a
+-------------------+--------------------------------------+
| Field             | Value                                |
+-------------------+--------------------------------------+
| allocation_pools  | 10.1.0.10-10.1.0.100                 |
| cidr              | 10.1.0.0/24                          |
| created_at        | 2018-12-15T14:11:52Z                 |
| description       |                                      |
| dns_nameservers   |                                      |
| enable_dhcp       | True                                 |
| gateway_ip        | 10.1.0.1                             |
| host_routes       |                                      |
| id                | fa606c14-65fa-4f4f-ae47-bb87cc46e89a |
| ip_version        | 4                                    |
| ipv6_address_mode | None                                 |
| ipv6_ra_mode      | None                                 |
| name              | int1                                 |
| network_id        | e1c5cd35-6e4e-4b4f-a1ba-6b49244e0c6d |
| project_id        | ba546ea8e5224748860d3476d2401106     |
| revision_number   | 0                                    |
| segment_id        | None                                 |
| service_types     |                                      |
| subnetpool_id     | None                                 |
| tags              |                                      |
| updated_at        | 2018-12-15T14:11:52Z                 |
+-------------------+--------------------------------------+
root@mantis(controller)~ # openstack subnet show 5b48de07-3c3b-4fad-91e4-527fc6504abf
+-------------------+--------------------------------------+
| Field             | Value                                |
+-------------------+--------------------------------------+
| allocation_pools  | 192.168.100.175-192.168.100.180      |
| cidr              | 192.168.96.0/21                      |
| created_at        | 2018-12-15T13:57:26Z                 |
| description       |                                      |
| dns_nameservers   | 192.168.98.40                        |
| enable_dhcp       | True                                 |
| gateway_ip        | 192.168.100.1                        |
| host_routes       |                                      |
| id                | 5b48de07-3c3b-4fad-91e4-527fc6504abf |
| ip_version        | 4                                    |
| ipv6_address_mode | None                                 |
| ipv6_ra_mode      | None                                 |
| name              | local                                |
| network_id        | 165c112f-7e3c-4b52-a2e2-dbd013defd10 |
| project_id        | ba546ea8e5224748860d3476d2401106     |
| revision_number   | 0                                    |
| segment_id        | None                                 |
| service_types     |                                      |
| subnetpool_id     | None                                 |
| tags              |                                      |
| updated_at        | 2018-12-15T13:57:26Z                 |
+-------------------+--------------------------------------+


root@mantis(controller)~ # openstack router list
+--------------------------------------+--------+--------+-------+-------------+-------+----------------------------------+
| ID                                   | Name   | Status | State | Distributed | HA    | Project                          |
+--------------------------------------+--------+--------+-------+-------------+-------+----------------------------------+
| b641dbe1-c3ff-4dad-a9b0-6029e36002c3 | router | ACTIVE | UP    | False       | False | ba546ea8e5224748860d3476d2401106 |
+--------------------------------------+--------+--------+-------+-------------+-------+----------------------------------+
root@mantis(controller)~ # openstack router show b641dbe1-c3ff-4dad-a9b0-6029e36002c3
+-------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field                   | Value                                                                                                                                                                                       |
+-------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| admin_state_up          | UP                                                                                                                                                                                          |
| availability_zone_hints |                                                                                                                                                                                             |
| availability_zones      |                                                                                                                                                                                             |
| created_at              | 2018-12-15T14:12:40Z                                                                                                                                                                        |
| description             |                                                                                                                                                                                             |
| distributed             | False                                                                                                                                                                                       |
| external_gateway_info   | {"network_id": "165c112f-7e3c-4b52-a2e2-dbd013defd10", "enable_snat": true, "external_fixed_ips": [{"subnet_id": "5b48de07-3c3b-4fad-91e4-527fc6504abf", "ip_address": "192.168.100.178"}]} |
| flavor_id               | None                                                                                                                                                                                        |
| ha                      | False                                                                                                                                                                                       |
| id                      | b641dbe1-c3ff-4dad-a9b0-6029e36002c3                                                                                                                                                        |
| interfaces_info         | [{"subnet_id": "fa606c14-65fa-4f4f-ae47-bb87cc46e89a", "ip_address": "10.1.0.1", "port_id": "4c12fe81-5dcf-4081-a867-7ed83c5717ea"}]                                                        |
| name                    | router                                                                                                                                                                                      |
| project_id              | ba546ea8e5224748860d3476d2401106                                                                                                                                                            |
| revision_number         | 3                                                                                                                                                                                           |
| routes                  |                                                                                                                                                                                             |
| status                  | ACTIVE                                                                                                                                                                                      |
| tags                    |                                                                                                                                                                                             |
| updated_at              | 2018-12-15T14:24:07Z                                                                                                                                                                        |
+-------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

root@mantis(controller)~ # openstack port list
+--------------------------------------+------+-------------------+--------------------------------------------------------------------------------+--------+
| ID                                   | Name | MAC Address       | Fixed IP Addresses                                                             | Status |
+--------------------------------------+------+-------------------+--------------------------------------------------------------------------------+--------+

    | 0b0ba68d-8afb-4633-ad3f-039261013d66 |      | fa:16:3e:7f:3e:2f | ip_address='10.1.0.11', subnet_id='fa606c14-65fa-4f4f-ae47-bb87cc46e89a'       | ACTIVE |
    | 4c12fe81-5dcf-4081-a867-7ed83c5717ea | gw   | fa:16:3e:bf:da:9c | ip_address='10.1.0.1', subnet_id='fa606c14-65fa-4f4f-ae47-bb87cc46e89a'        | DOWN   |
    | 704dcd1c-a8d4-486e-828e-957af6410bb6 |      | fa:16:3e:a1:65:63 | ip_address='192.168.100.178', subnet_id='5b48de07-3c3b-4fad-91e4-527fc6504abf' | DOWN   |
    | a5e414c5-7d2a-4660-8bd8-87730cd7295e |      | fa:16:3e:ef:77:c1 | ip_address='10.1.0.10', subnet_id='fa606c14-65fa-4f4f-ae47-bb87cc46e89a'       | ACTIVE |
    | e336cf61-67e2-45d7-a0d0-0a930781221d |      | fa:16:3e:37:ff:80 | ip_address='192.168.100.175', subnet_id='5b48de07-3c3b-4fad-91e4-527fc6504abf' | ACTIVE |
    +--------------------------------------+------+-------------------+--------------------------------------------------------------------------------+--------+

root@mantis(controller)~ # openstack port show 4c12fe81-5dcf-4081-a867-7ed83c5717ea
+-----------------------+-------------------------------------------------------------------------+
| Field                 | Value                                                                   |
+-----------------------+-------------------------------------------------------------------------+
| admin_state_up        | UP                                                                      |
| allowed_address_pairs |                                                                         |
| binding_host_id       |                                                                         |
| binding_profile       |                                                                         |
| binding_vif_details   |                                                                         |
| binding_vif_type      | unbound                                                                 |
| binding_vnic_type     | normal                                                                  |
| created_at            | 2018-12-15T14:13:14Z                                                    |
| data_plane_status     | None                                                                    |
| description           |                                                                         |
| device_id             | b641dbe1-c3ff-4dad-a9b0-6029e36002c3                                    |
| device_owner          | network:router_interface                                                |
| dns_assignment        | None                                                                    |
| dns_domain            | None                                                                    |
| dns_name              | None                                                                    |
| extra_dhcp_opts       |                                                                         |
| fixed_ips             | ip_address='10.1.0.1', subnet_id='fa606c14-65fa-4f4f-ae47-bb87cc46e89a' |
| id                    | 4c12fe81-5dcf-4081-a867-7ed83c5717ea                                    |
| mac_address           | fa:16:3e:bf:da:9c                                                       |
| name                  | gw                                                                      |
| network_id            | e1c5cd35-6e4e-4b4f-a1ba-6b49244e0c6d                                    |
| port_security_enabled | False                                                                   |
| project_id            | ba546ea8e5224748860d3476d2401106                                        |
| qos_policy_id         | None                                                                    |
| revision_number       | 4                                                                       |
| security_group_ids    |                                                                         |
| status                | DOWN                                                                    |
| tags                  |                                                                         |
| trunk_details         | None                                                                    |
| updated_at            | 2018-12-15T14:15:18Z                                                    |
+-----------------------+-------------------------------------------------------------------------+
root@mantis(controller)~ # openstack port show 704dcd1c-a8d4-486e-828e-957af6410bb6
+-----------------------+--------------------------------------------------------------------------------+
| Field                 | Value                                                                          |
+-----------------------+--------------------------------------------------------------------------------+
| admin_state_up        | UP                                                                             |
| allowed_address_pairs |                                                                                |
| binding_host_id       |                                                                                |
| binding_profile       |                                                                                |
| binding_vif_details   |                                                                                |
| binding_vif_type      | unbound                                                                        |
| binding_vnic_type     | normal                                                                         |
| created_at            | 2018-12-15T14:24:07Z                                                           |
| data_plane_status     | None                                                                           |
| description           |                                                                                |
| device_id             | b641dbe1-c3ff-4dad-a9b0-6029e36002c3                                           |
| device_owner          | network:router_gateway                                                         |
| dns_assignment        | None                                                                           |
| dns_domain            | None                                                                           |
| dns_name              | None                                                                           |
| extra_dhcp_opts       |                                                                                |
| fixed_ips             | ip_address='192.168.100.178', subnet_id='5b48de07-3c3b-4fad-91e4-527fc6504abf' |
| id                    | 704dcd1c-a8d4-486e-828e-957af6410bb6                                           |
| mac_address           | fa:16:3e:a1:65:63                                                              |
| name                  |                                                                                |
| network_id            | 165c112f-7e3c-4b52-a2e2-dbd013defd10                                           |
| port_security_enabled | False                                                                          |
| project_id            |                                                                                |
| qos_policy_id         | None                                                                           |
| revision_number       | 1                                                                              |
| security_group_ids    |                                                                                |
| status                | DOWN                                                                           |
| tags                  |                                                                                |
| trunk_details         | None                                                                           |
| updated_at            | 2018-12-15T14:24:07Z                                                           |
+-----------------------+--------------------------------------------------------------------------------+

root@mantis(controller)~ # openstack server show 1649b62d-387b-4a9a-b307-9303c0fd1580
+-------------------------------------+----------------------------------------------------------+
| Field                               | Value                                                    |
+-------------------------------------+----------------------------------------------------------+
| OS-DCF:diskConfig                   | AUTO                                                     |
| OS-EXT-AZ:availability_zone         | nova                                                     |
| OS-EXT-SRV-ATTR:host                | groot.remiroda.local                                     |
| OS-EXT-SRV-ATTR:hypervisor_hostname | groot.remiroda.local                                     |
| OS-EXT-SRV-ATTR:instance_name       | instance-00000006                                        |
| OS-EXT-STS:power_state              | Running                                                  |
| OS-EXT-STS:task_state               | None                                                     |
| OS-EXT-STS:vm_state                 | active                                                   |
| OS-SRV-USG:launched_at              | 2018-12-15T10:49:27.000000                               |
| OS-SRV-USG:terminated_at            | None                                                     |
| accessIPv4                          |                                                          |
| accessIPv6                          |                                                          |
| addresses                           | internal=10.1.0.11                                       |
| config_drive                        |                                                          |
| created                             | 2018-12-14T16:04:33Z                                     |
| flavor                              | m1.nano (0)                                              |
| hostId                              | 29c3cbe4282d035c3388efd0bc3133d98667210f69be8ded8b85e4e7 |
| id                                  | 1649b62d-387b-4a9a-b307-9303c0fd1580                     |
| image                               |                                                          |
| key_name                            | None                                                     |
| name                                | teszt3                                                   |
| progress                            | 0                                                        |
| project_id                          | ba546ea8e5224748860d3476d2401106                         |
| properties                          |                                                          |
| security_groups                     | name='default'                                           |
| status                              | ACTIVE                                                   |
| updated                             | 2018-12-15T14:25:29Z                                     |
| user_id                             | 7a75f89287694abdba921b27ee50f1a5                         |
| volumes_attached                    | id='a6b962cd-0130-427f-98b2-8f57cb272d49'                |
+-------------------------------------+----------------------------------------------------------+

root@mantis(controller)~ # egrep -v "#|^$" /etc/neutron/neutron.conf
[DEFAULT]
core_plugin = ml2
service_plugins = router
allow_overlapping_ips = true
transport_url = rabbit://openstack:RABBIT_PASS@controller
auth_strategy = keystone
notify_nova_on_port_status_changes = true
notify_nova_on_port_data_changes = true
[agent]
[cors]
[database]
connection = mysql+pymysql://neutron:NEUTRON_DBPASS@controller/neutron
[keystone_authtoken]
www_authenticate_uri = http://controller:5000
auth_url = http://controller:5000
memcached_servers = controller:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = neutron
password = NEUTRON_PASS
[matchmaker_redis]
[nova]
auth_url = http://controller:5000
auth_type = password
project_domain_name = default
user_domain_name = default
region_name = RegionOne
project_name = service
username = nova
password = NOVA_PASS
[oslo_concurrency]
lock_path = /var/lib/neutron/tmp
[oslo_messaging_amqp]
[oslo_messaging_kafka]
[oslo_messaging_notifications]
[oslo_messaging_rabbit]
[oslo_messaging_zmq]
[oslo_middleware]
[oslo_policy]
[quotas]
[ssl]
root@mantis(controller)~ # egrep -v "#|^$" /etc/neutron/l3_agent.ini
[DEFAULT]
interface_driver = linuxbridge
[agent]
[ovs]
root@mantis(controller)~ # egrep -v "#|^$" /etc/neutron/plugins/ml2/linuxbridge_agent.ini
[DEFAULT]
[agent]
[linux_bridge]
physical_interface_mappings = provider:vlan0.100,interconnect:bond116
[network_log]
[securitygroup]
enable_security_group = true
firewall_driver = neutron.agent.linux.iptables_firewall.IptablesFirewallDriver
[vxlan]
enable_vxlan = true
local_ip = 192.168.100.99
l2_population = true

root@mantis(controller)~ # egrep -v "#|^$" /etc/neutron/plugins/ml2/ml2_conf.ini
[DEFAULT]
[l2pop]
[ml2]
type_drivers = flat,vlan,vxlan
tenant_network_types = vxlan
mechanism_drivers = linuxbridge,l2population
extension_drivers = port_security
[ml2_type_flat]
flat_networks = provider,interconnect
[ml2_type_geneve]
[ml2_type_gre]
[ml2_type_vlan]
[ml2_type_vxlan]
vni_ranges = 1:1000
[securitygroup]
enable_ipset = true

root@mantis(controller)~ # egrep -v "#|^$" /etc/neutron/dhcp_agent.ini
[DEFAULT]
interface_driver = linuxbridge
dhcp_driver = neutron.agent.linux.dhcp.Dnsmasq
enable_isolated_metadata = True
force_metadata = true
enable_metadata_network = True
[agent]
[ovs]

root@mantis(controller)~ # ip netns exec qdhcp-e1c5cd35-6e4e-4b4f-a1ba-6b49244e0c6d ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: ns-a5e414c5-7d@if25: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc noqueue state UP group default qlen 1000
    link/ether fa:16:3e:ef:77:c1 brd ff:ff:ff:ff:ff:ff link-netnsid 0
    inet 10.1.0.10/24 brd 10.1.0.255 scope global ns-a5e414c5-7d
       valid_lft forever preferred_lft forever
    inet 169.254.169.254/16 brd 169.254.255.255 scope global ns-a5e414c5-7d
       valid_lft forever preferred_lft forever
    inet6 fe80::f816:3eff:feef:77c1/64 scope link
       valid_lft forever preferred_lft forever
root@mantis(controller)~ # ip netns exec qdhcp-e1c5cd35-6e4e-4b4f-a1ba-6b49244e0c6d ip r
default via 10.1.0.1 dev ns-a5e414c5-7d
10.1.0.0/24 dev ns-a5e414c5-7d proto kernel scope link src 10.1.0.10
169.254.0.0/16 dev ns-a5e414c5-7d proto kernel scope link src 169.254.169.254

root@mantis(controller)~ # ip netns exec qdhcp-e1c5cd35-6e4e-4b4f-a1ba-6b49244e0c6d ping 10.1.0.11
PING 10.1.0.11 (10.1.0.11) 56(84) bytes of data.
^C
--- 10.1.0.11 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 1999ms