<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>52954</bug_id>
          
          <creation_ts>2025-02-06 13:40:37 +0300</creation_ts>
          <short_desc>named-checkconf не может найти файл, который виден другим программам</short_desc>
          <delta_ts>2025-02-07 11:58:03 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Distributions</classification>
          <product>Branch p9</product>
          <component>bind</component>
          <version>не указана</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Artem Varaksa">varaksaaa</reporter>
          <assigned_to name="Stanislav Levin">slev</assigned_to>
          
          
          <qa_contact name="qa-p9@altlinux.org">qa-p9</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>258771</commentid>
    <comment_count>0</comment_count>
    <who name="Artem Varaksa">varaksaaa</who>
    <bug_when>2025-02-06 13:40:37 +0300</bug_when>
    <thetext>Шаги
====

1. Добавить второй сетевой интерфейс к ВМ с отдельным VLAN.
2. # apt-get install alterator-dhcp
3. Открыть веб-альтератор (ip:8080) &gt; Ethernet-интерфейсы.
4. Выбрать второй интерфейс &gt; Дополнительно &gt; Сетевая подсистема = NetworkManager (etcnet) &gt; Нажать ОК.
5. В поле Добавить IP ввести 192.168.0.1 &gt; Добавить &gt; Применить.
6. # named-checkconf /var/lib/bind/etc/ddns-key.conf ; echo $?

Фактический результат
=====================

# named-checkconf /var/lib/bind/etc/ddns-key.conf ; echo $?
open: /var/lib/bind/etc/ddns-key.conf: file not found
1

Ожидаемый результат
===================

# named-checkconf /var/lib/bind/etc/ddns-key.conf ; echo $?
0

Дополнительно
=============

См. также: https://bugzilla.altlinux.org/45063.

Файл существует, доступен для чтения всеми, и dhcpd может его прочитать.
Копирование файла в /tmp не помогает.
Параметр -t (https://bugzilla.altlinux.org/2366) меняет ошибку, не похоже что полезен в данном случае.

# cat /var/lib/bind/etc/ddns-key.conf
key ddns-key {
    algorithm hmac-md5;
    secret &quot;oVLzbXtSCvOLbYQuuEa9fAFkOiBNhykGPQGiJvDfTDrG1rK+jKCqGdyojYa1u9bH3X2BqmjkMr4w3C2jV64kFg==&quot;;
};

# dhcpd -t -cf /var/lib/bind/etc/ddns-key.conf ; echo $?
Internet Systems Consortium DHCP Server 4.4.3-P1
Copyright 2004-2022 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Config file: /var/lib/bind/etc/ddns-key.conf
Database file: /state/dhcpd.leases
PID file: /var/run/dhcpd.pid
0

# stat /var/lib/bind/etc/ddns-key.conf
  Файл: /var/lib/bind/etc/ddns-key.conf
  Размер: 145       	Блоков: 8          Блок В/В: 4096   обычный файл
Устройство: 801h/2049d	Инода: 675321      Ссылки: 1
Доступ: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (   25/   named)
Доступ:        2025-02-05 18:38:23.266000000 +0300
Модифицирован: 2025-02-05 18:38:23.233000000 +0300
Изменён:       2025-02-05 18:38:23.235000000 +0300
Создан:        -

# cp /var/lib/bind/etc/ddns-key.conf /tmp/ddns-key.conf
# named-checkconf /tmp/ddns-key.conf; echo $?
open: /tmp/ddns-key.conf: file not found
1

# named-checkconf -t /var/lib/bind/etc/ddns-key.conf; echo $?
isc_dir_chroot: invalid file
1

Воспроизводимость
=================

Воспроизводится на виртуальной машине:

[p9] ALT Server 9.2 x86_64
bind-9.11.37-alt1.p9.2.x86_64

Проверялось в sisyphus и p10 - файл /var/lib/bind/etc/ddns-key.conf по указанным шагам не создаётся, поэтому проверить поведение не удалось, возможно требуются дополнительные шаги.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>258824</commentid>
    <comment_count>1</comment_count>
    <who name="Stanislav Levin">slev</who>
    <bug_when>2025-02-07 11:57:52 +0300</bug_when>
    <thetext>According to https://www.altlinux.org/Branches#%D0%9F%D0%BE%D0%B4%D0%B4%D0%B5%D1%80%D0%B6%D0%B8%D0%B2%D0%B0%D0%B5%D0%BC%D1%8B%D0%B5_%D0%B2%D0%B5%D1%82%D0%BA%D0%B8


P9 reached its EOL.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>