<?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>3227</bug_id>
          
          <creation_ts>2012-10-04 06:58:54 +0000</creation_ts>
          <short_desc>connman sanity tests fail (autobuilder)</short_desc>
          <delta_ts>2013-03-08 08:24:40 +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.3</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.4 M4</target_milestone>
          
          <blocked>3804</blocked>
    
    <blocked>3843</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Constantin Musca">constantinx.musca</reporter>
          <assigned_to name="Cristian Iorga">cristian.iorga</assigned_to>
          <cc>alexandru.damian</cc>
    
    <cc>cristian.iorga</cc>
    
    <cc>laurentiu.serban</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>mihai.lindner</cc>
    
    <cc>nitin.a.kamble</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>26192</commentid>
    <comment_count>0</comment_count>
    <who name="Constantin Musca">constantinx.musca</who>
    <bug_when>2012-10-04 06:58:54 +0000</bug_when>
    <thetext>Autobuilder log:
Buildslave for this Build: *ab02.i.yoctoproject.org*
Complete logs for all build steps:
http://autobuilder.yoctoproject.org:8010/builders/nightly-mips/builds/648
Build Reason: Triggerable(nightly-mips)
Build Source Stamp: *[branch master]
8609051d8d4f9fa565eb48418a87fa0048613374*
/Detailed log of last build step:/
http://autobuilder.yoctoproject.org:8010/builders/nightly-mips/builds/648/steps/shell_38/logs/stdio

        Last 20 lines of &quot;shell_38.stdio&quot; Error log:

| The authenticity of host &apos;192.168.7.2 (192.168.7.2)&apos; can&apos;t be established.
| RSA key fingerprint is 64:f2:9b:ff:86:aa:02:17:e6:f8:24:7a:59:60:3f:ad.
| Are you sure you want to continue connecting (yes/no)? yes
| Warning: Permanently added &apos;192.168.7.2&apos; (RSA) to the list of known hosts.
| root@192.168.7.2&apos;s password:
| Test_Info: Shutdown Test PASS
| NOTE: Test Result for qemumips core-image-sato
| NOTE: Testcase PASS FAIL NORESULT
| NOTE: SSH 1 0 0
| NOTE: SCP 1 0 0
| NOTE: dmesg 1 0 0
| NOTE: zypper_help 1 0 0
| NOTE: zypper_search 1 0 0
| NOTE: rpm_query 1 0 0
| NOTE: connman 0 1 0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26193</commentid>
    <comment_count>1</comment_count>
    <who name="Constantin Musca">constantinx.musca</who>
    <bug_when>2012-10-04 07:30:42 +0000</bug_when>
    <thetext>I can&apos;t reproduce this locally. The connman sanity test fails if connmand doesn&apos;t exist in the `ps -ef` output . This might happen if the test is run before connmand is started.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27023</commentid>
    <comment_count>2</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2012-10-30 05:41:28 +0000</bug_when>
    <thetext>*** Bug 3354 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27705</commentid>
    <comment_count>3</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2012-11-26 23:09:31 +0000</bug_when>
    <thetext>Status Check?  We are still seeing failures on Connman?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27757</commentid>
    <comment_count>4</comment_count>
    <who name="Mihai Lindner">mihai.lindner</who>
    <bug_when>2012-11-27 23:23:53 +0000</bug_when>
    <thetext>It seems that there&apos;s a conflict between `avahi-daemon` and `connmand` over the ipv6 address of the network interface.

Pasting relevant logs from /var/log/messages capturing backtrace of `connmand`:

