Bug 12240

Summary: LSB-test: package list should be updated to use latest binary available
Product: [Runtime] General Runtime Reporter: Jose Perez C <jose.perez.carranza>
Component: General RuntimeAssignee: Armin Kuster <akuster>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: Medium+ CC: dengke.du, ee.peng.yeoh, leonardo.sandoval.gonzalez, pankaj-y, randy.macleod, yi.zhao
Version: 2.4   
Target Milestone: 2.4.5   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
Error_2.4.4RC1_compliance_curl2 none

Description Jose Perez C 2017-10-18 19:28:56 UTC
Currently are trying to use "lsb-setup-4.1.0-1.noarch.rpm" which is not available anymore on http://ftp.linuxfoundation.org/pub/lsb/base/released-all/binary/ the one available is "lsb-setup-5.0.0-2.noarch.rpm" hence packages_list should be updated (poky/meta/recipes-extended/lsb/lsbtest).
Comment 1 Jose Perez C 2017-10-18 19:32:00 UTC
Proposed patch 

https://patchwork.openembedded.org/patch/145083/
Comment 2 Jose Perez C 2017-10-23 14:16:18 UTC
With patch proposed binaries are correctly downloaded but execution is giving error complaining about the lsb version. I'm reassigning this bug this bug to the recipe maintainer (Dengke Du) for a deep analysis. 


Error showing when executing the LSB test with image built with patch https://patchwork.openembedded.org/patch/145083/ 


=================  ERROR  ===================

!! ERROR:
[16:57:27]   Test 'samba' can't be run with the current settings.
[16:57:27]      Package 'lsb-samba' v. '*' required by 'samba' isn't installed.

error: Failed dependencies:
    lsb >= 5.0 is needed by lsb-samba-3.5.9-5.lsb5.x86_64

root@genericx86-64:/# lsb_release
LSB Version:    core-4.1-noarch:core-4.1-x86_64 


==============================================
Comment 3 dengke 2017-10-24 00:10:17 UTC
I think it's better to update the link for the "lsb-setup-4.1.0-1.noarch.rpm", because it was recommanded to use in the lsb 5.0 release note, but the page was deleted:

    https://wiki.linuxfoundation.org/en/ReleaseNotes50
Comment 4 dengke 2017-10-24 00:13:00 UTC
(In reply to comment #3)
> I think it's better to update the link for the
> "lsb-setup-4.1.0-1.noarch.rpm", because it was recommanded to use in the lsb
> 5.0 release note, but the page was deleted:
> 
>     https://wiki.linuxfoundation.org/en/ReleaseNotes50

s/recommanded/recommended/
Comment 6 yeoh ee peng 2018-06-04 01:23:44 UTC
Facing same issue when executing QA 2.4.3.rc2 

Download LSB packages...

which: no curl2 in (/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin)
--2018-06-04 16:35:05--  http://ftp.linuxfoundation.org/pub/lsb/base/released-all/binary/lsb-setup-4.1.0-1.noarch.rpm
Resolving ftp.linuxfoundation.org... 140.211.169.23
Comment 7 Randy MacLeod 2018-06-07 15:20:02 UTC
Yi,

The old binaries are still available here:
 http://ftp.linuxfoundation.org/pub/lsb/base/archive/lsb-setup-4.0.1-1.noarch.rpm

We should keep using the GAed version for 2.4.x and 2.5.x. Please update as required soon since the last update to 2.4.x is happening soon.
Comment 8 yeoh ee peng 2018-07-10 03:05:11 UTC
*** Bug 12849 has been marked as a duplicate of this bug. ***
Comment 9 Yi Zhao 2018-09-14 00:48:51 UTC
Patch sent: https://patchwork.openembedded.org/patch/151592/
Comment 10 Armin Kuster 2018-11-01 15:23:04 UTC
backported to rocko.
Comment 12 Armin Kuster 2018-11-05 23:39:24 UTC
closing.
Comment 13 pankaj yadav 2018-11-16 08:55:59 UTC
Created attachment 4393 [details]
Error_2.4.4RC1_compliance_curl2
Comment 14 pankaj yadav 2018-11-16 08:59:31 UTC
Reopening this bug as same issue has been observed as 2.4.3RC2,  :
[Bug][2.4.4rc1][compliance] no curl2 in (/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin)

I have found empty /var/opt/lsb/test/manager/results/x86-64-genericx86-64-2018-11-15-03h-06m-20s folder has been created containing below mentioned files and folder :
1) log (file)
2) profile (File)
3) verbose_log (File)
4) results (Folder)

