Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1554413

Summary: Error during resolving IPv6 address of hostname: <name>, [Errno -2] Name or service not known
Product: Red Hat Enterprise Linux 7 Reporter: Rehana <redakkan>
Component: subscription-managerAssignee: candlepin-bugs
Status: CLOSED DUPLICATE QA Contact: Red Hat subscription-manager QE Team <rhsm-qe>
Severity: low Docs Contact:
Priority: medium    
Version: 7.5CC: jhnidek, khowell
Target Milestone: pre-dev-freezeKeywords: EasyFix, Triaged
Target Release: ---   
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: 2018-05-16 08:15:42 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:

Description Rehana 2018-03-12 15:59:51 UTC
Description of problem:
Observed that on registering a rhel6.10 machine (which has no hostname set for ipv6 ) rhsm.log throws the error

 2018-03-12 11:49:27,892 [ERROR] subscription-manager:27612:MainThread @hwprobe.py:649 - Error during resolving IPv6 address of hostname: dhcp148-149.mpc.lab.eng.bos.redhat.com, [Errno -2] Name or service not known


Version-Release number of selected component (if applicable):
# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 2.2.2-1
subscription management rules: 5.26
subscription-manager: 1.20.10-3.git.0.05d130a.el6


How reproducible:
always

Steps to Reproduce:
1.on a guest machine ( which does not have a hostname set for ipv6 ) register to stage 
2.watch rhsm.log for error 


[root@dhcp148-149 ~]# subscription-manager identity
system identity: 09fce7dd-da28-4bac-826f-fa6ac91ff88c
name: dhcp148-149.mpc.lab.eng.bos.redhat.com
org name: 11359491
org ID: 11359491

[root@dhcp148-149 ~]# 
[root@dhcp148-149 ~]# subscription-manager facts | grep eth0.ipv
net.interface.eth0.ipv4_address: 10.16.148.149
net.interface.eth0.ipv4_address_list: 10.16.148.149
net.interface.eth0.ipv4_broadcast: 10.16.151.255
net.interface.eth0.ipv4_broadcast_list: 10.16.151.255
net.interface.eth0.ipv4_netmask: 21
net.interface.eth0.ipv4_netmask_list: 21
net.interface.eth0.ipv6_address.global: 2620:52:0:1097:5054:ff:fe9f:72ea
net.interface.eth0.ipv6_address.global_list: 2620:52:0:1097:5054:ff:fe9f:72ea
net.interface.eth0.ipv6_address.link: fe80::5054:ff:fe9f:72ea
net.interface.eth0.ipv6_address.link_list: fe80::5054:ff:fe9f:72ea
net.interface.eth0.ipv6_netmask.global: 64
net.interface.eth0.ipv6_netmask.global_list: 64
net.interface.eth0.ipv6_netmask.link: 64
net.interface.eth0.ipv6_netmask.link_list: 64

[root@dhcp148-149 ~]# hostname --all-fqdn
dhcp148-149.mpc.lab.eng.bos.redhat.com 

[root@dhcp148-149 ~]# 
[root@dhcp148-149 ~]# host 2620:52:0:1097:5054:ff:fe9f:72ea
Host a.e.2.7.f.9.e.f.f.f.0.0.4.5.0.5.7.9.0.1.0.0.0.0.2.5.0.0.0.2.6.2.ip6.arpa not found: 3(NXDOMAIN)

[root@dhcp148-149 ~]# 
[root@dhcp148-149 ~]# host 10.16.148.149
149.148.16.10.in-addr.arpa domain name pointer dhcp148-149.mpc.lab.eng.bos.redhat.com.
.

Actual results:
 the registration is successful with a Error message in rhsm.log ,

Expected results:
no error

Additional info:
sharing my findings from the little bit of troubleshooting i did hope this helps.I see that on a host machine that has host name set for both ipv4 and ipv6 doesnt throw any error message 

