FAQ
I have tried using the s3.get and finally ended up enabling s3fs file
server back end on the Salt master.

Both the attempts ended with the file being downloaded/ copied on the local
file system without an error, but is unusable when trying to read/extract
it.

sls with s3.get :

  module.run:
    - name: s3.get
    - bucket: "test"
    - path: "manifest_installers/3.0.0/V11/test_win.zip+"
    - local_file: "D:\\test_win.zip+"
    - return_bin: "True"

sls using s3fs :

cp.get_file:
   - path: salt://manifest_installers/3.0.0/V11/test_win.zip+
   - dest: "D:\\test_win.zip+"

Checking the file contents from the master cache yields nothing :

(salt)-bash-4.1$ gzip -l
var/cache/salt/master/s3cache/manifest_installers/tscl/manifest_installers/3.0.0/V11/test_win.zip\
          compressed uncompressed ratio uncompressed_name
           471240746 -1 0.0%
var/cache/salt/master/s3cache/manifest_installers/tscl/manifest_installers/3.0.0/V11/test_win.zip

Salt minion version :

D:\>c:\salt\salt-call.exe --versions-report
            Salt: 2014.1.10
          Python: 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit
(AMD64)]
          Jinja2: 2.7.1
        M2Crypto: 0.21.1
  msgpack-python: 0.4.2
    msgpack-pure: Not Installed
        pycrypto: 2.6
          PyYAML: 3.11
           PyZMQ: 14.1.1
             ZMQ: 4.0.4

Salt master version :

(salt)-bash-4.1$ salt --versions-report
            Salt: 2014.7.0rc2
          Python: 2.7.8 (default, Sep 24 2014, 11:50:00)
          Jinja2: 2.7.3
        M2Crypto: 0.22
  msgpack-python: 0.4.2
    msgpack-pure: Not Installed
        pycrypto: 2.6.1
         libnacl: Not Installed
          PyYAML: 3.11
           ioflo: Not Installed
           PyZMQ: 14.3.1
            RAET: Not Installed
             ZMQ: 4.0.4
            Mako: 1.0.0

--
You received this message because you are subscribed to the Google Groups "Salt-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

  • Colton Myers at Nov 19, 2014 at 11:03 pm
    Hrm, that is strange. I would recommend opening an issue on Github so that we can track this issue properly.

    --
    Colton Myers
    Platform Engineer, SaltStack
    @basepi on Github/Twitter/IRC
    On Nov 4, 2014, at 11:09 AM, Rohit Sood wrote:


    I have tried using the s3.get and finally ended up enabling s3fs file server back end on the Salt master.

    Both the attempts ended with the file being downloaded/ copied on the local file system without an error, but is unusable when trying to read/extract it.

    sls with s3.get :

    module.run:
    - name: s3.get
    - bucket: "test"
    - path: "manifest_installers/3.0.0/V11/test_win.zip+"
    - local_file: "D:\\test_win.zip+"
    - return_bin: "True"

    sls using s3fs :

    cp.get_file:
    - path: salt://manifest_installers/3.0.0/V11/test_win.zip+
    - dest: "D:\\test_win.zip+"

    Checking the file contents from the master cache yields nothing :

    (salt)-bash-4.1$ gzip -l var/cache/salt/master/s3cache/manifest_installers/tscl/manifest_installers/3.0.0/V11/test_win.zip\
    compressed uncompressed ratio uncompressed_name
    471240746 -1 0.0% var/cache/salt/master/s3cache/manifest_installers/tscl/manifest_installers/3.0.0/V11/test_win.zip

    Salt minion version :

    D:\>c:\salt\salt-call.exe --versions-report
    Salt: 2014.1.10
    Python: 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)]
    Jinja2: 2.7.1
    M2Crypto: 0.21.1
    msgpack-python: 0.4.2
    msgpack-pure: Not Installed
    pycrypto: 2.6
    PyYAML: 3.11
    PyZMQ: 14.1.1
    ZMQ: 4.0.4

    Salt master version :

    (salt)-bash-4.1$ salt --versions-report
    Salt: 2014.7.0rc2
    Python: 2.7.8 (default, Sep 24 2014, 11:50:00)
    Jinja2: 2.7.3
    M2Crypto: 0.22
    msgpack-python: 0.4.2
    msgpack-pure: Not Installed
    pycrypto: 2.6.1
    libnacl: Not Installed
    PyYAML: 3.11
    ioflo: Not Installed
    PyZMQ: 14.3.1
    RAET: Not Installed
    ZMQ: 4.0.4
    Mako: 1.0.0

    --
    You received this message because you are subscribed to the Google Groups "Salt-users" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+unsubscribe@googlegroups.com For more options, visit https://groups.google.com/d/optout <https://groups.google.com/d/optout>.
    --
    You received this message because you are subscribed to the Google Groups "Salt-users" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupsalt-users @
postedNov 4, '14 at 6:09p
activeNov 19, '14 at 11:03p
posts2
users2

2 users in discussion

Rohit Sood: 1 post Colton Myers: 1 post

People

Translate

site design / logo © 2022 Grokbase