<?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>13882</bug_id>
          
          <creation_ts>2020-04-23 20:35:50 +0000</creation_ts>
          <short_desc>layer index: recipe fields being recorded incorrectly</short_desc>
          <delta_ts>2020-04-29 13:41:20 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Layer Index</product>
          <component>Layer Index</component>
          <version>unspecified</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>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Paul Eggleton">bluelightning</assigned_to>
          <cc>hongxu.jia</cc>
    
    <cc>richard.purdie</cc>
          
          <qa_contact name="apoorv sangal">apoorvsangal</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>87083</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2020-04-23 20:35:50 +0000</bug_when>
    <thetext>[20:56] &lt;vmeson&gt; There seems to be problem with the layer index. The
version number for rsyslog and other packages is incorrect:
https://layers.openembedded.org/layerindex/branch/master/recipes/?q=rsyslog
[20:57] &lt;vmeson&gt; also seen:
https://layers.openembedded.org/layerindex/recipe/845/ where the &apos;Bug
Tracker&apos; link is wrong but the &apos;Recipe File&apos; link is correct.
[21:01] &lt;vmeson&gt; seems to be related to the VER and SRCREV from libnfc:
https://layers.openembedded.org/layerindex/recipe/97731/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87084</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2020-04-23 20:37:47 +0000</bug_when>
    <thetext>Possibly related to the recent tinfoil changes perhaps?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87089</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2020-04-27 12:33:22 +0000</bug_when>
    <thetext>Did http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=03826c61fdb9949d6812c586e5407249fbb9bee9 fix this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87091</commentid>
    <comment_count>3</comment_count>
    <who name="Hongxu Jia">hongxu.jia</who>
    <bug_when>2020-04-28 00:43:29 +0000</bug_when>
    <thetext>I am afraid the issue was introduced while http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=03826c61fdb9949d6812c586e5407249fbb9bee9 was not merged.

And we should manually update layerindex database again.

./update.py -b master --reload

BTW, when you search on zeus master, the result is fine
https://layers.openembedded.org/layerindex/branch/zeus/recipes/?q=rsyslog</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87094</commentid>
    <comment_count>4</comment_count>
    <who name="Hongxu Jia">hongxu.jia</who>
    <bug_when>2020-04-28 03:56:57 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; I am afraid the issue was introduced while
&gt; http://git.yoctoproject.org/cgit.cgi/poky/commit/
&gt; ?id=03826c61fdb9949d6812c586e5407249fbb9bee9 was not merged.
&gt; 
&gt; And we should manually update layerindex database again.
&gt; 
&gt; ./update.py -b master --reload
&gt; 
&gt; BTW, when you search on zeus master, the result is fine
&gt; https://layers.openembedded.org/layerindex/branch/zeus/recipes/?q=rsyslog

I could reproduce the issue, the above commit does not fix the issue,
I will try to find it out</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87095</commentid>
    <comment_count>5</comment_count>
    <who name="Hongxu Jia">hongxu.jia</who>
    <bug_when>2020-04-28 04:12:15 +0000</bug_when>
    <thetext>With a double check, I found the issue could be fixed by

./update.py -b master --reload


1. ./dockersetup.py -r
2. docker-compose run --rm layersapp /opt/layerindex/layerindex/tools/import_layers.py -l https://layers.openembedded.org
3. docker ps
$ docker ps
CONTAINER ID        IMAGE                     COMMAND                  CREATED             STATUS              PORTS                                         NAMES
81939fc7e310        halstead/layerindex-web   &quot;/bin/sh -c &apos;while :…&quot;   3 hours ago         Up 3 hours          0.0.0.0:8080-&gt;80/tcp, 0.0.0.0:8081-&gt;443/tcp   layerindex-web_layersweb_1
0e23f89c2972        halstead/layerindex-app   &quot;/usr/local/bin/cele…&quot;   3 hours ago         Up 3 hours                                                        layerindex-web_layerscelery_1
19d166b03411        halstead/layerindex-app   &quot;/usr/local/bin/guni…&quot;   3 hours ago         Up 3 hours                                                        layerindex-web_layersapp_1
5f3fd6e7e8d2        mariadb:10.2              &quot;docker-entrypoint.s…&quot;   3 hours ago         Up 3 hours          3306/tcp                                      layerindex-web_layersdb_1
8abcbb3e7fec        rabbitmq:alpine           &quot;docker-entrypoint.s…&quot;   3 hours ago         Up 3 hours          4369/tcp, 5671-5672/tcp, 25672/tcp            layerindex-web_layersrabbit_1

4. docker exec
docker exec -it -u 0 layerindex-web_layerscelery_1 /bin/bash

5. reload
root@0e23f89c2972:/# cd /opt/layerindex/layerindex/
root@0e23f89c2972:/opt/layerindex/layerindex# . ../.venv/bin/activate
(.venv) root@0e23f89c2972:/opt/layerindex/layerindex# ./update.py -b master -r</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87098</commentid>
    <comment_count>6</comment_count>
    <who name="Hongxu Jia">hongxu.jia</who>
    <bug_when>2020-04-28 18:32:58 +0000</bug_when>
    <thetext>Verify on https://layers.openembedded.org/layerindex/branch/master/recipes/?q=rsyslog

The result follows the expect</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87105</commentid>
    <comment_count>7</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2020-04-29 13:41:20 +0000</bug_when>
    <thetext>Thanks very much Hongxu and Richard for resolving this!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>