]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Change volume and snapshot stuck creating to error
authorYasuaki Nagata <yasuaki.nagata@intellilink.co.jp>
Thu, 22 Jan 2015 08:45:08 +0000 (17:45 +0900)
committerIvan Kolodyazhny <e0ne@e0ne.info>
Thu, 26 Mar 2015 08:11:45 +0000 (10:11 +0200)
commite71006c49a280d53146fdbdfef9ce307d0a1d0de
tree5f4da461b3b58a8a0b5c6bfcc8215c550dade167
parent5d3a14da424a3b506447c116b4149368bbca5695
Change volume and snapshot stuck creating to error

Service of volume goes down after the status of
the volume is turned 'creating', volume to remain with
the status of the 'creating'.

Status of the volume is still 'creating' even if
volume service is restarted, it is impossible for user
to remove it without force-delete.

With this patch, in order to keep consistence with Nova,
volume state 'creating' should be shifted to the 'error' properly.

Closes-Bug: #1310526
Co-Authored-By: Ivan Kolodyazhny <e0ne@e0ne.info>
Change-Id: I89ef201f25b739cc443cb2920de2bd6ce89d97e1
cinder/db/api.py
cinder/db/sqlalchemy/api.py
cinder/tests/test_db_api.py
cinder/tests/test_volume.py
cinder/volume/manager.py