{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/43211","repository_url":"https://api.github.com/repos/saltstack/salt","labels_url":"https://api.github.com/repos/saltstack/salt/issues/43211/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/43211/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/43211/events","html_url":"https://github.com/saltstack/salt/issues/43211","id":253281807,"number":43211,"title":"salt net.cli gives ","user":{"login":"Set4now","id":20699507,"avatar_url":"https://avatars3.githubusercontent.com/u/20699507?v=4","gravatar_id":"","url":"https://api.github.com/users/Set4now","html_url":"https://github.com/Set4now","followers_url":"https://api.github.com/users/Set4now/followers","following_url":"https://api.github.com/users/Set4now/following{/other_user}","gists_url":"https://api.github.com/users/Set4now/gists{/gist_id}","starred_url":"https://api.github.com/users/Set4now/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Set4now/subscriptions","organizations_url":"https://api.github.com/users/Set4now/orgs","repos_url":"https://api.github.com/users/Set4now/repos","events_url":"https://api.github.com/users/Set4now/events{/privacy}","received_events_url":"https://api.github.com/users/Set4now/received_events","type":"User","site_admin":false},"labels":[{"id":77737132,"url":"https://api.github.com/repos/saltstack/salt/labels/Pending%20Discussion","name":"Pending Discussion","color":"c7def8","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/saltstack/salt/milestones/37","html_url":"https://github.com/saltstack/salt/milestone/37","labels_url":"https://api.github.com/repos/saltstack/salt/milestones/37/labels","id":343741,"number":37,"title":"Blocked","description":"Issues which are blocked in some way, whether they need further discussion, clarification, justification, or are blocked for some other reason.","creator":{"login":"basepi","id":702318,"avatar_url":"https://avatars2.githubusercontent.com/u/702318?v=4","gravatar_id":"","url":"https://api.github.com/users/basepi","html_url":"https://github.com/basepi","followers_url":"https://api.github.com/users/basepi/followers","following_url":"https://api.github.com/users/basepi/following{/other_user}","gists_url":"https://api.github.com/users/basepi/gists{/gist_id}","starred_url":"https://api.github.com/users/basepi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basepi/subscriptions","organizations_url":"https://api.github.com/users/basepi/orgs","repos_url":"https://api.github.com/users/basepi/repos","events_url":"https://api.github.com/users/basepi/events{/privacy}","received_events_url":"https://api.github.com/users/basepi/received_events","type":"User","site_admin":false},"open_issues":971,"closed_issues":1602,"state":"open","created_at":"2013-05-28T22:24:12Z","updated_at":"2017-08-28T18:53:01Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2017-08-28T09:56:24Z","updated_at":"2017-08-28T19:59:16Z","closed_at":null,"body":"salt 2017.7.0 (Nitrogen)\r\nwe are facing a strange issue with salt-proxy for networking devices. \r\nwhen we start salt-proxy --proxyid=ntw-1503383267857 -d\r\nthen we execute salt ntw-1503383267857 net.cli \"show version\" \r\nthe return output is this \r\n\r\n```\r\nntw-1503383803699:\r\n    ----------\r\n    comment:\r\n        Cannot execute \"cli\" on 192.168.43.1 as cognizant. Reason: Search pattern never detected in send_command_expect: Automation\\_SW1!\r\n    out:\r\n        ----------\r\n    result:\r\n        False\r\n    traceback:\r\n        Traceback (most recent call last):\r\n          File \"/usr/lib/python2.7/dist-packages/salt/utils/napalm.py\", line 153, in call\r\n            out = getattr(napalm_device.get('DRIVER'), method)(*args, **kwargs)\r\n          File \"/usr/local/lib/python2.7/dist-packages/napalm_ios/ios.py\", line 1660, in cli\r\n            output = self._send_command(command)\r\n          File \"/usr/local/lib/python2.7/dist-packages/napalm_ios/ios.py\", line 161, in _send_command\r\n            output = self.device.send_command(command)\r\n          File \"/usr/local/lib/python2.7/dist-packages/netmiko/base_connection.py\", line 811, in send_command\r\n            search_pattern))\r\n        IOError: Search pattern never detected in send_command_expect: Automation\\_SW1\r\nMon Aug 28 08:13:54 UTC 2017\r\n```\r\n\r\nBut if we wait for exactly  120 secs (2 mins)\r\nwe get proper output from the device.\r\nstrangely 60 secs for a router and 120 secs for a switch.\r\nBut if we try to manually connect (ssh) the devices it connects smoothy.\r\nbut to run any net.cli commands it requires sometime.\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/325462620","html_url":"https://github.com/saltstack/salt/issues/43211#issuecomment-325462620","issue_url":"https://api.github.com/repos/saltstack/salt/issues/43211","id":325462620,"user":{"login":"mirceaulinic","id":16694679,"avatar_url":"https://avatars1.githubusercontent.com/u/16694679?v=4","gravatar_id":"","url":"https://api.github.com/users/mirceaulinic","html_url":"https://github.com/mirceaulinic","followers_url":"https://api.github.com/users/mirceaulinic/followers","following_url":"https://api.github.com/users/mirceaulinic/following{/other_user}","gists_url":"https://api.github.com/users/mirceaulinic/gists{/gist_id}","starred_url":"https://api.github.com/users/mirceaulinic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mirceaulinic/subscriptions","organizations_url":"https://api.github.com/users/mirceaulinic/orgs","repos_url":"https://api.github.com/users/mirceaulinic/repos","events_url":"https://api.github.com/users/mirceaulinic/events{/privacy}","received_events_url":"https://api.github.com/users/mirceaulinic/received_events","type":"User","site_admin":false},"created_at":"2017-08-28T19:59:16Z","updated_at":"2017-08-28T19:59:16Z","body":"Hi @Ch3LL @Set4now there are a couple of things to check, in that order:\r\n\r\n1. Make sure you have `multiprocessing: false` in your proxy config file, typically `/etc/salt/proxy` or `/srv/proxy`\r\n2. If (1) doesn't help, try to increase the timeout, using the `timeout` optional argument. In your pillar, you can add this using the optional args, like:\r\n\r\n```yaml\r\nproxy:\r\n  ... snip ...\r\n  optional_args:\r\n    timeout: 120\r\n```\r\n\r\nsee https://docs.saltstack.com/en/develop/ref/proxy/all/salt.proxy.napalm.html and http://napalm.readthedocs.io/en/latest/support/index.html#list-of-supported-optional-arguments\r\n\r\n3. If none of the above works, we may need to investigate this under the napalm-ios repository: https://github.com/napalm-automation/napalm-ios."}}
{"actor":{"display_login":"mirceaulinic"}}