Bug 1131213
Summary: | rhn-migrate-classic-to-rhsm throws gaierror: [Errno -2] Name or service not known | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | John Sefler <jsefler> | |
Component: | subscription-manager | Assignee: | Bryan Kearney <bkearney> | |
Status: | CLOSED ERRATA | QA Contact: | John Sefler <jsefler> | |
Severity: | unspecified | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 6.6 | CC: | bkearney, jesusr, tlavigne | |
Target Milestone: | rc | Keywords: | Regression | |
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: |
Cause:
CLI parameter, --serverurl, was being ignored.
Consequence:
Unable to migrate from a server given a url without specifying it in the rhsm.conf.
Fix:
Honor the serverurl parameter during migrations.
Result:
User is able to specify a server on the command line.
|
Story Points: | --- | |
Clone Of: | ||||
: | 1171808 (view as bug list) | Environment: | ||
Last Closed: | 2014-10-14 07:48:27 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: | ||||
Bug Blocks: | 1014343, 1171808, 1172203 |
Description
John Sefler
2014-08-18 17:12:54 UTC
This appears to be a regression from RHEL6.5 which passes the same test scenario.... [root@jsefler-6 ~]# rpm -q subscription-manager-migration subscription-manager-migration-1.9.11-1.el6.x86_64 [root@jsefler-6 ~]# rhnreg_ks --serverUrl=https://xmlrpc.rhn.code.stage.redhat.com/XMLRPC --username=qa --password=redhatqa --norhnsd --nohardware --nopackages --novirtinfo [root@jsefler-6 ~]# rhn-channel --list rhel-x86_64-server-6 [root@jsefler-6 ~]# subscription-manager config --server.hostname=foo.redhat.com --server.port=123 --server.prefix=/bar [root@jsefler-6 ~]# rhn-migrate-classic-to-rhsm --serverurl=subscription.rhn.stage.redhat.com:443/subscription Red Hat account: qa Password: System Engine Username: qa Password: Retrieving existing RHN Classic subscription information... +-----------------------------------------------------+ System is currently subscribed to these RHN Classic Channels: +-----------------------------------------------------+ rhel-x86_64-server-6 +-----------------------------------------------------+ Installing product certificates for these RHN Classic channels: +-----------------------------------------------------+ rhel-x86_64-server-6 Product certificates installed successfully to /etc/pki/product. Preparing to unregister system from RHN Classic... System successfully unregistered from RHN Classic. Attempting to register system to Red Hat Subscription Management... The system has been registered with ID: b04b0b82-8314-4cf0-815d-c0c4319fb5de System 'URI:CN=jsefler-6.usersys.redhat.com' successfully registered to Red Hat Subscription Management. Attempting to auto-attach to appropriate subscriptions... Installed Product Current Status: Product Name: Red Hat Enterprise Linux Server Status: Subscribed [root@jsefler-6 ~]# Pushing to 7.1 (next release cycle) per conversations with QE. should be in as of commit: edce99dcd4dffe724c72921ad4d8d8f3c1a01972 link to pr here for reference: https://github.com/candlepin/subscription-manager/commit/edce99dcd4dffe724c72921ad4d8d8f3c1a01972 Moving back to RHEL6 since the rhn-migrate-classic-to-rhsm tool is more useful on RHEL6 that RHEL7. Verifying Version... [root@jsefler-6 ~]# rpm -q subscription-manager-migration subscription-manager-migration-1.12.14-5.el6.x86_64 [root@jsefler-6 ~]# rhnreg_ks --serverUrl=https://xmlrpc.rhn.code.stage.redhat.com/XMLRPC --username=qa --password=**** --norhnsd --nohardware --nopackages --novirtinfo [root@jsefler-6 ~]# rhn-channel --list rhel-x86_64-server-6 [root@jsefler-6 ~]# subscription-manager config --server.hostname=foo.redhat.com --server.port=123 --server.prefix=/bar [root@jsefler-6 ~]# subscription-manager config | head -5 [server] hostname = foo.redhat.com insecure = [0] port = 123 prefix = /bar [root@jsefler-6 ~]# rhn-migrate-classic-to-rhsm --serverurl=subscription.rhn.stage.redhat.com:443/subscription Red Hat username: qa Red Hat password: Subscription Service username: qa Subscription Service password: Retrieving existing RHN Classic subscription information... +-----------------------------------------------------+ System is currently subscribed to these RHN Classic Channels: +-----------------------------------------------------+ rhel-x86_64-server-6 +-----------------------------------------------------+ Installing product certificates for these RHN Classic channels: +-----------------------------------------------------+ rhel-x86_64-server-6 Product certificates installed successfully to /etc/pki/product. Preparing to unregister system from RHN Classic... System successfully unregistered from RHN Classic. Attempting to register system to Red Hat Subscription Management... The system has been registered with ID: 77723f29-94a3-4748-908e-54f9b4228f03 System 'jsefler-6.usersys.redhat.com' successfully registered to Red Hat Subscription Management. Attempting to auto-attach to appropriate subscriptions... Installed Product Current Status: Product Name: Red Hat Enterprise Linux Server Status: Subscribed [root@jsefler-6 ~]# [root@jsefler-6 ~]# subscription-manager config | head -5 [server] hostname = subscription.rhn.stage.redhat.com insecure = [0] port = [443] prefix = [/subscription] [root@jsefler-6 ~]# VERIFIED: Specifying the --serverurl for rhn-migrate-classic-to-rhsm will override the values set in rhsm.conf 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. http://rhn.redhat.com/errata/RHBA-2014-1384.html |