Skip to content

Improve st2mistral DB upgrade logic #112

@arm4b

Description

@arm4b

According to https://docs.stackstorm.com/install/upgrades.html

Mistral DB upgrading may be required after every st2mistral package update:

# Stop related services
service mistral-api stop
service mistral stop

# Upgrade database
/opt/stackstorm/mistral/bin/mistral-db-manage --config-file /etc/mistral/mistral.conf upgrade head
/opt/stackstorm/mistral/bin/mistral-db-manage --config-file /etc/mistral/mistral.conf populate

# Restart related services
service mistral start
service mistral-api start

TODO

  • Implement migration logic in st2mistral role
  • Verify if service start/stop is a required step

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions