Why do I get ValueError: Field value 0 is invalid in neutron logs ?

Solution In Progress - Updated -

Issue

  • The following trace can be appreciated on neutron logs:
2019-06-03 06:14:14.101 1 ERROR neutron.service   File "/usr/lib/python2.7/site-packages/neutron/objects/base.py", line 502, in _load_object
2019-06-03 06:14:14.101 1 ERROR neutron.service     obj.from_db_object(db_obj)
2019-06-03 06:14:14.101 1 ERROR neutron.service   File "/usr/lib/python2.7/site-packages/neutron/objects/base.py", line 445, in from_db_object
2019-06-03 06:14:14.101 1 ERROR neutron.service     setattr(self, field, fields[field])
2019-06-03 06:14:14.101 1 ERROR neutron.service   File "/usr/lib/python2.7/site-packages/oslo_versionedobjects/base.py", line 72, in setter
2019-06-03 06:14:14.101 1 ERROR neutron.service     field_value = field.coerce(self, name, value)
2019-06-03 06:14:14.101 1 ERROR neutron.service   File "/usr/lib/python2.7/site-packages/oslo_versionedobjects/fields.py", line 195, in coerce
2019-06-03 06:14:14.101 1 ERROR neutron.service     return self._type.coerce(obj, attr, value)
2019-06-03 06:14:14.101 1 ERROR neutron.service   File "/usr/lib/python2.7/site-packages/neutron/objects/common_types.py", line 55, in coerce
2019-06-03 06:14:14.101 1 ERROR neutron.service     raise ValueError(msg)
2019-06-03 06:14:14.101 1 ERROR neutron.service ValueError: Field value 0 is invalid

docker ps shows neutron restarting:

46bd0268143b        192.168.100.1:8787/rhosp13/openstack-neutron-server:13.0-75.1554788839              "kolla_start"            3 weeks ago         Restarting (1) 2 minutes ago                       neutron_api

It is also possible to see a vlan 0 on vlan_allocations

# mysql ovs_neutron;


> select * from ml2_vlan_allocations;
+------------------+---------+-----------+
| physical_network | vlan_id | allocated |
+------------------+---------+-----------+
| tenant           |       0 |         1 |  <===== vlan_id 0 causes the issue
| tenant           |       1 |         1 | 
| tenant           |       2 |         1 |
| tenant           |       3 |         1 |
| tenant           |       4 |         1 |
| tenant           |       5 |         1 |

Environment

  • Red Hat Openstack Platform 13 (RHOSP)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In