Re: ifconfig and MacAddress

2013-10-30 Thread Darren Shepherd
onfigured correctly in db.properties >>> >>> Kelven >>> >>> From: Alex Huang >>> Date: Tuesday, October 29, 2013 at 8:43 AM >>> To: Laszlo Hornyak , "dev@cloudstack.apache.org" >>> >>> Cc: Kelven Yang >>> Subject: R

Re: ifconfig and MacAddress

2013-10-30 Thread Laszlo Hornyak
required. cluster.node.ip needs to configured correctly in db.properties >> >> Kelven >> >> From: Alex Huang >> Date: Tuesday, October 29, 2013 at 8:43 AM >> To: Laszlo Hornyak , "dev@cloudstack.apache.org" >> >> Cc: Kelven Yang &

Re: ifconfig and MacAddress

2013-10-29 Thread Laszlo Hornyak
indows. manual configuration > is required. cluster.node.ip needs to configured correctly in db.properties > > Kelven > > From: Alex Huang > Date: Tuesday, October 29, 2013 at 8:43 AM > To: Laszlo Hornyak , "dev@cloudstack.apache.org" > > Cc: Kelven Yang

Re: ifconfig and MacAddress

2013-10-29 Thread Kelven Yang
t 8:43 AM To: Laszlo Hornyak mailto:laszlo.horn...@gmail.com>>, "dev@cloudstack.apache.org<mailto:dev@cloudstack.apache.org>" mailto:dev@cloudstack.apache.org>> Cc: Kelven Yang mailto:kelven.y...@citrix.com>> Subject: RE: ifconfig and MacAddress I can confirm t

RE: ifconfig and MacAddress

2013-10-29 Thread Alex Huang
I can confirm the code's only there because Java didn't have it before. --Alex From: Laszlo Hornyak [mailto:laszlo.horn...@gmail.com] Sent: Monday, October 28, 2013 11:50 PM To: dev@cloudstack.apache.org Cc: Alex Huang; Kelven Yang Subject: Re: ifconfig and MacAddress Hi, I not

Re: ifconfig and MacAddress

2013-10-28 Thread Laszlo Hornyak
Hi, I noticed other problem with the MacAddress, it appears that it does not handle the Windows ipconfig output. (see related patch) https://reviews.apache.org/r/14514/ I tested it with win8, 7, and XP outputs As far as I remember this may be a problem when running CS cluster on windows, since ea

Re: ifconfig and MacAddress

2013-10-28 Thread Kelven Yang
In a setup with multiple interfaces or Multiple IPs on one interfaces, it sounds more simple to just get the decision resolved through configuration. Looking for interfaces that has IP configured as what "cluster.node.IP" says so, can get us a deterministic mac address. I'm not sure about a KVM ca

Re: ifconfig and MacAddress

2013-10-26 Thread Darren Shepherd
Just want to clarify something for people reading this thread. I'm not looking at code right now so I could be slightly wrong about the following. 'host' and 'cluster.node.IP' are slightly different. Cluster.node.ip is recorded in the mshost table and is used to tell cluster peers what IP the

Re: ifconfig and MacAddress

2013-10-26 Thread Marcus Sorensen
there's a 'host' global config property that I believe is supposed to be the master mgmt server. For some reason this is also not working quite right for me on master, it used to set correctly per my marvin zone config, going from 4.2 to master the 'host' property always ends up as 'localhost' rath

Re: ifconfig and MacAddress

2013-10-26 Thread Darren Shepherd
I completely agree and part of why I want to change it. On my machine my wifi and Ethernet devices sometimes swap as being first in the list and it doesn't seem to like that at all. I don't know if it's because my mgmt IP is localhost or what, but the new mgmt host entry never takes over owner

Re: ifconfig and MacAddress

2013-10-26 Thread Marcus Sorensen
Tangent, if that's the code that comes up with mgmt server id (by Mac address conversion to short), its bitten me in the past. It doesn't tolerate new NICs well, for example in development when a mgmt server is also a host and a link local bridge is created. Seems bad form to just run ifconfig and

ifconfig and MacAddress

2013-10-26 Thread Darren Shepherd
Is there a specific reason that in MacAddress it uses "ifconfig" or other utilities to grab the Mac Address as opposed to the java API java.net.NetworkInterface? There's a comment in that code that says that code was copied from some public domain utility. So I'm guessing its there just because t