Issue #8656
closedRemove external call from 0061_call_handle_artifact_checksums_command
Description
Calling management command from migrations eventually leads to breaking the migration tree in new installations, once the models used in handle-artifact-checksums
go out of sync with schema valid during application of this particular migration.
Migrations must not depend on models neither directly nor indirectly (through management commands).
Possible workaround would be to replace calling management command in the migration with noop
.
Updated by fao89 over 3 years ago
- Triaged changed from No to Yes
- Sprint set to Sprint 95
Updated by bmbouter over 3 years ago
From the pulpcore meeting today, we're going to ensure the code used in the migration will only use code that constructs models from the db.
Was that the only issue you saw here? I had heard that there was an error experienced at upgrade time but I don't see the details here.
Using a noop is not a reasonable option because then the pulp installer, pulp containers, katello installer, individual users, galaxy-ng, etc, etc would all have to handle this manually. This is was the reason it's in the migrations to start with.
Updated by daviddavis over 3 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to daviddavis
Updated by pulpbot over 3 years ago
- Status changed from ASSIGNED to POST
Added by daviddavis over 3 years ago
Updated by daviddavis over 3 years ago
- Status changed from POST to MODIFIED
Applied in changeset pulpcore|20fa101a6b805a197b4e5688c4991aed0531ef35.
Updated by pulpbot over 3 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Change migration to use django's get_model
fixes #8656