[Openstack] Help with Networking - Ocata

Clint Dilks clintd at waikato.ac.nz
Tue Jul 4 00:22:32 UTC 2017


Hi,

I have been following this guide,
https://docs.openstack.org/ocata/install-guide-rdo/launch-instance-networks-provider.html
and got to a point where I have created the following subnet

openstack subnet create --network provider --allocation-pool
start=130.217.238.20,end=130.217.238.250 --dns-nameserver 130.217.240.32
--gateway 130.217.238.251 --subnet-range 130.217.238.0/24 provider

>From a OpenStack perspective this seems to have worked but based on the
output of the router port list below I believe that if all networking were
working correctly I should be able to ping 130.217.238.27 from my
controller  is this correct ?  Currently this isn't working

# neutron router-port-list router

neutron CLI is deprecated and will be removed in the future. Use openstack
CLI instead.
+--------------------------------------+------+----------------------------------+-------------------+---------------------------------------------------------------------------------------+
| id                                   | name |
tenant_id                        | mac_address       |
fixed_ips
|
+--------------------------------------+------+----------------------------------+-------------------+---------------------------------------------------------------------------------------+
| 5fa0bbf0-c4cb-477d-be4b-29319e6b1255 |      |
9664aea896004c7da3970d7a7f03accc | fa:16:3e:63:6a:70 | {"subnet_id":
"7a7de3fe-efb3-4fd1-be22-13c72d2d309d", "ip_address": "172.16.1.1"}     |
| 741072f3-e679-4b1e-9201-f17b28e34c18 |
|                                  | fa:16:3e:0c:75:1b | {"subnet_id":
"72b57426-71e0-40e1-ae27-51cfb1757322", "ip_address": "130.217.238.27"} |
+--------------------------------------+------+----------------------------------+-------------------+---------------------------------------------------------------------------------------+


Looking in linuxbridge-agent.log I see entries like the one below.  Does
anyone have suggestions as to how I fix this issue?

