packaging: remove glance repo (migration) - #1136
Conversation
|
@dupondje I've created this draft PR to remove the decommissioned repo (by strict UUID and url match) as a migration script. Without it admins can still remove it manually from the external providers list view. Also there is a stored procedure |
dupondje
left a comment
There was a problem hiding this comment.
I guess you mean inst_add_glance_provider ? :)
Drop it indeed, if it's used nowhere else.
Next to that, thinking if we shouldn't verify in the procedure that nothing (no disks/templates/whatever) use the storage domain.
If nothing uses it, I think we can safely drop it. If something uses it, I would skip removal?
Remove the defunct Glance repo if it was ever added previously and still retains the exact same parameters and UUIDs and there are no current references to it. Remove no longer used inst_add_glance_provider stored procedure. Signed-off-by: Viktor Ivanov <viktor.ivanov@storpool.com>
4a4fd52 to
1368d44
Compare
|
Updated the change to also drop the stored procedure (yes it was actually Also added checks for all the hard FKs: if anything still references any of the static ids we don't touch the data itself (admin can still go and delete it from the web interface). There are two "soft" references that are not counted: the audit log and permissions. Not touching the audit log seems obvious but not sure about the permissions. The install steps do not add permissions, so only an admin could've done it, so this might be counted as a reason enough not to delete the entries? |
Remove the defunct Glance repo if it was ever added previously and still retains the exact same parameters and UUIDs.
Changes introduced with this PR
Are you the owner of the code you are sending in, or do you have permission of the owner?
Yes