Comments (5)
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.
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.
@randyrue, @damacus, @rarenerd can you show us what the output of ip addr
is please, and also ohai network
.
from ohai.
[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.
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)
- Darwin Hardware: Imparity between Intel and ARM/M1 (Apple Silicon) Apple devices HOT 3
- Ohai simultaneously detects EC2 and Azure clouds
- fips plugin does not detect host fips mode properly HOT 4
- CPU total is 0 when threads-per-core is 0 HOT 1
- lscpu parser doesn't parse Raspberry Pi 4 (ARM Cortex-A72) output HOT 4
- Custom Ohai plugin not functioning properly after Chef 17 upgrade.
- Metadata tags with spaces cause ohai ec2 to return an empty response
- Network Plugin intermittently unable to detect ipaddress
- fetching metadata on VMs with pre-defined user-data of Alibaba Cloud causing a never-end recursion, maybe other Cloud Service Providers are affected too HOT 1
- node['cloud'] = nil in AWS environment where full tunnel VPN is enabled
- Installation of version 17.9.0 fails with unavailable dependency HOT 5
- [BUG] Ohai passwd - segmentation fault at 0x0000000000000000 HOT 1
- Darwin virtualization plugin: potential for false positive HOT 2
- cloud plugin fail on Oracle Cloud Infrastructure (OCI) HOT 1
- Another instance of possible incorrect class comparison
- Incorrect/truncated CPU flags returned with later Linux kernels
- [17.9.0] EC2 metadata missing `network-card` information
- Plugin Cloud threw exception #<SystemStackError: stack level too deep> HOT 1
- lscpu on Debian VM on ARM system crashes CPU plugin HOT 1
- rubygems is showing ohai 18.1.3 as the latest version (from March 08, 2023
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ohai.