linuxbridge-agent.log:2017-07-04 11:16:01.661 1033 ERROR
neutron.plugins.ml2.drivers.agent._common_agent
[req-6fbbf077-ab6c-4426-b65b-86cc39922f5f - - - - -] Error in agent loop.
Devices info: {'current': set(['tap326c4daa-b1', 'tap6f4a8322-5a',
'tap741072f3-e6', 'tap5fa0bbf0-c4']), 'timestamps': {'tap326c4daa-b1': 5,
'tap6f4a8322-5a': 6, 'tap741072f3-e6': 9, 'tap5fa0bbf0-c4': 8}, 'removed':
set([]), 'added': set(['tap326c4daa-b1', 'tap6f4a8322-5a',
'tap741072f3-e6', 'tap5fa0bbf0-c4']), 'updated': set([])}
linuxbridge-agent.log:2017-07-04 11:16:01.661 1033 ERROR
neutron.plugins.ml2.drivers.agent._common_agent Traceback (most recent call
last):
linuxbridge-agent.log:2017-07-04 11:16:01.661 1033 ERROR
neutron.plugins.ml2.drivers.agent._common_agent   File
"/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/agent/_common_agent.py",
line 453, in daemon_loop
linuxbridge-agent.log:2017-07-04 11:16:01.661 1033 ERROR
neutron.plugins.ml2.drivers.agent._common_agent     sync =
self.process_network_devices(device_info)
linuxbridge-agent.log:2017-07-04 11:16:01.661 1033 ERROR
neutron.plugins.ml2.drivers.agent._common_agent   File
"/usr/lib/python2.7/site-packages/osprofiler/profiler.py", line 153, in
wrapper
linuxbridge-agent.log:2017-07-04 11:16:01.661 1033 ERROR
neutron.plugins.ml2.drivers.agent._common_agent     return f(*args,
**kwargs)
linuxbridge-agent.log:2017-07-04 11:16:01.661 1033 ERROR
neutron.plugins.ml2.drivers.agent._common_agent   File
"/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/agent/_common_agent.py",
line 210, in process_network_devices
linuxbridge-agent.log:2017-07-04 11:16:01.661 1033 ERROR
neutron.plugins.ml2.drivers.agent._common_agent     resync_a =
self.treat_devices_added_updated(devices_added_updated)
linuxbridge-agent.log:2017-07-04 11:16:01.661 1033 ERROR
neutron.plugins.ml2.drivers.agent._common_agent   File
"/usr/lib/python2.7/site-packages/osprofiler/profiler.py", line 153, in
wrapper
linuxbridge-agent.log:2017-07-04 11:16:01.661 1033 ERROR
neutron.plugins.ml2.drivers.agent._common_agent     return f(*args,
**kwargs)
linuxbridge-agent.log:2017-07-04 11:16:01.661 1033 ERROR
neutron.plugins.ml2.drivers.agent._common_agent   File
"/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/agent/_common_agent.py",
line 227, in treat_devices_added_updated
linuxbridge-agent.log:2017-07-04 11:16:01.661 1033 ERROR
neutron.plugins.ml2.drivers.agent._common_agent
self._process_device_if_exists(device_details)
linuxbridge-agent.log:2017-07-04 11:16:01.661 1033 ERROR
neutron.plugins.ml2.drivers.agent._common_agent   File
"/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/agent/_common_agent.py",
line 254, in _process_device_if_exists
linuxbridge-agent.log:2017-07-04 11:16:01.661 1033 ERROR
neutron.plugins.ml2.drivers.agent._common_agent     device,
device_details['device_owner'])
linuxbridge-agent.log:2017-07-04 11:16:01.661 1033 ERROR
neutron.plugins.ml2.drivers.agent._common_agent   File
"/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py",
line 502, in plug_interface
linuxbridge-agent.log:2017-07-04 11:16:01.661 1033 ERROR
neutron.plugins.ml2.drivers.agent._common_agent     tap_name, device_owner)
linuxbridge-agent.log:2017-07-04 11:16:01.661 1033 ERROR
neutron.plugins.ml2.drivers.agent._common_agent   File
"/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py",
line 451, in add_tap_interface
linuxbridge-agent.log:2017-07-04 11:16:01.661 1033 ERROR
neutron.plugins.ml2.drivers.agent._common_agent     return False
linuxbridge-agent.log:2017-07-04 11:16:01.661 1033 ERROR
neutron.plugins.ml2.drivers.agent._common_agent   File
"/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in
__exit__
linuxbridge-agent.log:2017-07-04 11:16:01.661 1033 ERROR
neutron.plugins.ml2.drivers.agent._common_agent     self.force_reraise()
linuxbridge-agent.log:2017-07-04 11:16:01.661 1033 ERROR
neutron.plugins.ml2.drivers.agent._common_agent   File
"/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in
force_reraise
linuxbridge-agent.log:2017-07-04 11:16:01.661 1033 ERROR
neutron.plugins.ml2.drivers.agent._common_agent     six.reraise(self.type_,
self.value, self.tb)
linuxbridge-agent.log:2017-07-04 11:16:01.661 1033 ERROR
neutron.plugins.ml2.drivers.agent._common_agent   File
"/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py",
line 443, in add_tap_interface
linuxbridge-agent.log:2017-07-04 11:16:01.661 1033 ERROR
neutron.plugins.ml2.drivers.agent._common_agent     tap_device_name,
device_owner)
linuxbridge-agent.log:2017-07-04 11:16:01.661 1033 ERROR
neutron.plugins.ml2.drivers.agent._common_agent   File
"/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py",
line 474, in _add_tap_interface
linuxbridge-agent.log:2017-07-04 11:16:01.661 1033 ERROR
neutron.plugins.ml2.drivers.agent._common_agent     segmentation_id):
linuxbridge-agent.log:2017-07-04 11:16:01.661 1033 ERROR
neutron.plugins.ml2.drivers.agent._common_agent   File
"/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py",
line 427, in ensure_physical_in_bridge
linuxbridge-agent.log:2017-07-04 11:16:01.661 1033 ERROR
neutron.plugins.ml2.drivers.agent._common_agent     physical_interface)
linuxbridge-agent.log:2017-07-04 11:16:01.661 1033 ERROR
neutron.plugins.ml2.drivers.agent._common_agent   File
"/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py",
line 245, in ensure_flat_bridge
linuxbridge-agent.log:2017-07-04 11:16:01.661 1033 ERROR
neutron.plugins.ml2.drivers.agent._common_agent     gateway):
linuxbridge-agent.log:2017-07-04 11:16:01.661 1033 ERROR
neutron.plugins.ml2.drivers.agent._common_agent   File
"/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py",
line 386, in ensure_bridge
linuxbridge-agent.log:2017-07-04 11:16:01.661 1033 ERROR
neutron.plugins.ml2.drivers.agent._common_agent
self.update_interface_ip_details(bridge_name, interface, ips, gateway)
linuxbridge-agent.log:2017-07-04 11:16:01.661 1033 ERROR
neutron.plugins.ml2.drivers.agent._common_agent   File
"/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py",
line 325, in update_interface_ip_details
linuxbridge-agent.log:2017-07-04 11:16:01.661 1033 ERROR
neutron.plugins.ml2.drivers.agent._common_agent
dst_device.addr.add(cidr=ip['cidr'])
linuxbridge-agent.log:2017-07-04 11:16:01.661 1033 ERROR
neutron.plugins.ml2.drivers.agent._common_agent   File
"/usr/lib/python2.7/site-packages/neutron/agent/linux/ip_lib.py", line 579,
in add
linuxbridge-agent.log:2017-07-04 11:16:01.661 1033 ERROR
neutron.plugins.ml2.drivers.agent._common_agent
self._as_root([net.version], tuple(args))
linuxbridge-agent.log:2017-07-04 11:16:01.661 1033 ERROR
neutron.plugins.ml2.drivers.agent._common_agent   File
"/usr/lib/python2.7/site-packages/neutron/agent/linux/ip_lib.py", line 363,
in _as_root
linuxbridge-agent.log:2017-07-04 11:16:01.661 1033 ERROR
neutron.plugins.ml2.drivers.agent._common_agent
use_root_namespace=use_root_namespace)
linuxbridge-agent.log:2017-07-04 11:16:01.661 1033 ERROR
neutron.plugins.ml2.drivers.agent._common_agent   File
"/usr/lib/python2.7/site-packages/neutron/agent/linux/ip_lib.py",
linlinuxbridge-agent.log:2017-07-04 11:16:01.661 1033 ERROR
neutron.plugins.ml2.drivers.agent._common_agent
log_fail_as_error=self.log_fail_as_error)
linuxbridge-agent.log:2017-07-04 11:16:01.661 1033 ERROR
neutron.plugins.ml2.drivers.agent._common_agent   File
"/usr/lib/python2.7/site-packages/neutron/agent/linux/ip_lib.py", line 108,
in _execute
linuxbridge-agent.log:2017-07-04 11:16:01.661 1033 ERROR
neutron.plugins.ml2.drivers.agent._common_agent
log_fail_as_error=log_fail_as_error)
linuxbridge-agent.log:2017-07-04 11:16:01.661 1033 ERROR
neutron.plugins.ml2.drivers.agent._common_agent   File
"/usr/lib/python2.7/site-packages/neutron/agent/linux/utils.py", line 152,
in execute
linuxbridge-agent.log:2017-07-04 11:16:01.661 1033 ERROR
neutron.plugins.ml2.drivers.agent._common_agent     raise
ProcessExecutionError(msg, returncode=returncode)
linuxbridge-agent.log:2017-07-04 11:16:01.661 1033 ERROR
neutron.plugins.ml2.drivers.agent._common_agent ProcessExecutionError: Exit
code: 2; Stdin: ; Stdout: ; Stderr: RTNETLINK answers: Permission denied
linuxbridge-agent.log:2017-07-04 11:16:01.661 1033 ERROR
neutron.plugins.ml2.drivers.agent._common_agent
linuxbridge-agent.log:2017-07-04 11:16:01.661 1033 ERROR
neutron.plugins.ml2.drivers.agent._common_agent
linuxbridge-agent.log:2017-07-04 11:16:03.517 1033 ERROR
neutron.agent.linux.utils [req-6fbbf077-ab6c-4426-b65b-86cc39922f5f - - - -
-] Exit code: 2; Stdin: ; Stdout: ; Stderr: RTNETLINK answers: Permission
denied

