yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #02131
[Bug 1092610] Re: attempting to create a public domain with wrong permissions causes stack trace to the user
** Changed in: nova/folsom
Status: Fix Committed => Fix Released
--
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/1092610
Title:
attempting to create a public domain with wrong permissions causes
stack trace to the user
Status in OpenStack Compute (Nova):
Fix Released
Status in OpenStack Compute (nova) folsom series:
Fix Released
Bug description:
Trying to run:
nova dns-create-public-domain somedomain.com
as *not* the admin user, causes the following stack trace to be
displayed to the user:
ERROR: User does not have admin privileges
Traceback (most recent call last):
File "/opt/stack/nova/nova/openstack/common/rpc/amqp.py", line 277, in _process_data
rval = self.proxy.dispatch(ctxt, version, method, **args)
File "/opt/stack/nova/nova/openstack/common/rpc/dispatcher.py", line 147, in dispatch
return getattr(proxyobj, method)(ctxt, **kwargs)
File "/opt/stack/nova/nova/network/manager.py", line 284, in wrapped
return func(self, context, *args, **kwargs)
File "/opt/stack/nova/nova/network/manager.py", line 866, in create_public_dns_domain
self.db.dnsdomain_register_for_project(context, domain, project)
File "/opt/stack/nova/nova/db/api.py", line 360, in dnsdomain_register_for_project
return IMPL.dnsdomain_register_for_project(context, fqdomain, project)
File "/opt/stack/nova/nova/db/sqlalchemy/api.py", line 107, in wrapper
raise exception.AdminRequired()
AdminRequired: User does not have admin privileges
(HTTP 403) (Request-ID: req-3d93329d-032e-4524-9278-c298b0474f6d)
The error is correct, but we shouldn't be passing back a giant stack
trace in the process.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1092610/+subscriptions