GNOME Bugzilla – Bug 765298
Add support for multiple resources with the same name in a collection
Last modified: 2021-05-25 11:23:43 UTC
This came up in https://bugzilla.redhat.com/show_bug.cgi?id=1328102#c2 « This is probably caused by a libgovirt limitation where it cannot handle multiple resources/collections of a given type with the same name. My guess here would be that the 2 ISO domains are called 'isos', and then libgovirt/virt-viewer only get to see the one which is inactive. Is it possible to rename ISO domains to confirm this, or do they have to have a hardcoded name? On the libgovirt side, I think we should add a OvirtCollection::resources_uuid to use the resource uuid as the hash key rather than the resource name (we need to keep OvirtCollection::resources for ovirt_collection_get_resources() as OvirtCollection need to own the returned hash table, and this will be better for performance reasons). Then we can add an ovirt_collection_get_resources_by_uuid() method to return the new hash indexed by uuid, and use this in virt-viewer. This would allow to deal with the situation we have in this bug without breaking libgovirt ABI (which might be cleaner to do at some point though ;) »
Could be done as part of bug #767723
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version, then please follow https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines and create a new enhancement request ticket at https://gitlab.gnome.org/GNOME/libgovirt/-/issues/ Thank you for your understanding and your help.