<?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>4587</bug_id>
          
          <creation_ts>2013-05-31 14:43:16 +0000</creation_ts>
          <short_desc>DNS not working with connman in qemu image</short_desc>
          <delta_ts>2013-10-07 09:26:16 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>connectivity</component>
          <version>1.4.1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</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.5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Cristian Iorga">cristian.iorga</assigned_to>
          <cc>jukka.rissanen</cc>
    
    <cc>marc.ferland</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>33456</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2013-05-31 14:43:16 +0000</bug_when>
    <thetext>I built a core-image-sato-sdk image for qemux86 from my dylan-next branch and it seems that DNS is not set up out of the box - I could ping internet IP addresses but not google.com etc. Adding a DNS server manually e.g. 8.8.8.8 to /etc/resolv.conf fixed the problem, but surely with connman I shouldn&apos;t need to do this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33492</commentid>
    <comment_count>1</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2013-06-03 10:32:52 +0000</bug_when>
    <thetext>This issue is related only to quemu machines.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33554</commentid>
    <comment_count>2</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2013-06-04 16:34:05 +0000</bug_when>
    <thetext>Can you explain in more details?  Is this fixable, is it really a connman issue or because we don&apos;t use connman for qemu images?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33605</commentid>
    <comment_count>3</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2013-06-05 06:39:47 +0000</bug_when>
    <thetext>Connman is used for core-image-sato qemu images, for example.
It is not a connman issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35445</commentid>
    <comment_count>4</comment_count>
    <who name="Jukka Rissanen">jukka.rissanen</who>
    <bug_when>2013-08-07 07:07:58 +0000</bug_when>
    <thetext>If some additional DNS servers need to be configured to ConnMan, one option is to add them to /etc/connman/main.conf FallbackNameservers option.

&lt;snip from main.conf&gt;
# List of fallback nameservers separated by &quot;,&quot; appended
# to the list of nameservers given by the service. The
# nameserver entries must be in numeric format, host
# names are ignored.
# FallbackNameservers =
&lt;/snip&gt;

The nameservers can also configured to provisioned .config file to Nameservers option. See http://git.kernel.org/cgit/network/connman/connman.git/tree/doc/config-format.txt for details.

Normally ConnMan will get the DNS servers via DHCP but qemu uses static IP address so DNS servers are not set up.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36349</commentid>
    <comment_count>5</comment_count>
    <who name="Marc Ferland">marc.ferland</who>
    <bug_when>2013-09-05 16:17:12 +0000</bug_when>
    <thetext>I am facing a similar issue here.

My setup involves booting from nfsroot. I am able to &apos;ping 8.8.8.8&apos; but &apos;ping google.com&apos; does not work. I think this might be related to the fact that the connman init script ignores ethX when it detects we&apos;re booting from nfsroot. Ignoring the interface must also skip the name resolving setup on this interface consequently.

A simple solution in this case would be to link /proc/net/pnp to /etc/resolv.conf. It seems to work on my side. Someone could try it in the qemu case to see if it solves the issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36364</commentid>
    <comment_count>6</comment_count>
    <who name="Jukka Rissanen">jukka.rissanen</who>
    <bug_when>2013-09-06 07:26:16 +0000</bug_when>
    <thetext>I just sent a patch that only ignores the interface that is used by NFS root.

See http://lists.openembedded.org/pipermail/openembedded-core/2013-September/083958.html for details.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37251</commentid>
    <comment_count>7</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2013-09-26 14:20:25 +0000</bug_when>
    <thetext>Investigation started.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37384</commentid>
    <comment_count>8</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2013-10-01 09:45:45 +0000</bug_when>
    <thetext>Bug is present also on current master.
However, depends if one will consider this to be a bug.
Meaning, the most probable technical solution will be to use a global DNS server.
Which might be considered by some people a privacy issue, knowing that each page visited might be intercepted by a 3rd party, in this case, Google.
On the other hand, given the restricted scope of the proposed technical solution, I consider this to be acceptable.

This is happening only in two cases:
1. HW BSP that boots from NFS
2. QEMU machines all architectures
Another necessary condition is that connman needs to get used as network manager in that specific image.

Let&apos;s analyze them:

1. In case nfsroot is used to boot up the system, connman will be instructed to ignore the nfsroot-enabled interface;
What can be done here is to configure a global DNS fallback server (Google&apos;s 8.8.8.8 is a good candidate) for connman
2. For qemu machines we can configure a global DNS server (same as above) in the wired config.

Stage 2 will be implemented before Stage 1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37612</commentid>
    <comment_count>9</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2013-10-04 10:30:54 +0000</bug_when>
    <thetext>Global connman fallback DNS is used as a solution, by using a distro variable.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37613</commentid>
    <comment_count>10</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2013-10-04 10:32:15 +0000</bug_when>
    <thetext>Blocked by: https://01.org/jira/browse/CM-652
Connman is malfunctioning regarding to FallbackNameservers configuration implementation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37618</commentid>
    <comment_count>11</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2013-10-04 12:35:26 +0000</bug_when>
    <thetext>Stage 1 implementation sent for review.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37619</commentid>
    <comment_count>12</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2013-10-04 12:36:31 +0000</bug_when>
    <thetext>Alternate implementation has been used.
Regarding the scope of this bug, the issue is fixed in the patch fix sent.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37663</commentid>
    <comment_count>13</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2013-10-07 09:25:32 +0000</bug_when>
    <thetext>See bug 5322 for stage 2.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37664</commentid>
    <comment_count>14</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2013-10-07 09:26:16 +0000</bug_when>
    <thetext>Fixed with commit:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=540c27906a3a946878989ee736f0576cccbc6336 .</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>