Install and configure controller node in Neutron

Bug #1938826 reported by Dalton Cézane
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Invalid
Undecided
Unassigned

Bug Description

When restarting the neutron-linuxbridge-agent service, I am facing a problem:
sudo service neutron-linuxbridge-agent status
● neutron-linuxbridge-agent.service - Openstack Neutron Linux Bridge Agent
     Loaded: loaded (/lib/systemd/system/neutron-linuxbridge-agent.service; enabled; vendor preset: enabled)
     Active: inactive (dead) since Tue 2021-08-03 16:04:01 -03; 79ms ago
    Process: 377517 ExecStartPre=/bin/mkdir -p /var/lock/neutron /var/log/neutron /var/lib/neutron (code=exited, status=0/SUCCESS)
    Process: 377518 ExecStartPre=/bin/chown neutron:neutron /var/lock/neutron /var/log/neutron /var/lib/neutron (code=exited, status=0/SUCCESS)
    Process: 377519 ExecStartPre=/sbin/modprobe br_netfilter (code=exited, status=0/SUCCESS)
    Process: 377520 ExecStart=/etc/init.d/neutron-linuxbridge-agent systemd-start (code=exited, status=0/SUCCESS)
   Main PID: 377520 (code=exited, status=0/SUCCESS)

ago 03 16:03:59 openstack-controller systemd[1]: Starting Openstack Neutron Linux Bridge Agent...
ago 03 16:03:59 openstack-controller systemd[1]: Started Openstack Neutron Linux Bridge Agent.
ago 03 16:04:00 openstack-controller sudo[377533]: neutron : TTY=unknown ; PWD=/var/lib/neutron ; USER=root ; COMMAND=/usr/bin/neutron-rootwrap /etc/neutron/rootwrap.conf privsep-helper --config-file />
ago 03 16:04:00 openstack-controller sudo[377533]: pam_unix(sudo:session): session opened for user root by (uid=0)
ago 03 16:04:00 openstack-controller sudo[377533]: pam_unix(sudo:session): session closed for user root
ago 03 16:04:01 openstack-controller systemd[1]: neutron-linuxbridge-agent.service: Succeeded.

Same problem for the neutron-dhcp-agent service:
sudo service neutron-dhcp-agent status
● neutron-dhcp-agent.service - OpenStack Neutron DHCP agent
     Loaded: loaded (/lib/systemd/system/neutron-dhcp-agent.service; enabled; vendor preset: enabled)
     Active: inactive (dead) since Tue 2021-08-03 16:22:18 -03; 6s ago
       Docs: man:neutron-dhcp-agent(1)
    Process: 384411 ExecStart=/etc/init.d/neutron-dhcp-agent systemd-start (code=exited, status=0/SUCCESS)
   Main PID: 384411 (code=exited, status=0/SUCCESS)

ago 03 16:22:17 openstack-controller systemd[1]: Started OpenStack Neutron DHCP agent.
ago 03 16:22:18 openstack-controller systemd[1]: neutron-dhcp-agent.service: Succeeded.

Below is the log (/var/log/neutron/neutron-linuxbridge-agent.log):

