<?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>6521</bug_id>
          
          <creation_ts>2014-07-10 10:53:35 +0000</creation_ts>
          <short_desc>Some images have 2 dhcp clients and that causes problems</short_desc>
          <delta_ts>2014-09-08 10:19:14 +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.7</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>1.7 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Stoicescu Cornel">corneliux.stoicescu</reporter>
          <assigned_to name="Saul Wold">sgw</assigned_to>
          <cc>andrax.g.necula</cc>
          
          <qa_contact name="Andra Necula">andrax.g.necula</qa_contact>
          <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>44414</commentid>
    <comment_count>0</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2014-07-10 10:53:35 +0000</bug_when>
    <thetext>As the title says, some images like core-image-sato-sdk have 2 DHCP clients and this causes a conflict. 

The the case of core-image-sato-sdk, there is connman and busibox&apos;s udhcpc.

Steps to reproduce:
1) Boot the image inside a network that has a fast IP address renewing DHCP server. In our case the IP was given on a per-MAC basis.
2) issue &apos;ps | grep dhcp&quot; and notice:
root@genericx86-64:~# ps | grep dhcp
  650 root      4728 S    udhcpc -R -b -p /var/run/udhcpc.eth0.pid -i eth0
3) Wait for the dhcp lease to expire. Notice in /var/log/messages:
...
Jul 10 11:30:27 genericx86-64 daemon.info connmand[660]: eth0 {del} route 0.0.0.0 gw 192.168.99.1 scope 0 &lt;UNIVERSE&gt;
Jul 10 11:30:27 genericx86-64 daemon.info connmand[660]: eth0 {add} route 0.0.0.0 gw 192.168.99.1 scope 0 &lt;UNIVERSE&gt;
Jul 10 11:30:27 genericx86-64 daemon.info connmand[660]: eth0 {del} route 0.0.0.0 gw 192.168.99.1 scope 0 &lt;UNIVERSE&gt;
Jul 10 11:30:27 genericx86-64 daemon.info connmand[660]: eth0 {add} route 0.0.0.0 gw 192.168.99.1 scope 0 &lt;UNIVERSE&gt;
Jul 10 11:30:27 genericx86-64 daemon.info connmand[660]: eth0 {del} route 0.0.0.0 gw 192.168.99.1 scope 0 &lt;UNIVERSE&gt;
Jul 10 11:30:27 genericx86-64 daemon.info connmand[660]: eth0 {add} route 0.0.0.0 gw 192.168.99.1 scope 0 &lt;UNIVERSE&gt;
Jul 10 11:30:27 genericx86-64 daemon.info connmand[660]: eth0 {del} route 0.0.0.0 gw 192.168.99.1 scope 0 &lt;UNIVERSE&gt;
Jul 10 11:30:27 genericx86-64 daemon.info connmand[660]: eth0 {add} route 0.0.0.0 gw 192.168.99.1 scope 0 &lt;UNIVERSE&gt;
...

These messages go on forever and the result is intermittent loss connectivity. Operations such as using the smart package manager are affected and sometimes fail with &apos;Network is unreachable&apos;.

4) issue &apos;ps | grep dhcp&quot; and notice:
root@genericx86-64:~# ps | grep dhcp
  650 root      4728 S    udhcpc -R -b -p /var/run/udhcpc.eth0.pid -i eth0
  807 root      4728 S    run-parts -a renew /etc/udhcpc.d
  808 root     18840 R    {50default} /bin/sh /etc/udhcpc.d/50default renew

NOTES:
- killing the &quot;{50default} /bin/sh /etc/udhcpc.d/50default renew&quot; process solves the issue for the moment. Rebooting the image will bring it back though.
- Issuing &apos;smart remove busybox-udhcpc&apos; will permanently solve the issue, even though &apos;ps | grep dhcp&apos;  still shows the same as with the package installed:
root@genericx86-64:~# ps | grep dhcp
  650 root      4728 S    udhcpc -R -b -p /var/run/udhcpc.eth0.pid -i eth0
- The only images I tested so far for this are core-image-sato-sdk for genericx86-64 and beaglebone.
- An email thread on the subject: https://lists.connman.net/pipermail/connman/2013-December/016272.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44452</commentid>
    <comment_count>1</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2014-07-11 17:37:41 +0000</bug_when>
    <thetext>Good news, I can reproduce this, so I will continue to bang on it</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45014</commentid>
    <comment_count>2</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2014-08-07 15:28:10 +0000</bug_when>
    <thetext>
This patch makes busybox aware of EXTERNAL client and adds busybox into the known clients

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=a40db96621fdbc36889a53279aa8840513444a76</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45437</commentid>
    <comment_count>3</comment_count>
    <who name="Andra Necula">andrax.g.necula</who>
    <bug_when>2014-09-08 10:19:14 +0000</bug_when>
    <thetext>Hello,

Just checked on an core-image-sato-sdk on an emenlow, and now only one dhcp client (via connman) is available. Also did checks on /var/log/messages and no occurrences of the reported issue can be found. I will mark this bug as verified.

Andra,</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>