Bug 1130637
| Summary: | rhn-migrate-classic-to-rhsm fails on RHEL6 Client with "TypeError: isfile() takes exactly 1 argument (2 given)" | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | John Sefler <jsefler> |
| Component: | subscription-manager | Assignee: | candlepin-bugs |
| Status: | CLOSED ERRATA | QA Contact: | John Sefler <jsefler> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.6 | CC: | bkearney, jesusr, redakkan, tlavigne |
| Target Milestone: | rc | Keywords: | Regression |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-10-14 07:48:25 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 | ||
|
Description
John Sefler
2014-08-15 18:12:46 UTC
This issue is in
File "/usr/share/rhsm/subscription_manager/migrate/migrate.py", line 549, in clean_up
os.path.isfile(os.path.join(product_dir.path), "71.pem")
The issue is a misplaced parenthesis. The code should be
os.path.isfile(os.path.join(product_dir.path, "71.pem"))
Retested on RHEL6 variant Client x86_64 Below is the test steps followed on x86_64 machine tested on : [root@test ~]# rpm -qa | grep subscription subscription-manager-gui-1.12.13-1.el6.x86_64 subscription-manager-firstboot-1.12.13-1.el6.x86_64 subscription-manager-migration-1.12.13-1.el6.x86_64 subscription-manager-migration-data-2.0.12-1.el6.noarch subscription-manager-debuginfo-1.12.13-1.el6.x86_64 subscription-manager-1.12.13-1.el6.x86_64 1) rhel6.6 client beta # cat /etc/redhat-release Red Hat Enterprise Linux Client release 6.6 Beta (Santiago) 2)rhn_register [root@test ~]# rhnreg_ks -v --serverUrl=https://xmlrpc.rhn.code.stage.redhat.com/XMLRPC --username=qa --password=redhatqa --force --norhnsd --nohardware --nopackages --novirtinfo 3)[root@test ~]# rhn-channel --list rhel-x86_64-client-6 4)root@test ~]# rhn-migrate-classic-to-rhsm --serverurl=subscription.rhn.stage.redhat.com 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-client-6 +-----------------------------------------------------+ Installing product certificates for these RHN Classic channels: +-----------------------------------------------------+ rhel-x86_64-client-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: 283a92f2-3e18-40f0-a128-7d774ea210a1 System 'test' successfully registered to Red Hat Subscription Management. Attempting to auto-attach to appropriate subscriptions... Installed Product Current Status: Product Name: Red Hat Enterprise Linux Desktop Status: Subscribed Please visit https://access.redhat.com/management/consumers/283a92f2-3e18-40f0-a128-7d774ea210a1 to view the details, and to make changes if necessary. [root@test ~]# echo $? 0 Successfully migrated from RHN to RHSM Marking this bug to "Verified" 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 |