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.
Add a exception which computer service can process.
Modify vmops.py to transfer exception to Nova compute.
Add unit test for exception transfer
Reviewed: https:/ /review. openstack. org/478437 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=aaddd51d6fa 8863a505e3f3381 0660b0b27be14d
Committed: https:/
Submitter: Jenkins
Branch: master
commit aaddd51d6fa8863 a505e3f33810660 b0b27be14d
Author: naichuans <email address hidden>
Date: Wed Jun 28 08:36:29 2017 +0000
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.
Add a exception which computer service can process.
Modify vmops.py to transfer exception to Nova compute.
Add unit test for exception transfer
Change-Id: I49f1a2aab507cc 4b1c4a3d6c13df9 6ee3e678a99 4f374d49948dcee b4d1d600aa9 eda47ebda82e08f e270f97ff40
Depends-On: I16d199e93f615e
Depends-On: I80007bb897a1f7
Closes-Bug: 1700926