Bug 1445692
Summary: | Hammer returns mac of docker interface instead of eth0 interface | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Jitendra Yejare <jyejare> | ||||||
Component: | Hosts | Assignee: | satellite6-bugs <satellite6-bugs> | ||||||
Status: | CLOSED DUPLICATE | QA Contact: | |||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | medium | ||||||||
Version: | 6.2.9 | CC: | bbuckingham, dhlavacd, egolov, inecas, jyejare, mhulan, sghai, tbrisker, tstrachota | ||||||
Target Milestone: | Unspecified | Keywords: | Triaged | ||||||
Target Release: | Unused | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2017-05-30 11:33:30 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: | |||||||||
Attachments: |
|
Description
Jitendra Yejare
2017-04-26 10:05:15 UTC
The MAC address listed in this API call is MAC of primary interface of a host. Please double check that eth0 is set as primary. If it's the case, please upload output of "hammer host info --id $id" where $id is id of the affected host. @Marek: This is our Satellite server itself which was upgraded from 6.0 -> 6.1 -> 6.2. The first interface listed as "docker0" and listed as (Primary, Provision), but we never set it up as primary/provisioning interface. Network interfaces: 1) Id: 12 Identifier: docker0 Type: interface (primary, provision) MAC address: 02:42:99:29:57:b4 IP address: 172.17.0.1 FQDN: 2) Id: 3 Identifier: eno1 Type: interface MAC address: 34:40:b5:a0:0a:d4 IP address: 10.34.36.127 FQDN: 3) Id: 4 Identifier: eno2 Type: interface MAC address: 34:40:b5:a0:0a:d6 IP address: FQDN: 5) Id: 1 Identifier: eth0 Type: interface MAC address: 00:1a:4a:3e:a6:09 IP address: 10.8.119.1 FQDN: Created attachment 1283365 [details]
complete output of host info
Created attachment 1283381 [details]
Interface details from UI
At first place, I don't know how docker0 is set as primary and provisioning interface. Isn't it that satellite is picking alphabetically first interface as primary/provisioning ? Just a guess. This is probably due to Puppet reporting facts (and thus reporting the IP of docker0 as the primary IP) and Foreman then interpreting these facts and updating the Host object accordingly. And that behaviour is reported in https://bugzilla.redhat.com/show_bug.cgi?id=1289510 You can manually apply the fix from the upstream PR (https://github.com/theforeman/foreman/pull/4233) by adding "docker*" to "ignored_interface_identifiers" in the settings of Satellite. I can confirm what Evgeni says. If the host gets created by facts upload, we can only rely on "ipaddress" fact determining the primary interface. Sadly puppet reports ip and mac of first interface sort alphabetically (not necessary the same interface). It should be fixed by BZ 1289510, can we close this as dup? Thanks Evgeni and Marek.. that explains the issue.. and yes we can mark as duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=1289510 *** This bug has been marked as a duplicate of bug 1289510 *** |