Non admin user can't search shared networks when db don't support BOOLEAN.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
High
|
Hua Zhang | ||
Grizzly |
Fix Released
|
High
|
Gary Kotton |
Bug Description
Below quantum command cannot return shared networks correctly when the backend database doesn't support BOOLEAN type.
quantum --os-username user1 --os-password pass --os-tenant user1-tenant net-list
It will fail with a SQL statement token error at runtime.
Take IBM DB2 for example, SQLAlchemy maps the column 'shared' in quantum.networks as SMALLINT.
Generated SQL error:
[CLI Driver]
"OR networks.shared" is not supported by databases which don't support BOOLEAN type.
It can be made more compatible by changing to "OR networks.shared = ?" .
Changed in quantum: | |
assignee: | nobody → Fei Long Wang (flwang) |
Changed in quantum: | |
status: | New → Confirmed |
importance: | Undecided → High |
milestone: | none → 2012.2.4 |
Changed in quantum: | |
milestone: | 2012.2.4 → havana-1 |
tags: | added: db folsom-backport-potential grizzly-backport-potential |
tags: | removed: grizzly-backport-potential |
Changed in quantum: | |
status: | Fix Committed → Fix Released |
tags: | removed: in-stable-grizzly |
Changed in neutron: | |
milestone: | havana-1 → 2013.2 |
Fix proposed to branch: master /review. openstack. org/25808
Review: https:/