GithubHelp home page GithubHelp logo

ohai detects wrong ipv6 address about ohai HOT 5 CLOSED

chef avatar chef commented on August 15, 2024
ohai detects wrong ipv6 address

from ohai.

Comments (5)

rarenerd avatar rarenerd commented on August 15, 2024

I can reproduce this on CentOS and RHEL 5.10 with Chef 11.16.2 / Ohai 7.4.0. These are the entries I see with IPv6 enabled:

  "ipaddress": "10.0.2.15",
  "ip6address": "fe80::a00:27ff:fee4:da36",

After setting "NETWORKING_IPV6=no" in /etc/sysconfig/network and adding "options ipv6 disable=1" the entries look like this:

  "ipaddress": "10.0.2.15",
  "ip6address": "10.0.2.15",

from ohai.

randyrue avatar randyrue commented on August 15, 2024

Having the same problem on CentOS 6.6/Chef 12.1.1/Ohai 8.1.1, in this case I can't use the snmp cookbook because it insists on configuring an ip6 source. Any suggestions?

from ohai.

thommay avatar thommay commented on August 15, 2024

@randyrue, @damacus, @rarenerd can you show us what the output of ip addr is please, and also ohai network.

from ohai.

randyrue avatar randyrue commented on August 15, 2024

[root@rooo ~]# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
state UP qlen 1000
link/ether 00:50:56:9c:2d:7b brd ff:ff:ff:ff:ff:ff
inet 140.107.88.66/23 brd 140.107.89.255 scope global eth0
[root@rooo ~]# ohai network
{
"interfaces": {
"lo": {
"mtu": "65536",
"flags": [
"LOOPBACK",
"UP",
"LOWER_UP"
],
"encapsulation": "Loopback",
"addresses": {
"127.0.0.1": {
"family": "inet",
"prefixlen": "8",
"netmask": "255.0.0.0",
"scope": "Node"
}
},
"state": "unknown"
},
"eth0": {
"type": "eth",
"number": "0",
"mtu": "1500",
"flags": [
"BROADCAST",
"MULTICAST",
"UP",
"LOWER_UP"
],
"encapsulation": "Ethernet",
"addresses": {
"00:50:56:9C:2D:7B": {
"family": "lladdr"
},
"140.107.88.66": {
"family": "inet",
"prefixlen": "23",
"netmask": "255.255.254.0",
"broadcast": "140.107.89.255",
"scope": "Global"
}
},
"state": "up",
"arp": {
"140.107.89.11": "00:50:56:9c:67:32",
"140.107.88.1": "00:00:0c:07:ac:2a",
"140.107.88.132": "00:50:56:9c:33:c0"
},
"routes": [
{
"destination": "140.107.88.0/23",
"family": "inet",
"scope": "link",
"proto": "kernel",
"src": "140.107.88.66"
},
{
"destination": "169.254.0.0/16",
"family": "inet",
"scope": "link",
"metric": "1002"
},
{
"destination": "default",
"family": "inet",
"via": "140.107.88.1"
},
{
"destination": "140.107.88.0/23",
"family": "inet6",
"scope": "link",
"proto": "kernel",
"src": "140.107.88.66"
},
{
"destination": "169.254.0.0/16",
"family": "inet6",
"scope": "link",
"metric": "1002"
},
{
"destination": "default",
"family": "inet6",
"via": "140.107.88.1"
}
]
}
},
"default_interface": "eth0",
"default_gateway": "140.107.88.1",
"default_inet6_interface": "eth0",
"default_inet6_gateway": "140.107.88.1"
}
[root@rooo ~]#

On 4/22/2015 11:20 AM, Thom May wrote:

@randyrue https://github.com/randyrue, @damacus
https://github.com/damacus, @rarenerd https://github.com/rarenerd
can you show us what the output of |ip addr| is please, and also |ohai
network|.


Reply to this email directly or view it on GitHub
#380 (comment).

from ohai.

rarenerd avatar rarenerd commented on August 15, 2024

Tested in a Virtualbox with the opscode-centos-6.6 image:

[root@localhost ~]# ohai --version
Ohai: 8.2.0
[root@localhost ~]# cat /etc/redhat-release
CentOS release 6.6 (Final)
[root@localhost ~]# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 08:00:27:70:c7:f1 brd ff:ff:ff:ff:ff:ff
    inet 10.0.2.15/24 brd 10.0.2.255 scope global eth0
[root@localhost ~]# ohai network
{
  "interfaces": {
    "lo": {
      "mtu": "65536",
      "flags": [
        "LOOPBACK",
        "UP",
        "LOWER_UP"
      ],
      "encapsulation": "Loopback",
      "addresses": {
        "127.0.0.1": {
          "family": "inet",
          "prefixlen": "8",
          "netmask": "255.0.0.0",
          "scope": "Node"
        }
      },
      "state": "unknown"
    },
    "eth0": {
      "type": "eth",
      "number": "0",
      "mtu": "1500",
      "flags": [
        "BROADCAST",
        "MULTICAST",
        "UP",
        "LOWER_UP"
      ],
      "encapsulation": "Ethernet",
      "addresses": {
        "08:00:27:70:C7:F1": {
          "family": "lladdr"
        },
        "10.0.2.15": {
          "family": "inet",
          "prefixlen": "24",
          "netmask": "255.255.255.0",
          "broadcast": "10.0.2.255",
          "scope": "Global"
        }
      },
      "state": "up",
      "arp": {
        "10.0.2.2": "52:54:00:12:35:02",
        "10.0.2.3": "52:54:00:12:35:03"
      },
      "routes": [
        {
          "destination": "10.0.2.0/24",
          "family": "inet",
          "scope": "link",
          "proto": "kernel",
          "src": "10.0.2.15"
        },
        {
          "destination": "169.254.0.0/16",
          "family": "inet",
          "scope": "link",
          "metric": "1002"
        },
        {
          "destination": "default",
          "family": "inet",
          "via": "10.0.2.2"
        },
        {
          "destination": "10.0.2.0/24",
          "family": "inet6",
          "scope": "link",
          "proto": "kernel",
          "src": "10.0.2.15"
        },
        {
          "destination": "169.254.0.0/16",
          "family": "inet6",
          "scope": "link",
          "metric": "1002"
        },
        {
          "destination": "default",
          "family": "inet6",
          "via": "10.0.2.2"
        }
      ]
    }
  },
  "default_interface": "eth0",
  "default_gateway": "10.0.2.2",
  "default_inet6_interface": "eth0",
  "default_inet6_gateway": "10.0.2.2"
}

from ohai.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.