Skip to content

Migrations fail on the feature branch because search indexing is run before later schema changes #11658

@kkthxbye-code

Description

@kkthxbye-code

NetBox version

v3.5.0-dev

Python version

3.10

Steps to Reproduce

  1. Checkout the feature branch
  2. Run ./upgrade.sh on a clean database

Expected Behavior

The upgrade script should finish.

Observed Behavior

Migration log and exception:

https://gist.github.com/kkthxbye-code/4dd23a639bf0af94e856032fbac83920

The error is caused because extras.0083_search runs before dcim.0167_module_status. The search migration runs the search indexing command, which queries the Module model, which fails because the Model doesn't match the database yet. We might need to remove the indexing command and re-think how initial search indexing should be executed.

Metadata

Metadata

Assignees

Labels

betaConcerns a bug/feature in a beta releasestatus: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions