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

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

    <bug>
          <bug_id>37720</bug_id>
          
          <creation_ts>2020-01-08 00:40:21 +0300</creation_ts>
          <short_desc>Пропала сеть в hsh-run после обновления до hasher-1.4.1-alt1</short_desc>
          <delta_ts>2023-11-23 19:19:42 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>hasher</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="viy">viy</reporter>
          <assigned_to name="Dmitry V. Levin">ldv</assigned_to>
          <cc>at</cc>
    
    <cc>boot.efi</cc>
    
    <cc>glebfm</cc>
    
    <cc>ldv</cc>
    
    <cc>mike</cc>
    
    <cc>placeholder</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>186756</commentid>
    <comment_count>0</comment_count>
    <who name="viy">viy</who>
    <bug_when>2020-01-08 00:40:21 +0300</bug_when>
    <thetext>$ host google.com
google.com has address 64.233.165.139
[...]

$ hsh --with-stuff --initroot-only
$ hsh-install /usr/bin/host
share_network=1 hsh-run /usr/bin/host google.com
;; connection timed out; no servers could be reached

раньше работало, заметил, когда после обновления сломался cronbuild.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>186757</commentid>
    <comment_count>1</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2020-01-08 00:45:32 +0300</bug_when>
    <thetext>* Thu Nov 07 2019 Dmitry V. Levin &lt;ldv@altlinux&gt; 1.4.1-alt1
- hsh-initroot:
  + disabled copying of resolver configuration files from host system
    by default (by Gleb Fotengauer-Malinovskiy);

$ git show 1.4.1-alt1~
commit 91d61bd1716014259015721094884a758a8ffe08
Author: Gleb Fotengauer-Malinovskiy &lt;glebfm@altlinux&gt;
Date:   Fri Sep 6 15:10:02 2019 +0300

    hsh-initroot: do not copy resolver configuration files from host system by default
    
    create_chroot() no longer copies /etc/hosts, /etc/host.conf
    and /etc/resolv.conf files from host system by default.
    
    Old behaviour can be re-enabled using new
    install_resolver_configuration_files config file variable.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>186758</commentid>
    <comment_count>2</comment_count>
    <who name="viy">viy</who>
    <bug_when>2020-01-08 15:24:41 +0300</bug_when>
    <thetext>спасибо!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>186838</commentid>
    <comment_count>3</comment_count>
    <who name="viy">viy</who>
    <bug_when>2020-01-11 00:27:53 +0300</bug_when>
    <thetext>в /usr/bin/hsh-sh-functions:install_resolver_configuration_files=
поэтому вызовы вида
install_resolver_configuration_files=1 hsh --with-stuff --initroot-only
не работают, /etc/resolv.conf пуст.
/etc/resolv.conf используется в 
gear-cronbuild-apply-hooks-in-hsh-chroot

надо убрать в /usr/bin/hsh-sh-functions:install_resolver_configuration_files=
или ввести явную опцию командной строки, 

также очень желательно
запоминать значение install_resolver_configuration_files при создании кеша
и очищать cache при не совпадении.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>186845</commentid>
    <comment_count>4</comment_count>
    <who name="viy">viy</who>
    <bug_when>2020-01-11 11:06:29 +0300</bug_when>
    <thetext>я пока откатился на 1.4.0-alt2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>186856</commentid>
    <comment_count>5</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2020-01-11 15:17:09 +0300</bug_when>
    <thetext>(In reply to comment #3)
&gt; в /usr/bin/hsh-sh-functions:install_resolver_configuration_files=

В этом файле все переменные так проинициализированы.

&gt; поэтому вызовы вида
&gt; install_resolver_configuration_files=1 hsh --with-stuff --initroot-only
&gt; не работают, /etc/resolv.conf пуст.

Такой способ вызовов никогда не поддерживался.

&gt; /etc/resolv.conf используется в 
&gt; gear-cronbuild-apply-hooks-in-hsh-chroot
&gt; 
&gt; надо убрать в /usr/bin/hsh-sh-functions:install_resolver_configuration_files=

Для таких переменных всегда была такая инициализация, вряд ли стоит сейчас это менять.

&gt; или ввести явную опцию командной строки,

Можно, но тогда надо придумать ей имя.

&gt; также очень желательно
&gt; запоминать значение install_resolver_configuration_files при создании кеша
&gt; и очищать cache при не совпадении.

Согласен.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>237753</commentid>
    <comment_count>6</comment_count>
    <who name="viy">viy</who>
    <bug_when>2023-11-23 19:19:42 +0300</bug_when>
    <thetext>переводил cronbuild на новую ноду, вспомнил по этот баг.
сел писать предлагаемый патч, и вдруг понял - а зачем он нужен?
в новых hasher мне достаточно после initroot явно скопировать настройки сети 
с помощью hsh-copy, что и было сделано в новом gear-cronbuild.

Баг закрываю.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>