Neutron - TypeError: Object of type 'ValueError' is not JSON serializable
Openstack Train | EL7 | Python3 | Openvswitch
Setting up Neutron on the controller node, the network gets created without issue, but when a subnet is created the server throws an error "TypeError: Object of type 'ValueError' is not JSON serializable"
2020-04-06 15:26:10.316 31313 ERROR neutron.agent.linux.utils [-] Rootwrap error running command: ['ip', 'netns', 'exec', 'qdhcp-b65d1c21-fc3e-4ad6-8666-1cbdf8254b3b', 'dnsmasq', '--no-hosts', '--no-resolv', '--pid-file=/var/lib/neutron/dhcp/b65d1c21-fc3e-4ad6-8666-1cbdf8254b3b/pid', '--dhcp-hostsfile=/var/lib/neutron/dhcp/b65d1c21-fc3e-4ad6-8666-1cbdf8254b3b/host', '--addn-hosts=/var/lib/neutron/dhcp/b65d1c21-fc3e-4ad6-8666-1cbdf8254b3b/addn_hosts', '--dhcp-optsfile=/var/lib/neutron/dhcp/b65d1c21-fc3e-4ad6-8666-1cbdf8254b3b/opts', '--dhcp-leasefile=/var/lib/neutron/dhcp/b65d1c21-fc3e-4ad6-8666-1cbdf8254b3b/leases', '--dhcp-match=set:ipxe,175', '--dhcp-userclass=set:ipxe6,iPXE', '--local-service', '--bind-dynamic', '--dhcp-range=set:subnet-06d4a3cc-be07-4901-aa14-73c7490cbbe8,10.2.40.32,static,255.255.255.224,86400s', '--dhcp-option-force=option:mtu,1500', '--dhcp-lease-max=32', '--conf-file=/etc/neutron/dnsmasq-neutron.conf', '--domain=openstacklocal']: multiprocessing.managers.RemoteError:
2020-04-06 15:26:10.317 31313 ERROR neutron.agent.dhcp.agent [-] Unable to enable dhcp for b65d1c21-fc3e-4ad6-8666-1cbdf8254b3b.: multiprocessing.managers.RemoteError:
---------------------------------------------------------------------------
Unserializable message: Traceback (most recent call last):
File "/usr/lib64/python3.6/multiprocessing/managers.py", line 283, in serve_client
send(msg)
File "/usr/local/lib/python3.6/site-packages/oslo_rootwrap/jsonrpc.py", line 128, in send
s = self.dumps(obj)
File "/usr/local/lib/python3.6/site-packages/oslo_rootwrap/jsonrpc.py", line 170, in dumps
return json.dumps(obj, cls=RpcJSONEncoder).encode('utf-8')
File "/usr/lib64/python3.6/json/__init__.py", line 238, in dumps
**kw).encode(obj)
File "/usr/lib64/python3.6/json/encoder.py", line 199, in encode
chunks = self.iterencode(o, _one_shot=True)
File "/usr/lib64/python3.6/json/encoder.py", line 257, in iterencode
return _iterencode(o, 0)
File "/usr/local/lib/python3.6/site-packages/oslo_rootwrap/jsonrpc.py", line 43, in default
return super(RpcJSONEncoder, self).default(o)
File "/usr/lib64/python3.6/json/encoder.py", line 180, in default
o.__class__.__name__)
TypeError: Object of type 'ValueError' is not JSON serializable
---------------------------------------------------------------------------
2020-04-06 15:26:10.317 31313 ERROR neutron.agent.dhcp.agent Traceback (most recent call last):
2020-04-06 15:26:10.317 31313 ERROR neutron.agent.dhcp.agent File "/usr/local/lib/python3.6/site-packages/neutron/agent/dhcp/agent.py", line 178, in call_driver
2020-04-06 15:26:10.317 31313 ERROR neutron.agent.dhcp.agent getattr(driver, action)(**action_kwargs)
2020-04-06 15:26:10.317 31313 ERROR neutron.agent.dhcp.agent File "/usr/local/lib/python3.6/site-packages/neutron/agent/linux/dhcp.py", line 256, in enable
2020-04-06 15:26:10.317 31313 ERROR neutron.agent.dhcp.agent common_utils.wait_until_true(self._enable, timeout=300)
2020-04-06 15:26:10.317 31313 ERROR neutron.agent.dhcp.agent File "/usr/local/lib/python3.6/site-packages/neutron/common/utils.py", line 701, in wait_until_true
2020-04-06 15:26:10.317 31313 ERROR neutron.agent.dhcp.agent while not predicate():
2020-04-06 15:26:10.317 31313 ERROR neutron.agent.dhcp.agent File "/usr/local/lib/python3.6/site-packages/neutron/agent/linux/dhcp.py", line 270, in _enable
2020-04-06 15:26:10.317 31313 ERROR neutron.agent.dhcp.agent self.spawn_process()
2020-04-06 15:26:10.317 31313 ERROR neutron.agent.dhcp ...