Regression prevents to start any instance through libvirt
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Critical
|
Thierry Carrez |
Bug Description
When launching an instance using 2011.2~bzr757 I get the instances failing to spawn due to SQL syntax error:
2011-03-03 10:19:08,357 DEBUG nova.utils [-] Running cmd (subprocess): qemu-img create -f qcow2 -o cluster_
2011-03-03 10:19:08,441 ERROR nova.exception [-] Uncaught exception
(nova.exception): TRACE: Traceback (most recent call last):
(nova.exception): TRACE: File "/usr/lib/
(nova.exception): TRACE: return f(*args, **kw)
(nova.exception): TRACE: File "/usr/lib/
(nova.exception): TRACE: self._create_
(nova.exception): TRACE: File "/usr/lib/
(nova.exception): TRACE: type_data = instance_
(nova.exception): TRACE: File "/usr/lib/
(nova.exception): TRACE: inst_type = db.instance_
(nova.exception): TRACE: File "/usr/lib/
(nova.exception): TRACE: return IMPL.instance_
(nova.exception): TRACE: File "/usr/lib/
(nova.exception): TRACE: return f(*args, **kwargs)
(nova.exception): TRACE: File "/usr/lib/
(nova.exception): TRACE: filter_
(nova.exception): TRACE: File "/usr/lib/
(nova.exception): TRACE: ret = list(self[0:1])
(nova.exception): TRACE: File "/usr/lib/
(nova.exception): TRACE: return list(res)
(nova.exception): TRACE: File "/usr/lib/
(nova.exception): TRACE: return self._execute_
(nova.exception): TRACE: File "/usr/lib/
(nova.exception): TRACE: mapper=
(nova.exception): TRACE: File "/usr/lib/
(nova.exception): TRACE: clause, params or {})
(nova.exception): TRACE: File "/usr/lib/
(nova.exception): TRACE: params)
(nova.exception): TRACE: File "/usr/lib/
(nova.exception): TRACE: return self.__
(nova.exception): TRACE: File "/usr/lib/
(nova.exception): TRACE: context.
(nova.exception): TRACE: File "/usr/lib/
(nova.exception): TRACE: context)
(nova.exception): TRACE: File "/usr/lib/
(nova.exception): TRACE: context)
(nova.exception): TRACE: File "/usr/lib/
(nova.exception): TRACE: cursor.
(nova.exception): TRACE: File "/usr/lib/
(nova.exception): TRACE: self.errorhandl
(nova.exception): TRACE: File "/usr/lib/
(nova.exception): TRACE: raise errorclass, errorvalue
(nova.exception): TRACE: 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 ') \n LIMIT 0, 1' at line 3") 'SELECT instance_
(nova.exception): TRACE:
2011-03-03 10:19:08,481 ERROR nova.compute.
(nova.compute.
(nova.compute.
(nova.compute.
(nova.compute.
(nova.compute.
(nova.compute.
Related branches
- Sandy Walsh (community): Approve
- Soren Hansen (community): Approve
-
Diff: 12 lines (+1/-1)1 file modifiednova/virt/libvirt_conn.py (+1/-1)
Changed in nova: | |
importance: | Undecided → Critical |
status: | New → Confirmed |
Changed in nova: | |
assignee: | nobody → Thierry Carrez (ttx) |
status: | Confirmed → In Progress |
summary: |
- ProgrammingError "You have an error in your SQL syntax ... (near ) \n - LIMIT 0, 1' at line 3) + Regression prevents to start any instance through libvirt |
Changed in nova: | |
status: | In Progress → Fix Committed |
Changed in nova: | |
milestone: | none → 2011.2 |
status: | Fix Committed → Fix Released |
This would be wrong:
=== modified file 'nova/virt/ libvirt_ conn.py'
user= user,
project= project,
size= size) types.INSTANCE_ TYPES[inst[ 'instance_ type']] types.get_ instance_ type([inst[ 'instance_ type']] )
@@ -606,7 +607,7 @@
- type_data = instance_
+ type_data = instance_
Should be: types.get_ instance_ type(inst[ 'instance_ type']) ??
type_data = instance_