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

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

    <bug>
          <bug_id>12786</bug_id>
          
          <creation_ts>2007-09-15 02:48:02 +0400</creation_ts>
          <short_desc>Очищается wpa_supplicant.conf</short_desc>
          <delta_ts>2008-02-27 13:15:00 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Distributions</classification>
          <product>Branch 4.0</product>
          <component>etcnet</component>
          <version>4.0</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>P2</priority>
          <bug_severity>blocker</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Anton Farygin">rider</reporter>
          <assigned_to name="Andrew Kornilov">hiddenman</assigned_to>
          <cc>boyarsh</cc>
    
    <cc>hiddenman</cc>
    
    <cc>inger</cc>
    
    <cc>mike</cc>
    
    <cc>sbolshakov</cc>
          
          <qa_contact name="Q.A. 4.0">qa-4.0</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>55195</commentid>
    <comment_count>0</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2007-09-15 02:48:03 +0400</bug_when>
    <thetext>Научился я воспроизводить эту ошибку. 

Алгоритм следующий: запустить acc, выбрать настройку сети, настройку
беспроводных интерфейсов, нажать OK, потом нажать apply в настройке интерфейса,
потом снова зайти в настройку сети - наблюдать пустой список.

Происходит это потому, что в момент попытки зайти в настройку сети интерфейс
оказывается down, а не up. Соответственно wpa_cli нет, wpa_supplicant - тоже,
настроек никаких считать не получается.

очень неприятная ошибка (особенно после того, как настроишь с десяток различных
WIFI сетей в интерфейсе), воспроизводится железно, устрановлен 4.0 Desktop с
обнлвлениями из branch/4.0 ;(

Рецвепт лечения не предлагаю - кроется это где-то во внутрях alterator-net-eth и
alterator-net-wifi.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55260</commentid>
    <comment_count>1</comment_count>
    <who name="inger@altlinux.org">inger</who>
    <bug_when>2007-09-17 09:53:46 +0400</bug_when>
    <thetext>В данном случае виноват etcnet:

Причина становится ясна, если запустить ifdown &amp;&amp; ifup вручную:
ctrl_iface exists and seems to be in use - cannot override it
Delete &apos;/var/run/wpa_supplicant/ath0&apos; manually if it is not used anymore
Failed to initialize control interface &apos;/var/run/wpa_supplicant&apos;.
You may have another wpa_supplicant process already running or the file was
left by an unclean termination of wpa_supplicant in which case you will need
to manually remove this file before starting wpa_supplicant again.

Проще говоря при опускании интерфейса etcnet не дожидается подыхания
суппликанта, и соотв. при следующем старте не может его поднять обратно ;)
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55281</commentid>
    <comment_count>2</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2007-09-17 14:21:28 +0400</bug_when>
    <thetext>Ясно. Вот примерный патч для решения этой проблемы. inotifywait из пакета
inotify-tool - c этим патчем ifdown &amp;&amp; ifup для wireless устройств отрабатывает
корректно. Пакет inotify-tools очень маленький, ничего страшного не желает кроме
glibc. в общем - его можно смело тянуть в базовую систему. lioka, что скажешь ?

diff --git a/etc/net/scripts/shutdown-eth b/etc/net/scripts/shutdown-eth
index 1613edc..b6862b3 100755
--- a/etc/net/scripts/shutdown-eth
+++ b/etc/net/scripts/shutdown-eth
@@ -2,5 +2,5 @@
 
 if [ -s &quot;/var/run/wpa_supplicant-$NAME.pid&quot; ]; then
        kill `cat /var/run/wpa_supplicant-$NAME.pid`
-       rm -f -- &quot;/var/run/wpa_supplicant-$NAME.pid&quot;
+       inotifywait -q -t 10 -e delete /var/run/wpa_supplicant-$NAME.pid
 fi

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55282</commentid>
    <comment_count>3</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2007-09-17 14:22:37 +0400</bug_when>
    <thetext>Стас, но даже исправления этой ошибки в etcnet не решает проблему -
