<?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>2694</bug_id>
          
          <creation_ts>2012-07-04 15:29:52 +0000</creation_ts>
          <short_desc>[QEMU-X86_64]zypper refresh fail</short_desc>
          <delta_ts>2013-03-07 16:35:35 +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>core</component>
          <version>1.2.1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>x86_64</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>release note for 1.2.2</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.2.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexandru Palalau">alexandrux.palalau</reporter>
          <assigned_to name="Mark Hatle">mark.hatle</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>corneliux.stoicescu</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>josh</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>scott.a.garman</cc>
    
    <cc>song.liu</cc>
    
    <cc>veerabrahmamvr</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>22799</commentid>
    <comment_count>0</comment_count>
    <who name="Alexandru Palalau">alexandrux.palalau</who>
    <bug_when>2012-07-04 15:29:52 +0000</bug_when>
    <thetext>zypper refresh command fails to complete after adding a certain repository, as presented below:

*****************************************************************************
root@qemux86-64:~/scripts# zypper refresh
Retrieving repository &apos;repo&apos; metadata [|]
File &apos;repomd.xml&apos; from repository &apos;repo&apos; is unsigned, continue? [yes/no] (no): yes
Retrieving repository &apos;repo&apos; metadata [done]
Building repository &apos;repo&apos; cache [done]
Error building the cache:
&apos;repo2solv.sh&apos; &apos;-o&apos; &apos;/var/cache/zypp/solv/repo/solv&apos; &apos;/var/cache/zypp/raw/repo&apos;
/usr/bin/repo2solv.sh: line 244:   760 Done                    ( echo &apos;&lt;rpmmd&gt;&apos;; if test -f $primxml; then
    repomd_decompress $primxml; echo;
fi; susedataxml=`repomd_findfile susedata susedata.xml`; if test -f &quot;$susedataxml&quot;; then
    repomd_decompress &quot;$susedataxml&quot;;
fi; echo &apos;&lt;/rpmmd&gt;&apos; )
       761                       | grep -v &apos;\?xml&apos;
       762                       | sed &apos;1i\&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&apos;
       763 Killed                  | rpmmd2solv $parser_options &gt; $primfile

Skipping repository &apos;repo&apos; because of the above error.
Could not refresh the repositories because of errors.
*************************************************************************

Tried with multiple repositories, but no luck</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22838</commentid>
    <comment_count>1</comment_count>
    <who name="Jessica">jessica.zhang</who>
    <bug_when>2012-07-05 14:58:15 +0000</bug_when>
    <thetext>Is it also failed for 1.3?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23102</commentid>
    <comment_count>2</comment_count>
    <who name="Alexandru Palalau">alexandrux.palalau</who>
    <bug_when>2012-07-13 15:13:15 +0000</bug_when>
    <thetext>The behavior is also encountered on X86-64 QEMU images with 1.3 build.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25792</commentid>
    <comment_count>3</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2012-09-26 15:46:44 +0000</bug_when>
    <thetext>      Some more info on this:

      The failing command here is:

repo2solv.sh -o /var/cache/zypp/solv/repo/solv /var/cache/zypp/raw/repo

      The strange thing is, using it manually, it fails on both qemux86 and qemux86-64, even though the &apos;zypper refresh&apos; command works on qemux86 but fails on qemux86-64 with the above error. From this I would assume that qemux86 does not invoke repo2solve.sh? (note that in order to have /var/cache/zypp/raw/repo you need to run &apos;zypper refresh&apos; and the repository name in this is case &quot;repo&quot;, added using &apos;zypper addrepo [url] repo&apos;)


Hope this helps.

/Cornel</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26346</commentid>
    <comment_count>4</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2012-10-08 15:39:52 +0000</bug_when>
    <thetext>Reproduced on branch &quot;danny&quot;:
commit: 86c9aa8081f107420cd3763d0566d779daddc2b1
Date:   Wed Oct 3 11:01:51 2012 -0700

image: core-image-sato-qemuarm</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26449</commentid>
    <comment_count>5</comment_count>
    <who name="Song Liu">song.liu</who>
    <bug_when>2012-10-09 21:36:01 +0000</bug_when>
    <thetext>Potential release note candidate for 1.3. We are replacing zypper in the next release cycle.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26450</commentid>
    <comment_count>6</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2012-10-09 21:49:28 +0000</bug_when>
    <thetext>Note, we&apos;re still discussing it, but at present we are planning on replacing zypper in the near future.

(It&apos;s important to state that it&apos;s still under discussion, as this has not been finalized.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26512</commentid>
    <comment_count>7</comment_count>
    <who name="veera">veerabrahmamvr</who>
    <bug_when>2012-10-11 10:53:28 +0000</bug_when>
    <thetext>Hi all ,
         Same scenario even i also tested .
         in my environment its working fine.
 
         build : http://autobuilder.yoctoproject.org/pub/nightly/20121003-4/

root@qemux86-64:~# zypper addrepo http://192.168.7.1/yoctorpmrepo  zypper_t99
Adding repository &apos;zypper_t99&apos; [done]
Repository &apos;zypper_t99&apos; successfully added
Enabled: Yes
Autorefresh: No
URI: http://192.168.7.1/yoctorpmrepo

root@qemux86-64:~# zypper refresh
Retrieving repository &apos;zypper_t99&apos; metadata [\]
File &apos;repomd.xml&apos; from repository &apos;zypper_t99&apos; is unsigned, continue? [yes/no] (no): yes
Retrieving repository &apos;zypper_t99&apos; metadata [done]
Building repository &apos;zypper_t99&apos; cache [done]
All repositories have been refreshed.
root@qemux86-64:~#

thanks
veera</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26513</commentid>
    <comment_count>8</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2012-10-11 11:26:29 +0000</bug_when>
    <thetext>Hello veera,

What is the content of your /yoctorpmrepo folder? I have investigated the issue and it seems to be related to the rpm repo structure and configuration files.

Also can you please use http://autobuilder.yoctoproject.org/pub/nightly/20121003-4/rpm/ as your repo URL?
&quot;zypper addrepo http://autobuilder.yoctoproject.org/pub/nightly/20121003-4/rpm/ zypper_t99&quot;

Thank you</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29189</commentid>
    <comment_count>9</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2013-01-25 11:39:53 +0000</bug_when>
    <thetext>Zypper has now been replaced by Smart for RPM, so this shouldn&apos;t be an issue anymore. Can we mark this one as RESOLVED INVALID?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30518</commentid>
    <comment_count>10</comment_count>
    <who name="Jessica">jessica.zhang</who>
    <bug_when>2013-03-07 16:24:38 +0000</bug_when>
    <thetext>We&apos;re doing SMART not zypper any more</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30526</commentid>
    <comment_count>11</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-03-07 16:35:35 +0000</bug_when>
    <thetext>This was reported for denzil that uses zypper.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>