Ask Your Question
0

Neutron - TypeError: Object of type 'ValueError' is not JSON serializable

asked 2020-04-06 10:47:15 -0500

jmora gravatar image

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 ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2020-04-08 12:05:11 -0500

jmora gravatar image

This was a missing package error, server was missing dnsmasq plugin.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2020-04-06 10:47:15 -0500

Seen: 173 times

Last updated: Apr 06