canonical/lxd

Spelling error in instance snapshot deletion trigger name

markylaing opened this issue · 2 comments

See #13846 (comment)_

We'll need a DB patch to fix this.

@markylaing can @kadinsayani help with this?

@markylaing can @kadinsayani help with this?

Yes that would be great. For this, we need a patch (see lxd/patches.go) to be applied at stage patchPreLoadClusterConfig that deletes the on_instance_snaphot_delete trigger (note spelling error) if it exists. The deletion trigger for the instance_snapshot entity type needs to be updated to have the correct spelling.

Note that we only need the patch to run once, ideally on the leader.