wpa_supplicant.conf не должен очищаться ни при каких условиях.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55283</commentid>
    <comment_count>4</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2007-09-17 14:33:07 +0400</bug_when>
    <thetext>С данным патчем alterator-net-wifi не очищает конфиг wpa_supplicant.conf, если
интерфейс перед входов в настройку сети был UP.

Конфиг очищается если интерфейс был down.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55366</commentid>
    <comment_count>5</comment_count>
    <who name="inger@altlinux.org">inger</who>
    <bug_when>2007-09-18 11:48:49 +0400</bug_when>
    <thetext>Погоняйте на пользователях junior - если понравится - так и оставлю.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55370</commentid>
    <comment_count>6</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2007-09-18 12:31:20 +0400</bug_when>
    <thetext>Что погонять ?

etcnet или alterator-net-wifi ?
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55582</commentid>
    <comment_count>7</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2007-09-21 00:42:14 +0400</bug_when>
    <thetext>Есть продвижения в исправлении этой ошибки ?
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56259</commentid>
    <comment_count>8</comment_count>
    <who name="Denis Ovsienko">pilot</who>
    <bug_when>2007-10-06 22:52:20 +0400</bug_when>
    <thetext>Я обошёлся без inotifywait, исправление будет залито как версия 0.9.4. Спасибо
за предложения.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56527</commentid>
    <comment_count>9</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2007-10-14 22:40:41 +0400</bug_when>
    <thetext>Денис, залей пожалуйста 0.9.4 ещё и для branch/4.0

2boyarsh: Антон, это исправление нужно в 4.0.2 Desktop, не я один нарвался.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56602</commentid>
    <comment_count>10</comment_count>
    <who name="Denis Ovsienko">pilot</who>
    <bug_when>2007-10-16 23:36:44 +0400</bug_when>
    <thetext>*** Bug 12774 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56603</commentid>
    <comment_count>11</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2007-10-16 23:40:33 +0400</bug_when>
    <thetext>Денис, а когда можно будет увидеть этот пакет в Sisyphus ?
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56604</commentid>
    <comment_count>12</comment_count>
    <who name="Denis Ovsienko">pilot</who>
    <bug_when>2007-10-16 23:47:27 +0400</bug_when>
    <thetext>Прямо сейчас занимаюсь этим.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56675</commentid>
    <comment_count>13</comment_count>
    <who name="Denis Ovsienko">pilot</who>
    <bug_when>2007-10-18 02:44:30 +0400</bug_when>
    <thetext>Wrote: /home/pilot/RPM/RPMS/noarch/etcnet-0.9.4-alt0.1.noarch.rpm

Если никто не против, я ещё и проверить его хочу.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56728</commentid>
    <comment_count>14</comment_count>
    <who name="Denis Ovsienko">pilot</who>
    <bug_when>2007-10-19 02:07:29 +0400</bug_when>
    <thetext>0.9.4 отправлен в incoming/Sisyphus, рекомендую сначала обкатать там при возможности</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56954</commentid>
    <comment_count>15</comment_count>
    <who name="Denis Ovsienko">pilot</who>
    <bug_when>2007-10-25 01:56:30 +0400</bug_when>
    <thetext>Можно закрывать и собирать для Desktop?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57426</commentid>
    <comment_count>16</comment_count>
    <who name="Denis Ovsienko">pilot</who>
    <bug_when>2007-11-04 02:00:43 +0300</bug_when>
    <thetext>Мой тест с использованием etcnet-0.9.4-alt1 к вытиранию wpa_supplicant.conf не
привёл. Если консилиум со мной согласен, то предлагаю закрывать в обычном порядке.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64725</commentid>
    <comment_count>17</comment_count>
    <who name="Denis Ovsienko">pilot</who>
    <bug_when>2008-02-27 13:14:55 +0300</bug_when>
    <thetext>Значит, так тому и быть.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>