<?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>6922</bug_id>
          
          <creation_ts>2014-11-03 08:33:36 +0000</creation_ts>
          <short_desc>The network doesn&apos;t work in BA when using kvm with libvirt</short_desc>
          <delta_ts>2014-11-08 08:30:22 +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>Runtime</product>
          <component>build-appliance</component>
          <version>1.7</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.8 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yi Zhao">yi.zhao</reporter>
          <assigned_to name="Cristian Iorga">cristian.iorga</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>ke.zou</cc>
    
    <cc>zhangle.yang</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Used to work)</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>46718</commentid>
    <comment_count>0</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2014-11-03 08:33:36 +0000</bug_when>
    <thetext>Image location: http://downloads.yoctoproject.org/releases/yocto/yocto-1.7/build-appliance/

Git rev: dizzy/924da20c6f2f183fa7e930e4c3c6b14c090acbe5

Test environment: Ubuntu 12.04 x86_64

I tried to bootup the BA by using kvm with libvirt (Please see https://bugzilla.yoctoproject.org/tr_show_case.cgi?case_id=323  Set Up/Break Down section for the detailed method). The system can boot up but the network can not access the external network. This used to work in Yocto 1.6.

##############################
# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 52:54:00:99:41:3C  
          inet addr:169.254.202.151  Bcast:169.254.255.255  Mask:255.255.0.0
          inet6 addr: fe80::5054:ff:fe99:413c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:10 errors:0 dropped:0 overruns:0 frame:0
          TX packets:40 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:2294 (2.2 KiB)  TX bytes:9431 (9.2 KiB)

# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         *               0.0.0.0         U     0      0        0 eth0
169.254.0.0     *               255.255.0.0     U     0      0        0 eth0

##############################

The eth0 is set an invalid ip 169.254.x.x, it should be 192.168.122.x.

After some more testings, I believe it is a connman issue. I tried connman 1.22 (the version in Yocto 1.6), 1.23, 1.24, 1.25 (The current version in master/dizzy), and 1.26. The 1.24 and 1.25 don&apos;t work, and others work well. Here is the output for connman 1.26:
##############################
# ifconfig
eth0      Link encap:Ethernet  HWaddr 52:54:00:99:41:3C  
          inet addr:192.168.122.252  Bcast:192.168.122.255  Mask:255.255.255.0
          inet6 addr: fe80::5054:ff:fe99:413c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:20 errors:0 dropped:0 overruns:0 frame:0
          TX packets:80 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:2307 (2.2 KiB)  TX bytes:16016 (15.6 KiB)

# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         pek-yocto-build 0.0.0.0         UG    0      0        0 eth0
192.168.122.0   *               255.255.255.0   U     0      0        0 eth0
192.168.122.1   *               255.255.255.255 UH    0      0        0 eth0
########################

So, the easiest way to fix this issue is upgrade connman to the latest version (1.26)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46738</commentid>
    <comment_count>1</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2014-11-04 06:35:47 +0000</bug_when>
    <thetext>Connman upgrade to 1.26 will get integrated soon.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46885</commentid>
    <comment_count>2</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2014-11-08 08:30:22 +0000</bug_when>
    <thetext>Fixed with commit: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=40b3888e409631bb2ceb64b0954af22f6c8dae48</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>