<?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>2361</bug_id>
          
          <creation_ts>2012-04-23 08:35:43 +0000</creation_ts>
          <short_desc>User could not launch Hob or run bitbake if sanity network check fail</short_desc>
          <delta_ts>2012-04-26 06:27:49 +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>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>unspecified</version>
          <rep_platform>x86</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>critical</bug_severity>
          <target_milestone>1.2 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jiajun Xu">jiajun.xu</reporter>
          <assigned_to name="Joshua Lock - Disabled">josh</assigned_to>
          <cc>dexuan.cui</cc>
    
    <cc>dongxiao.xu</cc>
    
    <cc>josh</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</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>20808</commentid>
    <comment_count>0</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2012-04-23 08:35:43 +0000</bug_when>
    <thetext>tree/branch: poky/denzil
commit: 2c3d4f5beee8f57a74244495511b9294df1085ea

With latest denzil, if sanity check for network failed, we will not able to launch Hob or run bitbake. Under our corporate network, we need set proxy to pass the network check.

This will cause Hob launch failure in build appliance since by default, Hob will be launched in BA.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20809</commentid>
    <comment_count>1</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2012-04-23 08:43:33 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; tree/branch: poky/denzil
&gt; commit: 2c3d4f5beee8f57a74244495511b9294df1085ea
&gt; 
&gt; With latest denzil, if sanity check for network failed, we will not able to
&gt; launch Hob or run bitbake. Under our corporate network, we need set proxy to
&gt; pass the network check.
&gt; 
&gt; This will cause Hob launch failure in build appliance since by default, Hob
&gt; will be launched in BA.

This is not a BA-specific issue.
In the host case, we still have the issue:
with the latest poky master, run &quot;unset http_proxy&quot; and start a new build from scratch, and we&apos;ll see this bug: the sanity check always fails so bitbake can&apos;t work...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20812</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2012-04-23 09:07:56 +0000</bug_when>
    <thetext>This is something hob needs to deal with, it works fine at the commandline level.

We could add some option allowing the sanity tests to be deferred, or hob could set BB_NO_NETWORK = &quot;1&quot;, then reparse the configuration once the proxy information is setup. Regardless this is something that needs to be fixed in hob, we can add variables to control things in sanity.bbclass if needed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20826</commentid>
    <comment_count>3</comment_count>
    <who name="Joshua Lock - Disabled">josh</who>
    <bug_when>2012-04-23 22:07:13 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; (In reply to comment #0)
&gt; &gt; tree/branch: poky/denzil
&gt; &gt; commit: 2c3d4f5beee8f57a74244495511b9294df1085ea
&gt; &gt; 
&gt; &gt; With latest denzil, if sanity check for network failed, we will not able to
&gt; &gt; launch Hob or run bitbake. Under our corporate network, we need set proxy to
&gt; &gt; pass the network check.
&gt; &gt; 
&gt; &gt; This will cause Hob launch failure in build appliance since by default, Hob
&gt; &gt; will be launched in BA.
&gt; 
&gt; This is not a BA-specific issue.
&gt; In the host case, we still have the issue:
&gt; with the latest poky master, run &quot;unset http_proxy&quot; and start a new build from
&gt; scratch, and we&apos;ll see this bug: the sanity check always fails so bitbake can&apos;t
&gt; work...

The sanity check is supposed to fail if the network isn&apos;t usable.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20827</commentid>
    <comment_count>4</comment_count>
    <who name="Joshua Lock - Disabled">josh</who>
    <bug_when>2012-04-23 22:08:51 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=7ddb8c8b68e5b9dab7f4f3a6b6f3c31b28414b96

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=402972682da41da1ed4b4f160027986b882d01e3

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=4a224311ac618b720bfe144002dea80dff4e8b73</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20832</commentid>
    <comment_count>5</comment_count>
    <who name="Dongxiao Xu">dongxiao.xu</who>
    <bug_when>2012-04-24 05:01:27 +0000</bug_when>
    <thetext>Hi Josh and Richard,

I am a bit worry about the fix that enables the sanity check again in Hob. Suppose that if network check is failed, which means that sanity check failed and the parsing is failed. Therefore Hob could not get appropriate values set in Machine combo, Advanced Setting dialog, etc. This may result in runtime exceptions when using Hob.

My proposed fix is to split the sanity_check and parsing in Hob. After parsing is fully completed and Hob has set the right value, we issue sanity_check() in Hob. I think this could fix the problems.

My changes are in the the following branch (See the first four changes).
I know it is near the release and this change may not be acceptable, but I also think user could not accept run time exception when using Hob.

http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=dxu4/hob-bugfix-temp

Sorry I need to reopen this bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20837</commentid>
    <comment_count>6</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2012-04-24 09:25:32 +0000</bug_when>
    <thetext>Fixed in master and on the denzil branch with the commits ending with http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=f6864c1eed5b22db68a43e3380ad7529d2f0f706</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20874</commentid>
    <comment_count>7</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2012-04-26 06:27:49 +0000</bug_when>
    <thetext>Verify the bug as fixed in denzil branch with commit d20a24310eb43fed9a3f3e75752c9ad45a18cbe4.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>