Hi,
I tried to use the subscription-manager on SUSE SLES11 and SLES12 and recognized, that socket.gethostname() on these systems will just return the "hostname" without the FQDN. I guess, usually you want to register the system with the FQDN on candlepin.
So, the question is, why is "socket.gethostname()" used instead of "socket.getfqdn()"? Do I need to configure something before or should the subscription-manager use socket.getfqdn() instead (which I did to get it working and therefore I could provide the patch for it).
Best regards, Bernhard
Hi Bernhard:
On RHEL, socket.gethostname() will return the FQDN, and since SUSE isn't *yet* fully supported, it was probably just an oversight on our part. I'd suggest that you create a bug [1], and as always, patches are always welcome!! [2]
-mstead
[1] https://bugzilla.redhat.com/enter_bug.cgi?product=Red%20Hat%20Enterprise%20L... [2] https://github.com/candlepin/subscription-manager
Hi,
thank you for your quick answer. See:
https://github.com/candlepin/subscription-manager/pull/1609
Best regards, Bernhard
-- ATIX - The Linux & Open Source Company www.atix.de
candlepin@lists.stg.fedorahosted.org