os-xenapi: Exception Error logs shown in Citrix XenServer CI
There are many errors in the patchs which passed our XenServer CI,
it is because when run tempest, test case will ask nova sevice to
do snapshotting, then delete image before snapshotting done. Then
nova compute service couldn't find the image when do image upload
and raise an exception.
Normally the exception can be consumed by nova service. But the
exception generated by os-xenapi can't be recognized by nova, so
the error logs come out.
Throw an exception XenAPI.Failure which computer service can process
Add unit test to check XenAPI.Failure exception
Reviewed: https:/ /review. openstack. org/478429 /git.openstack. org/cgit/ openstack/ os-xenapi/ commit/ ?id=7ac84ec31dd 1df6af90b2bf333 253848cb4de2c3
Committed: https:/
Submitter: Jenkins
Branch: master
commit 7ac84ec31dd1df6 af90b2bf3332538 48cb4de2c3
Author: naichuans <email address hidden>
Date: Wed Jun 28 08:19:03 2017 +0000
os-xenapi: Exception Error logs shown in Citrix XenServer CI
There are many errors in the patchs which passed our XenServer CI,
it is because when run tempest, test case will ask nova sevice to
do snapshotting, then delete image before snapshotting done. Then
nova compute service couldn't find the image when do image upload
and raise an exception.
Normally the exception can be consumed by nova service. But the
exception generated by os-xenapi can't be recognized by nova, so
the error logs come out.
Throw an exception XenAPI.Failure which computer service can process
Add unit test to check XenAPI.Failure exception
Change-Id: Ibe30a76f278264 e0ddd1fc29d533f deaab0a13a5
Closes-Bug: 1700926