Bug 464475
| Summary: | satellite 5.1.1 multi-org: unable to rhnpush packages when switching between orgs unless --no-session-caching is specified | ||
|---|---|---|---|
| Product: | [Community] Spacewalk | Reporter: | Michael Mráka <mmraka> |
| Component: | Server | Assignee: | Michael Mráka <mmraka> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Devan Goodwin <dgoodwin> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 0.2 | CC: | bperkins, cperry, dgoodwin, jesusr |
| 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: | 2009-09-17 07:06:34 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: | 456552 | ||
|
Description
Michael Mráka
2008-09-29 11:24:27 UTC
Fixed in git, commit aa029e72a8aaa2472aa516d5ca5ac7101aae3b3c. Looks like a problem here. I tested by first attempting a re-upload of a package I'd uploaded previously to my primary org, just to make sure I got the session caching information. [root@dhcp77-231 CentOS]# rhnpush --nosig --channel=test-channel --server=http://dhcp77-231.rhndev.redhat.com/APP zsh-4.2.6-1.i386.rpm --newest This complains without --newest but with it just prompted me for username and password and then said no packages to upload. Subsequent re-runs stopped asking for username and password. [root@dhcp77-231 CentOS]# rhnpush --nosig --channel=test-channel --server=http://dhcp77-231.rhndev.redhat.com/APP zsh-4.2.6-1.i386.rpm --newest No new files to upload; exiting Then I attempted to upload to a channel created in another org specifying that org user on the command line: [root@dhcp77-231 CentOS]# rhnpush --nosig --channel=org2-channel --server=http://dhcp77-231.rhndev.redhat.com/APP zsh-4.2.6-1.i386.rpm --newest --username admin2 --password dog8code Error Message: You are not allowed to manage channel org2-channel, or that channel does not exist Error Class Code: 32 Error Class Info: Channel error Explanation: An error has occurred while processing your request. If this problem persists please enter a bug report at bugzilla.redhat.com. If you choose to submit the bug report, please be sure to include details of what you were trying to do when this error occurred and details on how to reproduce this problem. Adding --no-session-caching again and the command succeeds and the package is uploaded: [root@dhcp77-231 CentOS]# rhnpush --nosig --channel=org2-channel --server=http://dhcp77-231.rhndev.redhat.com/APP zsh-4.2.6-1.i386.rpm --newest --username admin2 --password dog8code --no-session-caching This leads me to believe there is still a caching bug in play here. (possibly when the original username+password is not specified directly on the cmdline) Going to move to fails_qa and bump to spacewalk 0.4. [root@dhcp77-231 ~]# rpm -qf `type -p rhnpush` rhnpush-0.2.4-1.el5.sw Please test with rhnpush-0.3.1-1. Verified in sw 0.5. Better late than never. Spacewalk 0.4 has been released for some time. |