I have found
https://ask.openstack.org/en/question/92057/after-creating-selfservice-subnet-neutron-linux-bridge-log-shows-error-rtnetlink-answers-permission-denied/
and so tried disabling ipv6 via sysctl.conf but this doesn't seem to have
made any difference.

Thanks for any advice or suggestions you can offer.


Here is some other information that may be useful

]# neutron net-list
neutron CLI is deprecated and will be removed in the future. Use openstack
CLI instead.
+--------------------------------------+-------------+----------------------------------+-------------------------------------------------------+
| id                                   | name        |
tenant_id                        |
subnets                                               |
+--------------------------------------+-------------+----------------------------------+-------------------------------------------------------+
| 23754bd4-91a0-4ff6-b5e2-1065a173e744 | selfservice |
9664aea896004c7da3970d7a7f03accc | 7a7de3fe-efb3-4fd1-be22-13c72d2d309d
172.16.1.0/24    |
| dd1e15bb-8e4a-4c86-9cb8-92d1cc6bfa77 | provider    |
0256492c674a4ea2842f1a1960db437a | 72b57426-71e0-40e1-ae27-51cfb1757322
130.217.238.0/24 |
+--------------------------------------+-------------+----------------------------------+-------------------------------------------------------+

 +---------------------------+--------------------------------------+
