<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>5361</bug_id>
          
          <creation_ts>2013-10-16 15:59:12 +0000</creation_ts>
          <short_desc>resolvconf fail to change dns-nameservers from /etc/network/interfaces</short_desc>
          <delta_ts>2014-12-03 18:22:17 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>11</classification_id>
          <classification>Runtime</classification>
          <product>General Runtime</product>
          <component>General Runtime</component>
          <version>1.5</version>
          <rep_platform>Other</rep_platform>
          <op_sys>arm</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.7</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Davide Soldan">davide.soldan</reporter>
          <assigned_to name="Saul Wold">sgw</assigned_to>
          <cc>diego.ml</cc>
    
    <cc>jessica.zhang</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>37988</commentid>
    <comment_count>0</comment_count>
    <who name="Davide Soldan">davide.soldan</who>
    <bug_when>2013-10-16 15:59:12 +0000</bug_when>
    <thetext>branch: dora
commit id (meta-yocto): 56f39bcf2237c11508d82238b6292e4bfbfed764
          (meta-fsl-arm): 00f0cf377224829f450d99bdc4664ffe96623996
          (meta-fsl-arm-extra): 12af63db7719877fd191ed2aa921a455a04f677b
          (meta-fsl-demos): 393b0119d513f9abf7b0570ab0d32b81583dedca

Hi,
I&apos;m running an image that inherit core-image on a nitrogen6x and with resolvconf-1.74-r0 package installed.

I want to change the ip of the dns-nameservers in /etc/network/interfaces for eth0. After changing the interfaces file I cannot update /etc/resolv.conf with neither of the commands;
- resolvconf -a eth0 (it hangs and doesn&apos;t return)
- resolvconf -u (it returns with no return messages)
- resolvconf -d eth0 (does nothing)
- ifdown eth0, ifup eth0
- reboot

so I cannot reflect the change made in /etc/network/interfaces...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39432</commentid>
    <comment_count>1</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2013-12-16 23:14:57 +0000</bug_when>
    <thetext>Resolvconf -a is not intended to be run from the command line, it&apos;s designed to 
take input from stdin via the dhcp client enter hook, ppp or  ifdown/ifup 
scripts, this might be why you are having issues.  Since this is a shell 
script, if you have further issues, please use sh -x to help better understand 
the failure.

So, even a reboot does not work?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39433</commentid>
    <comment_count>2</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2013-12-16 23:15:07 +0000</bug_when>
    <thetext>.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39812</commentid>
    <comment_count>3</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2014-01-14 19:15:40 +0000</bug_when>
    <thetext>Since I have not heard back, I am closing this out, please reopen and provide 
updates if we still feel this is a bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39835</commentid>
    <comment_count>4</comment_count>
    <who name="Davide Soldan">davide.soldan</who>
    <bug_when>2014-01-15 16:14:04 +0000</bug_when>
    <thetext>Hi Saul,
excuse me for the late reply.
No, even a reboot does not work.
But maybe I&apos;m doing the wrong things...my procedure is:
- I manually change the dns-nameservers entry (for example for eth0) in /etc/network/interfaces
- I try to update the /etc/resolv.conf file with resolvconf command
- reboot

maybe is not the right way to change dns-nameserver informations?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47090</commentid>
    <comment_count>5</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2014-11-19 16:46:41 +0000</bug_when>
    <thetext>Davide, I am still working this one in the background, I have a new question: 
what network management are you using?  it&apos;s it just static,  busybox with 
udhcp,  the actual dhcp client or connman or ???, what exactly are you setting 
in your /etc/network/interfaces file (full entry if possible).  

I think I have finally made some progress on this!  It seems that the 
resolvconf package is not being installed correctly onto the root filesystem on 
the target image, and even then it relies on bash&apos;isms that may not be 
available with Busybox.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47100</commentid>
    <comment_count>6</comment_count>
      <attachid>2251</attachid>
    <who name="Davide Soldan">davide.soldan</who>
    <bug_when>2014-11-20 11:15:21 +0000</bug_when>
    <thetext>Created attachment 2251
/etc/network/interfaces file</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47102</commentid>
    <comment_count>7</comment_count>
    <who name="Davide Soldan">davide.soldan</who>
    <bug_when>2014-11-20 11:20:14 +0000</bug_when>
    <thetext>Hi Saul,
the network management is static. I attached my /etc/network/interfaces file.
The behavior is always the same: no updates to /etc/resolv.conf</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47178</commentid>
    <comment_count>8</comment_count>
    <who name="Diego">diego.ml</who>
    <bug_when>2014-11-25 09:50:15 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; Davide, I am still working this one in the background, I have a new
&gt; question: 
&gt; what network management are you using?  it&apos;s it just static,  busybox with 
&gt; udhcp,  the actual dhcp client or connman or ???, what exactly are you
&gt; setting 
&gt; in your /etc/network/interfaces file (full entry if possible).  
&gt; 
&gt; I think I have finally made some progress on this!  It seems that the 
&gt; resolvconf package is not being installed correctly onto the root filesystem
&gt; on 
&gt; the target image, and even then it relies on bash&apos;isms that may not be 
&gt; available with Busybox.

I&apos;ve tested v2 patch:
http://patches.openembedded.org/patch/83771/
and it works fine for me for both dhcp and static configurations.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47339</commentid>
    <comment_count>9</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2014-12-03 18:22:17 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=35e0a3eb6725781eb291b3fa90694a68c3b64c60</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>2251</attachid>
            <date>2014-11-20 11:15:21 +0000</date>
            <delta_ts>2014-11-20 11:15:21 +0000</delta_ts>
            <desc>/etc/network/interfaces file</desc>
            <filename>interfaces</filename>
            <type>text/plain</type>
            <size>281</size>
            <attacher name="Davide Soldan">davide.soldan</attacher>
            
              <data encoding="base64">IyAvZXRjL25ldHdvcmsvaW50ZXJmYWNlcyAtLSBjb25maWd1cmF0aW9uIGZpbGUgZm9yIGlmdXAo
OCksIGlmZG93big4KQogCiMgVGhlIGxvb3BiYWNrIGludGVyZmFjZQphdXRvIGxvCmlmYWNlIGxv
IGluZXQgbG9vcGJhY2sKCiMgV2lyZWQgaW50ZXJmYWNlCmF1dG8gZXRoMAppZmFjZSBldGgwIGlu
ZXQgc3RhdGljCglhZGRyZXNzIDE5Mi4xNjguMS4xMDAKCW5ldG1hc2sgMjU1LjI1NS4yNTUuMAoJ
Z2F0ZXdheSAxOTIuMTY4LjEuMjU0CglkbnMtbmFtZXNlcnZlcnMgMTkyLjE2OC4xLjI1NAo=
</data>

          </attachment>
      

    </bug>

</bugzilla>