salt icon indicating copy to clipboard operation
salt copied to clipboard

Files downloaded from http source have zero length

Open horakmar opened this issue 8 years ago • 1 comments

Description of Issue

Hello. Salt minion version 2017.7.2+ds-1 on Ubuntu doesn't correctly download files from http source. Downloaded files have zero length. Previous versions (I tested 2016.11.8+ds-1 and 2017.7.2+ds-1) are OK. Last version on Centos (2017.7.2-1.el7) it is OK too. Windows version (Salt-Minion-2017.7.2-Py3-AMD64) has the same bug.

My opinion is, that there is some dependency in Python missing.

Setup

Testing state (/srv/salt/test/file.sls):

/tmp/test:
  file.managed:
  - source: http://tcentrepo.cezdata.corp/tmp/testfile
  - skip_verify: True
  - user: root
  - group: root
  - mode: 644

On tcentrepo is file accessible via http://tcentrepo.cezdata.corp/tmp/testfile

On master: salt minion-id state.apply test.file

On minion:

# ls -l /tmp/test
-rw-r--r-- 1 root root 0 Dec 21 10:22 /tmp/test

Versions Report

Minion:

# salt kl011 test.versions_report
kl011:
    Salt Version:
               Salt: 2017.7.2
     
    Dependency Versions:
               cffi: Not Installed
           cherrypy: Not Installed
           dateutil: 2.4.2
          docker-py: Not Installed
              gitdb: Not Installed
          gitpython: Not Installed
              ioflo: Not Installed
             Jinja2: 2.8
            libgit2: Not Installed
            libnacl: Not Installed
           M2Crypto: Not Installed
               Mako: 1.0.3
       msgpack-pure: Not Installed
     msgpack-python: 0.4.6
       mysql-python: Not Installed
          pycparser: Not Installed
           pycrypto: 2.6.1
       pycryptodome: Not Installed
             pygit2: Not Installed
             Python: 2.7.12 (default, Nov 20 2017, 18:23:56)
       python-gnupg: Not Installed
             PyYAML: 3.11
              PyZMQ: 15.2.0
               RAET: Not Installed
              smmap: Not Installed
            timelib: Not Installed
            Tornado: 4.2.1
                ZMQ: 4.1.4
     
    System Versions:
               dist: Ubuntu 16.04 xenial
             locale: ISO-8859-1
            machine: x86_64
            release: 4.4.0-101-generic
             system: Linux
            version: Ubuntu 16.04 xenial

Master:

# salt --versions-report
Salt Version:
           Salt: 2017.7.2
 
Dependency Versions:
           cffi: Not Installed
       cherrypy: Not Installed
       dateutil: Not Installed
      docker-py: Not Installed
          gitdb: Not Installed
      gitpython: Not Installed
          ioflo: Not Installed
         Jinja2: 2.7.2
        libgit2: Not Installed
        libnacl: Not Installed
       M2Crypto: Not Installed
           Mako: Not Installed
   msgpack-pure: Not Installed
 msgpack-python: 0.4.8
   mysql-python: Not Installed
      pycparser: Not Installed
       pycrypto: 2.6.1
   pycryptodome: Not Installed
         pygit2: Not Installed
         Python: 2.7.5 (default, Nov  6 2016, 00:28:07)
   python-gnupg: Not Installed
         PyYAML: 3.11
          PyZMQ: 15.3.0
           RAET: Not Installed
          smmap: Not Installed
        timelib: Not Installed
        Tornado: 4.2.1
            ZMQ: 4.1.4
 
System Versions:
           dist: centos 7.3.1611 Core
         locale: UTF-8
        machine: x86_64
        release: 3.10.0-514.26.2.el7.x86_64
         system: Linux
        version: CentOS Linux 7.3.1611 Core

horakmar avatar Dec 21 '17 10:12 horakmar

This is a duplicate problem as here https://github.com/saltstack/salt/issues/44013

It is fixed by this https://github.com/saltstack/salt/pull/44016 which will be in 2017.7.3

Sorry about the inconvenience

gtmanfred avatar Dec 21 '17 13:12 gtmanfred