[Bug 1368030] Re: nova-manage command when executed by non-root user, should give "authorization error" instead of low level database error
Davanum Srinivas (DIMS)
davanum at gmail.com
Fri Mar 4 03:14:08 UTC 2016
** Changed in: nova
Assignee: vishal yadav (vishalcdac07) => (unassigned)
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to nova in Ubuntu.
https://bugs.launchpad.net/bugs/1368030
Title:
nova-manage command when executed by non-root user, should give
"authorization error" instead of low level database error
Status in OpenStack Compute (nova):
Confirmed
Status in nova package in Ubuntu:
Confirmed
Bug description:
Version of nova-compute and distribution/package
(1:2014.1.2-0ubuntu1.1)
1) Execute below command using "non-root" user.
ubuntu at mc1:~$ nova-manage flavor list
It gives below error:
Command failed, please check log for more info
2014-09-11 13:43:17.501 12857 CRITICAL nova [req-07bc6065-3ece-4fd5-b478-48d37c63a2c6 None None] OperationalError: (OperationalError) unable to open database file None None
2) Execute above command using "root" user:
ubuntu at mc1:~$ sudo su -
root at mc1:~# nova-manage flavor list
m1.medium: Memory: 4096MB, VCPUS: 2, Root: 40GB, Ephemeral: 0Gb, FlavorID: 3, Swap: 0MB, RXTX Factor: 1.0, public, ExtraSpecs {}
m1.tiny: Memory: 512MB, VCPUS: 1, Root: 1GB, Ephemeral: 0Gb, FlavorID: 1, Swap: 0MB, RXTX Factor: 1.0, public, ExtraSpecs {}
m1.large: Memory: 8192MB, VCPUS: 4, Root: 80GB, Ephemeral: 0Gb, FlavorID: 4, Swap: 0MB, RXTX Factor: 1.0, public, ExtraSpecs {}
m1.xlarge: Memory: 16384MB, VCPUS: 8, Root: 160GB, Ephemeral: 0Gb, FlavorID: 5, Swap: 0MB, RXTX Factor: 1.0, public, ExtraSpecs {}
m1.small: Memory: 2048MB, VCPUS: 1, Root: 20GB, Ephemeral: 0Gb, FlavorID: 2, Swap: 0MB, RXTX Factor: 1.0, public, ExtraSpecs {}
So instead of low level database error, it should give kind of
"authorization error" to operator or end-user of "nova-manage" CLI.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1368030/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list