Bug 58433 - Ошибка конфигурации NTP
Summary: Ошибка конфигурации NTP
Status: NEW
Alias: None
Product: Branch p11
Classification: Unclassified
Component: ansible-freeipa (show other bugs)
Version: unspecified
Hardware: x86_64 Linux
: P5 normal
Assignee: Slava Aseev
QA Contact: qa-p11@altlinux.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-03-30 14:27 MSK by Божченко Павел Александрович
Modified: 2026-03-30 15:35 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 Божченко Павел Александрович 2026-03-30 14:27:56 MSK
Версия пакета:
ansible-freeipa-1.12.0-alt1

Шаги воспроизведения:
(Требуются два стенда: клиент и сервер)
Настройка сервера:
# echo "<SERVER_IP> ipa.example.test ipa" >> /etc/hosts
# hostnamectl set-hostname ipa.example.test && reboot
# apt-get install -y freeipa-server
# ipa-server-install --domain=example.test --realm=EXAMPLE.TEST --ds-password=DMPassword1 --admin-password=12345678 --hostname=ipa.example.test -U

Настройка клиента:
# echo "<SERVER_IP> ipa.example.test ipa" >> /etc/hosts
# echo "<CLIENT_IP> comp01.example.test comp01" >> /etc/host
# hostnamectl set-hostname comp01.example.test && reboot
# apt-get install -y openssh-askpass-common ansible-freeipa
# control sshd-permit-root-login enabled
# systemctl restart sshd
# ssh-copy-id root@comp01.example.test
# mkdir -p ~/ipa-test/inventory

Файл ~/ipa-test/inventory/hosts:
[ipaclients]
comp01.example.test 

[ipaservers]
ipa.example.test

[ipaclients:vars]
ansible_user=root
ipaclient_domain=example.test
ipaclient_realm=EXAMPLE.TEST
ipaadmin_principal=admin
ipaadmin_password=12345678

Файл ~/ipa-test/install-client.yml:
---
- name: Playbook to configure IPA clients with username/password
  hosts: ipaclients
  become: true

  roles:
  - role: ipaclient
    state: present


Запуск playbook:
# ansible-playbook -v -i inventory/hosts install-client.yml 

Ожидаемый результат: успешная настройка клиента FreeIPA
Фактический результат:
[ERROR]: Task failed: Module failed: cannot import name 'sync_time' from 'ansible.module_utils.ansible_ipa_client' (/tmp/.private/root/ansible_ipaclient_setup_ntp_payload_tzga0j1d/ansible_ipaclient_setup_ntp_payload.zip/ansible/module_utils/ansible_ipa_client.py)
Origin: /usr/share/ansible/roles/ipaclient/tasks/install.yml:87:5

85       state: absent
86
87   - name: Install - Configure NTP
       ^ column 5

fatal: [comp01.example.test]: FAILED! => {"changed": false, "msg": "Task failed: Module failed: cannot import name 'sync_time' from 'ansible.module_utils.ansible_ipa_client' (/tmp/.private/root/ansible_ipaclient_setup_ntp_payload_tzga0j1d/ansible_ipaclient_setup_ntp_payload.zip/ansible/module_utils/ansible_ipa_client.py)"}


Ошибка не воспроизводится в Sisyphus на версии ansible-freeipa-1.16.0-alt1
Comment 1 Alexander Makeenkov 2026-03-30 15:35:30 MSK
https://packages.altlinux.org/ru/tasks/413577