[Freedombox-discuss] issue https://salsa.debian.org/freedombox-team/freedombox/-/issues/1998

Fioddor Superconcentrado fioddor at gmail.com
Mon Jun 7 19:43:34 BST 2021

As the title says, the problem is that a test (*test_list_disks*) fails
when run in a container.

The cause for the test to fail is that "Storage page doesn't list any
drives when running in a container". Now you've found the underlying
library that provides the info about the disks.

Since the problem only seems to happen inside containers (or similar
diskless environments), FreedomBox itself isn't wrong. Only the test is.
Thus, the issue reporter suggests: "We should detect this situation and
skip the test". In other words: the tests should first check if it is
running inside a container (with systemd-detect-virt --container) and if
that's the case, it should report 'skipped' as result and skip the rest of
the test.

Hope this helps.

El lun, 7 jun 2021 a las 20:04, Tiago Zaniquelli via Freedombox-discuss (<
freedombox-discuss at alioth-lists.debian.net>) escribió:

> Hello everybody. How are you?
> I'm doing the issue
> https://salsa.debian.org/freedombox-team/freedombox/-/issues/1998... I
> thing that to found the problem, so I need help to correct. Someone Could
> help me?
> I putted some logs and discovered that the problems is in the function
> get_disks (plinth/modules/storage/udisks2.py), inside of the function
> get_disks has the follow verification
> if _INTERFACES['Block'] not in interface_and_properties:
> But the interface_and_properties doesn't have _INTERFACES['Block']. So,
> the problema is in the return of function
>     manager = _get_dbus_proxy(_OBJECTS['UDisks2'],
>                               _INTERFACES['ObjectManager'])
> The function _get_dbus_proxy call io.bus_get_sync that call gio =
> import_from_gi('Gio', '2.0')
> What is that gio = import_from_gi('Gio', '2.0')? Is it possible someone
> send me website with the documentation because i didn't found nothing
> about? So I think the problema is there.
> Anyone could me help me with this?
> Regards,
> Tiago Zaniquelli
> _______________________________________________
> Freedombox-discuss mailing list
> Freedombox-discuss at alioth-lists.debian.net
> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/freedombox-discuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/freedombox-discuss/attachments/20210607/2f3a19ba/attachment.htm>

More information about the Freedombox-discuss mailing list