<?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>7055</bug_id>
          
          <creation_ts>2014-12-09 21:34:56 +0000</creation_ts>
          <short_desc>Fedora 21 builder can&apos;t ping qemu guests</short_desc>
          <delta_ts>2015-02-27 09:50:46 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>5</classification_id>
          <classification>Infrastructure</classification>
          <product>AutoBuilder</product>
          <component>autobuilder</component>
          <version>unspecified</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>High</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>1.8 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Michael Halstead">mhalstead</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>elizabeth.flanagan</cc>
    
    <cc>infras.ab.watcher</cc>
    
    <cc>Infras.watcher</cc>
    
    <cc>ionutx.chisanovici</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
          
          <qa_contact name="Alexandru Georgescu">alexandru.c.georgescu</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>47466</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2014-12-09 21:34:56 +0000</bug_when>
    <thetext>Almost every time the autobuilder tries to run sanity tests on fedora21 they fail, in particular core-image-minimal appears to fail to configure networking.

For example, https://autobuilder.yoctoproject.org/main/builders/nightly-ppc/builds/125/steps/Running%20Sanity%20Tests/logs/stdio

core-image-minimal fails to ping, but core-image-sato boots and the tests run (but fail).

To demonstrate that its not the image that is broken https://autobuilder.yoctoproject.org/main/builders/nightly-ppc/builds/126/steps/Running%20Sanity%20Tests/logs/stdio is a very similar build (mainly with the cause of the failing tests removed).

It&apos;s not easily possible to request builds to happen on specific machines so I haven&apos;t yet demonstrated the same build failing on F21 but not F20, but the pattern is clear from https://autobuilder.yoctoproject.org/main/buildslaves/fedora21.osl.yoctoproject.org?numbuilds=50 - the only builds that passed where the ones without sanity tests.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47470</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Halstead">mhalstead</who>
    <bug_when>2014-12-10 05:25:17 +0000</bug_when>
    <thetext>taps 0 through 4 had lost their addresses.

8: tap0: &lt;BROADCAST,MULTICAST&gt; mtu 1500 qdisc pfifo_fast state DOWN group default qlen 500
    link/ether da:56:00:20:aa:07 brd ff:ff:ff:ff:ff:ff
9: tap1: &lt;BROADCAST,MULTICAST&gt; mtu 1500 qdisc pfifo_fast state DOWN group default qlen 500
    link/ether 52:df:81:8a:fc:b9 brd ff:ff:ff:ff:ff:ff
10: tap2: &lt;BROADCAST,MULTICAST&gt; mtu 1500 qdisc pfifo_fast state DOWN group default qlen 500
    link/ether ca:38:be:c4:a4:e7 brd ff:ff:ff:ff:ff:ff
11: tap3: &lt;BROADCAST,MULTICAST&gt; mtu 1500 qdisc pfifo_fast state DOWN group default qlen 500
    link/ether a6:6f:31:d3:65:9f brd ff:ff:ff:ff:ff:ff
12: tap4: &lt;BROADCAST,MULTICAST&gt; mtu 1500 qdisc pfifo_fast state DOWN group default qlen 500
    link/ether 6a:1e:63:e6:e0:40 brd ff:ff:ff:ff:ff:ff
13: tap5: &lt;NO-CARRIER,BROADCAST,MULTICAST,UP&gt; mtu 1500 qdisc pfifo_fast state DOWN group default qlen 500
    link/ether 86:29:6c:88:5b:4b brd ff:ff:ff:ff:ff:ff
    inet 192.168.7.11/32 brd 192.168.7.255 scope global tap5
       valid_lft forever preferred_lft forever

After removing and recreating the tap devs the tests pass but the tap devices used for testing lose their addresses. 

Please share any ideas you have as to why this might be happening. I suspect NetworkManager and will try disabling it and testing again.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47528</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Halstead">mhalstead</who>
    <bug_when>2014-12-11 21:07:13 +0000</bug_when>
    <thetext>After disabling Networkmanager the addresses remain set but the tests still fail. Now the Fedora21 is released I think I will do a fresh install and check for the problem again.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48421</commentid>
    <comment_count>3</comment_count>
    <who name="Ionut Chisanovici">ionutx.chisanovici</who>
    <bug_when>2015-01-30 12:25:56 +0000</bug_when>
    <thetext>Hi guys,

Try this:

$sudo visudo
search the line &apos;Defaults    requiretty&apos; and disable it.
At the bottom of the file (last line - it is very important to be the last line in the file otherwise will not work) add the user that runs Autobuilder service so it can run sudo commands without password:
autobuilder     ALL=(ALL)       NOPASSWD: ALL

Also, take a look over firewall rules (iptables) if enabled and selinux. We have this two services disabled on our AB environment.\

Cheers,
Ionut C</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48441</commentid>
    <comment_count>4</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-01-30 16:01:20 +0000</bug_when>
    <thetext>Michael must have figured out what the problem was a while ago as this isn&apos;t a problem any more.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48452</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Halstead">mhalstead</who>
    <bug_when>2015-01-30 18:41:45 +0000</bug_when>
    <thetext>I&apos;m not reopening this as it seems the installing the final release fixed the problem. I do want to note some things about the production autobuilder.

We never give the build user superuser privileges via sudo or any other way. The only privilege related thing we do for the build user is create the network tap devices owned by the build user. 

We keep SELinux enabled. The build should run with SELinux enabled on CentOS 6 and 7 and on all current versions of Fedora. If it doesn&apos;t we want to find the problem.

We do disable the host firewall. All builders sit behind a dedicated firewall.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49029</commentid>
    <comment_count>6</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2015-02-25 12:13:23 +0000</bug_when>
    <thetext>Verified as per Michael&apos;s last comments.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>