{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/18425","repository_url":"https://api.github.com/repos/saltstack/salt","labels_url":"https://api.github.com/repos/saltstack/salt/issues/18425/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/18425/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/18425/events","html_url":"https://github.com/saltstack/salt/issues/18425","id":49868056,"node_id":"MDU6SXNzdWU0OTg2ODA1Ng==","number":18425,"title":"use salt-ssh to install the salt-minion for client server in batch","user":{"login":"disylee","id":6931106,"node_id":"MDQ6VXNlcjY5MzExMDY=","avatar_url":"https://avatars1.githubusercontent.com/u/6931106?v=4","gravatar_id":"","url":"https://api.github.com/users/disylee","html_url":"https://github.com/disylee","followers_url":"https://api.github.com/users/disylee/followers","following_url":"https://api.github.com/users/disylee/following{/other_user}","gists_url":"https://api.github.com/users/disylee/gists{/gist_id}","starred_url":"https://api.github.com/users/disylee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/disylee/subscriptions","organizations_url":"https://api.github.com/users/disylee/orgs","repos_url":"https://api.github.com/users/disylee/repos","events_url":"https://api.github.com/users/disylee/events{/privacy}","received_events_url":"https://api.github.com/users/disylee/received_events","type":"User","site_admin":false},"labels":[{"id":41387723,"node_id":"MDU6TGFiZWw0MTM4NzcyMw==","url":"https://api.github.com/repos/saltstack/salt/labels/Bug","name":"Bug","color":"e11d21","default":false},{"id":67287385,"node_id":"MDU6TGFiZWw2NzI4NzM4NQ==","url":"https://api.github.com/repos/saltstack/salt/labels/Core","name":"Core","color":"fef2c0","default":false},{"id":41388135,"node_id":"MDU6TGFiZWw0MTM4ODEzNQ==","url":"https://api.github.com/repos/saltstack/salt/labels/High%20Severity","name":"High Severity","color":"ff9143","default":false},{"id":194766284,"node_id":"MDU6TGFiZWwxOTQ3NjYyODQ=","url":"https://api.github.com/repos/saltstack/salt/labels/P2","name":"P2","color":"155fb5","default":false},{"id":67287557,"node_id":"MDU6TGFiZWw2NzI4NzU1Nw==","url":"https://api.github.com/repos/saltstack/salt/labels/Salt-SSH","name":"Salt-SSH","color":"006b75","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/saltstack/salt/milestones/13","html_url":"https://github.com/saltstack/salt/milestone/13","labels_url":"https://api.github.com/repos/saltstack/salt/milestones/13/labels","id":9265,"node_id":"MDk6TWlsZXN0b25lOTI2NQ==","number":13,"title":"Approved","description":"All issues that are ready to be worked on, both bugs and features.","creator":{"login":"thatch45","id":507599,"node_id":"MDQ6VXNlcjUwNzU5OQ==","avatar_url":"https://avatars0.githubusercontent.com/u/507599?v=4","gravatar_id":"","url":"https://api.github.com/users/thatch45","html_url":"https://github.com/thatch45","followers_url":"https://api.github.com/users/thatch45/followers","following_url":"https://api.github.com/users/thatch45/following{/other_user}","gists_url":"https://api.github.com/users/thatch45/gists{/gist_id}","starred_url":"https://api.github.com/users/thatch45/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thatch45/subscriptions","organizations_url":"https://api.github.com/users/thatch45/orgs","repos_url":"https://api.github.com/users/thatch45/repos","events_url":"https://api.github.com/users/thatch45/events{/privacy}","received_events_url":"https://api.github.com/users/thatch45/received_events","type":"User","site_admin":false},"open_issues":2083,"closed_issues":7605,"state":"open","created_at":"2011-05-14T04:00:56Z","updated_at":"2018-06-25T07:11:08Z","due_on":null,"closed_at":null},"comments":11,"created_at":"2014-11-24T09:01:25Z","updated_at":"2018-06-25T14:11:16Z","closed_at":null,"author_association":"NONE","body":"backgroup: I trying to use salt-ssh to install the salt-minion for client server in batch.\n\n```\n[root@localhost epel]# tree -f\n.\n├── ./epel-release-6-8.noarch.rpm\n└── ./salt_install.sls\n\n0 directories, 2 files\n[root@localhost salt]# ls\nepel  roster  salt\n[root@localhost salt]# cat roster\nweb1:\n  host:  10.20.14.18\n  user:  root\n  passwd:  redhat\n  port:  22\n  timeout:  10\n```\n\nbut test.ping   error below，first it can't found the host：\nthe I try this\n\n```\n[root@localhost salt]# salt-ssh '*' test.ping\ntest:\n    ----------\n    retcode:\n        1\n    stderr:\n        Traceback (most recent call last):\n          File \"/tmp/.root_c87ee6__salt/salt-call\", line 2, in <module>\n            from salt.scripts import salt_call\n          File \"/tmp/.root_c87ee6__salt/salt/__init__.py\", line 44, in <module>\n            from salt.utils import migrations\n          File \"/tmp/.root_c87ee6__salt/salt/utils/__init__.py\", line 102, in <module>\n            import salt.payload\n          File \"/tmp/.root_c87ee6__salt/salt/payload.py\", line 14, in <module>\n            import salt.crypt\n          File \"/tmp/.root_c87ee6__salt/salt/crypt.py\", line 32, in <module>\n            import salt.minion\n          File \"/tmp/.root_c87ee6__salt/salt/minion.py\", line 60, in <module>\n            import salt.client\n          File \"/tmp/.root_c87ee6__salt/salt/client/__init__.py\", line 38, in <module>\n            import salt.utils.event\n          File \"/tmp/.root_c87ee6__salt/salt/utils/event.py\", line 74, in <module>\n            import salt.state\n          File \"/tmp/.root_c87ee6__salt/salt/state.py\", line 29, in <module>\n            import salt.pillar\n          File \"/tmp/.root_c87ee6__salt/salt/pillar/__init__.py\", line 14, in <module>\n            import salt.fileclient\n          File \"/tmp/.root_c87ee6__salt/salt/fileclient.py\", line 13, in <module>\n            import requests\n          File \"/tmp/.root_c87ee6__salt/requests/__init__.py\", line 52, in <module>\n            from . import utils\n          File \"/tmp/.root_c87ee6__salt/requests/utils.py\", line 23, in <module>\n            from .compat import parse_http_list as _parse_list_header\n          File \"/tmp/.root_c87ee6__salt/requests/compat.py\", line 96, in <module>\n            from ordereddict import OrderedDict\n        ImportError: No module named ordereddict\n    stdout:\n```\n\nSadly，I try this command but return OK，like this\n\n```\n[root@localhost salt]# salt-ssh '*' -r \"free -m\"\ntest:\n    ----------\n    retcode:\n        0\n    stderr:\n\n    stdout:\n        root@10.20.14.18's password:\n                     total       used       free     shared    buffers     cached\n        Mem:           490        135        355          0         10         44\n        -/+ buffers/cache:         80        410\n        Swap:          991          0        991\n```\n\nthis my epel_install.sls\n\n```\n  [root@localhost epel]# cat salt_install.sls\nepel_install:\n  file.managed:\n    - name:  /tmp/epel-release-6-8.noarch.rpm\n    - source: salt://epel/epel-release-6-8.noarch.rpm\n    - user: root\n    - group: root\n\n  cmd.run:\n    - name: rpm -ivh /tmp/epel-release-6-8.noarch.rpm\n    - unless: test -f /etc/yum.repos.d/epel.repo\n    - require:\n     - file: epel_install   \n  chche_yum:\n    cmd.run:\n      - name: yum makecache\n      - require:\n        - file: epel_install\n  salt_install:\n    pkg.installed:\n      - name: salt-minion\n      - require:\n        - file: epel_install\n```\n\nbut I try to excute it ，reward ERROR below\n\n```\n[root@localhost epel]# salt-ssh '*' state.sls epel_install.sls\ntest:\n    ----------\n    _caller_cachedir:\n        /var/cache/salt/master\n    _error:\n        Failed to return clean data\n    _ssh_version:\n        5.3p1\n    ext_pillar:\n    file_roots:\n        ----------\n        base:\n            - /srv/salt\n    id:\n        test\n    pillar_roots:\n        ----------\n        base:\n            - /srv/pillar\n    stderr:\n        Traceback (most recent call last):\n          File \"/tmp/.root_c87ee6__salt/salt-call\", line 2, in <module>\n            from salt.scripts import salt_call\n          File \"/tmp/.root_c87ee6__salt/salt/__init__.py\", line 44, in <module>\n            from salt.utils import migrations\n          File \"/tmp/.root_c87ee6__salt/salt/utils/__init__.py\", line 102, in <module>\n            import salt.payload\n          File \"/tmp/.root_c87ee6__salt/salt/payload.py\", line 14, in <module>\n            import salt.crypt\n          File \"/tmp/.root_c87ee6__salt/salt/crypt.py\", line 32, in <module>\n            import salt.minion\n          File \"/tmp/.root_c87ee6__salt/salt/minion.py\", line 60, in <module>\n            import salt.client\n          File \"/tmp/.root_c87ee6__salt/salt/client/__init__.py\", line 38, in <module>\n            import salt.utils.event\n          File \"/tmp/.root_c87ee6__salt/salt/utils/event.py\", line 74, in <module>\n            import salt.state\n          File \"/tmp/.root_c87ee6__salt/salt/state.py\", line 29, in <module>\n            import salt.pillar\n          File \"/tmp/.root_c87ee6__salt/salt/pillar/__init__.py\", line 14, in <module>\n            import salt.fileclient\n          File \"/tmp/.root_c87ee6__salt/salt/fileclient.py\", line 13, in <module>\n            import requests\n          File \"/tmp/.root_c87ee6__salt/requests/__init__.py\", line 52, in <module>\n            from . import utils\n          File \"/tmp/.root_c87ee6__salt/requests/utils.py\", line 23, in <module>\n            from .compat import parse_http_list as _parse_list_header\n          File \"/tmp/.root_c87ee6__salt/requests/compat.py\", line 96, in <module>\n            from ordereddict import OrderedDict\n        ImportError: No module named ordereddict\n    stdout:\n```\n\nisn't cause by python?\n"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/399965770","html_url":"https://github.com/saltstack/salt/issues/18425#issuecomment-399965770","issue_url":"https://api.github.com/repos/saltstack/salt/issues/18425","id":399965770,"node_id":"MDEyOklzc3VlQ29tbWVudDM5OTk2NTc3MA==","user":{"login":"stale[bot]","id":26384082,"node_id":"MDM6Qm90MjYzODQwODI=","avatar_url":"https://avatars3.githubusercontent.com/in/1724?v=4","gravatar_id":"","url":"https://api.github.com/users/stale%5Bbot%5D","html_url":"https://github.com/apps/stale","followers_url":"https://api.github.com/users/stale%5Bbot%5D/followers","following_url":"https://api.github.com/users/stale%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/stale%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/stale%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stale%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/stale%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/stale%5Bbot%5D/repos","events_url":"https://api.github.com/users/stale%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/stale%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2018-06-25T14:11:16Z","updated_at":"2018-06-25T14:11:16Z","author_association":"NONE","body":"This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.\n\nIf this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.\n"}}
{"actor":{"display_login":"stale"}}