Creating volume from snapshot failed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
New
|
Undecided
|
Unassigned |
Bug Description
Creating volume from snapschot failed with this scheduler error:
-------
$ euca-create-volume -z .... --snapshot snap-00000003
2012-06-01 15:45:06 DEBUG nova.rpc.amqp [-] received {u'_context_roles': [u'admin'], u'_context_
2012-06-01 15:45:06 DEBUG nova.rpc.amqp [... ... ...] unpacked context: {'user_id': u'....', 'roles': [u'admin'], 'timestamp': '2012-06-
2012-06-01 15:45:06 WARNING nova.scheduler.
2012-06-01 15:45:06 ERROR nova.rpc.amqp [... ... ...] Exception during message handling
2012-06-01 15:45:06 TRACE nova.rpc.amqp Traceback (most recent call last):
2012-06-01 15:45:06 TRACE nova.rpc.amqp File "/usr/lib/
2012-06-01 15:45:06 TRACE nova.rpc.amqp rval = node_func(
2012-06-01 15:45:06 TRACE nova.rpc.amqp File "/usr/lib/
2012-06-01 15:45:06 TRACE nova.rpc.amqp context, ex, *args, **kwargs)
2012-06-01 15:45:06 TRACE nova.rpc.amqp File "/usr/lib64/
2012-06-01 15:45:06 TRACE nova.rpc.amqp self.gen.next()
2012-06-01 15:45:06 TRACE nova.rpc.amqp File "/usr/lib/
2012-06-01 15:45:06 TRACE nova.rpc.amqp return driver_
2012-06-01 15:45:06 TRACE nova.rpc.amqp File "/usr/lib/
2012-06-01 15:45:06 TRACE nova.rpc.amqp volume_ref = db.volume_
2012-06-01 15:45:06 TRACE nova.rpc.amqp File "/usr/lib/
2012-06-01 15:45:06 TRACE nova.rpc.amqp return IMPL.volume_
2012-06-01 15:45:06 TRACE nova.rpc.amqp File "/usr/lib/
2012-06-01 15:45:06 TRACE nova.rpc.amqp return f(*args, **kwargs)
2012-06-01 15:45:06 TRACE nova.rpc.amqp File "/usr/lib/
2012-06-01 15:45:06 TRACE nova.rpc.amqp filter_
2012-06-01 15:45:06 TRACE nova.rpc.amqp File "/usr/lib64/
2012-06-01 15:45:06 TRACE nova.rpc.amqp ret = list(self[0:1])
2012-06-01 15:45:06 TRACE nova.rpc.amqp File "/usr/lib64/
2012-06-01 15:45:06 TRACE nova.rpc.amqp return list(res)
2012-06-01 15:45:06 TRACE nova.rpc.amqp File "/usr/lib64/
2012-06-01 15:45:06 TRACE nova.rpc.amqp rows = [process[0](row, None) for row in fetch]
2012-06-01 15:45:06 TRACE nova.rpc.amqp File "/usr/lib64/
2012-06-01 15:45:06 TRACE nova.rpc.amqp populate_
2012-06-01 15:45:06 TRACE nova.rpc.amqp File "/usr/lib64/
2012-06-01 15:45:06 TRACE nova.rpc.amqp populator(state, dict_, row)
2012-06-01 15:45:06 TRACE nova.rpc.amqp File "/usr/lib64/
2012-06-01 15:45:06 TRACE nova.rpc.amqp dict_[key] = row[col]
2012-06-01 15:45:06 TRACE nova.rpc.amqp TypeError: expected string or Unicode object, long found
2012-06-01 15:45:06 TRACE nova.rpc.amqp
-------
After this volume list is inaccesible:
-------
$ euca-describe-
UnknownError: An unknown error has occurred. Please try your request again.
-------
Until DB is not cleared manualy !:
-------
$ mysql nova -e "select id, status, availability_zone, attach_status from volumes where snapshot_id is not NULL;"
+-----+
| id | status | availability_zone | attach_status |
+-----+
| 225 | creating | ................... | detached |
+-----+
$ mysql nova -e "delete from volumes where id='225';"
-------
The "volume_
Same error for "volume_ scheduler_ driver= nova.scheduler. chance. ChanceScheduler "