Bug 719460
| Summary: | spacewalk-channel --available-channels option throws AttributeError under Python 2.4.x | ||
|---|---|---|---|
| Product: | [Community] Spacewalk | Reporter: | Reed Loden <reed> |
| Component: | Clients | Assignee: | Tomas Lestach <tlestach> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Red Hat Satellite QA List <satqe-list> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 1.4 | CC: | tlestach |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-12-22 16:51:30 UTC | Type: | --- |
| 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: | 723481 | ||
Aligning under space16. Correct. urlparse.SplitResult is available since Python 2.5. The issue was fixed as part of Bug 713548 Spacewalk 1.6 has been released. |
spacewalk-channel throws an AttributeError when the --available-channels (also known as -L) is used. # spacewalk-channel --available-channels Username: Password: Traceback (most recent call last): File "/usr/sbin/spacewalk-channel", line 145, in ? main() File "/usr/sbin/spacewalk-channel", line 137, in main channels = get_available_channels(OPTIONS.user, OPTIONS.password) File "/usr/sbin/spacewalk-channel", line 90, in get_available_channels satellite_url = urlparse.SplitResult(parts.scheme, parts.netloc, '/rpc/api', AttributeError: 'module' object has no attribute 'SplitResult' Line 90: satellite_url = urlparse.SplitResult(parts.scheme, parts.netloc, '/rpc/api', parts.query, parts.fragment).geturl() Version-Release number of selected component (if applicable): # rpm -q rhn-client-tools rhn-client-tools-1.4.16-1.el5 Additional info: On CentOS 5.6 with Python 2.4.3. ParseResult.geturl() wasn't added until Python 2.5.x. Sadly, CentOS 5 / RHEL5 ship with Python 2.4.x. :(