Bug 655310

Summary: Send IPv6 address of network interfaces to rhnParent
Product: [Community] Spacewalk Reporter: Miroslav Suchý <msuchy>
Component: ClientsAssignee: Miroslav Suchý <msuchy>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: low Docs Contact:
Priority: low    
Version: 1.3CC: jpazdziora, psklenar
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: rhn-client-tools-1.3.1-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 569790 Environment:
Last Closed: 2011-04-21 11:28:29 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: 569793    
Bug Blocks: 487666, 569790, 653453    

Description Miroslav Suchý 2010-11-20 12:30:23 UTC
+++ This bug was initially created as a clone of Bug #569790 +++

Description of problem:
rhn-client tools report HW info to rhnParent. But we currently send only IPv4 address and not IPv6 address.
We use python-ethtool to grab the information. We can either request IPv6 support in python-ethtool or do some workaround.

--- Additional comment from msuchy on 2010-03-02 08:12:43 EST ---

We should also change in hardware.py in function change gethostbyname(gethostname()) to socket.getaddrinfo(gethostname()), but it does not contain simple value and we should somehow pick up the right value.

Comment 1 Miroslav Suchý 2010-11-20 13:44:03 UTC
We now send IPv6 addresses to server (commit c295d2f4387f76b3d7186a39a1cc04d9c7eccd09).
Those data are not utilizes by Spacewalk Server yet.

I replaced gethostbyname() by getaddrinfo() (commit 6ca6477f39b18473dbd8dc2abeb99c8b23f30458) so we can easily switch to using IPv6 as default ip addr or get info from IPv6 stack.