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 1367128

Summary: [RFE] upload FQDN with facts
Product: Red Hat Enterprise Linux 6 Reporter: Justin Sherrill <jsherril>
Component: subscription-managerAssignee: Kevin Howell <khowell>
Status: CLOSED ERRATA QA Contact: John Sefler <jsefler>
Severity: medium Docs Contact:
Priority: high    
Version: 6.7CC: ahumbe, aperotti, candlepin-bugs, csnyder, jentrena, jsefler, khowell, redakkan, skallesh
Target Milestone: rcKeywords: FutureFeature, Triaged
Target Release: 6.9   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1367126 Environment:
Last Closed: 2017-03-21 10:55:31 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: 1367126    
Bug Blocks: 1355878    
Attachments:
Description Flags
GUI Fqdn fact none

Description Justin Sherrill 2016-08-15 15:49:46 UTC
+++ This bug was initially created as a clone of Bug #1367126 +++

Description of problem:

Currently subscription-manager does not upload fqdn with its facts, only equivalent of 'hostname'.  It would be very useful for it to also upload the equivalent of 'hostname -f'

I expect this would be uploaded as something like 'network.fqdn'


Version-Release number of selected component (if applicable):
subscription-manager-1.15.9-15.el7

How reproducible:
always

Steps to Reproduce:
1.  configure your system such that 'hostname' returns the host's shortname, and 'hostname -f' returns the fqdn
2.  Run 'subscription-manager facts --list | grep fqdn'

Actual results:
no fqdn listed


Expected results:
should upload fqdn.

Additional info:
This is extremely important for Satellite 6.2 and we are planning on building in support for this fact.

Some 3rd party software requires 'hostname' be set to the shortname.

Comment 3 Shwetha Kallesh 2016-11-08 10:42:09 UTC
Created attachment 1218480 [details]
GUI Fqdn fact

[root@rhel69-shwetha ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 2.0.19-1
subscription management rules: 5.20
subscription-manager: 1.18.4-1.el6
python-rhsm: 1.18.4-1.el6

[root@rhel69-shwetha ~]# hostname -f
rhel69-shwetha.usersys.redhat.com


[root@rhel69-shwetha ~]# subscription-manager facts --list | grep 'fqdn'
network.fqdn: rhel69-shwetha.usersys.redhat.com

Comment 6 errata-xmlrpc 2017-03-21 10:55:31 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2017-0698.html