nova-manage command when executed by non-root user, should give "authorization error" instead of low level database error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Expired
|
Undecided
|
Unassigned | ||
nova (Ubuntu) |
Confirmed
|
Low
|
Unassigned |
Bug Description
Version of nova-compute and distribution/
1) Execute below command using "non-root" user.
ubuntu@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-
2) Execute above command using "root" user:
ubuntu@mc1:~$ sudo su -
root@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.
summary: |
- nova-manage command when executed by non-root user should give + nova-manage command when executed by non-root user, should give "authorization error" instead of low level database error |
Changed in nova: | |
importance: | Undecided → Low |
status: | New → Confirmed |
affects: | ubuntu → nova (Ubuntu) |
Changed in nova (Ubuntu): | |
assignee: | nobody → Kanchan Gupta (kanchan-gupta1) |
status: | New → In Progress |
Changed in nova (Ubuntu): | |
status: | In Progress → Confirmed |
assignee: | Kanchan Gupta (kanchan-gupta1) → nobody |
Changed in nova (Ubuntu): | |
importance: | Undecided → Low |
Changed in nova: | |
assignee: | nobody → vishal yadav (vishalcdac07) |
Changed in nova: | |
assignee: | vishal yadav (vishalcdac07) → nobody |
Severity for this issue is "low" as it does not impact the functionality but for operator or end user the error message is not informative.