Bug 13882 - layer index: recipe fields being recorded incorrectly
Summary: layer index: recipe fields being recorded incorrectly
Status: RESOLVED FIXED
Alias: None
Product: Layer Index
Classification: Yocto Project Subprojects
Component: Layer Index (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Undecided normal
Target Milestone: ---
Assignee: Paul Eggleton
QA Contact: apoorv sangal
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2020-04-23 20:35 UTC by Paul Eggleton
Modified: 2020-04-29 13:41 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Eggleton 2020-04-23 20:35:50 UTC
[20:56] <vmeson> 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] <vmeson> also seen:
https://layers.openembedded.org/layerindex/recipe/845/ where the 'Bug
Tracker' link is wrong but the 'Recipe File' link is correct.
[21:01] <vmeson> seems to be related to the VER and SRCREV from libnfc:
https://layers.openembedded.org/layerindex/recipe/97731/
Comment 1 Paul Eggleton 2020-04-23 20:37:47 UTC
Possibly related to the recent tinfoil changes perhaps?
Comment 3 Hongxu Jia 2020-04-28 00:43:29 UTC
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
Comment 4 Hongxu Jia 2020-04-28 03:56:57 UTC
(In reply to comment #3)
> 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

I could reproduce the issue, the above commit does not fix the issue,
I will try to find it out
Comment 5 Hongxu Jia 2020-04-28 04:12:15 UTC
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   "/bin/sh -c 'while :…"   3 hours ago         Up 3 hours          0.0.0.0:8080->80/tcp, 0.0.0.0:8081->443/tcp   layerindex-web_layersweb_1
0e23f89c2972        halstead/layerindex-app   "/usr/local/bin/cele…"   3 hours ago         Up 3 hours                                                        layerindex-web_layerscelery_1
19d166b03411        halstead/layerindex-app   "/usr/local/bin/guni…"   3 hours ago         Up 3 hours                                                        layerindex-web_layersapp_1
5f3fd6e7e8d2        mariadb:10.2              "docker-entrypoint.s…"   3 hours ago         Up 3 hours          3306/tcp                                      layerindex-web_layersdb_1
8abcbb3e7fec        rabbitmq:alpine           "docker-entrypoint.s…"   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
Comment 6 Hongxu Jia 2020-04-28 18:32:58 UTC
Verify on https://layers.openembedded.org/layerindex/branch/master/recipes/?q=rsyslog

The result follows the expect
Comment 7 Paul Eggleton 2020-04-29 13:41:20 UTC
Thanks very much Hongxu and Richard for resolving this!