Bug 849494
Summary: | rhn-migrate-classic-to-rhsm fails when rhn/up2date is configured for a proxy | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | John Sefler <jsefler> |
Component: | subscription-manager | Assignee: | Alex Wood <awood> |
Status: | CLOSED ERRATA | QA Contact: | Entitlement Bugs <entitlement-bugs> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 5.9 | CC: | bgollahe, spandey |
Target Milestone: | rc | Keywords: | Regression |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: |
Cause: Usage of the same variable name in rhn-migrate-classic-to-rhsm
Consequence: Migration failed when RHN was configured to use a proxy.
Fix: Remove the variable name collision.
Result: Migration now works through a proxy.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2013-01-08 03:59:28 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: | 771748 |
Description
John Sefler
2012-08-20 00:44:07 UTC
commit f3bac76bf0a3a139e8ecfb6179a47e7e5f104f5a Refs: <origin/awood/849494>, awood/849494, subscription-manager-1.0.14-1-3-gf3b~ Author: Alex Wood <awood> AuthorDate: Mon Aug 20 12:52:26 2012 -0400 Commit: Alex Wood <awood> CommitDate: Mon Aug 20 12:54:37 2012 -0400 849494: Fix variable name collision. Verifying Version... [root@jsefler-59server ~]# rpm -q subscription-manager-migration python-rhsm subscription-manager-migration-1.0.17-1.el5 python-rhsm-1.0.7-1.el5 ### CONFIGURING RHSM.CONF FOR MIGRATION TO RHN STAGE ENVIRONMENT... [root@jsefler-59server ~]# subscription-manager config --server.hostname=subscription.rhn.stage.redhat.com [root@jsefler-59server ~]# subscription-manager clean All local data removed ### CONFIGURING A BASIC AUTH PROXY FOR RHN/UP2DATE... [root@jsefler-59server ~]# sed -i 's/^enableProxy\s*=.*$/enableProxy=1/g' /etc/sysconfig/rhn/up2date [root@jsefler-59server ~]# sed -i 's/^httpProxy\s*=.*$/httpProxy=http:\/\/auto-services.usersys.redhat.com:3128/g' /etc/sysconfig/rhn/up2date [root@jsefler-59server ~]# sed -i 's/^enableProxyAuth\s*=.*$/enableProxyAuth=1/g' /etc/sysconfig/rhn/up2date [root@jsefler-59server ~]# sed -i 's/^proxyUser\s*=.*$/proxyUser=redhat/g' /etc/sysconfig/rhn/up2date [root@jsefler-59server ~]# sed -i 's/^proxyPassword\s*=.*$/proxyPassword=redhat/g' /etc/sysconfig/rhn/up2date [root@jsefler-59server ~]# [root@jsefler-59server ~]# grep -i proxy /etc/sysconfig/rhn/up2date enableProxyAuth[comment]=To use an authenticated proxy or not enableProxyAuth=1 enableProxy[comment]=Use a HTTP Proxy enableProxy=1 proxyPassword[comment]=The password to use for an authenticated proxy proxyPassword=redhat proxyUser[comment]=The username for an authenticated proxy proxyUser=redhat httpProxy[comment]=HTTP proxy in host:port format, e.g. squid.redhat.com:3128 httpProxy=http://auto-services.usersys.redhat.com:3128 [root@jsefler-59server ~]# ### REGISTERING TO RHN HOSTED ON STAGE ENVIRONMENT... [root@jsefler-59server ~]# rhnreg_ks --serverUrl=https://xmlrpc.rhn.code.stage.redhat.com/XMLRPC --username=qa --password=**** --profilename=rhsm-automation --force --norhnsd --nohardware --nopackages --novirtinfo [root@jsefler-59server ~]# rhn-channel --list rhel-x86_64-server-5 [root@jsefler-59server ~]# grep ID- /etc/sysconfig/rhn/systemid <value><string>ID-1023064203</string></value> ### MIGRATING FROM RHN CLASSIC TO RED HAT SUBSCRIPTION MANAGEMENT (ON STAGE)... [root@jsefler-59server ~]# rhn-migrate-classic-to-rhsm Red Hat account: qa Password: Retrieving existing RHN Classic subscription information ... +----------------------------------+ System is currently subscribed to these RHN Classic Channels: +----------------------------------+ rhel-x86_64-server-5 +--------------------------------------------------+ Installing product certificates for these RHN Classic channels: +--------------------------------------------------+ rhel-x86_64-server-5 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: 59b55eab-17c1-40b2-9a6c-4d63973f5ed3 System 'jsefler-59server.usersys.redhat.com' successfully registered to Red Hat Subscription Management. Attempting to auto-subscribe to appropriate subscriptions ... Installed Product Current Status: Product Name: Red Hat Enterprise Linux Server Status: Subscribed Please visit https://access.redhat.com/management/consumers/59b55eab-17c1-40b2-9a6c-4d63973f5ed3 to view the details, and to make changes if necessary. [root@jsefler-59server ~]# grep proxy /etc/rhsm/rhsm.conf # an http proxy server to use proxy_hostname =auto-services.usersys.redhat.com # port for http proxy server proxy_port =3128 # user name for authenticating to an http proxy, if needed proxy_user =redhat # password for basic http proxy auth, if needed proxy_password =redhat ^^^ VERIFIED: The migration succeeded AND transferred the proxy information from /etc/sysconfig/rhn/up2date to /etc/rhsm/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-2013-0033.html |