← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1432101] Re: non-admin user can't create network by os-tenant-network with nova-network vlanmanager

 

** Changed in: nova
       Status: Fix Committed => Fix Released

** Changed in: nova
    Milestone: None => liberty-1

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1432101

Title:
  non-admin user can't create network by os-tenant-network with nova-
  network vlanmanager

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  alex@hp-pc:~/code/devstack$ nova tenant-network-create net2
  10.0.0.0/24

  ERROR (ClientException): Create networks failed (HTTP 503) (Request-
  ID: req-e1cf8f25-309c-49a8-b460-b56172ac68ce)

  get error as below:

  2015-03-14 12:25:45.225 TRACE nova.api.openstack.compute.contrib.os_tenant_networks   File "/opt/stack/nova/nova/conductor/manager.py", line 420, in _object_dispatch
  2015-03-14 12:25:45.225 TRACE nova.api.openstack.compute.contrib.os_tenant_networks     return getattr(target, method)(*args, **kwargs)
  2015-03-14 12:25:45.225 TRACE nova.api.openstack.compute.contrib.os_tenant_networks
  2015-03-14 12:25:45.225 TRACE nova.api.openstack.compute.contrib.os_tenant_networks   File "/opt/stack/nova/nova/objects/base.py", line 207, in wrapper
  2015-03-14 12:25:45.225 TRACE nova.api.openstack.compute.contrib.os_tenant_networks     return fn(self, self._context, *args, **kwargs)
  2015-03-14 12:25:45.225 TRACE nova.api.openstack.compute.contrib.os_tenant_networks
  2015-03-14 12:25:45.225 TRACE nova.api.openstack.compute.contrib.os_tenant_networks   File "/opt/stack/nova/nova/objects/network.py", line 177, in create
  2015-03-14 12:25:45.225 TRACE nova.api.openstack.compute.contrib.os_tenant_networks     db_network = db.network_create_safe(context, updates)
  2015-03-14 12:25:45.225 TRACE nova.api.openstack.compute.contrib.os_tenant_networks
  2015-03-14 12:25:45.225 TRACE nova.api.openstack.compute.contrib.os_tenant_networks   File "/opt/stack/nova/nova/db/api.py", line 970, in network_create_safe
  2015-03-14 12:25:45.225 TRACE nova.api.openstack.compute.contrib.os_tenant_networks     return IMPL.network_create_safe(context, values)
  2015-03-14 12:25:45.225 TRACE nova.api.openstack.compute.contrib.os_tenant_networks
  2015-03-14 12:25:45.225 TRACE nova.api.openstack.compute.contrib.os_tenant_networks   File "/opt/stack/nova/nova/db/sqlalchemy/api.py", line 127, in wrapper
  2015-03-14 12:25:45.225 TRACE nova.api.openstack.compute.contrib.os_tenant_networks     nova.context.require_admin_context(args[0])
  2015-03-14 12:25:45.225 TRACE nova.api.openstack.compute.contrib.os_tenant_networks
  2015-03-14 12:25:45.225 TRACE nova.api.openstack.compute.contrib.os_tenant_networks   File "/opt/stack/nova/nova/context.py", line 226, in require_admin_context
  2015-03-14 12:25:45.225 TRACE nova.api.openstack.compute.contrib.os_tenant_networks     raise exception.AdminRequired()
  2015-03-14 12:25:45.225 TRACE nova.api.openstack.compute.contrib.os_tenant_networks
  2015-03-14 12:25:45.225 TRACE nova.api.openstack.compute.contrib.os_tenant_networks AdminRequired: User does not have admin privileges
  2015-03-14 12:25:45.225 TRACE nova.api.openstack.compute.contrib.os_tenant_networks
  2015-03-14 12:25:45.225 TRACE nova.api.openstack.compute.contrib.os_tenant_networks
  2015-03-14 12:25:45.225 TRACE nova.api.openstack.compute.contrib.os_tenant_networks

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1432101/+subscriptions


References