[Bug 1368030] [NEW] nova-manage command when executed by non-root user, should give "authorization error" instead of low level database error

Launchpad Bug Tracker 1368030 at bugs.launchpad.net
Sun Sep 14 02:55:27 UTC 2014


You have been subscribed to a public bug:

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.

** Affects: nova
     Importance: Low
         Status: Confirmed

** Affects: nova (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: nova-manage
-- 
nova-manage command when executed by non-root user, should give "authorization error" instead of low level database error
https://bugs.launchpad.net/bugs/1368030
You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to nova in Ubuntu.



More information about the Ubuntu-server-bugs mailing list