Bug 1416904
Summary: | regression - Unable to upload packages to a repository | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Roman Plevka <rplevka> | ||||||||
Component: | Repositories | Assignee: | Justin Sherrill <jsherril> | ||||||||
Status: | CLOSED ERRATA | QA Contact: | jcallaha | ||||||||
Severity: | high | Docs Contact: | |||||||||
Priority: | high | ||||||||||
Version: | 6.2.7 | CC: | bbuckingham, bkearney, brubisch, ehelms, fgarciad, jcallaha, jsherril, lpramuk, mburgerh, mmccune, mtenheuv, pdwyer, xdmoon, zhunting | ||||||||
Target Milestone: | Unspecified | Keywords: | Regression, Triaged | ||||||||
Target Release: | Unused | ||||||||||
Hardware: | Unspecified | ||||||||||
OS: | Unspecified | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | tfm-rubygem-katello-3.0.0.95-1 | Doc Type: | If docs needed, set a value | ||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | Environment: | ||||||||||
Last Closed: | 2017-01-30 15:36:38 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: | 1115190 | ||||||||||
Attachments: |
|
Description
Roman Plevka
2017-01-26 18:27:30 UTC
Created redmine issue http://projects.theforeman.org/issues/18272 from this bug Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/18272 has been resolved. Verification work shows the upload functionality is back in a functional state. Steps ----- 1. Create a custom product 2. Create a new yum/puppet/file repository 3. Navigate into the repository details, and click the 'Choose Files' button. 4. Select one or more file(s) to upload. 5. Click the 'Upload' button. 6. Verify that all valid packages were uploaded. Results ------- All valid content for yum, puppet, and file type repositories were successfully uploaded. See attached screenshots for UI confirmation, and well as example hammer successes below. -- RHEL 6 -- -bash-4.1# hammer -u admin -p changeme repository upload-content --id 1 --product-id 1 --path facter-2.4.6-3.el7sat.x86_64.rpm Successfully uploaded file 'facter-2.4.6-3.el7sat.x86_64.rpm'. -- RHEL 7 -- -bash-4.2# hammer -u admin -p changeme repository upload-content --id 66 --product-id 432 --path facter-2.4.6-3.el7sat.x86_64.rpm Successfully uploaded file 'facter-2.4.6-3.el7sat.x86_64.rpm'. Example of successful multiple package upload routed through API 2017-01-27 21:01:33 [app] [I] Started POST "/katello/api/v2/repositories/1/upload_content" for 10.10.116.74 at 2017-01-27 21:01:33 +0100 2017-01-27 21:01:33 [app] [I] Processing by Katello::Api::V2::RepositoriesController#upload_content as HTML 2017-01-27 21:01:33 [app] [I] Parameters: {"content"=>[#<ActionDispatch::Http::UploadedFile:0x007fb8e94b7590 @tempfile=#<Tempfile:/tmp/RackMultipart20170127-23736-17njxuy>, @original_filename="python-gofer-2.7.6-1.el7sat.noarch (1).rpm", @content_type="application/x-rpm", @headers="Content-Disposition: form-data; name=\"content[]\"; filename=\"python-gofer-2.7.6-1.el7sat.noarch (1).rpm\"\r\nContent-Type: application/x-rpm\r\n">, #<ActionDispatch::Http::UploadedFile:0x007fb8e94b7568 @tempfile=#<Tempfile:/tmp/RackMultipart20170127-23736-1xdyqg>, @original_filename="python-gofer-proton-2.7.6-1.el7sat.noarch.rpm", @content_type="application/x-rpm", @headers="Content-Disposition: form-data; name=\"content[]\"; filename=\"python-gofer-proton-2.7.6-1.el7sat.noarch.rpm\"\r\nContent-Type: application/x-rpm\r\n">, #<ActionDispatch::Http::UploadedFile:0x007fb8e94b7540 @tempfile=#<Tempfile:/tmp/RackMultipart20170127-23736-1py11bz>, @original_filename="python-gofer-2.7.6-1.el7sat.noarch.rpm", @content_type="application/x-rpm", @headers="Content-Disposition: form-data; name=\"content[]\"; filename=\"python-gofer-2.7.6-1.el7sat.noarch.rpm\"\r\nContent-Type: application/x-rpm\r\n">, #<ActionDispatch::Http::UploadedFile:0x007fb8e94b7518 @tempfile=#<Tempfile:/tmp/RackMultipart20170127-23736-zjm64p>, @original_filename="puppet-3.8.6-2.el7sat.noarch.rpm", @content_type="application/x-rpm", @headers="Content-Disposition: form-data; name=\"content[]\"; filename=\"puppet-3.8.6-2.el7sat.noarch.rpm\"\r\nContent-Type: application/x-rpm\r\n">, #<ActionDispatch::Http::UploadedFile:0x007fb8e94b74f0 @tempfile=#<Tempfile:/tmp/RackMultipart20170127-23736-m3u7qr>, @original_filename="pulp-rpm-handlers-2.8.7.5-1.el7sat.noarch.rpm", @content_type="application/x-rpm", @headers="Content-Disposition: form-data; name=\"content[]\"; filename=\"pulp-rpm-handlers-2.8.7.5-1.el7sat.noarch.rpm\"\r\nContent-Type: application/x-rpm\r\n">, #<ActionDispatch::Http::UploadedFile:0x007fb8e94b74c8 @tempfile=#<Tempfile:/tmp/RackMultipart20170127-23736-1rijyih>, @original_filename="pulp-puppet-tools-2.8.7.1-1.el7sat.noarch.rpm", @content_type="application/x-rpm", @headers="Content-Disposition: form-data; name=\"content[]\"; filename=\"pulp-puppet-tools-2.8.7.1-1.el7sat.noarch.rpm\"\r\nContent-Type: application/x-rpm\r\n">, #<ActionDispatch::Http::UploadedFile:0x007fb8e94b74a0 @tempfile=#<Tempfile:/tmp/RackMultipart20170127-23736-4zxf50>, @original_filename="libtasn1-3.8-3.el7.x86_64.rpm", @content_type="application/x-rpm", @headers="Content-Disposition: form-data; name=\"content[]\"; filename=\"libtasn1-3.8-3.el7.x86_64.rpm\"\r\nContent-Type: application/x-rpm\r\n">, #<ActionDispatch::Http::UploadedFile:0x007fb8e94b7478 @tempfile=#<Tempfile:/tmp/RackMultipart20170127-23736-vnrwfv>, @original_filename="katello-agent-2.5.0-5.el7sat.noarch.rpm", @content_type="application/x-rpm", @headers="Content-Disposition: form-data; name=\"content[]\"; filename=\"katello-agent-2.5.0-5.el7sat.noarch.rpm\"\r\nContent-Type: application/x-rpm\r\n">], "authenticity_token"=>"rlSm5spyM/oSS4HNtspKIELKFYF//64fomyVnzQBkEE=", "api_version"=>"v2", "id"=>"1"} 2017-01-27 21:01:38 [app] [I] Completed 200 OK in 5231ms (Views: 0.4ms | ActiveRecord: 24.9ms) Package versions tested ----------------------- -- RHEL 6 -- tfm-rubygem-foreman-redhat_access noarch 1.0.15-1.el6sat tfm-rubygem-katello noarch 3.0.0.95-1.el6sat tfm-rubygem-rbovirt noarch 0.0.38-1.el6sat tfm-rubygem-redhat_access_lib noarch 1.0.6-1.el6sat -- RHEL 7 -- tfm-rubygem-foreman-redhat_access noarch 1.0.15-1.el7sat tfm-rubygem-katello noarch 3.0.0.95-1.el7sat tfm-rubygem-katello_ostree noarch 3.0.0.95-1.el7sat tfm-rubygem-redhat_access_lib noarch 1.0.6-1.el7sat Created attachment 1245270 [details]
verification screenshot 1
Created attachment 1245271 [details]
verification screenshot 2
Created attachment 1245272 [details]
verification screenshot 3
Additionally, the uploaded content is present in the filesystem Uploaded rpm content on the filesystem -------------------------------------- -bash-4.1# pwd /var/lib/pulp/published/yum/http/repos/Default_Organization/Library/custom/test_upload/test_before -bash-4.1# ls facter-2.4.6-3.el7sat.x86_64.rpm pulp-puppet-tools-2.8.7.1-1.el7sat.noarch.rpm python-gofer-2.7.6-1.el7sat.noarch.rpm katello-agent-2.5.0-5.el7sat.noarch.rpm pulp-rpm-handlers-2.8.7.5-1.el7sat.noarch.rpm python-gofer-proton-2.7.6-1.el7sat.noarch.rpm libtasn1-3.8-3.el7.x86_64.rpm puppet-3.8.6-2.el7sat.noarch.rpm repodata Uploaded puppet content on the filesystem ----------------------------------------- -bash-4.2# pwd /var/lib/pulp/uploads -bash-4.2# ll total 192K -rw-r--r--. 1 apache apache 34K Jan 27 21:32 puppetlabs-apt-1.4.2.tar.gz -rw-r--r--. 1 apache apache 18K Jan 27 21:32 puppetlabs-concat-1.0.2.tar.gz -rw-r--r--. 1 apache apache 24K Jan 27 21:32 puppetlabs-inifile-1.0.3.tar.gz -rw-r--r--. 1 apache apache 60K Jan 27 21:32 puppetlabs-postgresql-3.3.3.tar.gz -rw-r--r--. 1 apache apache 20K Jan 27 21:32 puppetlabs-reboot-0.1.5.tar.gz -rw-r--r--. 1 apache apache 32K Jan 27 21:32 puppetlabs-registry-1.0.0.tar.gz Uploaded file content on the filesystem --------------------------------------- -bash-4.1# pwd /var/lib/pulp/published/http/isos/Default_Organization-test_upload-test_file -bash-4.1# ls 6-2 vdc.zip esx.conf PULP_MANIFEST testvirt.json testvirt.txt Verified in Satellite 6.2.7 Async packages outlined in #8, based on the results outlined in #8 and #12. 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. https://access.redhat.com/errata/RHBA-2017:0209 |