2021-08-02 15:27:07.843 56737 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent [-] Tunneling cannot be enabled without the local_ip bound to an interface on the host. Please>
2021-08-02 15:27:09.601 56805 INFO neutron.common.config [-] Logging enabled!
2021-08-02 15:27:09.601 56805 INFO neutron.common.config [-] /usr/bin/neutron-linuxbridge-agent version 18.0.0
2021-08-02 15:27:09.601 56805 INFO neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent [-] Interface mappings: {}
2021-08-02 15:27:09.601 56805 INFO neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent [-] Bridge mappings: {}
2021-08-02 15:27:09.602 56805 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent [-] Tunneling cannot be enabled without the local_ip bound to an interface on the host. Please>
2021-08-02 15:27:11.321 56832 INFO neutron.common.config [-] Logging enabled!
2021-08-02 15:27:11.322 56832 INFO neutron.common.config [-] /usr/bin/neutron-linuxbridge-agent version 18.0.0
2021-08-02 15:27:11.322 56832 INFO neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent [-] Interface mappings: {}
2021-08-02 15:27:11.322 56832 INFO neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent [-] Bridge mappings: {}
2021-08-02 15:27:11.322 56832 ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent [-] Tunneling cannot be enabled without the local_ip bound to an interface on the host. Please>
2021-08-03 15:48:49.813 372237 INFO neutron.common.config [-] Logging enabled!
2021-08-03 15:48:49.814 372237 INFO neutron.common.config [-] /usr/bin/neutron-linuxbridge-agent version 18.0.0
2021-08-03 15:48:49.814 372237 INFO neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent [-] Interface mappings: {'provider': 'enp0s31f6'}
2021-08-03 15:48:49.814 372237 INFO neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent [-] Bridge mappings: {}
2021-08-03 15:48:49.815 372237 INFO oslo.privsep.daemon [-] Running privsep helper: ['sudo', '/usr/bin/neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'privsep-helper', '--config-file', '/etc/neutron/n>
2021-08-03 15:48:50.316 372237 INFO oslo.privsep.daemon [-] Spawned new privsep daemon via rootwrap
2021-08-03 15:48:50.244 372269 INFO oslo.privsep.daemon [-] privsep daemon starting
2021-08-03 15:48:50.247 372269 INFO oslo.privsep.daemon [-] privsep process running with uid/gid: 0/0
2021-08-03 15:48:50.248 372269 INFO oslo.privsep.daemon [-] privsep process running with capabilities (eff/prm/inh): CAP_DAC_OVERRIDE|CAP_DAC_READ_SEARCH|CAP_NET_ADMIN|CAP_SYS_ADMIN|CAP_SYS_PTRACE/CAP_D>
2021-08-03 15:48:50.248 372269 INFO oslo.privsep.daemon [-] privsep daemon running as pid 372269
2021-08-03 15:48:50.638 372237 INFO neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent [-] Agent initialized successfully, now running...
2021-08-03 15:48:51.109 372237 INFO neutron.plugins.ml2.drivers.agent._common_agent [req-f5d0cd78-1f29-4c62-be6c-ea0bbefb0894 - - - - -] RPC agent_id: lbb06ebf66d3b0
2021-08-03 15:48:51.120 372237 INFO neutron.agent.agent_extensions_manager [req-f5d0cd78-1f29-4c62-be6c-ea0bbefb0894 - - - - -] Loaded agent extensions: []
2021-08-03 15:48:51.123 372237 ERROR neutron_lib.callbacks.manager [req-f5d0cd78-1f29-4c62-be6c-ea0bbefb0894 - - - - -] Error during notification for neutron.services.trunk.drivers.linuxbridge.agent.dri>
2021-08-03 15:48:51.123 372237 ERROR neutron_lib.callbacks.manager Traceback (most recent call last):
2021-08-03 15:48:51.123 372237 ERROR neutron_lib.callbacks.manager File "/usr/lib/python3/dist-packages/neutron_lib/callbacks/manager.py", line 197, in _notify_loop
2021-08-03 15:48:51.123 372237 ERROR neutron_lib.callbacks.manager callback(resource, event, trigger, **kwargs)
2021-08-03 15:48:51.123 372237 ERROR neutron_lib.callbacks.manager File "/usr/lib/python3/dist-packages/neutron/services/trunk/drivers/linuxbridge/agent/driver.py", line 32, in init_handler
2021-08-03 15:48:51.123 372237 ERROR neutron_lib.callbacks.manager LinuxBridgeTrunkDriver()
2021-08-03 15:48:51.123 372237 ERROR neutron_lib.callbacks.manager File "/usr/lib/python3/dist-packages/neutron/services/trunk/drivers/linuxbridge/agent/driver.py", line 47, in __init__
2021-08-03 15:48:51.123 372237 ERROR neutron_lib.callbacks.manager super(LinuxBridgeTrunkDriver, self).__init__()
2021-08-03 15:48:51.123 372237 ERROR neutron_lib.callbacks.manager File "/usr/lib/python3/dist-packages/neutron/services/trunk/rpc/agent.py", line 54, in __init__
2021-08-03 15:48:51.123 372237 ERROR neutron_lib.callbacks.manager self._connection.consume_in_threads()
2021-08-03 15:48:51.123 372237 ERROR neutron_lib.callbacks.manager File "/usr/lib/python3/dist-packages/neutron_lib/rpc.py", line 351, in consume_in_threads
2021-08-03 15:48:51.123 372237 ERROR neutron_lib.callbacks.manager server.start()
2021-08-03 15:48:51.123 372237 ERROR neutron_lib.callbacks.manager File "/usr/lib/python3/dist-packages/oslo_messaging/server.py", line 267, in wrapper
2021-08-03 15:48:51.123 372237 ERROR neutron_lib.callbacks.manager states[state].run_once(lambda: fn(self, *args, **kwargs),
2021-08-03 15:48:51.123 372237 ERROR neutron_lib.callbacks.manager File "/usr/lib/python3/dist-packages/oslo_messaging/server.py", line 188, in run_once
2021-08-03 15:48:51.123 372237 ERROR neutron_lib.callbacks.manager post_fn = fn()
2021-08-03 15:48:51.123 372237 ERROR neutron_lib.callbacks.manager File "/usr/lib/python3/dist-packages/oslo_messaging/server.py", line 267, in <lambda>
2021-08-03 15:48:51.123 372237 ERROR neutron_lib.callbacks.manager states[state].run_once(lambda: fn(self, *args, **kwargs),
2021-08-03 15:48:51.123 372237 ERROR neutron_lib.callbacks.manager File "/usr/lib/python3/dist-packages/oslo_messaging/server.py", line 413, in start
2021-08-03 15:48:51.123 372237 ERROR neutron_lib.callbacks.manager self.listener = self._create_listener()
2021-08-03 15:48:51.123 372237 ERROR neutron_lib.callbacks.manager File "/usr/lib/python3/dist-packages/oslo_messaging/rpc/server.py", line 150, in _create_listener
2021-08-03 15:48:51.123 372237 ERROR neutron_lib.callbacks.manager return self.transport._listen(self._target, 1, None)
2021-08-03 15:48:51.123 372237 ERROR neutron_lib.callbacks.manager File "/usr/lib/python3/dist-packages/oslo_messaging/transport.py", line 142, in _listen
2021-08-03 15:48:51.123 372237 ERROR neutron_lib.callbacks.manager return self._driver.listen(target, batch_size,
2021-08-03 15:48:51.123 372237 ERROR neutron_lib.callbacks.manager File "/usr/lib/python3/dist-packages/oslo_messaging/_drivers/amqpdriver.py", line 689, in listen
2021-08-03 15:48:51.123 372237 ERROR neutron_lib.callbacks.manager conn = self._get_connection(rpc_common.PURPOSE_LISTEN)
2021-08-03 15:48:51.123 372237 ERROR neutron_lib.callbacks.manager File "/usr/lib/python3/dist-packages/oslo_messaging/_drivers/amqpdriver.py", line 597, in _get_connection
2021-08-03 15:48:51.123 372237 ERROR neutron_lib.callbacks.manager return rpc_common.ConnectionContext(self._connection_pool,
2021-08-03 15:48:51.123 372237 ERROR neutron_lib.callbacks.manager File "/usr/lib/python3/dist-packages/oslo_messaging/_drivers/common.py", line 425, in __init__
2021-08-03 15:48:51.123 372237 ERROR neutron_lib.callbacks.manager self.connection = connection_pool.create(purpose)
2021-08-03 15:48:51.123 372237 ERROR neutron_lib.callbacks.manager File "/usr/lib/python3/dist-packages/oslo_messaging/_drivers/pool.py", line 146, in create
2021-08-03 15:48:51.123 372237 ERROR neutron_lib.callbacks.manager return self.connection_cls(self.conf, self.url, purpose)
2021-08-03 15:48:51.123 372237 ERROR neutron_lib.callbacks.manager File "/usr/lib/python3/dist-packages/oslo_messaging/_drivers/impl_rabbit.py", line 539, in __init__
2021-08-03 15:48:51.123 372237 ERROR neutron_lib.callbacks.manager transformed_urls = [
2021-08-03 15:48:51.123 372237 ERROR neutron_lib.callbacks.manager File "/usr/lib/python3/dist-packages/oslo_messaging/_drivers/impl_rabbit.py", line 540, in <listcomp>
2021-08-03 15:48:51.123 372237 ERROR neutron_lib.callbacks.manager self._transform_transport_url(url, host)
2021-08-03 15:48:51.123 372237 ERROR neutron_lib.callbacks.manager File "/usr/lib/python3/dist-packages/oslo_messaging/_drivers/impl_rabbit.py", line 695, in _transform_transport_url
2021-08-03 15:48:51.123 372237 ERROR neutron_lib.callbacks.manager self._parse_url_hostname(host.hostname) or default_hostname,
2021-08-03 15:48:51.123 372237 ERROR neutron_lib.callbacks.manager File "/usr/lib/python3/dist-packages/oslo_messaging/_drivers/impl_rabbit.py", line 703, in _parse_url_hostname
2021-08-03 15:48:51.123 372237 ERROR neutron_lib.callbacks.manager return '[%s]' % hostname if ':' in hostname else hostname
2021-08-03 15:48:51.123 372237 ERROR neutron_lib.callbacks.manager TypeError: argument of type 'NoneType' is not iterable
2021-08-03 15:48:51.123 372237 ERROR neutron_lib.callbacks.manager
2021-08-03 15:48:51.126 372237 ERROR oslo_service.service [req-f5d0cd78-1f29-4c62-be6c-ea0bbefb0894 - - - - -] Error starting thread.: TypeError: argument of type 'NoneType' is not iterable
2021-08-03 15:48:51.126 372237 ERROR oslo_service.service Traceback (most recent call last):
2021-08-03 15:48:51.126 372237 ERROR oslo_service.service File "/usr/lib/python3/dist-packages/oslo_service/service.py", line 807, in run_service
2021-08-03 15:48:51.126 372237 ERROR oslo_service.service service.start()
2021-08-03 15:48:51.126 372237 ERROR oslo_service.service File "/usr/lib/python3/dist-packages/osprofiler/profiler.py", line 160, in wrapper
2021-08-03 15:48:51.126 372237 ERROR oslo_service.service result = f(*args, **kwargs)
2021-08-03 15:48:51.126 372237 ERROR oslo_service.service File "/usr/lib/python3/dist-packages/neutron/plugins/ml2/drivers/agent/_common_agent.py", line 110, in start
2021-08-03 15:48:51.126 372237 ERROR oslo_service.service self.connection.consume_in_threads()
2021-08-03 15:48:51.126 372237 ERROR oslo_service.service File "/usr/lib/python3/dist-packages/neutron_lib/rpc.py", line 351, in consume_in_threads
2021-08-03 15:48:51.126 372237 ERROR oslo_service.service server.start()
2021-08-03 15:48:51.126 372237 ERROR oslo_service.service File "/usr/lib/python3/dist-packages/oslo_messaging/server.py", line 267, in wrapper
2021-08-03 15:48:51.126 372237 ERROR oslo_service.service states[state].run_once(lambda: fn(self, *args, **kwargs),
2021-08-03 15:48:51.126 372237 ERROR oslo_service.service File "/usr/lib/python3/dist-packages/oslo_messaging/server.py", line 188, in run_once
2021-08-03 15:48:51.126 372237 ERROR oslo_service.service post_fn = fn()
2021-08-03 15:48:51.126 372237 ERROR oslo_service.service File "/usr/lib/python3/dist-packages/oslo_messaging/server.py", line 267, in <lambda>
2021-08-03 15:48:51.126 372237 ERROR oslo_service.service states[state].run_once(lambda: fn(self, *args, **kwargs),
2021-08-03 15:48:51.126 372237 ERROR oslo_service.service File "/usr/lib/python3/dist-packages/oslo_messaging/server.py", line 413, in start
2021-08-03 15:48:51.126 372237 ERROR oslo_service.service self.listener = self._create_listener()
2021-08-03 15:48:51.126 372237 ERROR oslo_service.service File "/usr/lib/python3/dist-packages/oslo_messaging/rpc/server.py", line 150, in _create_listener
2021-08-03 15:48:51.126 372237 ERROR oslo_service.service return self.transport._listen(self._target, 1, None)
2021-08-03 15:48:51.126 372237 ERROR oslo_service.service File "/usr/lib/python3/dist-packages/oslo_messaging/transport.py", line 142, in _listen
2021-08-03 15:48:51.126 372237 ERROR oslo_service.service return self._driver.listen(target, batch_size,
2021-08-03 15:48:51.126 372237 ERROR oslo_service.service File "/usr/lib/python3/dist-packages/oslo_messaging/_drivers/amqpdriver.py", line 689, in listen
2021-08-03 15:48:51.126 372237 ERROR oslo_service.service conn = self._get_connection(rpc_common.PURPOSE_LISTEN)
2021-08-03 15:48:51.126 372237 ERROR oslo_service.service File "/usr/lib/python3/dist-packages/oslo_messaging/_drivers/amqpdriver.py", line 597, in _get_connection
2021-08-03 15:48:51.126 372237 ERROR oslo_service.service return rpc_common.ConnectionContext(self._connection_pool,
2021-08-03 15:48:51.126 372237 ERROR oslo_service.service File "/usr/lib/python3/dist-packages/oslo_messaging/_drivers/common.py", line 425, in __init__
2021-08-03 15:48:51.126 372237 ERROR oslo_service.service self.connection = connection_pool.create(purpose)
2021-08-03 15:48:51.126 372237 ERROR oslo_service.service File "/usr/lib/python3/dist-packages/oslo_messaging/_drivers/pool.py", line 146, in create
2021-08-03 15:48:51.126 372237 ERROR oslo_service.service return self.connection_cls(self.conf, self.url, purpose)
2021-08-03 15:48:51.126 372237 ERROR oslo_service.service File "/usr/lib/python3/dist-packages/oslo_messaging/_drivers/impl_rabbit.py", line 539, in __init__
2021-08-03 15:48:51.126 372237 ERROR oslo_service.service transformed_urls = [
2021-08-03 15:48:51.126 372237 ERROR oslo_service.service File "/usr/lib/python3/dist-packages/oslo_messaging/_drivers/impl_rabbit.py", line 540, in <listcomp>
2021-08-03 15:48:51.126 372237 ERROR oslo_service.service self._transform_transport_url(url, host)
2021-08-03 15:48:51.126 372237 ERROR oslo_service.service File "/usr/lib/python3/dist-packages/oslo_messaging/_drivers/impl_rabbit.py", line 695, in _transform_transport_url
2021-08-03 15:48:51.126 372237 ERROR oslo_service.service self._parse_url_hostname(host.hostname) or default_hostname,
2021-08-03 15:48:51.126 372237 ERROR oslo_service.service File "/usr/lib/python3/dist-packages/oslo_messaging/_drivers/impl_rabbit.py", line 703, in _parse_url_hostname
2021-08-03 15:48:51.126 372237 ERROR oslo_service.service return '[%s]' % hostname if ':' in hostname else hostname
2021-08-03 15:48:51.126 372237 ERROR oslo_service.service TypeError: argument of type 'NoneType' is not iterable
2021-08-03 15:48:51.126 372237 ERROR oslo_service.service
2021-08-03 15:48:51.150 372237 INFO neutron.plugins.ml2.drivers.agent._common_agent [-] Stopping Linux bridge agent agent.
2021-08-03 15:50:39.008 372883 INFO neutron.common.config [-] Logging enabled!
2021-08-03 15:50:39.008 372883 INFO neutron.common.config [-] /usr/bin/neutron-linuxbridge-agent version 18.0.0
2021-08-03 15:50:39.009 372883 INFO neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent [-] Interface mappings: {'provider': 'enp0s31f6'}
2021-08-03 15:50:39.009 372883 INFO neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent [-] Bridge mappings: {}
2021-08-03 15:50:39.010 372883 INFO oslo.privsep.daemon [-] Running privsep helper: ['sudo', '/usr/bin/neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'privsep-helper', '--config-file', '/etc/neutron/n>
2021-08-03 15:50:39.491 372883 INFO oslo.privsep.daemon [-] Spawned new privsep daemon via rootwrap
2021-08-03 15:50:39.433 372943 INFO oslo.privsep.daemon [-] privsep daemon starting
2021-08-03 15:50:39.435 372943 INFO oslo.privsep.daemon [-] privsep process running with uid/gid: 0/0
2021-08-03 15:50:39.437 372943 INFO oslo.privsep.daemon [-] privsep process running with capabilities (eff/prm/inh): CAP_DAC_OVERRIDE|CAP_DAC_READ_SEARCH|CAP_NET_ADMIN|CAP_SYS_ADMIN|CAP_SYS_PTRACE/CAP_D>
2021-08-03 15:50:39.437 372943 INFO oslo.privsep.daemon [-] privsep daemon running as pid 372943
2021-08-03 15:50:39.799 372883 INFO neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent [-] Agent initialized successfully, now running...
2021-08-03 15:50:39.925 372883 INFO neutron.plugins.ml2.drivers.agent._common_agent [req-6cb0471c-5230-445c-b942-02c8f1e4c9de - - - - -] RPC agent_id: lbb06ebf66d3b0
2021-08-03 15:50:39.929 372883 INFO neutron.agent.agent_extensions_manager [req-6cb0471c-5230-445c-b942-02c8f1e4c9de - - - - -] Loaded agent extensions: []
2021-08-03 15:50:39.931 372883 ERROR neutron_lib.callbacks.manager [req-6cb0471c-5230-445c-b942-02c8f1e4c9de - - - - -] Error during notification for neutron.services.trunk.drivers.linuxbridge.agent.dri>
2021-08-03 15:50:39.931 372883 ERROR neutron_lib.callbacks.manager Traceback (most recent call last):
2021-08-03 15:50:39.931 372883 ERROR neutron_lib.callbacks.manager File "/usr/lib/python3/dist-packages/neutron_lib/callbacks/manager.py", line 197, in _notify_loop
2021-08-03 15:50:39.931 372883 ERROR neutron_lib.callbacks.manager callback(resource, event, trigger, **kwargs)
2021-08-03 15:50:39.931 372883 ERROR neutron_lib.callbacks.manager File "/usr/lib/python3/dist-packages/neutron/services/trunk/drivers/linuxbridge/agent/driver.py", line 32, in init_handler
2021-08-03 15:50:39.931 372883 ERROR neutron_lib.callbacks.manager LinuxBridgeTrunkDriver()
2021-08-03 15:50:39.931 372883 ERROR neutron_lib.callbacks.manager File "/usr/lib/python3/dist-packages/neutron/services/trunk/drivers/linuxbridge/agent/driver.py", line 47, in __init__
2021-08-03 15:50:39.931 372883 ERROR neutron_lib.callbacks.manager super(LinuxBridgeTrunkDriver, self).__init__()
2021-08-03 15:50:39.931 372883 ERROR neutron_lib.callbacks.manager File "/usr/lib/python3/dist-packages/neutron/services/trunk/rpc/agent.py", line 54, in __init__
2021-08-03 15:50:39.931 372883 ERROR neutron_lib.callbacks.manager self._connection.consume_in_threads()
2021-08-03 15:50:39.931 372883 ERROR neutron_lib.callbacks.manager File "/usr/lib/python3/dist-packages/neutron_lib/rpc.py", line 351, in consume_in_threads
2021-08-03 15:50:39.931 372883 ERROR neutron_lib.callbacks.manager server.start()
2021-08-03 15:50:39.931 372883 ERROR neutron_lib.callbacks.manager File "/usr/lib/python3/dist-packages/oslo_messaging/server.py", line 267, in wrapper
2021-08-03 15:50:39.931 372883 ERROR neutron_lib.callbacks.manager states[state].run_once(lambda: fn(self, *args, **kwargs),
2021-08-03 15:50:39.931 372883 ERROR neutron_lib.callbacks.manager File "/usr/lib/python3/dist-packages/oslo_messaging/server.py", line 188, in run_once
2021-08-03 15:50:39.931 372883 ERROR neutron_lib.callbacks.manager post_fn = fn()
2021-08-03 15:50:39.931 372883 ERROR neutron_lib.callbacks.manager File "/usr/lib/python3/dist-packages/oslo_messaging/server.py", line 267, in <lambda>
2021-08-03 15:50:39.931 372883 ERROR neutron_lib.callbacks.manager states[state].run_once(lambda: fn(self, *args, **kwargs),
2021-08-03 15:50:39.931 372883 ERROR neutron_lib.callbacks.manager File "/usr/lib/python3/dist-packages/oslo_messaging/server.py", line 413, in start
2021-08-03 15:50:39.931 372883 ERROR neutron_lib.callbacks.manager self.listener = self._create_listener()
2021-08-03 15:50:39.931 372883 ERROR neutron_lib.callbacks.manager File "/usr/lib/python3/dist-packages/oslo_messaging/rpc/server.py", line 150, in _create_listener
2021-08-03 15:50:39.931 372883 ERROR neutron_lib.callbacks.manager return self.transport._listen(self._target, 1, None)
2021-08-03 15:50:39.931 372883 ERROR neutron_lib.callbacks.manager File "/usr/lib/python3/dist-packages/oslo_messaging/transport.py", line 142, in _listen
2021-08-03 15:50:39.931 372883 ERROR neutron_lib.callbacks.manager return self._driver.listen(target, batch_size,
2021-08-03 15:50:39.931 372883 ERROR neutron_lib.callbacks.manager File "/usr/lib/python3/dist-packages/oslo_messaging/_drivers/amqpdriver.py", line 689, in listen
2021-08-03 15:50:39.931 372883 ERROR neutron_lib.callbacks.manager conn = self._get_connection(rpc_common.PURPOSE_LISTEN)
2021-08-03 15:50:39.931 372883 ERROR neutron_lib.callbacks.manager File "/usr/lib/python3/dist-packages/oslo_messaging/_drivers/amqpdriver.py", line 597, in _get_connection
2021-08-03 15:50:39.931 372883 ERROR neutron_lib.callbacks.manager return rpc_common.ConnectionContext(self._connection_pool,
2021-08-03 15:50:39.931 372883 ERROR neutron_lib.callbacks.manager File "/usr/lib/python3/dist-packages/oslo_messaging/_drivers/common.py", line 425, in __init__
2021-08-03 15:50:39.931 372883 ERROR neutron_lib.callbacks.manager self.connection = connection_pool.create(purpose)
2021-08-03 15:50:39.931 372883 ERROR neutron_lib.callbacks.manager File "/usr/lib/python3/dist-packages/oslo_messaging/_drivers/pool.py", line 146, in create
2021-08-03 15:50:39.931 372883 ERROR neutron_lib.callbacks.manager return self.connection_cls(self.conf, self.url, purpose)
2021-08-03 15:50:39.931 372883 ERROR neutron_lib.callbacks.manager File "/usr/lib/python3/dist-packages/oslo_messaging/_drivers/impl_rabbit.py", line 539, in __init__
2021-08-03 15:50:39.931 372883 ERROR neutron_lib.callbacks.manager transformed_urls = [
2021-08-03 15:50:39.931 372883 ERROR neutron_lib.callbacks.manager File "/usr/lib/python3/dist-packages/oslo_messaging/_drivers/impl_rabbit.py", line 540, in <listcomp>
2021-08-03 15:50:39.931 372883 ERROR neutron_lib.callbacks.manager self._transform_transport_url(url, host)
2021-08-03 15:50:39.931 372883 ERROR neutron_lib.callbacks.manager File "/usr/lib/python3/dist-packages/oslo_messaging/_drivers/impl_rabbit.py", line 695, in _transform_transport_url
2021-08-03 15:50:39.931 372883 ERROR neutron_lib.callbacks.manager self._parse_url_hostname(host.hostname) or default_hostname,
2021-08-03 15:50:39.931 372883 ERROR neutron_lib.callbacks.manager File "/usr/lib/python3/dist-packages/oslo_messaging/_drivers/impl_rabbit.py", line 703, in _parse_url_hostname
2021-08-03 15:50:39.931 372883 ERROR neutron_lib.callbacks.manager return '[%s]' % hostname if ':' in hostname else hostname
2021-08-03 15:50:39.931 372883 ERROR neutron_lib.callbacks.manager TypeError: argument of type 'NoneType' is not iterable
2021-08-03 15:50:39.931 372883 ERROR neutron_lib.callbacks.manager
2021-08-03 15:50:39.932 372883 ERROR oslo_service.service [req-6cb0471c-5230-445c-b942-02c8f1e4c9de - - - - -] Error starting thread.: TypeError: argument of type 'NoneType' is not iterable
2021-08-03 15:50:39.932 372883 ERROR oslo_service.service Traceback (most recent call last):
2021-08-03 15:50:39.932 372883 ERROR oslo_service.service File "/usr/lib/python3/dist-packages/oslo_service/service.py", line 807, in run_service
2021-08-03 15:50:39.932 372883 ERROR oslo_service.service service.start()
2021-08-03 15:50:39.932 372883 ERROR oslo_service.service File "/usr/lib/python3/dist-packages/osprofiler/profiler.py", line 160, in wrapper
2021-08-03 15:50:39.932 372883 ERROR oslo_service.service result = f(*args, **kwargs)
2021-08-03 15:50:39.932 372883 ERROR oslo_service.service File "/usr/lib/python3/dist-packages/neutron/plugins/ml2/drivers/agent/_common_agent.py", line 110, in start
2021-08-03 15:50:39.932 372883 ERROR oslo_service.service self.connection.consume_in_threads()
2021-08-03 15:50:39.932 372883 ERROR oslo_service.service File "/usr/lib/python3/dist-packages/neutron_lib/rpc.py", line 351, in consume_in_threads
2021-08-03 15:50:39.932 372883 ERROR oslo_service.service server.start()
2021-08-03 15:50:39.932 372883 ERROR oslo_service.service File "/usr/lib/python3/dist-packages/oslo_messaging/server.py", line 267, in wrapper
2021-08-03 15:50:39.932 372883 ERROR oslo_service.service states[state].run_once(lambda: fn(self, *args, **kwargs),
2021-08-03 15:50:39.932 372883 ERROR oslo_service.service File "/usr/lib/python3/dist-packages/oslo_messaging/server.py", line 188, in run_once
2021-08-03 15:50:39.932 372883 ERROR oslo_service.service post_fn = fn()
2021-08-03 15:50:39.932 372883 ERROR oslo_service.service File "/usr/lib/python3/dist-packages/oslo_messaging/server.py", line 267, in <lambda>
2021-08-03 15:50:39.932 372883 ERROR oslo_service.service states[state].run_once(lambda: fn(self, *args, **kwargs),
2021-08-03 15:50:39.932 372883 ERROR oslo_service.service File "/usr/lib/python3/dist-packages/oslo_messaging/server.py", line 413, in start
2021-08-03 15:50:39.932 372883 ERROR oslo_service.service self.listener = self._create_listener()
2021-08-03 15:50:39.932 372883 ERROR oslo_service.service File "/usr/lib/python3/dist-packages/oslo_messaging/rpc/server.py", line 150, in _create_listener
2021-08-03 15:50:39.932 372883 ERROR oslo_service.service return self.transport._listen(self._target, 1, None)
2021-08-03 15:50:39.932 372883 ERROR oslo_service.service File "/usr/lib/python3/dist-packages/oslo_messaging/transport.py", line 142, in _listen
2021-08-03 15:50:39.932 372883 ERROR oslo_service.service return self._driver.listen(target, batch_size,
2021-08-03 15:50:39.932 372883 ERROR oslo_service.service File "/usr/lib/python3/dist-packages/oslo_messaging/_drivers/amqpdriver.py", line 689, in listen
2021-08-03 15:50:39.932 372883 ERROR oslo_service.service conn = self._get_connection(rpc_common.PURPOSE_LISTEN)
2021-08-03 15:50:39.932 372883 ERROR oslo_service.service File "/usr/lib/python3/dist-packages/oslo_messaging/_drivers/amqpdriver.py", line 597, in _get_connection
2021-08-03 15:50:39.932 372883 ERROR oslo_service.service return rpc_common.ConnectionContext(self._connection_pool,
2021-08-03 15:50:39.932 372883 ERROR oslo_service.service File "/usr/lib/python3/dist-packages/oslo_messaging/_drivers/common.py", line 425, in __init__
2021-08-03 15:50:39.932 372883 ERROR oslo_service.service self.connection = connection_pool.create(purpose)
2021-08-03 15:50:39.932 372883 ERROR oslo_service.service File "/usr/lib/python3/dist-packages/oslo_messaging/_drivers/pool.py", line 146, in create
2021-08-03 15:50:39.932 372883 ERROR oslo_service.service return self.connection_cls(self.conf, self.url, purpose)
2021-08-03 15:50:39.932 372883 ERROR oslo_service.service File "/usr/lib/python3/dist-packages/oslo_messaging/_drivers/impl_rabbit.py", line 539, in __init__
2021-08-03 15:50:39.932 372883 ERROR oslo_service.service transformed_urls = [
2021-08-03 15:50:39.932 372883 ERROR oslo_service.service File "/usr/lib/python3/dist-packages/oslo_messaging/_drivers/impl_rabbit.py", line 540, in <listcomp>
2021-08-03 15:50:39.932 372883 ERROR oslo_service.service self._transform_transport_url(url, host)
2021-08-03 15:50:39.932 372883 ERROR oslo_service.service File "/usr/lib/python3/dist-packages/oslo_messaging/_drivers/impl_rabbit.py", line 695, in _transform_transport_url
2021-08-03 15:50:39.932 372883 ERROR oslo_service.service self._parse_url_hostname(host.hostname) or default_hostname,
2021-08-03 15:50:39.932 372883 ERROR oslo_service.service File "/usr/lib/python3/dist-packages/oslo_messaging/_drivers/impl_rabbit.py", line 703, in _parse_url_hostname
2021-08-03 15:50:39.932 372883 ERROR oslo_service.service return '[%s]' % hostname if ':' in hostname else hostname
2021-08-03 15:50:39.932 372883 ERROR oslo_service.service TypeError: argument of type 'NoneType' is not iterable
2021-08-03 15:50:39.932 372883 ERROR oslo_service.service
2021-08-03 15:50:39.933 372883 INFO neutron.plugins.ml2.drivers.agent._common_agent [-] Stopping Linux bridge agent agent.

What is missing during the installation/configuration?

This bug tracker is for errors with the documentation, use the following as a template and remove or add fields as you see fit. Convert [ ] into [x] to check boxes:

- [ ] This doc is inaccurate in this way: ______
- [ ] This is a doc addition request.
- [ ] I have a fix to the document that I can paste below including example: input and output.

If you have a troubleshooting or support issue, use the following resources:

 - The mailing list: https://lists.openstack.org
 - IRC: 'openstack' channel on Freenode

-----------------------------------
Release: 18.1.1.dev5 on 2019-08-21 16:09:09
SHA: 0f02f97f25fc0cdf47e5e6b294c6acdcaaca615c
Source: https://opendev.org/openstack/neutron/src/doc/source/install/controller-install-ubuntu.rst
URL: https://docs.openstack.org/neutron/wallaby/install/controller-install-ubuntu.html

Tags: doc
description: updated
Revision history for this message
Oleg Bondarev (obondarev) wrote :

Looks like your config file is missing required config values.
This is an issue of the installer.

Please file a bug to the installer project.

Changed in neutron:
status: New → Invalid
Revision history for this message
Oleg Bondarev (obondarev) wrote :

Current issue is: "Tunneling cannot be enabled without the local_ip bound to an interface on the host" - meaning that either "local_ip" missed in config or the node does not have configured "local_ip" on any of it's network interfaces.

Revision history for this message
Dalton Cézane (daltoncezane) wrote :

Hello, @Oleg .

As I followed all the instructions from the documentation, the question is: what config value is missing?

Regarding "local_ip", there is no step mentioning such parameter in the tutorial. Thus, if it is really required, I think the documentation must be updated. Could you please tell me where to change this local_ip value?

The /etc/neutron/neutron.conf file does not have such parameter. I just saw this parameter in the /etc/neutron/plugins/ml2/linuxbridge_agent.ini file, in the [vxlan] section. Since I am not planning to use vxlan now, I think this is not required for the basic installation, according to the documentation.

Any suggestion to solve this problem and finish the basic Wallaby Openstack installation is appreciated.

Revision history for this message
Oleg Bondarev (obondarev) wrote :

If vxlan is not needed, please make sure 'enable_vxlan' config option is set to False. Thus agent will skip all vxlan validations including local_ip check.

Revision history for this message
Oleg Bondarev (obondarev) wrote :

Also please point the place (link) in the documentation that you followed, so that we can add this note there.

Revision history for this message
Dalton Cézane (daltoncezane) wrote :

This parameter was already set to false:
enable_vxlan = false

This is the documentation I followed: https://docs.openstack.org/neutron/wallaby/install/controller-install-ubuntu.html

Revision history for this message
Oleg Bondarev (obondarev) wrote :

Please share your result ml2_conf.ini and linuxbridge_agent.ini

Revision history for this message
Dalton Cézane (daltoncezane) wrote :
Download full text (4.8 KiB)

Here is the ml2_conf.ini (only the parts where there are values to some parameters):

[ml2]

#
# From neutron.ml2
#

# List of network type driver entrypoints to be loaded from the
# neutron.ml2.type_drivers namespace. (list value)
#type_drivers = local,flat,vlan,gre,vxlan,geneve
type_drivers = flat,vlan
# Ordered list of network_types to allocate as tenant networks. The default
# value 'local' is useful for single-box testing but provides no connectivity
# between hosts. (list value)
#tenant_network_types = local
tenant_network_types =
# An ordered list of networking mechanism driver entrypoints to be loaded from
# the neutron.ml2.mechanism_drivers namespace. (list value)
#mechanism_drivers =
mechanism_drivers = linuxbridge
# An ordered list of extension driver entrypoints to be loaded from the
# neutron.ml2.extension_drivers namespace. For example: extension_drivers =
# port_security,qos (list value)
#extension_drivers =
extension_drivers = port_security
# Maximum size of an IP packet (MTU) that can traverse the underlying physical
# network infrastructure without fragmentation when using an overlay/tunnel
# protocol. This option allows specifying a physical network MTU value that
# differs from the default global_physnet_mtu value. (integer value)
#path_mtu = 0

# A list of mappings of physical networks to MTU values. The format of the
# mapping is <physnet>:<mtu val>. This mapping allows specifying a physical
# network MTU value that differs from the default global_physnet_mtu value.
# (list value)
#physical_network_mtus =

# Default network type for external networks when no provider attributes are
# specified. By default it is None, which means that if provider attributes are
# not specified while creating external networks then they will have the same
# type as tenant networks. Allowed values for external_network_type config
# option depend on the network type values configured in type_drivers config
# option. (string value)
#external_network_type = <None>

# IP version of all overlay (tunnel) network endpoints. Use a value of 4 for
# IPv4 or 6 for IPv6. (integer value)
#overlay_ip_version = 4

[ml2_type_flat]

#
# From neutron.ml2
#

# List of physical_network names with which flat networks can be created. Use
# default '*' to allow flat networks with arbitrary physical_network names. Use
# an empty list to disable flat networks. (list value)
#flat_networks = *
flat_networks = provider

[securitygroup]

#
# From neutron.ml2
#

# Driver for security groups firewall in the L2 agent (string value)
#firewall_driver = <None>

# Controls whether the neutron security group API is enabled in the server. It
# should be false when using no security groups or using the nova security
# group API. (boolean value)
#enable_security_group = true

# Use ipset to speed-up the iptables based security groups. Enabling ipset
# support requires that ipset is installed on L2 agent node. (boolean value)
enable_ipset = true

# Comma-separated list of ethertypes to be permitted, in hexadecimal (starting
# with "0x"). For example, "0x4008" to permit InfiniBand. (list value)
#permitted_ethertypes =

-------------------------------------------------
Here is th...

Read more...

Revision history for this message
Oleg Bondarev (obondarev) wrote :

If enable_vxlan is set to false, local_ip check should simply be skipped according to the code of the LB agent. I'm not sure how the error from bug description could happen then.
LB agent writes debug (or info) logs with all it's config upon start, please verify that enable_vxlan there is set to False. And check failure log again, if it's still the same error.

Revision history for this message
Dalton Cézane (daltoncezane) wrote :

Hello, Oleg.

As listed in the previous comment, enable_vxlan = false:
[vxlan]

#
# From neutron.ml2.linuxbridge.agent
#

# Enable VXLAN on the agent. Can be enabled when agent is managed by ml2 plugin
# using linuxbridge mechanism driver (boolean value)
#enable_vxlan = true
enable_vxlan = false

Should I try commenting that line?

Revision history for this message
Oleg Bondarev (obondarev) wrote :

Need to make sure this is exact config which agent is running with. It could be seen in agent DEBUG logs (at the beginning)

Revision history for this message
Dalton Cézane (daltoncezane) wrote :
Download full text (45.1 KiB)

Where can I find these DEBUG logs?

The linuxbridge, dhcp and metadata agent logs are:

-neutron-linuxbridge-agent.log

2021-08-09 11:23:33.513 3243715 INFO neutron.common.config [-] Logging enabled!
2021-08-09 11:23:33.513 3243715 INFO neutron.common.config [-] /usr/bin/neutron-linuxbridge-agent version 18.0.0
2021-08-09 11:23:33.513 3243715 INFO neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent [-] Interface mappings: {'provider': 'enp0s31f6'}
2021-08-09 11:23:33.513 3243715 INFO neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent [-] Bridge mappings: {}
2021-08-09 11:23:33.514 3243715 INFO oslo.privsep.daemon [-] Running privsep helper: ['sudo', '/usr/bin/neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'privsep-helper', '--config-file', '/etc/neutron/neutron.conf', '--config-file', '/etc/neutron/plugins/ml2/linuxbridge_agent.ini', '--privsep_context', 'neutron.privileged.default', '--privsep_sock_path', '/tmp/tmpafho69wt/privsep.sock']
2021-08-09 11:23:33.984 3243715 INFO oslo.privsep.daemon [-] Spawned new privsep daemon via rootwrap
2021-08-09 11:23:33.922 3243731 INFO oslo.privsep.daemon [-] privsep daemon starting
2021-08-09 11:23:33.925 3243731 INFO oslo.privsep.daemon [-] privsep process running with uid/gid: 0/0
2021-08-09 11:23:33.926 3243731 INFO oslo.privsep.daemon [-] privsep process running with capabilities (eff/prm/inh): CAP_DAC_OVERRIDE|CAP_DAC_READ_SEARCH|CAP_NET_ADMIN|CAP_SYS_ADMIN|CAP_SYS_PTRACE/CAP_DAC_OVERRIDE|CAP_DAC_READ_SEARCH|CAP_NET_ADMIN|CAP_SYS_ADMIN|CAP_SYS_PTRACE/none
2021-08-09 11:23:33.926 3243731 INFO oslo.privsep.daemon [-] privsep daemon running as pid 3243731
2021-08-09 11:23:34.301 3243715 INFO neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent [-] Agent initialized successfully, now running...
2021-08-09 11:23:34.510 3243715 INFO neutron.plugins.ml2.drivers.agent._common_agent [req-600b1e7f-ae23-42a2-829c-f3d89af7b7d2 - - - - -] RPC agent_id: lbb06ebf66d3b0
2021-08-09 11:23:34.519 3243715 INFO neutron.agent.agent_extensions_manager [req-600b1e7f-ae23-42a2-829c-f3d89af7b7d2 - - - - -] Loaded agent extensions: []
2021-08-09 11:23:34.522 3243715 ERROR neutron_lib.callbacks.manager [req-600b1e7f-ae23-42a2-829c-f3d89af7b7d2 - - - - -] Error during notification for neutron.services.trunk.drivers.linuxbridge.agent.driver.init_handler-8732491527352 Linux bridge agent, after_init: TypeError: argument of type 'NoneType' is not iterable
2021-08-09 11:23:34.522 3243715 ERROR neutron_lib.callbacks.manager Traceback (most recent call last):
2021-08-09 11:23:34.522 3243715 ERROR neutron_lib.callbacks.manager File "/usr/lib/python3/dist-packages/neutron_lib/callbacks/manager.py", line 197, in _notify_loop
2021-08-09 11:23:34.522 3243715 ERROR neutron_lib.callbacks.manager callback(resource, event, trigger, **kwargs)
2021-08-09 11:23:34.522 3243715 ERROR neutron_lib.callbacks.manager File "/usr/lib/python3/dist-packages/neutron/services/trunk/drivers/linuxbridge/agent/driver.py", line 32, in init_handler
2021-08-09 11:23:34.522 3243715 ERROR neutron_lib.callbacks.manager LinuxBridgeTrunkDriver()
2021-08-09 11:23:34.522 3243715 ERROR neutron_lib...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.