Fixed potential problems with image creation exceptions. 73/37873/2
authorspisarski <s.pisarski@cablelabs.com>
Thu, 20 Jul 2017 17:08:31 +0000 (11:08 -0600)
committerspisarski <s.pisarski@cablelabs.com>
Mon, 24 Jul 2017 15:07:31 +0000 (09:07 -0600)
commit8b52c661d1c80828690831cfb8636ec2835fc379
treeb3605694e0019faefe1df35da26d37d53fc6a526
parent8e9920d2e8bd4a3d404b4589312cdc9510708a37
Fixed potential problems with image creation exceptions.

With Glance client v2, it appears that rolling back on image
creation error was sending in an OpenStack image object into
the delete_image() function where it should have been expecting
a SNAPS-OO Image domain object.
Also added log messages to help expose other potential issues
if this patch does not address the root problem at hand.

JIRA: SNAPS-139

Change-Id: I52591ff1d055ddf4eacbbc49b3bc8718285edcfa
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
snaps/openstack/tests/create_image_tests.py
snaps/openstack/utils/glance_utils.py