Context is not passed when creating a new server via OpenStack API
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
Chmouel Boudjnah |
Bug Description
when creating a server via the OpenStack API I am getting :
WARNING:root:Caught error: die
DEBUG:root:
File "/home/
return req.get_
File "/usr/local/
application, catch_exc_
File "/usr/local/
app_iter = application(
File "/usr/local/
return resp(environ, start_response)
File "/usr/local/
return resp(environ, start_response)
File "/usr/local/
return resp(environ, start_response)
File "/usr/lib/
response = self.app(environ, start_response)
File "/usr/local/
return resp(environ, start_response)
File "/usr/local/
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/local/
return self.func(req, *args, **kwargs)
File "/home/
result = method(**arg_dict)
File "/home/
key_pair = self.db_
File "/home/
return IMPL.key_
File "/home/
if not is_admin_
File "/home/
raise Exception('die')
Exception: die
is_admin_context code :
def is_admin_
"""Indicates if the request context is an administrator."""
if not context:
raise Exception('die')
return context.is_admin
Related branches
- Jay Pipes (community): Approve
- Michael Gundlach (community): Approve
-
Diff: 515 lines (+97/-119)9 files modifiednova/api/ec2/cloud.py (+10/-15)
nova/api/openstack/servers.py (+18/-30)
nova/auth/manager.py (+4/-0)
nova/compute/api.py (+48/-51)
nova/db/sqlalchemy/api.py (+1/-0)
nova/flags.py (+1/-1)
nova/tests/api/openstack/fakes.py (+1/-2)
nova/tests/api/openstack/test_servers.py (+5/-5)
nova/tests/compute_unittest.py (+9/-15)
Changed in nova: | |
assignee: | nobody → Chmouel Boudjnah (chmouel) |
Changed in nova: | |
importance: | Undecided → High |
status: | New → In Progress |
Changed in nova: | |
status: | In Progress → Fix Committed |
Changed in nova: | |
milestone: | none → 2011.1 |
status: | Fix Committed → Fix Released |