Existence of /usr/lib/pulp/plugins/types/deb.json will prevent migration 0004 from working.
/usr/lib/pulp/plugins/types/deb.json is apparently a legacy way for pulp plugins to declare their unit keys.
The existence of this file causes a different mechanism for index creation to be used during db migrations.
This mechanism is incompatible with pulp_deb migration 0004.
Both testing and discussions with other developers suggest that this file is no longer needed and can simply be removed. (I am not aware of any plugins besides pulp_deb still packaging this file).
To stop this file from being packaged will require both a change in pulp_deb and in pulp-packaging repositories.
I will add PRs referencing this issue against both repositories soon.
Remove /usr/lib/pulp/plugins/types/deb.json from pulp-deb
This file is a legacy way to provide plugin type definitions and is no
longer needed. The presence of this file will break reindex migrations.
WARNING: Also requires a change in pulp_deb:
Please register to edit this issue