]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Handle exceptions about snapshot in backup create
authorlisali <xiaoyan.li@intel.com>
Thu, 3 Mar 2016 04:00:17 +0000 (04:00 +0000)
committerLisaLi <xiaoyan.li@intel.com>
Mon, 7 Mar 2016 02:14:00 +0000 (10:14 +0800)
commit31a2ef6e4c87cb580f261a6fc885d215cb8d19ed
tree770d7aae586b73c69321d410735aedb6d774ca4f
parentad052ea99a6be50c09eda017bafb0decfd218f42
Handle exceptions about snapshot in backup create

With snapshot backup, exceptions about Snapshot will
be raised.

This patch is to add handler about SnapshotNotFound
and InvalidSnapshot.

APIImpact
This bug is changes return code of creating backup request
when snapshot doesn't exist or is invalid.

Change-Id: Ib6a80df5496f93fb8967ed01e40d214c0c38aabc
Closes-Bug: #1549658
cinder/api/contrib/backups.py
cinder/tests/unit/api/contrib/test_backups.py