Description of problem: IP address displayed in server overview doesn't correspond with primary ip address Version-Release number of selected component (if applicable): 0.8 How reproducible: If you register a server with multiple ip addresses, The ipaddress displayed in "System" -> "Details" -> "overview" is not the primary ip address (ipaddress that correspond with the hostname) Steps to Reproduce: 1. Register server with multiple ip addresses 2. 3. Actual results: The ipaddress displayed in "System" -> "Details" -> "overview" is not the primary ip address. Expected results: Logicaly, the ipaddress displayed in the "overview" is the primary ipaddress Additional info:
If a system has several IP addresses, as primary one is taken: - eth0 if an IP is associated with eth0 - eth1 if an IP is associated with eth1 - any of the IPs If you know, how a primary address can be detected, please, let us know, or send a patch to review.
This gives problems if you use bonding or VLAN tagging, which is quite common in a corperate environment. Doesn't it make more sense to use the ipaddress that is returned by a gethostbyname function call ? That way you get the ip address the is associated with the hostname of the system. In any case, in the GUI, it is not displayed in a consistent way. If you go to a system -> "overview" you will see a different primary ip address than in "hardware" -> "networking". I've attached 2 screenshots to make it clearer.
Created attachment 495123 [details] primary ip in hardware tab
Created attachment 495124 [details] primary ip in overview tab
I slightly changed the behavior. Now, the primary address shall be the one, the client uses for communication with Spacewalk server. spacewalk.git: 994ec87d3caec3ff6fabb1e8c69c454edd5a90ae The non-consistent part described in Comment#2 was fixed by https://bugzilla.redhat.com/show_bug.cgi?id=628755 in Spacewalk 1.3.
This bugzilla is currently MODIFIED, so we believe the fix is in the Spacewalk nightly yum repository at http://spacewalk.redhat.com/yum/nightly/ Therefore, moving ON_QA.
Spacewalk 1.5 was released.