Why am I not able to disable the Shared checkbox for external networks?
Issue
-
We have configured three external networks as shared using RHOS4 and now we cannot set this network as unshared.
-
On the admin panel (logged as administrator) and over Networks, unchecking shared attribute from horizon shows following error message:
“Error: Failed to update network <name>"
Below trace is found in logs (/var/log/neutron)
2014-02-27 20:38:33.605 28315 ERROR neutron.api.v2.resource [-] update failed
2014-02-27 20:38:33.605 28315 TRACE neutron.api.v2.resource Traceback (most recent call last):
2014-02-27 20:38:33.605 28315 TRACE neutron.api.v2.resource File "/usr/lib/python2.6/site-packages/neutron/api/v2/resource.py", line 84, in resource
2014-02-27 20:38:33.605 28315 TRACE neutron.api.v2.resource result = method(request=request, **args)
2014-02-27 20:38:33.605 28315 TRACE neutron.api.v2.resource File "/usr/lib/python2.6/site-packages/neutron/api/v2/base.py", line 486, in update
2014-02-27 20:38:33.605 28315 TRACE neutron.api.v2.resource obj = obj_updater(request.context, id, **kwargs)
2014-02-27 20:38:33.605 28315 TRACE neutron.api.v2.resource File "/usr/lib/python2.6/site-packages/neutron/plugins/openvswitch/ovs_neutron_plugin.py", line 517, in update_network
2014-02-27 20:38:33.605 28315 TRACE neutron.api.v2.resource network)
2014-02-27 20:38:33.605 28315 TRACE neutron.api.v2.resource File "/usr/lib/python2.6/site-packages/neutron/db/db_base_plugin_v2.py", line 981, in update_network
2014-02-27 20:38:33.605 28315 TRACE neutron.api.v2.resource self._validate_shared_update(context, id, network, n)
2014-02-27 20:38:33.605 28315 TRACE neutron.api.v2.resource File "/usr/lib/python2.6/site-packages/neutron/db/db_base_plugin_v2.py", line 877, in _validate_shared_update
2014-02-27 20:38:33.605 28315 TRACE neutron.api.v2.resource raise q_exc.InvalidSharedSetting(network=original.name)
2014-02-27 20:38:33.605 28315 TRACE neutron.api.v2.resource InvalidSharedSetting: Unable to reconfigure sharing settings for network ext_inet. Multiple tenants are using it
2014-02-27 20:38:33.605 28315 TRACE neutron.api.v2.resource
- I edited a network and enabled sharing. Immediately trying clear the "Shared" attribute fails with the above error.
Environment
- Red Hat Enterprise Linux Openstack Platform v4.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.