{"action":"created","issue":{"url":"https://api.github.com/repos/ytti/oxidized/issues/351","repository_url":"https://api.github.com/repos/ytti/oxidized","labels_url":"https://api.github.com/repos/ytti/oxidized/issues/351/labels{/name}","comments_url":"https://api.github.com/repos/ytti/oxidized/issues/351/comments","events_url":"https://api.github.com/repos/ytti/oxidized/issues/351/events","html_url":"https://github.com/ytti/oxidized/issues/351","id":137608812,"number":351,"title":"Five minutes pass between sending exit to a node and the next beginning","user":{"login":"thecityofguanyu","id":10196496,"avatar_url":"https://avatars.githubusercontent.com/u/10196496?v=3","gravatar_id":"","url":"https://api.github.com/users/thecityofguanyu","html_url":"https://github.com/thecityofguanyu","followers_url":"https://api.github.com/users/thecityofguanyu/followers","following_url":"https://api.github.com/users/thecityofguanyu/following{/other_user}","gists_url":"https://api.github.com/users/thecityofguanyu/gists{/gist_id}","starred_url":"https://api.github.com/users/thecityofguanyu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thecityofguanyu/subscriptions","organizations_url":"https://api.github.com/users/thecityofguanyu/orgs","repos_url":"https://api.github.com/users/thecityofguanyu/repos","events_url":"https://api.github.com/users/thecityofguanyu/events{/privacy}","received_events_url":"https://api.github.com/users/thecityofguanyu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-03-01T15:44:47Z","updated_at":"2016-03-01T20:18:51Z","closed_at":null,"body":"This seems to impact all nodes without regard to the device model through the entire job. Based on my config, I believe it should run nightly (86400 seconds) and timeout if a job fails after one minute, allowing only one retry. \r\n\r\nIt doesn't seem like it has trouble exiting a device, as the 5 minute interval takes place between the \"configuration updated\" message and the next \"Jobs\" message.\r\n```\r\nD, [2016-03-01T09:05:19.275679 #14141] DEBUG -- : Jobs 1, Want: 2\r\nD, [2016-03-01T09:05:21.690032 #14141] DEBUG -- : SSH: show version @ node1\r\nD, [2016-03-01T09:05:22.292586 #14141] DEBUG -- : SSH: show running-config @ node1\r\nD, [2016-03-01T09:05:24.322021 #14141] DEBUG -- : SSH: exit @ node1\r\nI, [2016-03-01T09:05:25.303752 #14141]  INFO -- : Configuration updated for /node1\r\nD, [2016-03-01T09:10:19.352370 #14141] DEBUG -- : Jobs 1, Want: 2\r\nD, [2016-03-01T09:10:21.900248 #14141] DEBUG -- : SSH: show version @ node2\r\nD, [2016-03-01T09:10:22.502688 #14141] DEBUG -- : SSH: show running-config @ node2\r\nD, [2016-03-01T09:10:24.713715 #14141] DEBUG -- : SSH: exit @ node2\r\nI, [2016-03-01T09:10:25.384255 #14141]  INFO -- : Configuration updated for /node2\r\nD, [2016-03-01T09:15:19.434189 #14141] DEBUG -- : Jobs 1, Want: 2\r\nD, [2016-03-01T09:15:21.828973 #14141] DEBUG -- : SSH: show version @ node3\r\nD, [2016-03-01T09:15:22.432247 #14141] DEBUG -- : SSH: show running-config @ node3\r\nD, [2016-03-01T09:15:24.541796 #14141] DEBUG -- : SSH: exit @ node3\r\nI, [2016-03-01T09:15:25.470966 #14141]  INFO -- : Configuration updated for /node3\r\n```\r\nAny ideas?\r\n\r\nMy config file:\r\n\r\n```\r\n---\r\nusername: [redacted]\r\npassword: [redacted]\r\ninterval: 86400\r\nlog: /root/.config/oxidized/log/oxidized.log\r\ndebug: true\r\nthreads: 30\r\ntimeout: 60\r\nretries: 1\r\nprompt: !ruby/regexp /^([\\w.@-]+[#>]\\s?)$/\r\nrest: [redacted]:80\r\nvars: {}\r\ngroups: {}\r\ninput:\r\n  default: ssh, telnet\r\n  debug: false\r\n  ssh:\r\n    secure: false\r\noutput:\r\n  default: git\r\n  git:\r\n    user: oxidized\r\n    email: oxidized@[redacted]\r\n    repo: \"/root/.config/oxidized/devices.git\"\r\nsource:\r\n  default: csv\r\n  csv:\r\n    file: /root/.config/oxidized/router.db\r\n    delimiter: !ruby/regexp /:/\r\n    map:\r\n      name: 0\r\n      model: 2\r\n      username: 4\r\n      password: 5\r\n      ip: 1\r\n    vars_map:\r\n      enable: 3\r\nmodel_map:\r\n  cisco: ios\r\n  juniper: junos\r\n  foundry: ironware\r\n  adtran: adtran\r\nhooks:\r\n  vaonet-alert:\r\n    type: exec\r\n    events: [node_fail]\r\n    cmd: 'snmptrap -v 2c -c public [redacted] 1 1.2.3.4.5.6.7.8.9 1 s \"$OX_NODE_NAME\" 2 s \"backup-failed\"'\r\n```"},"comment":{"url":"https://api.github.com/repos/ytti/oxidized/issues/comments/190884727","html_url":"https://github.com/ytti/oxidized/issues/351#issuecomment-190884727","issue_url":"https://api.github.com/repos/ytti/oxidized/issues/351","id":190884727,"user":{"login":"ytti","id":200527,"avatar_url":"https://avatars.githubusercontent.com/u/200527?v=3","gravatar_id":"","url":"https://api.github.com/users/ytti","html_url":"https://github.com/ytti","followers_url":"https://api.github.com/users/ytti/followers","following_url":"https://api.github.com/users/ytti/following{/other_user}","gists_url":"https://api.github.com/users/ytti/gists{/gist_id}","starred_url":"https://api.github.com/users/ytti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ytti/subscriptions","organizations_url":"https://api.github.com/users/ytti/orgs","repos_url":"https://api.github.com/users/ytti/repos","events_url":"https://api.github.com/users/ytti/events{/privacy}","received_events_url":"https://api.github.com/users/ytti/received_events","type":"User","site_admin":false},"created_at":"2016-03-01T20:18:51Z","updated_at":"2016-03-01T20:18:51Z","body":"There should be timeout for login as well as each expect. Where are we waiting indefinitely?\r\n\r\nI guess we could wrap this over some deadline timer, but hopefully not:\r\nhttps://github.com/ytti/oxidized/blob/master/lib/oxidized/node.rb#L61\r\n\r\n\r\n\r\n\r\n\r\n"}}