After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 765298 - Add support for multiple resources with the same name in a collection
Add support for multiple resources with the same name in a collection
Status: RESOLVED OBSOLETE
Product: libgovirt
Classification: Other
Component: general
0.3.x
Other Linux
: Normal normal
: ---
Assigned To: libgovirt maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2016-04-20 08:52 UTC by Christophe Fergeau
Modified: 2021-05-25 11:23 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Christophe Fergeau 2016-04-20 08:52:39 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 ;) »
Comment 1 Christophe Fergeau 2016-06-16 09:43:23 UTC
Could be done as part of bug #767723
Comment 2 André Klapper 2021-05-25 11:23:43 UTC
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.