[chef] Re: ohai and bond0 ipaddress


Chronological Thread 
  • From: Sascha Bates < >
  • To:
  • Subject: [chef] Re: ohai and bond0 ipaddress
  • Date: Tue, 6 Dec 2011 09:51:03 -0600

The last time I looked at the source, ohai got the ipaddress by parsing the route table.  check that to see what's being assigned.  If it's not being assigned, you won't have the ipaddress attribute.

On Mon, Dec 5, 2011 at 9:04 PM, Johnny Tan < "> > wrote:
I have machine with bonded NICs:

====
# ifconfig
bond0     Link encap:Ethernet  HWaddr 00:25:90:2B:31:30
         inet addr:10.0.1.12  Bcast:10.0.1.255  Mask:255.255.255.0
         inet6 addr: fe80::225:90ff:fe2b:3130/64 Scope:Link
         UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1
         RX packets:255290 errors:0 dropped:0 overruns:0 frame:0
         TX packets:23551 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:0
         RX bytes:96349335 (91.8 MiB)  TX bytes:1805675 (1.7 MiB)

eth0      Link encap:Ethernet  HWaddr 00:25:90:2B:31:30
         UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
         RX packets:158285 errors:0 dropped:0 overruns:0 frame:0
         TX packets:23551 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000
         RX bytes:90527251 (86.3 MiB)  TX bytes:1805675 (1.7 MiB)
         Memory:fafe0000-fb000000

eth1      Link encap:Ethernet  HWaddr 00:25:90:2B:31:30
         UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
         RX packets:97005 errors:0 dropped:0 overruns:0 frame:0
         TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000
         RX bytes:5822084 (5.5 MiB)  TX bytes:0 (0.0 b)
         Memory:faf60000-faf80000
====


ohai doesn't seem to be able to identify the ipaddress of the machine:

# ohai
<snip>
 "network": {
   "interfaces": {

   }
 },
</snip>


Is this a known issue?

johnny




Archive powered by MHonArc 2.6.16.

§