Skip to contentSkip to conversation

Error while testing "bitbake core-image-base -c testimage -v" #bitbake #dunfell

DISCUSSION [email protected] 3 participants 5 messages Jun 14, 2023 – Jun 16, 2023

lore
Share & tools
lore
#0 lore raw

Hi all,

I was testing my *core-image-base -c testimage* with test-suit and getting error:-

*ERROR: core-image-base-1.0-r0 do_testimage: Output from runqemu:*
*runqemu - WARNING - /home/kush/khu/sources/build/tmp-glibc/deploy/images/board/core-image-base-board.qemuboot.conf doesn't exist* *ls: cannot access '/home/kush/khu/sources/build/tmp-glibc/deploy/images/board/*.qemuboot.conf': No such file or directory* *runqemu - ERROR - Command 'ls -t /home/kush/khu/sources/build/tmp-glibc/deploy/images/board/*.qemuboot.conf' returned non-zero exit status 2.* *runqemu - INFO - Cleaning up*

WARNING: core-image-base-1.0-r0 do_testimage: Qemu ended unexpectedly, dump data from host is in /home/integration-team/kush/khu/sources/build/tmp-glibc/log/runtime-hostdump/202306141146_qemu
ERROR: core-image-base-1.0-r0 do_testimage: Error executing a python function in exec_python_func() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
0001:
*** 0002:do_testimage(d)
0003:
File: '/home/integration-team/kush/khu/sources/openembedded-core/meta/classes/testimage.bbclass', lineno: 129, function: do_testimage 0125:    netstat -an
0126:}
0127:
0128:python do_testimage() {
*** 0129:    testimage_main(d)
0130:}
0131:
0132:addtask testimage
0133:do_testimage[nostamp] = "1"
File: '/home/integration-team/kush/khu/sources/openembedded-core/meta/classes/testimage.bbclass', lineno: 371, function: testimage_main 0367:    orig_sigterm_handler = signal.signal(signal.SIGTERM, sigterm_exception)
0368:    try:
0369:        # We need to check if runqemu ends unexpectedly
0370:        # or if the worker send us a SIGTERM
*** 0371:        tc.target.start(params=d.getVar("TEST_QEMUPARAMS"), runqemuparams=d.getVar("TEST_RUNQEMUPARAMS")) 0372:        import threading
0373:        try:
0374:            threading.Timer(int(d.getVar("TEST_OVERALL_TIMEOUT")), handle_test_timeout, (int(d.getVar("TEST_OVERALL_TIMEOUT")),)).start() 0375:        except ValueError:
File: '/home/integration-team/kush/khu/sources/openembedded-core/meta/lib/oeqa/core/target/qemu.py', lineno: 67, function: start 0063:            if self.runner.server_ip:
0064:                self.server_ip = self.runner.server_ip
0065:        else:
0066:            self.stop()
*** 0067:            raise RuntimeError("FAILED to start qemu - check the task log and the boot log")
0068:
0069:    def stop(self):
0070:        self.runner.stop()
Exception: RuntimeError: FAILED to start qemu - check the task log and the boot log

ERROR: Logfile of failure stored in: /home/kush/khu/sources/build/tmp-glibc/work/board-oe-linux/core-image-base/1.0-r0/temp/log.do_testimage.17255
ERROR: Task (/home/kush/khu/sources/meta-exaleap/recipes-images/images/core-image-base.bb:do_testimage) failed with exit code '1'

Can anyone help me in this, where i am doing wrong.

T&R
luvkhush

#1 lore raw
Quoted 7 lines · On Wed, Jun 14, 2023 at 1:49 AM <[email protected]> wrote:

Hi all,

I was testing my core-image-base -c testimage with test-suit and getting error:-

ERROR: core-image-base-1.0-r0 do_testimage: Output from runqemu:
runqemu - WARNING - /home/kush/khu/sources/build/tmp-glibc/deploy/images/board/core-image-base-board.qemuboot.conf doesn't exist

You do not have image built. So first build the image then run tests.

bitbake core-image-base
bitbake core-image-base -ctestimage

Or you can add TESTIMAGE_AUTO:qemuall = "1" to local.conf which will run the tests automatically when doing bitbake core-image-base for any qemu based machine target and second step is not needed.

Quoted 63 lines

ls: cannot access '/home/kush/khu/sources/build/tmp-glibc/deploy/images/board/*.qemuboot.conf': No such file or directory runqemu - ERROR - Command 'ls -t /home/kush/khu/sources/build/tmp-glibc/deploy/images/board/*.qemuboot.conf' returned non-zero exit status 2. runqemu - INFO - Cleaning up

WARNING: core-image-base-1.0-r0 do_testimage: Qemu ended unexpectedly, dump data from host is in /home/integration-team/kush/khu/sources/build/tmp-glibc/log/runtime-hostdump/202306141146_qemu
ERROR: core-image-base-1.0-r0 do_testimage: Error executing a python function in exec_python_func() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_python_func() autogenerated', lineno: 2, function: <module>

     0001:
 *** 0002:do_testimage(d)
     0003:
File: '/home/integration-team/kush/khu/sources/openembedded-core/meta/classes/testimage.bbclass', lineno: 129, function: do_testimage
     0125:    netstat -an
     0126:}
     0127:
     0128:python do_testimage() {
 *** 0129:    testimage_main(d)
     0130:}
     0131:
     0132:addtask testimage
     0133:do_testimage[nostamp] = "1"

File: '/home/integration-team/kush/khu/sources/openembedded-core/meta/classes/testimage.bbclass', lineno: 371, function: testimage_main
0367: orig_sigterm_handler = signal.signal(signal.SIGTERM, sigterm_exception)
0368: try:
0369: # We need to check if runqemu ends unexpectedly
0370: # or if the worker send us a SIGTERM

 *** 0371:        tc.target.start(params=d.getVar("TEST_QEMUPARAMS"), runqemuparams=d.getVar("TEST_RUNQEMUPARAMS"))
     0372:        import threading
     0373:        try:

0374: threading.Timer(int(d.getVar("TEST_OVERALL_TIMEOUT")), handle_test_timeout, (int(d.getVar("TEST_OVERALL_TIMEOUT")),)).start()
0375: except ValueError:
File: '/home/integration-team/kush/khu/sources/openembedded-core/meta/lib/oeqa/core/target/qemu.py', lineno: 67, function: start
0063: if self.runner.server_ip:
0064: self.server_ip = self.runner.server_ip
0065: else:
0066: self.stop()
*** 0067: raise RuntimeError("FAILED to start qemu - check the task log and the boot log")

     0068:
     0069:    def stop(self):
     0070:        self.runner.stop()

Exception: RuntimeError: FAILED to start qemu - check the task log and the boot log

ERROR: Logfile of failure stored in: /home/kush/khu/sources/build/tmp-glibc/work/board-oe-linux/core-image-base/1.0-r0/temp/log.do_testimage.17255
ERROR: Task (/home/kush/khu/sources/meta-exaleap/recipes-images/images/core-image-base.bb:do_testimage) failed with exit code '1'

Can anyone help me in this, where i am doing wrong.

T&R
luvkhush

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
You automatically follow any topics you start or reply to. View/Reply Online (#60287): https://lists.yoctoproject.org/g/yocto/message/60287
Mute This Topic: https://lists.yoctoproject.org/mt/99523749/1997914
Mute #bitbake:https://lists.yoctoproject.org/g/yocto/mutehashtag/bitbake Mute #dunfell:https://lists.yoctoproject.org/g/yocto/mutehashtag/dunfell Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#2 lore raw

We don't want to build qemu at all. We are building for our custom target machine.

Same commands we have executed we want to exclude qemu test running. Only our target testimage should pass .

Regards,
Sateesh

Quoted 112 lines · Khem Raj,
Quoted 4 lines · On Wed, Jun 14, 2023 at 1:49 AM <[email protected]> wrote:

Hi all,

I was testing my core-image-base -c testimage with test-suit and getting

error:-

Quoted 3 lines

ERROR: core-image-base-1.0-r0 do_testimage: Output from runqemu:
runqemu - WARNING -

/home/kush/khu/sources/build/tmp-glibc/deploy/images/board/core-image-base-board.qemuboot.conf doesn't exist

You do not have image built. So first build the image then run tests.

bitbake core-image-base
bitbake core-image-base -ctestimage

Or you can add TESTIMAGE_AUTO:qemuall = "1" to local.conf which will run the tests automatically when doing bitbake core-image-base for any qemu based machine target and second step is not needed.

Quoted 1 line

ls: cannot access

'/home/kush/khu/sources/build/tmp-glibc/deploy/images/board/*.qemuboot.conf':
No such file or directory

Quoted 1 line

runqemu - ERROR - Command 'ls -t

/home/kush/khu/sources/build/tmp-glibc/deploy/images/board/*.qemuboot.conf' returned non-zero exit status 2.

Quoted 4 lines

runqemu - INFO - Cleaning up

WARNING: core-image-base-1.0-r0 do_testimage: Qemu ended unexpectedly,

dump data from host is in /home/integration-team/kush/khu/sources/build/tmp-glibc/log/runtime-hostdump/202306141146_qemu

Quoted 1 line

ERROR: core-image-base-1.0-r0 do_testimage: Error executing a python

function in exec_python_func() autogenerated:

Quoted 2 lines

The stack trace of python calls that resulted in this exception/failure

was:

Quoted 5 lines

File: 'exec_python_func() autogenerated', lineno: 2, function: <module>

     0001:
 *** 0002:do_testimage(d)
     0003:

File:

'/home/integration-team/kush/khu/sources/openembedded-core/meta/classes/testimage.bbclass',
lineno: 129, function: do_testimage

Quoted 10 lines
     0125:    netstat -an
     0126:}
     0127:
     0128:python do_testimage() {
 *** 0129:    testimage_main(d)
     0130:}
     0131:
     0132:addtask testimage
     0133:do_testimage[nostamp] = "1"

File:

'/home/integration-team/kush/khu/sources/openembedded-core/meta/classes/testimage.bbclass',
lineno: 371, function: testimage_main

Quoted 1 line

0367: orig_sigterm_handler = signal.signal(signal.SIGTERM,

sigterm_exception)

Quoted 4 lines

0368: try:
0369: # We need to check if runqemu ends unexpectedly
0370: # or if the worker send us a SIGTERM
*** 0371: tc.target.start(params=d.getVar("TEST_QEMUPARAMS"),

runqemuparams=d.getVar("TEST_RUNQEMUPARAMS"))

Quoted 3 lines
     0372:        import threading
     0373:        try:
     0374:

threading.Timer(int(d.getVar("TEST_OVERALL_TIMEOUT")), handle_test_timeout, (int(d.getVar("TEST_OVERALL_TIMEOUT")),)).start()

Quoted 2 lines

0375: except ValueError:
File:

'/home/integration-team/kush/khu/sources/openembedded-core/meta/lib/oeqa/core/target/qemu.py',
lineno: 67, function: start

Quoted 5 lines

0063: if self.runner.server_ip:
0064: self.server_ip = self.runner.server_ip
0065: else:
0066: self.stop()
*** 0067: raise RuntimeError("FAILED to start qemu - check

the task log and the boot log")

Quoted 4 lines
     0068:
     0069:    def stop(self):
     0070:        self.runner.stop()

Exception: RuntimeError: FAILED to start qemu - check the task log and

the boot log

Quoted 2 lines

ERROR: Logfile of failure stored in:

/home/kush/khu/sources/build/tmp-glibc/work/board-oe-linux/core-image-base/1.0-r0/temp/log.do_testimage.17255

Quoted 1 line

ERROR: Task

(/home/kush/khu/sources/meta-exaleap/recipes-images/images/core-image-base.bb:do_testimage) failed with exit code '1'

Quoted 8 lines

Can anyone help me in this, where i am doing wrong.

T&R
luvkhush

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#60318):
https://lists.yoctoproject.org/g/yocto/message/60318
Mute This Topic: https://lists.yoctoproject.org/mt/99523749/4526955
Mute #bitbake:https://lists.yoctoproject.org/g/yocto/mutehashtag/bitbake Mute #dunfell:https://lists.yoctoproject.org/g/yocto/mutehashtag/dunfell Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#3 lore raw

for real targets. You need to do some steps

add following to conf/local.conf

TEST_SERVER_IP = "<ip of build machine>"
MAGE_FEATURES:append = " debug-tweaks"
DISTRO_FEATURES:append = " ptest"
TEST_TARGET_IP = "<ip of target board>"
TEST_TARGET = "simpleremote"

2. Build image
3. flash this image on to target ( different boards may need different instructions )
4. boot the target and ensure its connected to network and has IP address
5. run bitbake -ctestimage <image>

Quoted 94 lines · sateesh m

We don't want to build qemu at all. We are building for our custom target machine.

Same commands we have executed we want to exclude qemu test running. Only our target testimage should pass .

Regards,
Sateesh

Quoted 84 lines · Khem Raj,
Quoted 7 lines · On Wed, Jun 14, 2023 at 1:49 AM <[email protected]> wrote:

Hi all,

I was testing my core-image-base -c testimage with test-suit and getting error:-

ERROR: core-image-base-1.0-r0 do_testimage: Output from runqemu:
runqemu - WARNING - /home/kush/khu/sources/build/tmp-glibc/deploy/images/board/core-image-base-board.qemuboot.conf doesn't exist

You do not have image built. So first build the image then run tests.

bitbake core-image-base
bitbake core-image-base -ctestimage

Or you can add TESTIMAGE_AUTO:qemuall = "1" to local.conf which will run the tests automatically when doing bitbake core-image-base for any qemu based machine target and second step is not needed.

Quoted 44 lines

ls: cannot access '/home/kush/khu/sources/build/tmp-glibc/deploy/images/board/*.qemuboot.conf': No such file or directory runqemu - ERROR - Command 'ls -t /home/kush/khu/sources/build/tmp-glibc/deploy/images/board/*.qemuboot.conf' returned non-zero exit status 2. runqemu - INFO - Cleaning up

WARNING: core-image-base-1.0-r0 do_testimage: Qemu ended unexpectedly, dump data from host is in /home/integration-team/kush/khu/sources/build/tmp-glibc/log/runtime-hostdump/202306141146_qemu
ERROR: core-image-base-1.0-r0 do_testimage: Error executing a python function in exec_python_func() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_python_func() autogenerated', lineno: 2, function: <module>

     0001:
 *** 0002:do_testimage(d)
     0003:
File: '/home/integration-team/kush/khu/sources/openembedded-core/meta/classes/testimage.bbclass', lineno: 129, function: do_testimage
     0125:    netstat -an
     0126:}
     0127:
     0128:python do_testimage() {
 *** 0129:    testimage_main(d)
     0130:}
     0131:
     0132:addtask testimage
     0133:do_testimage[nostamp] = "1"

File: '/home/integration-team/kush/khu/sources/openembedded-core/meta/classes/testimage.bbclass', lineno: 371, function: testimage_main
0367: orig_sigterm_handler = signal.signal(signal.SIGTERM, sigterm_exception)
0368: try:
0369: # We need to check if runqemu ends unexpectedly
0370: # or if the worker send us a SIGTERM

 *** 0371:        tc.target.start(params=d.getVar("TEST_QEMUPARAMS"), runqemuparams=d.getVar("TEST_RUNQEMUPARAMS"))
     0372:        import threading
     0373:        try:

0374: threading.Timer(int(d.getVar("TEST_OVERALL_TIMEOUT")), handle_test_timeout, (int(d.getVar("TEST_OVERALL_TIMEOUT")),)).start()
0375: except ValueError:
File: '/home/integration-team/kush/khu/sources/openembedded-core/meta/lib/oeqa/core/target/qemu.py', lineno: 67, function: start
0063: if self.runner.server_ip:
0064: self.server_ip = self.runner.server_ip
0065: else:
0066: self.stop()
*** 0067: raise RuntimeError("FAILED to start qemu - check the task log and the boot log")

     0068:
     0069:    def stop(self):
     0070:        self.runner.stop()

Exception: RuntimeError: FAILED to start qemu - check the task log and the boot log

Quoted 10 lines

ERROR: Logfile of failure stored in: /home/kush/khu/sources/build/tmp-glibc/work/board-oe-linux/core-image-base/1.0-r0/temp/log.do_testimage.17255
ERROR: Task (/home/kush/khu/sources/meta-exaleap/recipes-images/images/core-image-base.bb:do_testimage) failed with exit code '1'

Can anyone help me in this, where i am doing wrong.

T&R
luvkhush

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#60318): https://lists.yoctoproject.org/g/yocto/message/60318
Mute This Topic: https://lists.yoctoproject.org/mt/99523749/4526955
Mute #bitbake:https://lists.yoctoproject.org/g/yocto/mutehashtag/bitbake Mute #dunfell:https://lists.yoctoproject.org/g/yocto/mutehashtag/dunfell Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#4 lore raw

Very helpful! Issue fixed.

Thank you Khem Raj.

Regards,
Sateesh

Quoted 146 lines · Khem Raj,

for real targets. You need to do some steps

add following to conf/local.conf

TEST_SERVER_IP = "<ip of build machine>"
MAGE_FEATURES:append = " debug-tweaks"
DISTRO_FEATURES:append = " ptest"
TEST_TARGET_IP = "<ip of target board>"
TEST_TARGET = "simpleremote"

2. Build image
3. flash this image on to target ( different boards may need different instructions )
4. boot the target and ensure its connected to network and has IP address
5. run bitbake -ctestimage <image>

Quoted 2 lines · sateesh m

We don't want to build qemu at all. We are building for our custom

target machine.

Quoted 2 lines

Same commands we have executed we want to exclude qemu test running.

Only our target testimage should pass .

Quoted 12 lines

Regards,
Sateesh

Quoted 6 lines · Khem Raj,
Quoted 4 lines · On Wed, Jun 14, 2023 at 1:49 AM <[email protected]> wrote:

Hi all,

I was testing my core-image-base -c testimage with test-suit and

getting error:-

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

ERROR: core-image-base-1.0-r0 do_testimage: Output from runqemu:
runqemu - WARNING -

/home/kush/khu/sources/build/tmp-glibc/deploy/images/board/core-image-base-board.qemuboot.conf doesn't exist

Quoted 7 lines
Quoted 7 lines

You do not have image built. So first build the image then run tests.

bitbake core-image-base
bitbake core-image-base -ctestimage

Or you can add TESTIMAGE_AUTO:qemuall = "1" to local.conf which will

run

Quoted 4 lines
Quoted 4 lines

the tests automatically when doing bitbake core-image-base for any qemu based machine target and second step is not needed.

Quoted 1 line

ls: cannot access

'/home/kush/khu/sources/build/tmp-glibc/deploy/images/board/*.qemuboot.conf':
No such file or directory

Quoted 1 line
Quoted 1 line
Quoted 1 line

runqemu - ERROR - Command 'ls -t

/home/kush/khu/sources/build/tmp-glibc/deploy/images/board/*.qemuboot.conf' returned non-zero exit status 2.

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

runqemu - INFO - Cleaning up

WARNING: core-image-base-1.0-r0 do_testimage: Qemu ended

unexpectedly, dump data from host is in /home/integration-team/kush/khu/sources/build/tmp-glibc/log/runtime-hostdump/202306141146_qemu

Quoted 1 line
Quoted 1 line
Quoted 1 line

ERROR: core-image-base-1.0-r0 do_testimage: Error executing a python

function in exec_python_func() autogenerated:

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

The stack trace of python calls that resulted in this

exception/failure was:

Quoted 1 line
Quoted 1 line
Quoted 1 line

File: 'exec_python_func() autogenerated', lineno: 2, function:

<module>

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
     0001:
 *** 0002:do_testimage(d)
     0003:

File:

'/home/integration-team/kush/khu/sources/openembedded-core/meta/classes/testimage.bbclass',
lineno: 129, function: do_testimage

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
     0125:    netstat -an
     0126:}
     0127:
     0128:python do_testimage() {
 *** 0129:    testimage_main(d)
     0130:}
     0131:
     0132:addtask testimage
     0133:do_testimage[nostamp] = "1"

File:

'/home/integration-team/kush/khu/sources/openembedded-core/meta/classes/testimage.bbclass',
lineno: 371, function: testimage_main

Quoted 1 line
Quoted 1 line
Quoted 1 line

0367: orig_sigterm_handler = signal.signal(signal.SIGTERM,

sigterm_exception)

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

0368: try:
0369: # We need to check if runqemu ends unexpectedly
0370: # or if the worker send us a SIGTERM
*** 0371: tc.target.start(params=d.getVar("TEST_QEMUPARAMS"),

runqemuparams=d.getVar("TEST_RUNQEMUPARAMS"))

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
     0372:        import threading
     0373:        try:
     0374:

threading.Timer(int(d.getVar("TEST_OVERALL_TIMEOUT")), handle_test_timeout, (int(d.getVar("TEST_OVERALL_TIMEOUT")),)).start()

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

0375: except ValueError:
File:

'/home/integration-team/kush/khu/sources/openembedded-core/meta/lib/oeqa/core/target/qemu.py',
lineno: 67, function: start

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

0063: if self.runner.server_ip:
0064: self.server_ip = self.runner.server_ip
0065: else:
0066: self.stop()
*** 0067: raise RuntimeError("FAILED to start qemu -

check the task log and the boot log")

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
     0068:
     0069:    def stop(self):
     0070:        self.runner.stop()

Exception: RuntimeError: FAILED to start qemu - check the task log

and the boot log

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

ERROR: Logfile of failure stored in:

/home/kush/khu/sources/build/tmp-glibc/work/board-oe-linux/core-image-base/1.0-r0/temp/log.do_testimage.17255

Quoted 1 line
Quoted 1 line
Quoted 1 line

ERROR: Task

(/home/kush/khu/sources/meta-exaleap/recipes-images/images/core-image-base.bb:do_testimage) failed with exit code '1'

Quoted 9 lines
Quoted 9 lines
Quoted 8 lines

Can anyone help me in this, where i am doing wrong.

T&R
luvkhush

Quoted 3 lines
Quoted 3 lines

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#60318):

https://lists.yoctoproject.org/g/yocto/message/60318

Quoted 2 lines
Quoted 2 lines

Mute This Topic: https://lists.yoctoproject.org/mt/99523749/4526955
Mute #bitbake:

https://lists.yoctoproject.org/g/yocto/mutehashtag/bitbake

Quoted 1 line
Quoted 1 line

Mute #dunfell:

https://lists.yoctoproject.org/g/yocto/mutehashtag/dunfell

Quoted 2 lines
Quoted 2 lines

Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [

[email protected]]

Quoted 2 lines
Quoted 2 lines

-=-=-=-=-=-=-=-=-=-=-=-