Skip to content

packaging: remove glance repo (migration) - #1136

Open
sp-viktori wants to merge 1 commit into
oVirt:masterfrom
sp-viktori:migrate-remove-glance
Open

packaging: remove glance repo (migration)#1136
sp-viktori wants to merge 1 commit into
oVirt:masterfrom
sp-viktori:migrate-remove-glance

Conversation

@sp-viktori

Copy link
Copy Markdown
Contributor

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

  • Migration script to remove the decommissioned Glance repo (glance.ovirt.org)

Are you the owner of the code you are sending in, or do you have permission of the owner?

Yes

@sp-viktori

Copy link
Copy Markdown
Contributor Author

@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 inst_add_iso_storage_domain that is now unused, not sure if we should drop that from inst_sp.sql. The web admin code to add external providers does not use it, neither does the API path. It was only for the installation code.

@dupondje dupondje left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>
@sp-viktori
sp-viktori force-pushed the migrate-remove-glance branch from 4a4fd52 to 1368d44 Compare April 22, 2026 15:19
@sp-viktori

Copy link
Copy Markdown
Contributor Author

Updated the change to also drop the stored procedure (yes it was actually inst_add_glance_provider :D ).

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?

@sp-viktori
sp-viktori marked this pull request as ready for review June 15, 2026 07:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants