Changes to VLAN mapping results in "is not mapped" error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
High
|
Mark McClain |
Bug Description
With neutron-server if you enable the type_drivers = vlan and set a mapping in [ml2_type_vlan] then install the neutron database, the service will start and map successfully.
However if you change the mapping after and restart the service you will receive error:
2018-01-15 11:50:36.875 9764 ERROR neutron File "/usr/lib/
2018-01-15 11:50:36.875 9764 ERROR neutron ctx.session.
2018-01-15 11:50:36.875 9764 ERROR neutron File "/usr/lib64/
2018-01-15 11:50:36.875 9764 ERROR neutron raise exc.UnmappedIns
2018-01-15 11:50:36.875 9764 ERROR neutron UnmappedInstanc
2018-01-15 11:50:36.875 9764 ERROR neutron
plugin.ini:
[ml2]
type_drivers = vlan
tenant_
mechanism_drivers = openvswitch
[ml2_type_vlan]
network_vlan_ranges = physnet0:2:4000
sync DB:
su -s /bin/sh -c "neutron-db-manage --config-file /etc/neutron/
Start neutron-server, Success!
Now change plugin.ini to the following:
[ml2_type_vlan]
network_vlan_ranges = physnet1:2:4000
Restart neutron-server. Failure!
Versions:
openstack-
openstack-
openstack-
openstack-
openstack-
python-
python-
python2-
pip
neutron==11.0.2
neutron-lib==1.9.1
python-
CentOS 7 @ 3.10.0-
Changed in neutron: | |
importance: | Undecided → High |
status: | New → Confirmed |
Changed in neutron: | |
assignee: | nobody → Mark McClain (markmcclain) |
status: | Confirmed → In Progress |
Changed in neutron: | |
status: | In Progress → Fix Released |
I can confirm this. I am getting exactly same behavior. It looks as if original network name stays in database, then fails if configuration does not map it to anything.
I am deploying openstack from source: 11.0.1. tar.gz
Version:
neutron-
Stackstrace:
Unrecoverable error: please check log for details.: UnmappedInstanc eError: Class 'neutron. objects. plugins. ml2.vlanallocat ion.VlanAllocat ion' is not mapped kolla/venv/ local/lib/ python2. 7/site- packages/ neutron/ service. py", line 86, in serve_wsgi kolla/venv/ local/lib/ python2. 7/site- packages/ neutron/ service. py", line 62, in start self.app_ name) kolla/venv/ local/lib/ python2. 7/site- packages/ neutron/ service. py", line 289, in _run_wsgi load_paste_ app(app_ name) kolla/venv/ local/lib/ python2. 7/site- packages/ neutron/ common/ config. py", line 122, in load_paste_app load_app( app_name) kolla/venv/ local/lib/ python2. 7/site- packages/ oslo_service/ wsgi.py" , line 353, in load_app loadapp( "config: %s" % self.config_path, name=name) kolla/venv/ local/lib/ python2. 7/site- packages/ paste/deploy/ loadwsgi. py", line 247, in loadapp kolla/venv/ local/lib/ python2. 7/site- packages/ paste/deploy/ loadwsgi. py", line 272, in loadobj kolla/venv/ local/lib/ python2. 7/site- packages/ paste/deploy/ loadwsgi. py", line 710, in create type.invoke( self) kolla/venv/ local/lib/ python2. 7/site- packages/ paste/deploy/ loadwsgi. py", line 144, in invoke local_conf) kolla/venv/ local/lib/ python2. 7/site- packages/ paste/deploy/ util.py" , line 55, in fix_call kolla/venv/ local/lib/ python2. 7/site- packages/ paste/urlmap. py", line 31, in urlmap_factory get_app( app_name, global_ conf=global_ conf)
2018-01-17 20:05:39.647 6 ERROR neutron.service Traceback (most recent call last):
2018-01-17 20:05:39.647 6 ERROR neutron.service File "/var/lib/
2018-01-17 20:05:39.647 6 ERROR neutron.service service.start()
2018-01-17 20:05:39.647 6 ERROR neutron.service File "/var/lib/
2018-01-17 20:05:39.647 6 ERROR neutron.service self.wsgi_app = _run_wsgi(
2018-01-17 20:05:39.647 6 ERROR neutron.service File "/var/lib/
2018-01-17 20:05:39.647 6 ERROR neutron.service app = config.
2018-01-17 20:05:39.647 6 ERROR neutron.service File "/var/lib/
2018-01-17 20:05:39.647 6 ERROR neutron.service app = loader.
2018-01-17 20:05:39.647 6 ERROR neutron.service File "/var/lib/
2018-01-17 20:05:39.647 6 ERROR neutron.service return deploy.
2018-01-17 20:05:39.647 6 ERROR neutron.service File "/var/lib/
2018-01-17 20:05:39.647 6 ERROR neutron.service return loadobj(APP, uri, name=name, **kw)
2018-01-17 20:05:39.647 6 ERROR neutron.service File "/var/lib/
2018-01-17 20:05:39.647 6 ERROR neutron.service return context.create()
2018-01-17 20:05:39.647 6 ERROR neutron.service File "/var/lib/
2018-01-17 20:05:39.647 6 ERROR neutron.service return self.object_
2018-01-17 20:05:39.647 6 ERROR neutron.service File "/var/lib/
2018-01-17 20:05:39.647 6 ERROR neutron.service **context.
2018-01-17 20:05:39.647 6 ERROR neutron.service File "/var/lib/
2018-01-17 20:05:39.647 6 ERROR neutron.service val = callable(*args, **kw)
2018-01-17 20:05:39.647 6 ERROR neutron.service File "/var/lib/
2018-01-17 20:05:39.647 6 ERROR neutron.service app = loader.
2018-01-17 20:05:39...