| Field                     | Value                                |
+---------------------------+--------------------------------------+
| admin_state_up            | True                                 |
| availability_zone_hints   |                                      |
| availability_zones        | nova                                 |
| created_at                | 2017-07-03T04:40:04Z                 |
| description               |                                      |
| id                        | dd1e15bb-8e4a-4c86-9cb8-92d1cc6bfa77 |
| ipv4_address_scope        |                                      |
| ipv6_address_scope        |                                      |
| is_default                | False                                |
| mtu                       | 1500                                 |
| name                      | provider                             |
| port_security_enabled     | True                                 |
| project_id                | 0256492c674a4ea2842f1a1960db437a     |
| provider:network_type     | flat                                 |
| provider:physical_network | provider                             |
| provider:segmentation_id  |                                      |
| revision_number           | 6                                    |
| router:external           | True                                 |
| shared                    | True                                 |
| status                    | ACTIVE                               |
| subnets                   | 72b57426-71e0-40e1-ae27-51cfb1757322 |
| tags                      |                                      |
| tenant_id                 | 0256492c674a4ea2842f1a1960db437a     |
| updated_at                | 2017-07-03T04:48:40Z                 |
+---------------------------+--------------------------------------+

# neutron subnet-show 72b57426-71e0-40e1-ae27-51cfb1757322
neutron CLI is deprecated and will be removed in the future. Use openstack
CLI instead.
+-------------------+-------------------------------------------------------+
| Field             | Value
|
+-------------------+-------------------------------------------------------+
| allocation_pools  | {"start": "130.217.238.20", "end": "130.217.238.250"}
|
| cidr              | 130.217.238.0/24
|
| created_at        | 2017-07-03T04:48:40Z
|
| description       |
|
| dns_nameservers   | 130.217.240.32
|
| enable_dhcp       | True
|
| gateway_ip        | 130.217.238.251
|
| host_routes       |
|
| id                | 72b57426-71e0-40e1-ae27-51cfb1757322
|
| ip_version        | 4
|
| ipv6_address_mode |
|
| ipv6_ra_mode      |
|
| name              | provider
|
| network_id        | dd1e15bb-8e4a-4c86-9cb8-92d1cc6bfa77
|
| project_id        | 0256492c674a4ea2842f1a1960db437a
|
| revision_number   | 2
|
| service_types     |
|
| subnetpool_id     |
|
| tags              |
|
| tenant_id         | 0256492c674a4ea2842f1a1960db437a
|
| updated_at        | 2017-07-03T04:48:40Z
|
+-------------------+-------------------------------------------------------+

[root at osc ~]# cat /etc/sysconfig/network-scripts/ifcfg-eno16777984
# Generated by dracut initrd
NAME="eno16777984"
DEVICE="eno16777984"
ONBOOT=yes
NETBOOT=yes
UUID="ff96086e-5043-4de4-b129-e1bdb3dce6ba"
IPV6INIT=yes
BOOTPROTO=dhcp
TYPE=Ethernet
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
PEERDNS=yes
PEERROUTES=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes

cat /etc/sysconfig/network-scripts/ifcfg-ens192
HWADDR=00:50:56:98:64:AA
TYPE=Ethernet
BOOTPROTO="none"
NAME=ens192
UUID=7a8e5bd9-46f8-302d-aa3d-127031e77593
ONBOOT=yes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20170704/88bef182/attachment.html>


More information about the Openstack mailing list