Bug 861175 - nova.services table uses the word "binary" as a column header
Summary: nova.services table uses the word "binary" as a column header
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-nova
Version: 1.0 (Essex)
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
: ---
Assignee: Nikola Dipanov
QA Contact: Jaroslav Henner
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-09-27 18:00 UTC by Dan Yocum
Modified: 2016-04-22 05:01 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-12-12 16:56:08 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Dan Yocum 2012-09-27 18:00:54 UTC
Description of problem:

The mysql reserved word "binary" is used as a column header in the nova.services table.


Version-Release number of selected component (if applicable):

essex

How reproducible:

always

Steps to Reproduce:
1. mysql -B -e "use nova; select binary from services;"
2.
3.
  
Actual results:

ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'from services' at line 1

Expected results:

output of all names of binaries on all cloud nodes.

Additional info:

See table 5.5.28 on this page for a list of all reserved mysql keywords:  

http://dev.mysql.com/doc/refman/5.5/en/reserved-words.html

Comment 2 Pádraig Brady 2012-11-05 16:13:16 UTC
Should be fixed upstream.

Comment 3 Dan Yocum 2012-11-12 18:23:28 UTC
I'm sorry I don't understand.  Are you saying that the fix is applied upstream or that I should report this problem upstream?  

Please, please, oh, please, don't make me use launchpad...

;-)

Comment 4 Pádraig Brady 2012-11-13 12:14:31 UTC
I was saying this issue should be fixed upstream first, and thus reported there.
Though perhaps the cost of migrating now isn't worth it?
Even custom queries like this can easily be escaped:

# mysql -B -e 'use nova; select `binary` from services;'

Comment 5 Dan Yocum 2012-11-13 14:53:26 UTC
I'm actually OK with reporting it upstream - but since I discovered the problem in the our preview product, I figured I'd report it to the "vendor" and let you guys work it in upstream.

Comment 6 Nikola Dipanov 2012-12-12 16:56:08 UTC
This does not seem to be something we are willing to propose upstream and does not really seem to cause issues in practice so I am marking it as closed.


Note You need to log in before you can comment on or make changes to this bug.