&quot;&quot;&quot;
Nov 27 23:12:29 qemux86-64 user.debug kernel: eth0: no IPv6 routers present
Nov 27 23:13:49 qemux86-64 daemon.err connmand[416]: connman_inet_clear_address: Invalid argument
Nov 27 23:13:49 qemux86-64 daemon.err connmand[416]: connman_inet_clear_address: Invalid argument
Nov 27 23:13:49 qemux86-64 daemon.err connmand[416]: connman_inet_clear_address: Invalid argument
Nov 27 23:13:49 qemux86-64 daemon.err connmand[416]: connman_inet_clear_ipv6_address: Invalid argument
Nov 27 23:13:49 qemux86-64 daemon.info avahi-daemon[476]: Withdrawing address record for fe80::5054:ff:fe12:3456 on eth0.
Nov 27 23:13:49 qemux86-64 daemon.err connmand[416]: connman_inet_clear_address: Invalid argument
Nov 27 23:13:49 qemux86-64 daemon.err connmand[416]: connman_inet_clear_ipv6_address: Invalid argument
Nov 27 23:13:49 qemux86-64 daemon.err connmand[416]: Aborting (signal 11) [/usr/sbin/connmand]
Nov 27 23:13:49 qemux86-64 daemon.err connmand[416]: ++++++++ backtrace ++++++++
Nov 27 23:13:49 qemux86-64 daemon.err connmand[416]: #0  0x7f5b08829b20 in /lib/libpthread.so.0
Nov 27 23:13:49 qemux86-64 daemon.err connmand[416]: #1  0x7f5b091971ae in /usr/lib/libglib-2.0.so.0
Nov 27 23:13:49 qemux86-64 daemon.err connmand[416]: #2  0x44fc02 in /usr/sbin/connmand
Nov 27 23:13:49 qemux86-64 daemon.err connmand[416]: #3  0x414ed0 in /usr/sbin/connmand
Nov 27 23:13:49 qemux86-64 daemon.err connmand[416]: #4  0x7f5b091794e5 in /usr/lib/libglib-2.0.so.0
Nov 27 23:13:49 qemux86-64 daemon.err connmand[416]: #5  0x7f5b09179818 in /usr/lib/libglib-2.0.so.0
Nov 27 23:13:49 qemux86-64 daemon.err connmand[416]: #6  0x7f5b09179c12 in /usr/lib/libglib-2.0.so.0
Nov 27 23:13:49 qemux86-64 daemon.err connmand[416]: #7  0x40e616 in /usr/sbin/connmand
Nov 27 23:13:49 qemux86-64 daemon.err connmand[416]: #8  0x7f5b08076755 in /lib/libc.so.6
Nov 27 23:13:49 qemux86-64 daemon.err connmand[416]: +++++++++++++++++++++++++++
&quot;&quot;&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27802</commentid>
    <comment_count>5</comment_count>
    <who name="Mihai Lindner">mihai.lindner</who>
    <bug_when>2012-11-28 17:02:03 +0000</bug_when>
    <thetext>After more runs on this, i can say this is producible only on hosts with Debian.
And mostly when an image is at its first boot.

Assigning to Cristi, for connman update, which might fix the `connmand` crash.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27960</commentid>
    <comment_count>6</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2012-12-04 15:41:50 +0000</bug_when>
    <thetext>Hi Mihai,

What version of connman exhibits the stated behavior?

