Project

Profile

Help

Task #8322

Updated by bmbouter over 3 years ago

In 3.10, the default for ALLOWED_CONTENT_CHECKSUMS included md5 and sha1. md5. In 3.11, it does not. 

 ## Problem 

 If the user hasn't manually brought back md5 and sha1 in the `ALLOWED_CONTENT_CHECKSUMS` setting,  

 I think this will could present a problem at upgrade time when the some problems for things like `pulpcore-manager migrate` goes to run. Specifically Pulp will refuse to run the `migrate` because Artifacts have md5 and sha1 from <3.11 and the user (and installer) never ran `pulpcore-migrate handle-artifact-checksums`. migrate`. 

 ## Experience the problem 

 1. Install a 3.10 version of pulp 
 2. Sync down https://fixtures.pulpproject.org/rpm-with-md5/ 
 3. Upgrade to 3.11 

 ## Solution 

 Have pulpcore ship a migration with 3.11 that runs the `pulpcore-migrate handle-artifact-checksums` command from the migration itself. Users can set the `ALLOWED_CONTENT_CHECKSUMS` to the checksums they desire prior to starting pulpcore 3.11 and if they do nothing this migration will ensure the don't encounter a problem.

Back