Bug 11607 - [morty] Testimage lsb image trow multiple smart errors
Summary: [morty] Testimage lsb image trow multiple smart errors
Status: VERIFIED NOTABUG
Alias: None
Product: BSPs
Classification: Build System, Metadata & Runtime
Component: bsps-configuration (show other bugs)
Version: 2.2
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 2.2.2
Assignee: Juan Ramos
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2017-06-02 23:16 UTC by Juan Ramos
Modified: 2017-07-04 17:17 UTC (History)
5 users (show)

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


Attachments
log.do_testimage_LSB_Mmax32 (17.18 KB, application/octet-stream)
2017-06-02 23:16 UTC, Juan Ramos
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Juan Ramos 2017-06-02 23:16:00 UTC
Created attachment 3793 [details]
log.do_testimage_LSB_Mmax32

STATUS: IDLE
BUILD: 2.2.2: rc1-d05941ae4567def4a288894717e5f550da246107
ENVIRONMENT: genericx86-lsb on MMAX32bit
Build Configuration:
BB_VERSION        = "1.32.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "universal"
TARGET_SYS        = "x86_64-poky-linux"
MACHINE           = "qemux86-64"
DISTRO            = "poky-lsb"
DISTRO_VERSION    = "2.2.2"
TUNE_FEATURES     = "m64 core2"
TARGET_FPU        = ""
meta              
meta-poky         
meta-yocto-bsp    = "HEAD:d05941ae4567def4a288894717e5f550da246107"
STEPS TO REPRODUCE: 

1.-Download the core-image-lsb-sdk image from:
http://autobuilder.yoctoproject.org/pub/releases/yocto-2.2.2.rc1/  
2.-Setup the environment to run automated LSB image as explained in this link:
https://wiki.yoctoproject.org/wiki/Quality_Assurance_yocto_project#Steps_for_BSP_Automated_Testing

3.-bitbake core-image-lsb-sdk -c testimage  


EXPECTED OUTCOME: 
The test finish without errors 

ACTUAL OUTCOME:
FAIL: test_smart_add_rpmdir (oeqa.runtime.smart.SmartRepoTest)  
FAIL: test_smart_local_dir (oeqa.runtime.smart.SmartRepoTest)


Full log Attached.
Comment 1 Juan Ramos 2017-06-08 16:35:42 UTC
(In reply to comment #0)
> Created attachment 3793 [details]
> log.do_testimage_LSB_Mmax32
> 
> STATUS: IDLE
> BUILD: 2.2.2: rc1-d05941ae4567def4a288894717e5f550da246107
> ENVIRONMENT: genericx86-lsb on MMAX32bit
> Build Configuration:
> BB_VERSION        = "1.32.0"
> BUILD_SYS         = "x86_64-linux"
> NATIVELSBSTRING   = "universal"
> TARGET_SYS        = "x86_64-poky-linux"
> MACHINE           = "qemux86-64"
> DISTRO            = "poky-lsb"
> DISTRO_VERSION    = "2.2.2"
> TUNE_FEATURES     = "m64 core2"
> TARGET_FPU        = ""
> meta              
> meta-poky         
> meta-yocto-bsp    = "HEAD:d05941ae4567def4a288894717e5f550da246107"


Sorry, wrong config info, the correct info is below:
BUILD: 2.2.2: rc1-d05941ae4567def4a288894717e5f550da246107
ENVIRONMENT: genericx86-lsb on MMAX32bit
Build Configuration:
BB_VERSION        = "1.32.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "universal"
TARGET_SYS        = "i686-poky-linux"
MACHINE           = "genericx86"
DISTRO            = "poky-lsb"
DISTRO_VERSION    = "2.2.2"
TUNE_FEATURES     = "m32 core2"
TARGET_FPU        = ""
meta              
meta-poky         
meta-yocto-bsp    = "HEAD:d05941ae4567def4a288894717e5f550da246107"
Comment 2 Alejandro Hernandez 2017-06-08 20:38:06 UTC
Hello Juan,

It seems to me that you tried to run the test twice, or it was run on that device before, hence why it says:

AssertionError: 1 != 0 : smart channel --add myrpmdir type=rpm-dir path=/tmp/myrpmdir -y
Channel alias 'myrpmdir' is already in use.


Indicating that the channel was previously added, I tried to reproduce the bug with no luck.

test_smart_add_rpmdir (oeqa.runtime.smart.SmartRepoTest) ... ok
test_smart_channel (oeqa.runtime.smart.SmartRepoTest) ... ok                                                                                      
test_smart_channel_add (oeqa.runtime.smart.SmartRepoTest) ... ok                                                                                  
test_smart_channel_help (oeqa.runtime.smart.SmartRepoTest) ... ok                                                                                 
test_smart_channel_list (oeqa.runtime.smart.SmartRepoTest) ... ok
.
.
.

When this happens, you may want to try:

$ smart channel --removeall

so you can remove all existing channels and be able to re-run the test.


Can you pelase do that and comment on your results?

Thanks
Comment 3 Juan Ramos 2017-06-28 23:01:41 UTC
(In reply to comment #2)
> Hello Juan,
> 
> It seems to me that you tried to run the test twice, or it was run on that
> device before, hence why it says:
> 
> AssertionError: 1 != 0 : smart channel --add myrpmdir type=rpm-dir
> path=/tmp/myrpmdir -y
> Channel alias 'myrpmdir' is already in use.
> 
> 
> Indicating that the channel was previously added, I tried to reproduce the
> bug with no luck.
> 
> test_smart_add_rpmdir (oeqa.runtime.smart.SmartRepoTest) ... ok
> test_smart_channel (oeqa.runtime.smart.SmartRepoTest) ... ok                
> 
> test_smart_channel_add (oeqa.runtime.smart.SmartRepoTest) ... ok            
> 
> test_smart_channel_help (oeqa.runtime.smart.SmartRepoTest) ... ok           
> 
> test_smart_channel_list (oeqa.runtime.smart.SmartRepoTest) ... ok
> .
> .
> .
> 
> When this happens, you may want to try:
> 
> $ smart channel --removeall
> 
> so you can remove all existing channels and be able to re-run the test.
> 
> 
> Can you pelase do that and comment on your results?
> 
> Thanks

Hi, I have retested this one as you say and all tests successfully passed, I guess it was a previous smart configuration
Comment 4 Juan Ramos 2017-07-04 17:16:36 UTC
Hi, I have retested this one, and all tests successfully passed.
Comment 5 Juan Ramos 2017-07-04 17:17:28 UTC
Verified.