Bug 1328745
Summary: | " hammer host list" lists first NIC ip of hosts (with multi nic) inspite of first nic is not accesible by satellite | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Pradeep Kumar Surisetty <psuriset> |
Component: | Hammer | Assignee: | Marek Hulan <mhulan> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Tomas Strachota <tstrachota> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6.2.0 | CC: | bbuckingham, bkearney, tstrachota, xdmoon |
Target Milestone: | Unspecified | Keywords: | Triaged |
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-01-05 13:48:02 UTC | Type: | Bug |
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: | 1115190 |
Description
Pradeep Kumar Surisetty
2016-04-20 08:29:33 UTC
In Sat 6.1 there's no easy way of determining the primary interfaces or swapping it with any additional interface. In next version though user is able to select which interface is primary and then the IP of primary interface is being displayed. When a host registers by itself (so not created by provisioning), we try to detect primary interface, physical interfaces have higher priority so it should work out of the box. We can't really detect whether the IP is truly reachable from Satellite, the IP might be from some existing subnet range but that does not mean it's on the same subnet. So I suggest verifying this BZ with 6.2, it should not need any code changes. I confirm this behavior has been fixed in satellite 6.2+ API/hammer shows ip and mac of the primary interface when listing hosts: > hammer host info --name bf.tstracho-laptop ... Network interfaces: 1) Id: 2 Identifier: Type: interface (primary) MAC address: 00:14:5e:6d:1c:b0 IP address: 192.168.121.51 FQDN: 2) Id: 13 Identifier: Type: interface (provision) MAC address: fe:54:00:64:76:6d IP address: 192.168.121.50 FQDN: ... > hammer host list ... 2 | bf.tstracho-laptop | RedHat 7.3 | | 192.168.121.51 | 00:14:5e:6d:1c:b0 | | ... > hammer host update --name bf.tstracho-laptop --interface 'id=13,primary=true,name=bf2' --interface 'id=2,primary=false' Host updated > hammer host list ... 2 | bf2.tstracho-laptop | RedHat 7.3 | | 192.168.121.50 | fe:54:00:64:76:6d | | ... |