{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/47392","repository_url":"https://api.github.com/repos/saltstack/salt","labels_url":"https://api.github.com/repos/saltstack/salt/issues/47392/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/47392/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/47392/events","html_url":"https://github.com/saltstack/salt/issues/47392","id":318811043,"number":47392,"title":"Unable to connect to a low end Cisco switch (SG220) using salt proxy","user":{"login":"sk1988","id":33744958,"avatar_url":"https://avatars3.githubusercontent.com/u/33744958?v=4","gravatar_id":"","url":"https://api.github.com/users/sk1988","html_url":"https://github.com/sk1988","followers_url":"https://api.github.com/users/sk1988/followers","following_url":"https://api.github.com/users/sk1988/following{/other_user}","gists_url":"https://api.github.com/users/sk1988/gists{/gist_id}","starred_url":"https://api.github.com/users/sk1988/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sk1988/subscriptions","organizations_url":"https://api.github.com/users/sk1988/orgs","repos_url":"https://api.github.com/users/sk1988/repos","events_url":"https://api.github.com/users/sk1988/events{/privacy}","received_events_url":"https://api.github.com/users/sk1988/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":{"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},"assignees":[{"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}],"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":1035,"closed_issues":2224,"state":"open","created_at":"2013-05-28T22:24:12Z","updated_at":"2018-05-11T14:46:47Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2018-04-30T07:57:37Z","updated_at":"2018-05-11T19:55:42Z","closed_at":null,"author_association":"NONE","body":"### Description of Issue/Question\r\n\r\nI have recently setup salt proxy minion on the server which is also salt-master.  I am able to communicate with Cisco IOS device using salt-proxy.  There are also various other Arista EOS switches I am able to directly register to salt master as a minion.  However, there is a low end **Cisco SG220 switch** which I am unable to setup salt proxy for.  I have tried both napalm/ios and networkswitch proxy and it is failing in both cases.\r\n\r\n### Setup\r\n\r\nin /srv/pillar:\r\n\r\n# cat top.sls\r\nbase:\r\n  dumbdevice:\r\n    - dumbdevice\r\n#\r\n\r\n# cat dumbdevice.sls\r\nproxy:\r\n  proxytype: networkswitch\r\n  host: 10.43.64.59\r\n  username: xxxx\r\n  passwd: xxxx\r\n\r\n#\r\n\r\n### Steps to Reproduce Issue\r\n\r\nI have initially configured the device for proxy type napalm and driver IOS (similar to another Cisco switch which is working fine).  This is however a very low end Cisco switch, so I have also tried changing it to proxytype **networkswitch**.  I have deleted the salt-key for the device and ran **sudo systemctl start salt-proxy@dumbdevice** and continue to see the below logs.  Do I need a separate extension or software for proxytype networkswitch?  Please let me know if you need more details and I can provide them accordingly.\r\n\r\nNetMikoAuthenticationException: Authentication failure: unable to connect cisco_ios dumbdevice:22\r\nNetMikoAuthenticationException: Authentication failure: unable to connect cisco_ios dumbdevice:22\r\nNetMikoAuthenticationException: Authentication failure: unable to connect cisco_ios dumbdevice:22\r\nNetMikoAuthenticationException: Authentication failure: unable to connect cisco_ios dumbdevice:22\r\nNetMikoAuthenticationException: Authentication failure: unable to connect cisco_ios dumbdevice:22\r\n\r\nNetMikoAuthenticationException: Authentication failure: unable to connect cisco_ios smtwq-mgtac-001.mgmt:22\r\nAuthentication failed.\r\n2018-04-30 03:46:20,772 [/usr/lib/python2.7/site-packages/salt/utils/napalm.pyc:228 ][ERROR   ][7586] Cannot execute \"get_facts\" on [unspecified hostname] as . Reason: not connected!\r\n2018-04-30 03:46:20,772 [/usr/lib/python2.7/site-packages/salt/utils/napalm.pyc:229 ][ERROR   ][7586] Traceback (most recent call last):\r\n  File \"/usr/lib/python2.7/site-packages/salt/utils/napalm.py\", line 158, in call\r\n    raise Exception('not connected')\r\nException: not connected\r\n\r\n2018-04-30 03:46:23,191 [/usr/lib/python2.7/site-packages/salt/utils/napalm.pyc:228 ][ERROR   ][7586] Cannot execute \"get_facts\" on [unspecified hostname] as . Reason: not connected!\r\n2018-04-30 03:46:23,191 [/usr/lib/python2.7/site-packages/salt/utils/napalm.pyc:229 ][ERROR   ][7586] Traceback (most recent call last):\r\n  File \"/usr/lib/python2.7/site-packages/salt/utils/napalm.py\", line 158, in call\r\n    raise Exception('not connected')\r\nException: not connected\r\n\r\n\r\n### Versions Report\r\n\r\n# salt --versions-report\r\nSalt Version:\r\n           Salt: 2017.7.5\r\n\r\nDependency Versions:\r\n           cffi: 1.11.5\r\n       cherrypy: unknown\r\n       dateutil: Not Installed\r\n      docker-py: Not Installed\r\n          gitdb: Not Installed\r\n      gitpython: Not Installed\r\n          ioflo: Not Installed\r\n         Jinja2: 2.7.2\r\n        libgit2: Not Installed\r\n        libnacl: Not Installed\r\n       M2Crypto: Not Installed\r\n           Mako: Not Installed\r\n   msgpack-pure: Not Installed\r\n msgpack-python: 0.4.8\r\n   mysql-python: 1.2.3\r\n      pycparser: 2.18\r\n       pycrypto: 2.6.1\r\n   pycryptodome: Not Installed\r\n         pygit2: Not Installed\r\n         Python: 2.7.5 (default, Aug 18 2016, 15:58:25)\r\n   python-gnupg: Not Installed\r\n         PyYAML: 3.10\r\n          PyZMQ: 14.3.1\r\n           RAET: Not Installed\r\n          smmap: Not Installed\r\n        timelib: Not Installed\r\n        Tornado: 4.2.1\r\n            ZMQ: 3.2.5\r\n\r\nSystem Versions:\r\n           dist: centos 7.2.1511 Core\r\n         locale: UTF-8\r\n        machine: x86_64\r\n        release: 4.4.110-1.el7.elrepo.x86_64\r\n         system: Linux\r\n        version: CentOS Linux 7.2.1511 Core\r\n\r\n#\r\n"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/388469668","html_url":"https://github.com/saltstack/salt/issues/47392#issuecomment-388469668","issue_url":"https://api.github.com/repos/saltstack/salt/issues/47392","id":388469668,"user":{"login":"whytewolf","id":1143644,"avatar_url":"https://avatars2.githubusercontent.com/u/1143644?v=4","gravatar_id":"","url":"https://api.github.com/users/whytewolf","html_url":"https://github.com/whytewolf","followers_url":"https://api.github.com/users/whytewolf/followers","following_url":"https://api.github.com/users/whytewolf/following{/other_user}","gists_url":"https://api.github.com/users/whytewolf/gists{/gist_id}","starred_url":"https://api.github.com/users/whytewolf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whytewolf/subscriptions","organizations_url":"https://api.github.com/users/whytewolf/orgs","repos_url":"https://api.github.com/users/whytewolf/repos","events_url":"https://api.github.com/users/whytewolf/events{/privacy}","received_events_url":"https://api.github.com/users/whytewolf/received_events","type":"User","site_admin":false},"created_at":"2018-05-11T19:55:42Z","updated_at":"2018-05-11T19:55:42Z","author_association":"CONTRIBUTOR","body":"I also own a couple of SG300's and an sg500 all of which use the same OS as the sg220. These devices are not napalm capable. They do not use a true version of iOS,  even if you got them to connect through ssh napalm would not know what to do with them. I have been looking for add on napalm drivers for them but have not found one yet.\r\n\r\nI did get napalm to connect to my sg500 however because of the differences in the OS napalm didn't know it was connected because the commands do not line up with what it is expecting."}}
{"actor":{"display_login":"whytewolf"}}