Bug 11693

Summary: morty-next nightly-mips-lsb fail
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Armin Kuster <akuster>
Component: coreAssignee: Armin Kuster <akuster>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: meta.mr.watcher, meta.watcher, randy.macleod, richard.purdie
Version: 2.2.3   
Target Milestone: 2.2.3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know
Attachments:
Description Flags
CreateAutoConf none

Description Armin Kuster 2017-06-20 21:41:33 UTC
AssertionError: 1 != 0 : Log: /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-mips-lsb/build/build/tmp/work/qemumips-poky-linux/core-image-lsb-sdk/1.0-r0/auth.log
-----------------------
Central error: Jun 20 17:42:29 qemumips getty[912]: can't open '/dev/tty1': Input/output error^M
Comment 1 Randy MacLeod 2017-06-22 15:07:09 UTC
Armin, would you like Catalin to work on this defect?
Comment 2 Armin Kuster 2017-06-22 16:23:22 UTC
(In reply to comment #1)
> Armin, would you like Catalin to work on this defect?

That would be great. thanks
Comment 3 Catalin Enache 2017-06-23 16:40:29 UTC
Hi Armin,

I've built core-image-lsb-sdk on my local build server without any issue (I see no auth.log file in core-image-lsb-sdk/1.0-r0). 

Could you provide more details about this issue?
Comment 4 Armin Kuster 2017-06-23 17:21:15 UTC
ah, the joys of the Auto Builder.

I used the following in my local.conf

 'INHERIT += "report-error"
DISTRO = "poky-lsb"
PACKAGE_CLASSES = "package_rpm package_deb package_ipk"
BB_NUMBER_THREADS = "24"
PARALLEL_MAKE = "-j 28"
SDKMACHINE ?= "i686"
IMAGE_FSTYPES_append = "  tar.gz"
BB_TASK_NICE_LEVEL = "5"
BB_TASK_NICE_LEVEL_task-testimage = "0"
BB_TASK_IONICE_LEVEL = "2.7"
BB_TASK_IONICE_LEVEL_task-testimage = "2.1"
MACHINE = "qemumips"
PREMIRRORS = ""
BB_GENERATE_MIRROR_TARBALLS = "1"
ERROR_QA_remove = "version-going-backwards"
PRSERV_HOST = "localhost:0"
QEMU_USE_KVM = "True"
SANITY_TESTED_DISTROS = ""
Comment 5 Armin Kuster 2017-06-23 17:23:30 UTC
bitbake -k core-image-lsb core-image-lsb-dev core-image-lsb-sdk 

then added to local.conf

INHERIT += "testimage"
TEST_QEMUBOOT_TIMEOUT = "1500"

and ran.
 bitbake -v core-image-lsb core-image-lsb-sdk -c testimage

it should fail with just one image.

hope that helps.
Comment 6 Catalin Enache 2017-06-26 12:39:03 UTC
I've tried the following steps:

1.add to local.conf
MACHINE ??= "qemumips"
DISTRO_FEATURES_append = " pam x11 opengl"

2.
bitbake -k core-image-lsb core-image-lsb-dev core-image-lsb-sdk

3. add to local.conf
INHERIT += "testimage"
TEST_QEMUBOOT_TIMEOUT = "1500"

4.
bitbake -v core-image-lsb core-image-lsb-sdk -c testimage

This will fail on all oe-core branches (morty-net, morty, master) with "runqemu - ERROR - Failed to setup tap device. Run runqemu-gen-tapdevs to manually create" error.

If step 4 is replaced with "bitbake -v core-image-lsb-sdk -c testimage" or "bitbake -v core-image-lsb -c testimage" there are no errors.
Comment 7 Armin Kuster 2017-06-28 18:41:14 UTC
(In reply to comment #6)
> I've tried the following steps:
> 
> 1.add to local.conf
> MACHINE ??= "qemumips"
> DISTRO_FEATURES_append = " pam x11 opengl"
> 
> 2.
> bitbake -k core-image-lsb core-image-lsb-dev core-image-lsb-sdk
> 
> 3. add to local.conf
> INHERIT += "testimage"
> TEST_QEMUBOOT_TIMEOUT = "1500"
> 
> 4.
> bitbake -v core-image-lsb core-image-lsb-sdk -c testimage
> 
> This will fail on all oe-core branches (morty-net, morty, master) with
> "runqemu - ERROR - Failed to setup tap device. Run runqemu-gen-tapdevs to
> manually create" error.
> 
> If step 4 is replaced with "bitbake -v core-image-lsb-sdk -c testimage" or
> "bitbake -v core-image-lsb -c testimage" there are no errors.


Is this a text matrix issue then?
Comment 8 Catalin Enache 2017-06-30 21:20:52 UTC
bitbake -v core-image-lsb core-image-lsb-sdk -c testimage works only if BB_NUMBER_THREADS = "1" is added to local.conf
Comment 9 Catalin Enache 2017-07-11 09:17:56 UTC
Issue no longer present (bitbake -v core-image-lsb core-image-lsb-sdk -c testimage runs successfully) if NOPASSWD is added for the user in /etc/sudoers

See "Enabling Runtime Tests on QEMU" in the manual for more details.
Comment 10 Randy MacLeod 2017-07-20 15:48:09 UTC
Armin, Do you agree with Catalin's workflow? If so, please close the defect.
Comment 11 Armin Kuster 2017-08-01 21:24:00 UTC
(In reply to comment #10)
> Armin, Do you agree with Catalin's workflow? If so, please close the defect.

sorry for the  later reply. I saw the initial email but went on vacation.
 this sounds fine to me.

thanks.
Comment 12 Armin Kuster 2017-08-06 23:09:52 UTC
Created attachment 3920 [details]
CreateAutoConf
Comment 13 Armin Kuster 2017-08-06 23:10:29 UTC
I am still seeing the error. If we thing this is a sudoers issue, then the AB needs some attention.

We need someone with AB knowledge to look into this.  I have not idea how to make a morty only setup.

this is holding up the dot release so please have Joshua or some

centos7.osl.yoctoproject.org for mips-lsb
Comment 15 Armin Kuster 2017-08-11 04:47:41 UTC
My network hub at home is so slow the qemmips kernel opps on a time out.

  881.500607] EXT4-fs (vda): couldn't mount as ext2 due to feature incompatibilities
[  902.918209] INFO: rcu_preempt self-detected stall on CPU
[  902.918391] 	0: (2100 ticks this GP) idle=1af/140000000000001/0 softirq=60/60 fqs=0 
[  902.918460] 	 (t=2100 jiffies g=-256 c=-257 q=7)
[  902.918515] rcu_preempt kthread starved for 2100 jiffies!

need to order a gig hub.

I am push x11 console back to my lap top.

My server wont autostart the tap device on morty so there maybe another bug here, I have to start it manually.
Comment 16 Armin Kuster 2017-08-17 14:23:38 UTC
think I found the problem. It has to do the the change i made to fix another qemumips issue. its on the AB to verify
Comment 17 Armin Kuster 2017-08-20 18:18:12 UTC
ok. my fix broke multiplib mips64 core-image-minimal testimage but fixed this issue.

with my fix removed, is failure is not longer an issue. We go back the devtmpfs hangs. I am trying later kernel version in pyro as far as I know, we are not seeing any issue in pyro.
Comment 18 Armin Kuster 2017-08-31 14:37:09 UTC
this is fixed by removing my custom patch.

code in morty now.
Comment 19 Armin Kuster 2017-09-18 17:30:29 UTC
builds fine now with changes.