Version 1.4?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27961</commentid>
    <comment_count>7</comment_count>
    <who name="Mihai Lindner">mihai.lindner</who>
    <bug_when>2012-12-04 15:45:54 +0000</bug_when>
    <thetext>(In reply to comment #6)
&gt; Hi Mihai,
&gt; 
&gt; What version of connman exhibits the stated behavior?
&gt; 
&gt; Version 1.4?

Yes. The abort was produced on Connman version 1.4, running under QEMU on a Debian OS host.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29999</commentid>
    <comment_count>8</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2013-02-21 09:47:17 +0000</bug_when>
    <thetext>Technical solution is found.
Implementation is in the work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30001</commentid>
    <comment_count>9</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2013-02-21 13:25:11 +0000</bug_when>
    <thetext>Issue: connman overwrites all previous net interface settings for wired connection (eth0). Afterwards, connman tries to obtain a valid IP address via DHCP, fails, eventually settling for a Zeroconf IP address, which prevents qemu machine from getting connectivity.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30002</commentid>
    <comment_count>10</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2013-02-21 13:38:02 +0000</bug_when>
    <thetext>Possible technical solutions according to Marcel Holtmann:

Hello all; I have this situation; connman is used in a qemu machine, so no DHCP or any other autoconfiguration mechanism is present
&lt;cristianiorga&gt; qemu linux machine (guest) starts, connman enters the scene, and it wipes the static config done for eth0
&lt;cristianiorga&gt; but it can obtain anything else but a zeroconf addres
&lt;holtmann&gt; That is expected behavior.
&lt;cristianiorga&gt; I tried to solve this one by blacklisting eth
&lt;cristianiorga&gt; but, in that case, i cannot control at all eth0 via connman
&lt;holtmann&gt; Also expected behavior.
&lt;cristianiorga&gt; yes
&lt;cristianiorga&gt; I know that :-D
&lt;cristianiorga&gt; How can I solve this one?
&lt;holtmann&gt; Configure static IP for eth0. Hope that the MAC address stays the same and is not changed on every boot.
&lt;cristianiorga&gt; The intention is in the beginning connman should see that eth0 already has an address assigned, but it should still be able to control that interface
&lt;holtmann&gt; No. That intention is wrong.
&lt;holtmann&gt; ConnMan has full control over the interface and will clear all IPs.
&lt;cristianiorga&gt; OK. Where that static address should be configured?
&lt;cristianiorga&gt; in main.conf?
&lt;holtmann&gt; If you have other network configuration scripts in the background, then ConnMan will not play with them. We are not trying to make that work at all.
&lt;holtmann&gt; Right now, only over D-Bus or with connmanctl.
&lt;cristianiorga&gt; But if I configure a static IP address via other means than connman, will connman still be avle to provide an offline mode?
&lt;holtmann&gt; Nope.
&lt;holtmann&gt; It is not designed for that. If you want to manually go behind ConnMan&apos;s back, all bets are off.
&lt;holtmann&gt; I would just run Qemu with providing a network with DHCP server. That is how I start my KVMs.
&lt;cristianiorga&gt; OK, but I can configure eth0 with a static address via connman and still be able to activate offline mode?
&lt;holtmann&gt; Once you set static addresses via ConnMan D-Bus API, then yes, you can use offline/online mode settings.
&lt;cristianiorga&gt; we are using TUN, and we don&apos;t want our machine to depend on a specific network config
&lt;cristianiorga&gt; (I am working on YP on INtel&apos;s behalf)
&lt;holtmann&gt; You need to have network config somewhere.
&lt;holtmann&gt; If it is static on the client or central as DHCP server does not matter much. Unless zeroconf is good enough for you. Which you get with ConnMan in case DHCP fails.
&lt;cristianiorga&gt; Right. Thanks you Marcel. I guess that  &quot;set static addresses vpy			&quot; is the right answer for me
&lt;holtmann&gt; Most likely it is.
&lt;holtmann&gt; Ethernet provisioning is on the TODO list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30003</commentid>
    <comment_count>11</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2013-02-21 13:40:04 +0000</bug_when>
    <thetext>Technical solution:

1. Extract network interface settings transmitted by runqemu script via kernel cmdline params
2. Set this params using connmanctl CLI interface</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30333</commentid>
    <comment_count>12</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2013-03-01 16:52:15 +0000</bug_when>
    <thetext>Actually, the second part is done using Ethernet provisioning from Connman 1.12</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30565</commentid>
    <comment_count>13</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2013-03-08 08:23:06 +0000</bug_when>
    <thetext>Fixed with commit 6159ad1063f4be518d8f0a1c024f12fc16d13592.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30566</commentid>
    <comment_count>14</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2013-03-08 08:24:40 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=6159ad1063f4be518d8f0a1c024f12fc16d13592</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>