{"action":"created","issue":{"url":"https://api.github.com/repos/chef/ohai/issues/397","labels_url":"https://api.github.com/repos/chef/ohai/issues/397/labels{/name}","comments_url":"https://api.github.com/repos/chef/ohai/issues/397/comments","events_url":"https://api.github.com/repos/chef/ohai/issues/397/events","html_url":"https://github.com/chef/ohai/issues/397","id":41015274,"number":397,"title":"ohai WARN: unable to detect ipaddress, macaddress","user":{"login":"paigeadele","id":117316,"avatar_url":"https://avatars.githubusercontent.com/u/117316?v=3","gravatar_id":"","url":"https://api.github.com/users/paigeadele","html_url":"https://github.com/paigeadele","followers_url":"https://api.github.com/users/paigeadele/followers","following_url":"https://api.github.com/users/paigeadele/following{/other_user}","gists_url":"https://api.github.com/users/paigeadele/gists{/gist_id}","starred_url":"https://api.github.com/users/paigeadele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paigeadele/subscriptions","organizations_url":"https://api.github.com/users/paigeadele/orgs","repos_url":"https://api.github.com/users/paigeadele/repos","events_url":"https://api.github.com/users/paigeadele/events{/privacy}","received_events_url":"https://api.github.com/users/paigeadele/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chef/ohai/labels/Bug","name":"Bug","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2014-08-24T18:06:11Z","updated_at":"2015-02-19T22:38:07Z","closed_at":null,"body":"Ohai: 7.2.4\r\napp chef # ohai > test.ohai\r\n[2014-08-23T05:08:39+03:00] WARN: unable to detect ipaddress\r\n[2014-08-23T05:08:39+03:00] WARN: unable to detect macaddress\r\napp chef # \r\n\r\nit did at least detect the gateway:\r\n\r\n```\r\n\"network\": {\r\n    \"interfaces\": {\r\n      \"eth0:\": {\r\n        \"type\": \"eth\",\r\n        \"number\": \"0:\"\r\n      },\r\n      \"lo:\": {\r\n\r\n      },\r\n      \"sit0:\": {\r\n        \"type\": \"sit\",\r\n        \"number\": \"0:\"\r\n      }\r\n    },\r\n    \"default_gateway\": \"172.16.20.1\",\r\n    \"default_interface\": \"eth0\"\r\n  },\r\n  \"counters\": {\r\n    \"network\": {\r\n      \"interfaces\": {\r\n\r\n      }\r\n    }\r\n  },\r\n```\r\n\r\nnetwork info : \r\n```\r\napp chef # ip link \r\n1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT \r\n    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00\r\n2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT qlen 1000\r\n    link/ether 52:54:00:70:26:0b brd ff:ff:ff:ff:ff:ff\r\n3: sit0: <NOARP> mtu 1480 qdisc noop state DOWN mode DEFAULT \r\n    link/sit 0.0.0.0 brd 0.0.0.0\r\n\r\napp chef # ip addr      \r\n1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN \r\n    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00\r\n    inet 127.0.0.1/8 scope host lo\r\n       valid_lft forever preferred_lft forever\r\n    inet6 ::1/128 scope host \r\n       valid_lft forever preferred_lft forever\r\n2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000\r\n    link/ether 52:54:00:70:26:0b brd ff:ff:ff:ff:ff:ff\r\n    inet 172.16.20.2/24 brd 172.16.20.255 scope global eth0\r\n       valid_lft forever preferred_lft forever\r\n    inet6 fe80::5054:ff:fe70:260b/64 scope link \r\n       valid_lft forever preferred_lft forever\r\n3: sit0: <NOARP> mtu 1480 qdisc noop state DOWN \r\n    link/sit 0.0.0.0 brd 0.0.0.0\r\napp chef # \r\n\r\napp chef # ifconfig\r\neth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500\r\n        inet 172.16.20.2  netmask 255.255.255.0  broadcast 172.16.20.255\r\n        inet6 fe80::5054:ff:fe70:260b  prefixlen 64  scopeid 0x20<link>\r\n        ether 52:54:00:70:26:0b  txqueuelen 1000  (Ethernet)\r\n        RX packets 368449  bytes 169286648 (161.4 MiB)\r\n        RX errors 0  dropped 201227  overruns 0  frame 0\r\n        TX packets 132059  bytes 68529387 (65.3 MiB)\r\n        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0\r\n\r\nlo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536\r\n        inet 127.0.0.1  netmask 255.0.0.0\r\n        inet6 ::1  prefixlen 128  scopeid 0x10<host>\r\n        loop  txqueuelen 0  (Local Loopback)\r\n        RX packets 2556  bytes 249426 (243.5 KiB)\r\n        RX errors 0  dropped 0  overruns 0  frame 0\r\n        TX packets 2556  bytes 249426 (243.5 KiB)\r\n        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0\r\n\r\napp chef # \r\n```\r\n\r\nother info \r\n```\r\nruby 1.9.3p547 (2014-05-14 revision 45962) [x86_64-linux]\r\napp chef # gem --version\r\n2.2.2\r\napp chef # gem list --local\r\n\r\n*** LOCAL GEMS ***\r\n\r\nbigdecimal (1.1.0)\r\nbundler (1.7.2)\r\nbundler-unload (1.0.2)\r\nchef (11.14.6)\r\nchef-zero (2.2)\r\ncoderay (1.1.0)\r\ndiff-lcs (1.2.5)\r\nerubis (2.7.0)\r\nexecutable-hooks (1.3.2)\r\nffi (1.9.3)\r\nffi-yajl (1.0.2)\r\ngem-wrappers (1.2.5)\r\nhashie (2.1.2)\r\nhighline (1.6.21)\r\nio-console (0.3)\r\nipaddress (0.8.0)\r\njson (1.5.5)\r\nlibyajl2 (1.0.1)\r\nmethod_source (0.8.2)\r\nmime-types (1.25.1)\r\nminitest (2.5.1)\r\nmixlib-authentication (1.3.0)\r\nmixlib-cli (1.5.0)\r\nmixlib-config (2.1.0)\r\nmixlib-log (1.6.0)\r\nmixlib-shellout (1.6.0.rc.0)\r\nnet-ssh (2.9.1)\r\nnet-ssh-gateway (1.2.0)\r\nnet-ssh-multi (1.2.0)\r\nohai (7.2.4)\r\nplist (3.1.0)\r\npry (0.10.1)\r\nrack (1.6.0.beta)\r\nrake (0.9.2.2)\r\nrdoc (3.9.5)\r\nrest-client (1.6.7)\r\nrubygems-bundler (1.4.4)\r\nrvm (1.11.3.9)\r\nslop (3.6.0)\r\nsystemu (2.6.4)\r\nwmi-lite (1.0.0)\r\napp chef # \r\n```"},"comment":{"url":"https://api.github.com/repos/chef/ohai/issues/comments/75153867","html_url":"https://github.com/chef/ohai/issues/397#issuecomment-75153867","issue_url":"https://api.github.com/repos/chef/ohai/issues/397","id":75153867,"user":{"login":"jmara","id":972041,"avatar_url":"https://avatars.githubusercontent.com/u/972041?v=3","gravatar_id":"","url":"https://api.github.com/users/jmara","html_url":"https://github.com/jmara","followers_url":"https://api.github.com/users/jmara/followers","following_url":"https://api.github.com/users/jmara/following{/other_user}","gists_url":"https://api.github.com/users/jmara/gists{/gist_id}","starred_url":"https://api.github.com/users/jmara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmara/subscriptions","organizations_url":"https://api.github.com/users/jmara/orgs","repos_url":"https://api.github.com/users/jmara/repos","events_url":"https://api.github.com/users/jmara/events{/privacy}","received_events_url":"https://api.github.com/users/jmara/received_events","type":"User","site_admin":false},"created_at":"2015-02-19T22:38:07Z","updated_at":"2015-02-19T22:38:07Z","body":"Slightly different but ipaddress/macaddress and the whole network Mash is not detected on XenServer 6.5 which is Centos 5.10 based. Interface names have not changed, but \"ip addr\" acts weird :-/ \r\n```\r\n# ip -V\r\nip utility, iproute2-ss121001\r\n```\r\n\r\nAny ideas?"}}