[root@hp-dl360g5-01 ~]# subscription-manager facts | grep br0.ipv
net.interface.br0.ipv4_address: 10.16.144.61
net.interface.br0.ipv4_address_list: 10.16.144.61
net.interface.br0.ipv4_broadcast: 10.16.151.255
net.interface.br0.ipv4_broadcast_list: 10.16.151.255
net.interface.br0.ipv4_netmask: 21
net.interface.br0.ipv4_netmask_list: 21
net.interface.br0.ipv6_address.global: 2620:52:0:1097:f6ce:46ff:feb3:59fe
net.interface.br0.ipv6_address.global_list: 2620:52:0:1097:f6ce:46ff:feb3:59fe
net.interface.br0.ipv6_address.link: fe80::f6ce:46ff:feb3:59fe
net.interface.br0.ipv6_address.link_list: fe80::f6ce:46ff:feb3:59fe
net.interface.br0.ipv6_netmask.global: 64
net.interface.br0.ipv6_netmask.global_list: 64
net.interface.br0.ipv6_netmask.link: 64
net.interface.br0.ipv6_netmask.link_list: 64
net.interface.virbr0.ipv4_address: 192.168.122.1
net.interface.virbr0.ipv4_address_list: 192.168.122.1
net.interface.virbr0.ipv4_broadcast: 192.168.122.255
net.interface.virbr0.ipv4_broadcast_list: 192.168.122.255
net.interface.virbr0.ipv4_netmask: 24
net.interface.virbr0.ipv4_netmask_list: 24

[root@hp-dl360g5-01 ~]# host 2620:52:0:1097:f6ce:46ff:feb3:59fe
e.f.9.5.3.b.e.f.f.f.6.4.e.c.6.f.7.9.0.1.0.0.0.0.2.5.0.0.0.2.6.2.ip6.arpa domain name pointer hp-dl360g5-01.mpc.lab.eng.bos.redhat.com.
[root@hp-dl360g5-01 ~]# 

[root@hp-dl360g5-01 ~]# host 10.16.144.61
61.144.16.10.in-addr.arpa domain name pointer hp-dl360g5-01.mpc.lab.eng.bos.redhat.com.



rhsm.log from the guest machine
==============================

2018-03-12 11:49:24,253 [INFO] subscription-manager:27612:MainThread @managercli.py:452 - X-Correlation-ID: 06b66e93d52c4e22acfd347186a159b8
2018-03-12 11:49:24,253 [INFO] subscription-manager:27612:MainThread @managercli.py:341 - Client Versions: {'subscription-manager': '1.20.10-3.git.0.05d130a.el6'}
2018-03-12 11:49:24,255 [INFO] subscription-manager:27612:MainThread @connection.py:868 - Connection built: host=subscription.rhsm.stage.redhat.com port=443 handler=/subscription auth=identity_cert ca_dir=/etc/rhsm/ca/ insecure=False
2018-03-12 11:49:24,256 [INFO] subscription-manager:27612:MainThread @connection.py:868 - Connection built: host=subscription.rhsm.stage.redhat.com port=443 handler=/subscription auth=none
2018-03-12 11:49:24,256 [INFO] subscription-manager:27612:MainThread @managercli.py:341 - Client Versions: {'subscription-manager': '1.20.10-3.git.0.05d130a.el6'}
2018-03-12 11:49:24,294 [INFO] subscription-manager:27612:MainThread @managercli.py:317 - Consumer Identity name=None uuid=None
2018-03-12 11:49:24,299 [INFO] subscription-manager:27612:MainThread @managercli.py:317 - Consumer Identity name=None uuid=None
Registering to: subscription.rhsm.stage.redhat.com:443/subscription
2018-03-12 11:49:24,300 [INFO] subscription-manager:27612:MainThread @connection.py:868 - Connection built: host=subscription.rhsm.stage.redhat.com port=443 handler=/subscription auth=basic username=stage_test_rhel74
2018-03-12 11:49:27,186 [INFO] subscription-manager:27612:MainThread @connection.py:586 - Response: status=200, requestUuid=257cdea9-b7ac-4ee0-b75a-6a52972fae76, request="GET /subscription/users/stage_test_rhel74/owners"
2018-03-12 11:49:27,644 [INFO] subscription-manager:27612:MainThread @connection.py:586 - Response: status=200, request="GET /subscription/"
2018-03-12 11:49:27,892 [ERROR] subscription-manager:27612:MainThread @hwprobe.py:649 - Error during resolving IPv6 address of hostname: dhcp148-149.mpc.lab.eng.bos.redhat.com, [Errno -2] Name or service not known

Comment 2 Kevin Howell 2018-03-15 14:48:48 UTC
Moving to RHEL7 since the issue is probably there too, and unlikely to be fixed in RHEL6.

Comment 4 Jiri Hnidek 2018-05-16 08:15:42 UTC
This bug was already fixed in another bug fix.

*** This bug has been marked as a duplicate of bug 1559743 ***