Regular user can't boot with requested ip
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
Vish Ishaya |
Bug Description
The os-networks extension allows a user to request a network and ip when booting, but it fails with a stack trace reporting AdminRequired. This is not an explicit check but a side-effect of an unused call in the validate_networks code.
DEBUG (shell:534) User does not have admin privileges
Traceback (most recent call last):
File "/opt/stack/
rval = self.proxy.
File "/opt/stack/
return getattr(proxyobj, method)(ctxt, **kwargs)
File "/opt/stack/
return func(self, context, *args, **kwargs)
File "/opt/stack/
for network_uuid, address in networks:
File "/opt/stack/
@wrap_
File "/opt/stack/
return IMPL.network_
File "/opt/stack/
raise exception.
AdminRequired: User does not have admin privileges
(HTTP 403) (Request-ID: req-164604d1-
Traceback (most recent call last):
File "/opt/stack/
OpenStackCo
File "/opt/stack/
args.
File "/opt/stack/
server = cs.servers.
File "/opt/stack/
**boot_kwargs)
File "/opt/stack/
return_
File "/opt/stack/
_resp, body = self.api.
File "/opt/stack/
return self._cs_
File "/opt/stack/
**kwargs)
File "/opt/stack/
resp, body = self.request(url, method, **kwargs)
File "/opt/stack/
raise exceptions.
Forbidden: User does not have admin privileges
Changed in nova: | |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | folsom-rc1 → 2012.2 |
Note that you can lock down the ability for using this by setting a policy for validate_networks.