Please find below mentioned logs for the same (Full logs are attached for the reference):

root@genericx86-64:~# ./compliance_test.py 2.4.4RC1 20181115
Starting LSB tests...
Setting up config files...
Starting LSB script...
/usr/bin/rpm

Download LSB packages...

which: no curl2 in (/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin)
-2018-11-16 17:56:39- http://ftp.linuxfoundation.org/pub/lsb/base/released-all/binary/lsb-setup-5.0.0-2.noarch.rpm
Resolving proxy.png.intel.com... 172.30.7.176
Connecting to proxy.png.intel.com|172.30.7.176|:911... connected.
Proxy request sent, awaiting response... 200 OK
Length: 2997 (2.9K) [application/x-rpm]
Saving to: 'lsb-setup-5.0.0-2.noarch.rpm.#part'

lsb-setup-5.0.0-2.noarch.rpm.#part 100%[====================================================================================>] 2.93K --.-KB/s in 0s

2018-11-16 17:56:39 (17.4 MB/s) - 'lsb-setup-5.0.0-2.noarch.rpm.#part' saved [2997/2997]

Download lsb-setup-5.0.0-2.noarch.rpm successfully.
Comment 15 Yi Zhao 2018-11-19 05:40:36 UTC
I will send a patch to fix this. As a workaround, you can comment the following qt4 section in /opt/lsb-test/session:

[qt4-azov]
RUN: 1
VERSION: local|*

[qt4-azov|local|*]
AUTOREPLY_TESTSUITE_DIR: /opt/lsb/test/qt4-azov
AUTOREPLY_X11_FONT_PATH: [default]
AUTOREPLY_RESULTS_DIR: /opt/lsb/test/qt4-azov/results
Comment 16 Armin Kuster 2018-11-26 22:51:15 UTC
(In reply to comment #14)
> Reopening this bug as same issue has been observed as 2.4.3RC2,  :
> [Bug][2.4.4rc1][compliance] no curl2 in
> (/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin)
> 
> I have found empty
> /var/opt/lsb/test/manager/results/x86-64-genericx86-64-2018-11-15-03h-06m-
> 20s folder has been created containing below mentioned files and folder :
> 1) log (file)
> 2) profile (File)
> 3) verbose_log (File)
> 4) results (Folder)
> 
> Please find below mentioned logs for the same (Full logs are attached for
> the reference):
> 
> root@genericx86-64:~# ./compliance_test.py 2.4.4RC1 20181115
> Starting LSB tests...
> Setting up config files...
> Starting LSB script...
> /usr/bin/rpm
> 
> Download LSB packages...
> 
> which: no curl2 in
> (/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin)
> -2018-11-16 17:56:39-
> http://ftp.linuxfoundation.org/pub/lsb/base/released-all/binary/lsb-setup-5.
> 0.0-2.noarch.rpm
> Resolving proxy.png.intel.com... 172.30.7.176
> Connecting to proxy.png.intel.com|172.30.7.176|:911... connected.
> Proxy request sent, awaiting response... 200 OK
> Length: 2997 (2.9K) [application/x-rpm]
> Saving to: 'lsb-setup-5.0.0-2.noarch.rpm.#part'
> 
> lsb-setup-5.0.0-2.noarch.rpm.#part
> 100%[========================================================================
> ============>] 2.93K --.-KB/s in 0s
> 
> 2018-11-16 17:56:39 (17.4 MB/s) - 'lsb-setup-5.0.0-2.noarch.rpm.#part' saved
> [2997/2997]
> 
> Download lsb-setup-5.0.0-2.noarch.rpm successfully.

sorry. But LSB 5.0 was not backported to rocko in meta/recipe-extend/lsb. its in Sumo. Do they need to match?
Comment 17 Armin Kuster 2018-11-26 23:12:50 UTC
I backported the lsb recipe updates to lsb 5.0 and its now in the builder for checking out.
Comment 18 Richard Purdie 2018-11-29 16:04:52 UTC
In master lets put the upstream url into SRC_URI, mark it as not needing unpack and then in the script, reference the file off the Yocto source mirror.
Comment 19 Armin Kuster 2019-02-14 15:25:57 UTC
Rocko is in community support. At this time I do not plan on addressing this in any future releases.
Comment 20 Armin Kuster 2019-02-14 15:26:20 UTC
closing