Skip to content

Copy file from minion to master ERRORS!!! #36287

Closed

Description

@yujianglei

Version Information:
[@localhost ]# salt-master --version
salt-master 2014.1.10 (Hydrogen)
salt-minion 2014.1.10 (Hydrogen)

Follow Logs:
[@zw_21_80 /data/saltstack_deploy_code/recomB]# salt 'zw_127_93' cp.push /etc/fstab
zw_127_93:
The minion function caused an exception: Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/salt/minion.py", line 1332, in _thread_return
return_data = executor.execute()
File "/usr/lib/python2.6/site-packages/salt/executors/direct_call.py", line 28, in execute
return self.func(_self.args, *_self.kwargs)
File "/usr/lib/python2.6/site-packages/salt/modules/cp.py", line 799, in push
load_path_list = os.path.split(load_path_split_drive)
File "/usr/lib64/python2.6/posixpath.py", line 82, in split
i = p.rfind('/') + 1
AttributeError: 'tuple' object has no attribute 'rfind'

Activity

  1. Ch3LL commented on Sep 14, 2016

    @Ch3LL
    Contributor

    @yujianglei looks like you are on a pretty old salt version. I was going to say this is a duplicate of #35984 but you are not on that version of salt. This error on the 2016.3 branch will be fixed when 2016.3.4 comes out or I believe its suppose to be working on 2016.3.2 if you want to give that a try?

  2. added
    needs-more-info
    on Sep 14, 2016
  3. added this to the Blocked milestone on Sep 14, 2016
  4. yujianglei commented on Sep 18, 2016

    @yujianglei
    Author

    ok, thank you.

  5. terminalmage commented on Sep 20, 2016

    @terminalmage
    Contributor

    @yujianglei Yeah that version has been end-of-life for over a year. One thing you might want to check is whether or not you have file_recv: True set on the master. This is required for cp.push to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-more-info

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions