Swapping volume can't been swap again
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Takashi Natsume |
Bug Description
If we had two volume, one is attached by a instance, and the other is still available.
Due to https:/
It will swap successful after fix the issue.
Volumes will be available and in-use status.
But when I try to swap in-use volume with other available volume.
Nova compute will throw following exception:
2015-08-30 04:55:13.772 ERROR oslo_messaging.
Traceback (most recent call last):
File "/opt/stack/
return getattr(target, method)(*args, **kwargs)
File "/usr/local/
result = fn(cls, context, *args, **kwargs)
File "/opt/stack/
raise exception.
VolumeBDMNotFound: No volume Block Device Mapping with id cafc833a-
2015-08-30 04:55:13.772 TRACE oslo_messaging.
2015-08-30 04:55:13.772 TRACE oslo_messaging.
2015-08-30 04:55:13.772 TRACE oslo_messaging.
2015-08-30 04:55:13.772 TRACE oslo_messaging.
2015-08-30 04:55:13.772 TRACE oslo_messaging.
2015-08-30 04:55:13.772 TRACE oslo_messaging.
2015-08-30 04:55:13.772 TRACE oslo_messaging.
2015-08-30 04:55:13.772 TRACE oslo_messaging.
2015-08-30 04:55:13.772 TRACE oslo_messaging.
2015-08-30 04:55:13.772 TRACE oslo_messaging.
2015-08-30 04:55:13.772 TRACE oslo_messaging.
2015-08-30 04:55:13.772 TRACE oslo_messaging.
2015-08-30 04:55:13.772 TRACE oslo_messaging.
2015-08-30 04:55:13.772 TRACE oslo_messaging.
2015-08-30 04:55:13.772 TRACE oslo_messaging.
2015-08-30 04:55:13.772 TRACE oslo_messaging.
2015-08-30 04:55:13.772 TRACE oslo_messaging.
2015-08-30 04:55:13.772 TRACE oslo_messaging.
2015-08-30 04:55:13.772 TRACE oslo_messaging.
2015-08-30 04:55:13.772 TRACE oslo_messaging.
2015-08-30 04:55:13.772 TRACE oslo_messaging.
2015-08-30 04:55:13.772 TRACE oslo_messaging.
2015-08-30 04:55:13.772 TRACE oslo_messaging.
2015-08-30 04:55:13.772 TRACE oslo_messaging.
2015-08-30 04:55:13.772 TRACE oslo_messaging.
2015-08-30 04:55:13.772 TRACE oslo_messaging.
2015-08-30 04:55:13.772 TRACE oslo_messaging.
2015-08-30 04:55:13.772 TRACE oslo_messaging.
2015-08-30 04:55:13.772 TRACE oslo_messaging.
2015-08-30 04:55:13.772 TRACE oslo_messaging.
2015-08-30 04:55:13.772 TRACE oslo_messaging.
2015-08-30 04:55:13.772 TRACE oslo_messaging.
2015-08-30 04:55:13.772 TRACE oslo_messaging.
2015-08-30 04:55:13.772 TRACE oslo_messaging.
2015-08-30 04:55:13.772 TRACE oslo_messaging.
2015-08-30 04:55:13.772 TRACE oslo_messaging.
2015-08-30 04:55:13.772 TRACE oslo_messaging.
2015-08-30 04:55:13.772 TRACE oslo_messaging.
2015-08-30 04:55:13.772 TRACE oslo_messaging.
2015-08-30 04:55:13.772 TRACE oslo_messaging.
2015-08-30 04:55:13.772 TRACE oslo_messaging.
2015-08-30 04:55:13.772 TRACE oslo_messaging.
2015-08-30 04:55:13.772 TRACE oslo_messaging.
2015-08-30 04:55:13.772 TRACE oslo_messaging.
2015-08-30 04:55:13.772 TRACE oslo_messaging.
2015-08-30 04:55:13.772 TRACE oslo_messaging.
2015-08-30 04:55:13.772 TRACE oslo_messaging.
2015-08-30 04:55:13.772 TRACE oslo_messaging.
2015-08-30 04:55:13.772 TRACE oslo_messaging.
2015-08-30 04:55:13.772 TRACE oslo_messaging.
2015-08-30 04:55:13.772 TRACE oslo_messaging.
2015-08-30 04:55:13.772 TRACE oslo_messaging.
2015-08-30 04:55:13.772 TRACE oslo_messaging.
2015-08-30 04:55:13.772 TRACE oslo_messaging.
2015-08-30 04:55:13.772 TRACE oslo_messaging.
2015-08-30 04:55:13.772 TRACE oslo_messaging.
2015-08-30 04:55:13.772 TRACE oslo_messaging.
2015-08-30 04:55:13.772 TRACE oslo_messaging.
2015-08-30 04:55:13.772 TRACE oslo_messaging.
2015-08-30 04:55:13.772 TRACE oslo_messaging.
2015-08-30 04:55:13.772 TRACE oslo_messaging.
2015-08-30 04:55:13.772 TRACE oslo_messaging.
In first swap, nova will save serial with old volume id in block device mapping.
Therefore nova will try to find block device mapping through old volume id at second swap.
It had been change to new volume id, so nova will raise no bdm not found.
Changed in nova: | |
assignee: | nobody → Chung Chih, Hung (lyanchih) |
tags: | added: swap-disk volumes |
Changed in nova: | |
assignee: | Chung Chih, Hung (lyanchih) → Takashi NATSUME (natsume-takashi) |
Changed in nova: | |
assignee: | Takashi NATSUME (natsume-takashi) → Ryan McNair (rdmcnair) |
Changed in nova: | |
assignee: | Ryan McNair (rdmcnair) → Takashi NATSUME (natsume-takashi) |
no longer affects: | nova/mitaka |
Hung,
Are you still working on this bug?
If you are not, may I become the assignee?