Event Logs now display the failed upload job with the
image and account information.
Signed-off-by: Anurag Dwivedi <anurag.dwivedi@riftio.com>
if failed_tasks:
self._log.error("%s had %s FAILED tasks.", self, len(failed_tasks))
+ for ftask in failed_tasks:
+ self._log.error("%s : Failed to upload image : %s to cloud_account : %s", self, ftask.image_name, ftask.cloud_account)
self.state = "FAILED"
else:
self._log.debug("%s tasks completed successfully", len(self._upload_tasks))
try:
upload_job.wait_until_complete_threadsafe()
except client.UploadJobError as e:
- raise ImageUploadError("Failed to upload image (image_name) to cloud accounts") from e
+ raise ImageUploadError("Failed to upload image " + image_name + " to cloud accounts") from e
+