diff --git a/fedimg/services/ec2/ec2imguploader.py b/fedimg/services/ec2/ec2imguploader.py index 84f1556..f161b21 100644 --- a/fedimg/services/ec2/ec2imguploader.py +++ b/fedimg/services/ec2/ec2imguploader.py @@ -168,6 +168,13 @@ def _create_volume(self, source): self.availability_zone ]) + if retcode != 0: + log.error('Unable to import volume. Out: %s, err: %s, ret: %s', + output, + err, + retcode) + raise Exception('Creating the volume failed') + log.debug('Initiate task to upload the image via S3. ' 'Fetching task id...')