nova-manage db archive_deleted_rows doesn't check for negative max_rows
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Joe Gordon |
Bug Description
From latest devstack on 2013-3-4
box:~/devstack$ sudo nova-manage db archive_
Command failed, please check log for more info
2013-03-05 00:49:41.631 CRITICAL nova [req-ee44b54f-
2013-03-05 00:49:41.631 8904 TRACE nova Traceback (most recent call last):
2013-03-05 00:49:41.631 8904 TRACE nova File "/usr/local/
2013-03-05 00:49:41.631 8904 TRACE nova execfile(__file__)
2013-03-05 00:49:41.631 8904 TRACE nova File "/opt/stack/
2013-03-05 00:49:41.631 8904 TRACE nova main()
2013-03-05 00:49:41.631 8904 TRACE nova File "/opt/stack/
2013-03-05 00:49:41.631 8904 TRACE nova fn(*fn_args, **fn_kwargs)
2013-03-05 00:49:41.631 8904 TRACE nova File "/opt/stack/
2013-03-05 00:49:41.631 8904 TRACE nova db.archive_
2013-03-05 00:49:41.631 8904 TRACE nova File "/opt/stack/
2013-03-05 00:49:41.631 8904 TRACE nova File "/opt/stack/
2013-03-05 00:49:41.631 8904 TRACE nova return f(*args, **kwargs)
2013-03-05 00:49:41.631 8904 TRACE nova File "/opt/stack/
2013-03-05 00:49:41.631 8904 TRACE nova max_rows=max_rows - rows_archived)
2013-03-05 00:49:41.631 8904 TRACE nova File "/opt/stack/
2013-03-05 00:49:41.631 8904 TRACE nova rows = conn.execute(
2013-03-05 00:49:41.631 8904 TRACE nova File "/usr/local/
2013-03-05 00:49:41.631 8904 TRACE nova params)
2013-03-05 00:49:41.631 8904 TRACE nova File "/usr/local/
2013-03-05 00:49:41.631 8904 TRACE nova compiled_sql, distilled_params
2013-03-05 00:49:41.631 8904 TRACE nova File "/usr/local/
2013-03-05 00:49:41.631 8904 TRACE nova context)
2013-03-05 00:49:41.631 8904 TRACE nova File "/usr/local/
2013-03-05 00:49:41.631 8904 TRACE nova context)
2013-03-05 00:49:41.631 8904 TRACE nova File "/usr/local/
2013-03-05 00:49:41.631 8904 TRACE nova cursor.
2013-03-05 00:49:41.631 8904 TRACE nova File "/usr/lib/
2013-03-05 00:49:41.631 8904 TRACE nova self.errorhandl
2013-03-05 00:49:41.631 8904 TRACE nova File "/usr/lib/
2013-03-05 00:49:41.631 8904 TRACE nova raise errorclass, errorvalue
2013-03-05 00:49:41.631 8904 TRACE nova ProgrammingError: (ProgrammingError) (1064, "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 '-5' at line 4") 'SELECT aggregate_
Changed in nova: | |
milestone: | none → grizzly-rc1 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | grizzly-rc1 → 2013.1 |
Fix proposed to branch: master /review. openstack. org/23496
Review: https:/