Bug 53015 - Тест is_resolve_local отрабатывает не корректно
Summary: Тест is_resolve_local отрабатывает не корректно
Status: NEW
Alias: None
Product: Sisyphus
Classification: Development
Component: diag-domain-controller (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Andrey Limachko
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-10 15:07 MSK by Aleksandr Sysoev
Modified: 2025-02-10 15:08 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aleksandr Sysoev 2025-02-10 15:07:40 MSK
p10-server-10.2-x86-64 обновлённый до актуального состояния Sisyphus.
Сетевая служба systemd-networkd

# rpm -qa | grep diag-domain-controller
diag-domain-controller-0.2-alt1.noarch

Шаги воспроизведения:
1. Развернуть Samba
2. Выполнить: # diag-domain-controller is_resolve_local

Ожидаемый результат: тест проходит успешно

Фактический результат:
=================================================
In the resolv.conf file, the first line is a line other than nameserver 127.0.0.1 - is not correct

=================================================
[FAIL]: is_resolve_local

При этом в /etc/resolv.conf:
nameserver 127.0.0.1
search samba.testdomain
_________________________

Доп. исследование:

Но, если с сетевой службой NetworkManager тест проходит успешно, содержимое /etc/resolv.conf следующее:
# cat /etc/resolv.conf
search samba.testdomain
nameserver 127.0.0.1

Результат теста с NetworkManager:
# diag-domain-controller is_resolve_local

=================================================
In the resolv.conf file, the first line is nameserver 127.0.0.1 - everything is correct.

=================================================
[DONE]: is_resolve_local

Если исходить из той логики, что пишет сам тест, то есть "In the resolv.conf file, the first line is nameserver 127.0.0.1", однако в случае с NM, запись"nameserver 127.0.0.1" не первая строка, а вторая, но тест проходит. А в случае с systemd-networkd как раз таки данная запись идёт первой строкой, но тест падает.