Hi,
I am trying to download a tar file from the S3 bucket.
Here is my state file
copy_package:
file.managed:
- name: /tmp/abc.tar.gz
- source: s3://com.abc.bucket/ubuntu/abc.tar.gz
- source_hash: md5=s3://com.abc.bucket/ubuntu/abc.tar.gz.MD5
- replace: True
On executing
minion name:
----------
ID: copy_package
Function: file.managed
Name: /tmp/abc.tar.gz
Result: False
Comment: Unable to manage file: Could not fetch from s3://com.abc.bucket/ubuntu/abc.tar.gz
Started: 18:05:14.837937
Duration: 1339.16 ms
Changes:
Minion Log:
[DEBUG ] Setting read timeout to None
[DEBUG ] "GET /ubuntu/abc.tar.gz HTTP/1.1" 200 423282764
[DEBUG ] S3 Response Status Code: 200
[DEBUG ] Saving to local file: /var/cache/salt/minion/extrn_files/base/com.abc.bucket/ubuntu/abc.tar.gz
[ERROR ] File sum set for file /tmp/gd4.4.1.150623.0044_install_u.tar.gz of s3://com.abc.bucket/ubuntu/abc.tar.gz.MD5 does not match real sum of 37215df030b61b3fde6a69d987a791f2
[INFO ] Completed state [/tmp/gd4.4.1.150623.0044_install_u.tar.gz] at time 18:05:41.056426
[DEBUG ] File /var/cache/salt/minion/accumulator/140522782184720 does not exist, no need to cleanup.
[INFO ] Returning information for job: 20150707180506075002
The file gets downloaded at a different location - /var/cache/salt/minion/extrn_files/base/com.abc.bucket/ubuntu/ instead of copying in /tmp
Can anyone please help me out. Give correct configuration for downloading the files from S3 bucket.
Salt Version - salt 2014.7.5 (Helium)
Any kind of help is appreciated.
Thanks,
Janardhan