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

Tiago Zaniquelli zani0x03 at protonmail.com
Mon Jun 7 21:35:50 BST 2021


Ahhh, ok.

I tried to simulate, but for me everything is ok, and I'm inside the container

Could you help me simulate?

Regards,

Tiago Zaniquelli

Sent with [ProtonMail](https://protonmail.com) Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
Em segunda-feira, junho 7, 2021 3:43 PM, Fioddor Superconcentrado <fioddor at gmail.com> escreveu:

> 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/56ff7428/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Imagem colada-Mon Jun 07 2021 173445 GMT-0300 (Brasilia Standard Time).png
Type: image/png
Size: 64370 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/freedombox-discuss/attachments/20210607/56ff7428/attachment-0001.png>


More information about the Freedombox-discuss mailing list