trigger_upload.py wasn't working because when it calls euca-import-volume, that command was throwing an error about an invalid format of the manifest url when concatenating it with the path of the file.
This PR works around that problem because euca-import-volume works just fine when executed directly from /tmp directory.
Here is last lines of the log with those changes:
[2022-02-17 01:11:40][fedimg.services.ec2.ec2imgpublisher INFO] Publish image (ami-0499d828467cb4cf1) in eu-west-2 started
[2022-02-17 01:11:40][fedimg.services.ec2.ec2imgpublisher INFO] Publish image (ami-0499d828467cb4cf1) in eu-west-2 completed
[2022-02-17 01:11:40][fedimg.services.ec2.ec2imgpublisher INFO] Publish snaphsot for image (ami-0499d828467cb4cf1) in eu-west-2 started
[2022-02-17 01:11:41][fedimg.services.ec2.ec2imgpublisher INFO] Fetched snapshot for image (ami-0499d828467cb4cf1): snap-0bfc5543eb0cd474e
[2022-02-17 01:11:41][fedimg.services.ec2.ec2imgpublisher INFO] Publish snaphsot for image (ami-0499d828467cb4cf1) in eu-west-2 completed
[2022-02-17 01:11:41][fedimg.uploader INFO] AWS EC2Service process is completed.
Changes description
trigger_upload.py
wasn't working because when it callseuca-import-volume
, that command was throwing an error about an invalid format of the manifest url when concatenating it with the path of the file. This PR works around that problem becauseeuca-import-volume
works just fine when executed directly from/tmp
directory.Here is last lines of the log with those changes:
Related Issue
Signed-off-by: Pedro Moura pmoura@redhat.com