Bug 699753
Summary: | IP address displayed in server overview doesn't correspond with primary ip address | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Community] Spacewalk | Reporter: | ben.vanhaeren.external | ||||||
Component: | WebUI | Assignee: | Tomas Lestach <tlestach> | ||||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Red Hat Satellite QA List <satqe-list> | ||||||
Severity: | unspecified | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 0.8 | ||||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | All | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2011-07-21 14:43:08 UTC | Type: | --- | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Bug Depends On: | |||||||||
Bug Blocks: | 695242 | ||||||||
Attachments: |
|
Description
ben.vanhaeren.external
2011-04-26 14:27:06 UTC
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. |