{"action":"created","issue":{"url":"https://api.github.com/repos/chef/inspec/issues/1655","repository_url":"https://api.github.com/repos/chef/inspec","labels_url":"https://api.github.com/repos/chef/inspec/issues/1655/labels{/name}","comments_url":"https://api.github.com/repos/chef/inspec/issues/1655/comments","events_url":"https://api.github.com/repos/chef/inspec/issues/1655/events","html_url":"https://github.com/chef/inspec/issues/1655","id":221554491,"number":1655,"title":"net-tools/netstat deprecated","user":{"login":"MariusCC","id":1683264,"avatar_url":"https://avatars3.githubusercontent.com/u/1683264?v=4","gravatar_id":"","url":"https://api.github.com/users/MariusCC","html_url":"https://github.com/MariusCC","followers_url":"https://api.github.com/users/MariusCC/followers","following_url":"https://api.github.com/users/MariusCC/following{/other_user}","gists_url":"https://api.github.com/users/MariusCC/gists{/gist_id}","starred_url":"https://api.github.com/users/MariusCC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MariusCC/subscriptions","organizations_url":"https://api.github.com/users/MariusCC/orgs","repos_url":"https://api.github.com/users/MariusCC/repos","events_url":"https://api.github.com/users/MariusCC/events{/privacy}","received_events_url":"https://api.github.com/users/MariusCC/received_events","type":"User","site_admin":false},"labels":[{"id":253920985,"url":"https://api.github.com/repos/chef/inspec/labels/Type:%20Enhancement","name":"Type: Enhancement","color":"84b6eb","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2017-04-13T12:54:01Z","updated_at":"2017-09-02T02:37:10Z","closed_at":"2017-08-31T07:53:09Z","author_association":"NONE","body":"### Description\r\n\r\nnet-tools package (which used to provide netstat) is deprecated.\r\nSee here: https://bugzilla.redhat.com/show_bug.cgi?id=1119297\r\n\r\nThis affects all newer Linux distro that provides minimal installation (RHEL 7.x, CentOS 7.x, Ubuntu 16.04) - ie all deployments in cloud that are using inspec as a validation tool.\r\n\r\n### InSpec and Platform Version\r\n\r\nRHEl 7.x\r\nCentOS 7.x\r\nUbuntu 16.04\r\n\r\nInspec versions:\r\n1.15.0 up to 1.19.1\r\n\r\n### Replication Case\r\n\r\nUse kitchen to run integration testing on an webserver cobook.\r\nPlatform is RHEL 7.x.\r\ninpsec test contains the following piece of code:\r\n` \r\n describe port.where { protocol =~ /tcp/ && port == ihs_port } do\r\n    it { should be_listening }\r\n    its('processes') { should include 'httpd' }\r\n    its('processes.length') { should eq 1 }\r\n  end\r\n`\r\nThe result is:\r\n`\r\n  ✖  webserver-restart: Server: HTTP Server deployment - Service restart behaviour (IHS) (2 failed)\r\n     ✖  Port  with protocol =~ /tcp/ port == 80 should be listening\r\n     expected `Port  with protocol =~ /tcp/ port == 80.listening?` to return true, got false\r\n     ✖  Port  with protocol =~ /tcp/ port == 80 processes should include \"httpd\"\r\n     expected [] to include \"httpd\"\r\n`\r\n\r\n\r\n### Possible Solutions\r\n\r\n[Use ss instead of netstat](https://linux.die.net/man/8/netstat).\r\n>This program is obsolete. Replacement for netstat is ss. Replacement for netstat -r is ip route. >Replacement for netstat -i is ip -s link. Replacement for netstat -g is ip maddr.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/chef/inspec/issues/comments/326716894","html_url":"https://github.com/chef/inspec/issues/1655#issuecomment-326716894","issue_url":"https://api.github.com/repos/chef/inspec/issues/1655","id":326716894,"user":{"login":"decomposite","id":4983742,"avatar_url":"https://avatars0.githubusercontent.com/u/4983742?v=4","gravatar_id":"","url":"https://api.github.com/users/decomposite","html_url":"https://github.com/decomposite","followers_url":"https://api.github.com/users/decomposite/followers","following_url":"https://api.github.com/users/decomposite/following{/other_user}","gists_url":"https://api.github.com/users/decomposite/gists{/gist_id}","starred_url":"https://api.github.com/users/decomposite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/decomposite/subscriptions","organizations_url":"https://api.github.com/users/decomposite/orgs","repos_url":"https://api.github.com/users/decomposite/repos","events_url":"https://api.github.com/users/decomposite/events{/privacy}","received_events_url":"https://api.github.com/users/decomposite/received_events","type":"User","site_admin":false},"created_at":"2017-09-02T02:37:10Z","updated_at":"2017-09-02T02:37:10Z","author_association":"NONE","body":"@adamleff brilliant! thanks"}}
{"actor":{"display_login":"decomposite"}}