Project

Profile

Help

Story #5540

closed

As a pulp_rpm user, I can use S3

Added by daviddavis over 4 years ago. Updated almost 4 years ago.

Status:
CLOSED - WORKSFORME
Priority:
Normal
Assignee:
Sprint/Milestone:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:
Actions #1

Updated by ttereshc over 4 years ago

  • Tags Pulp 3 RPM blocker added
Actions #2

Updated by fao89 over 4 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to fao89
Actions #3

Updated by fao89 over 4 years ago

Tested locally and it worked:

(pulp) [vagrant@pulp3-source-fedora30 pulp_rpm]$ http :/pulp/content/foo/repodata/repomd.xml                                                                                                  
HTTP/1.1 302 Found                                                                                                                                                                            
Connection: keep-alive                                                                                                                                                                        
Content-Length: 10                                                                                                                                                                            
Content-Type: text/xml; charset=utf-8                                                                                                                                                         
Date: Tue, 15 Oct 2019 17:48:21 GMT                                                                                                                                                           
Location: https://test-pulp3.s3.amazonaws.com/artifact/fb/2ddbdf0689028acbadecc3e796975a9e644ffe1a14a41a6242f8d6b4b7f6a7?AWSAccessKeyId=AKIAQRVJBDFSPGVZ57G6&Signature=DnMz6TnNFlIUjCIvuF1ACtp
UCVI%3D&Expires=1571165301                                                                                                                                                                    
Server: nginx/1.16.1                                                                                                                                                                          

302: Found                    
(pulp) [vagrant@pulp3-source-fedora30 pulp_rpm]$ sudo dnf install walrus                                                                                                                      
foo                                                            3.6 kB/s | 7.3 kB     00:02                                                                                                    
Last metadata expiration check: 0:00:01 ago on Tue 15 Oct 2019 06:02:33 PM UTC.                                                                                                               
Dependencies resolved.                                                                                                                                                                        
===============================================================================================                                                                                               
 Package               Architecture          Version                  Repository          Size                                                                                                
===============================================================================================                                                                                               
Installing:                                    
 walrus                noarch                5.21-1                   foo                1.8 k

Transaction Summary                            
===============================================================================================
Install  1 Package                             

Total download size: 1.8 k
Installed size: 42                             
Is this ok [y/N]: y                            
Downloading Packages:                          
walrus-5.21-1.noarch.rpm                                       2.3 kB/s | 1.8 kB     00:00    
-----------------------------------------------------------------------------------------------
Total                                                          2.3 kB/s | 1.8 kB     00:00     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction                            
  Preparing        :                                                                       1/1 
  Installing       : walrus-5.21-1.noarch                                                  1/1 
  Verifying        : walrus-5.21-1.noarch                                                  1/1 

Installed:                                     
  walrus-5.21-1.noarch                         

Complete!                                      

The only thing that I've found is that workflow docs are out of date, it does not show how to handle tasks.
Issue #4455 still affecting S3 setting.
Docs (https://docs.pulpproject.org/en/3.0/nightly/installation/storage.html#amazon-s3) mention:

you’ll need to set DEFAULT_FILE_STORAGE to storages.backends.s3boto3.S3Boto3Storage in your Pulp settings. At a minimum, you’ll also need to set AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, and AWS_STORAGE_BUCKET_NAME.

But when I not set: S3_USE_SIGV4 and AWS_S3_SIGNATURE_VERSION, I got 302

Actions #4

Updated by fao89 over 4 years ago

  • Status changed from ASSIGNED to CLOSED - WORKSFORME
Actions #5

Updated by bmbouter almost 4 years ago

  • Tags deleted (Pulp 3 RPM blocker)

Also available in: Atom PDF