Dockerfile.amd64: use edk2 firmware from qemu package
Signed-off-by: Joseph Kogut [email protected]
jakogut push balena-io-playground/balenaVirt
commit sha: 68bfb216d2eb946b0ab34dee2e152e7c12a30446
push time in 2 days agojakogut issue balena-os/leviathan
client_1 | [2022-05-20T18:37:58.600Z][worker-os] # Subtest: Unmanaged BalenaOS release suite
client_1 | [2022-05-20T18:37:58.600Z][worker-os] not ok 1 - request to https://api.undefined/user/v1/whoami failed, reason: getaddrinfo ENOTFOUND api.undefined
client_1 | [2022-05-20T18:37:58.600Z][worker-os] ---
client_1 | [2022-05-20T18:37:58.600Z][worker-os] stack: |
client_1 | [2022-05-20T18:37:58.600Z][worker-os] ClientRequest.<anonymous> (node_modules/node-fetch/lib/index.js:1491:11)
client_1 | [2022-05-20T18:37:58.601Z][worker-os] at:
client_1 | [2022-05-20T18:37:58.601Z][worker-os] line: 1491
client_1 | [2022-05-20T18:37:58.601Z][worker-os] column: 11
client_1 | [2022-05-20T18:37:58.601Z][worker-os] file: node_modules/node-fetch/lib/index.js
client_1 | [2022-05-20T18:37:58.601Z][worker-os] function: ClientRequest.<anonymous>
client_1 | [2022-05-20T18:37:58.601Z][worker-os] type: system
client_1 | [2022-05-20T18:37:58.601Z][worker-os] errno: ENOTFOUND
client_1 | [2022-05-20T18:37:58.601Z][worker-os] code: ENOTFOUND
client_1 | [2022-05-20T18:37:58.601Z][worker-os] requestOptions:
client_1 | method: GET
client_1 | [2022-05-20T18:37:58.601Z][worker-os] json: true
client_1 | [2022-05-20T18:37:58.601Z][worker-os] strictSSL: true
client_1 | [2022-05-20T18:37:58.601Z][worker-os] headers:
client_1 | [2022-05-20T18:37:58.601Z][worker-os] Authorization: Bearer undefined
client_1 | [2022-05-20T18:37:58.601Z][worker-os] X-Balena-Client: balena-sdk/16.12.1
client_1 | [2022-05-20T18:37:58.602Z][worker-os] Accept-Encoding: compress, gzip
client_1 | [2022-05-20T18:37:58.602Z][worker-os] sendToken: true
client_1 | [2022-05-20T18:37:58.602Z][worker-os] refreshToken: true
client_1 | [2022-05-20T18:37:58.602Z][worker-os] retries: 0
client_1 | [2022-05-20T18:37:58.602Z][worker-os] url: /user/v1/whoami
client_1 | [2022-05-20T18:37:58.602Z][worker-os] baseUrl: https://api.undefined
client_1 | [2022-05-20T18:37:58.602Z][worker-os] timeout: 59000
client_1 | [2022-05-20T18:37:58.602Z][worker-os] test: Unmanaged BalenaOS release suite
client_1 | source: >
client_1 | [2022-05-20T18:37:58.602Z][worker-os] req.on('error', function (err) {
client_1 | [2022-05-20T18:37:58.602Z][worker-os] reject(new FetchError(`request to ${request.url} failed, reason: ${err.message}`, 'system', err));
client_1 | [2022-05-20T18:37:58.602Z][worker-os] ----------^
client_1 | [2022-05-20T18:37:58.602Z][worker-os] finalize();
client_1 | [2022-05-20T18:37:58.602Z][worker-os] });
client_1 | [2022-05-20T18:37:58.602Z][worker-os] ...
client_1 | [2022-05-20T18:37:58.607Z][worker-os]
client_1 | [2022-05-20T18:37:58.607Z][worker-os] Bail out! request to https://api.undefined/user/v1/whoami failed, reason: getaddrinfo ENOTFOUND api.undefined
client_1 | [2022-05-20T18:37:58.609Z][worker-os] Bail out! request to https://api.undefined/user/v1/whoami failed, reason: getaddrinfo ENOTFOUND api.undefined
client_1 | [2022-05-20T18:37:58.609Z][worker-os] Test suite completed. Tearing down now.
client_1 | [2022-05-20T18:37:58.609Z][worker-os] Worker teardown
jakogut issue comment balena-os/leviathan
https://11a1d0258e8782b188c3598b57c155c6.balena-devices.com/job/leviathan-raspberrypi3/507/console
[2021-09-21T19:13:02.563Z][27718d4-os] DUT has rebooted & is back online
[2021-09-21T19:13:05.605Z][27718d4-os] # Subtest: os.network.connectivity test
[2021-09-21T19:13:05.605Z][27718d4-os] ok 1 - NetworkManager should be configured with uri: http://www.archlinux.org/check_network_status.txt
[2021-09-21T19:13:38.086Z][27718d4-os] 1..1
[2021-09-21T19:13:38.087Z][27718d4-os] ok 4 - os.network.connectivity test # time=90724.69ms
[2021-09-21T19:13:38.087Z][27718d4-os]
[2021-09-21T19:13:55.161Z][27718d4-os] Rebooting the DUT
[2021-09-21T19:14:01.442Z][27718d4-os] (node:4880) UnhandledPromiseRejectionWarning: Error: No response from server
at Socket.<anonymous> (/usr/app/node_modules/ssh2/lib/client.js:313:15)
at Socket.emit (events.js:198:13)
at Socket.EventEmitter.emit (domain.js:448:20)
at TCP._handle.close (net.js:607:12)
[2021-09-21T19:14:01.442Z][27718d4-os] (node:4880) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
[2021-09-21T19:14:01.442Z][27718d4-os] (node:4880) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Actually, from the original message, this appears to be originating from the SSH client. It looks like our new message is less helpful than the old one.
jakogut issue comment balena-os/leviathan
https://11a1d0258e8782b188c3598b57c155c6.balena-devices.com/job/leviathan-raspberrypi3/507/console
[2021-09-21T19:13:02.563Z][27718d4-os] DUT has rebooted & is back online
[2021-09-21T19:13:05.605Z][27718d4-os] # Subtest: os.network.connectivity test
[2021-09-21T19:13:05.605Z][27718d4-os] ok 1 - NetworkManager should be configured with uri: http://www.archlinux.org/check_network_status.txt
[2021-09-21T19:13:38.086Z][27718d4-os] 1..1
[2021-09-21T19:13:38.087Z][27718d4-os] ok 4 - os.network.connectivity test # time=90724.69ms
[2021-09-21T19:13:38.087Z][27718d4-os]
[2021-09-21T19:13:55.161Z][27718d4-os] Rebooting the DUT
[2021-09-21T19:14:01.442Z][27718d4-os] (node:4880) UnhandledPromiseRejectionWarning: Error: No response from server
at Socket.<anonymous> (/usr/app/node_modules/ssh2/lib/client.js:313:15)
at Socket.emit (events.js:198:13)
at Socket.EventEmitter.emit (domain.js:448:20)
at TCP._handle.close (net.js:607:12)
[2021-09-21T19:14:01.442Z][27718d4-os] (node:4880) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
[2021-09-21T19:14:01.442Z][27718d4-os] (node:4880) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
My normal tricks don't work, grepping for "No response from server" produces nothing
jakogut issue comment balena-os/leviathan
https://11a1d0258e8782b188c3598b57c155c6.balena-devices.com/job/leviathan-raspberrypi3/507/console
[2021-09-21T19:13:02.563Z][27718d4-os] DUT has rebooted & is back online
[2021-09-21T19:13:05.605Z][27718d4-os] # Subtest: os.network.connectivity test
[2021-09-21T19:13:05.605Z][27718d4-os] ok 1 - NetworkManager should be configured with uri: http://www.archlinux.org/check_network_status.txt
[2021-09-21T19:13:38.086Z][27718d4-os] 1..1
[2021-09-21T19:13:38.087Z][27718d4-os] ok 4 - os.network.connectivity test # time=90724.69ms
[2021-09-21T19:13:38.087Z][27718d4-os]
[2021-09-21T19:13:55.161Z][27718d4-os] Rebooting the DUT
[2021-09-21T19:14:01.442Z][27718d4-os] (node:4880) UnhandledPromiseRejectionWarning: Error: No response from server
at Socket.<anonymous> (/usr/app/node_modules/ssh2/lib/client.js:313:15)
at Socket.emit (events.js:198:13)
at Socket.EventEmitter.emit (domain.js:448:20)
at TCP._handle.close (net.js:607:12)
[2021-09-21T19:14:01.442Z][27718d4-os] (node:4880) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
[2021-09-21T19:14:01.442Z][27718d4-os] (node:4880) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
@vipulgupta2048 @klutchell This is still occurring, do we have any information to narrow this down at all?
leviathan-v2-template-client-1 | [2022-05-20T17:33:41.611Z][worker-os] # Subtest: fsck.ext4 tests
leviathan-v2-template-client-1 | [2022-05-20T17:33:41.611Z][worker-os] # Subtest: ext4 filesystems are checked on boot
leviathan-v2-template-client-1 | ok 1 - Filesystem state for resin-rootA should be 'clean with errors'
leviathan-v2-template-client-1 | [2022-05-20T17:33:44.369Z][worker-os] ok 2 - Filesystem state for resin-state should be 'clean with errors'
leviathan-v2-template-client-1 | [2022-05-20T17:33:44.425Z][worker-os] ok 3 - Filesystem state for resin-rootB should be 'clean with errors'
leviathan-v2-template-client-1 | [2022-05-20T17:33:52.499Z][worker-os] ok 4 - Filesystem state for resin-data should be 'clean with errors'
leviathan-v2-template-client-1 | [2022-05-20T17:33:52.499Z][worker-os] Rebooting the DUT
leviathan-v2-template-worker-1 | dnsmasq-dhcp: DHCPREQUEST(brd3qjewrt) 10.10.10.76 52:54:00:12:34:56
leviathan-v2-template-worker-1 | dnsmasq-dhcp: DHCPACK(brd3qjewrt) 10.10.10.76 52:54:00:12:34:56 a7e6325
leviathan-v2-template-client-1 | [2022-05-20T17:35:46.671Z][worker-os] DUT has rebooted & is back online
leviathan-v2-template-client-1 | [2022-05-20T17:36:00.900Z][worker-os] Error: No response from server
https://jenkins.product-os.io/job/leviathan-v2-template/952/console
jakogut issue balena-os/leviathan
When config.js is invalid, such as when a mismatched brace is present, the logged error is so vague it's useless.
core_1 | time="2022-05-20T17:06:09.834101014Z" level=info msg="Daemon has completed initialization"
core_1 | time="2022-05-20T17:06:09.838792974Z" level=info msg="API listen on /var/run/docker.sock"
client_1 | [2022-05-20T17:06:10.414Z] INFO: ERROR ENCOUNTERED: Unexpected identifier.
client_1 | Killing process in 10 seconds...
client_1 | [2022-05-20T17:06:20.417Z] INFO: Cleaning up
client_1 | No workers found...NO TESTS RAN
client_1 | Exiting with 999, client = 999, children:
leviathan_client_1 exited with code 231
jakogut push jakogut/balena-netboot-provisioner
commit sha: cb0915d9ee0aebcda51ea98c5398d155c14d6d9a
push time in 2 days agojakogut pull request balena-os/leviathan
Search for firmware shipped as part of QEMU package to enable cross-platform emulation with UEFI.
Change-type: patch Signed-off-by: Joseph Kogut [email protected]
jakogut in balena-os/leviathan create branch alpine-qemu-firmware
jakogut pull request balena-os/leviathan
Change-type: patch Signed-off-by: Joseph Kogut [email protected]
jakogut in balena-os/leviathan create branch worker-aarch64-firmware
jakogut push balena-io-playground/balenaVirt
commit sha: a24d1587dcc62921748f5d7ceea87be5c542a612
push time in 4 days agojakogut push balena-io-playground/balenaVirt
commit sha: 31879042385b2d9ee883d8d1e7ec63923d880a82
push time in 4 days agojakogut issue comment balena-os/leviathan
We have test cases for the OS now which require the internet connection of the DUT to be disabled.
To do this with the testbot, ip forwarding can be disabled. For qemu devices there's no way to do this, as the tests have no way to execute a command to disable ip forwarding on the worker container that hosts the qemu DUT.
I tested this and it doesn't. Seems we'll need to use iptables to disable external connectivity.
jakogut issue comment balena-os/leviathan
We have test cases for the OS now which require the internet connection of the DUT to be disabled.
To do this with the testbot, ip forwarding can be disabled. For qemu devices there's no way to do this, as the tests have no way to execute a command to disable ip forwarding on the worker container that hosts the qemu DUT.
@rcooke-warwick Disabling IP forwarding should work the exact same with QEMU as with a physical testbot, I think? :thinking:
jakogut push balena-io-playground/balenaVirt
commit sha: eb13dfd0adc2eaca6d654bae9988645fb6e4d13c
push time in 1 week agojakogut merge to balena-os/meta-balena
Fixes: https://github.com/balena-os/meta-balena/issues/2612
Change-type
present on at least one commitSigned-off-by
is presentLooks good, thanks for working on this @klutchell
jakogut issue balena-os/balena-intel
Some newer hardware requires patches only present in this newer kernel. Specifically, Intel 11th gen processors with Iris Xe graphics fail to enumerate connected displays.
[ 8.360230] crtc active state doesn't match with hw state (expected 0, found 1)
[ 8.360268] WARNING: CPU: 0 PID: 166 at drivers/gpu/drm/i915/display/intel_display.c:14330 intel_atomic_commit_tail+0x11e0/0x1220 [i915]
[ 8.360268] Modules linked in: iwlmvm(E) intel_rapl_msr(E) intel_rapl_common(E) x86_pkg_temp_thermal(E) intel_powerclamp(E) coretemp(E) mac80211(E) kvm_intel(E) kvm(E) irqbypass(E) crct10dif_pclmul(E) crc32_pclmul(E) ghash_clmulni_intel(E) iwlwifi(E) snd_hda_intel(E) snd_usb_audio(E) snd_intel_dspcfg(E) snd_hda_codec(E) snd_usbmidi_lib(E) i915(E) snd_hda_core(E) snd_rawmidi(E) intel_lpss_pci(E) intel_lpss(E) snd_seq_device(E) cfg80211(E) igc(E) snd_hwdep(E) thunderbolt(E) pcspkr(E) efi_pstore(E) serio_raw(E) idma64(E) mc(E) iTCO_wdt(E) aesni_intel(E) btusb(E) btrtl(E) snd_pcm(E) crypto_simd(E) intel_pmc_bxt(E) btbcm(E) mei_me(E) iTCO_vendor_support(E) btintel(E) cryptd(E) snd_timer(E) ee1004(E) glue_helper(E) mei(E) evbug(E) mac_hid(E) video(E) intel_hid(E) acpi_tad(E) pinctrl_tigerlake(E) acpi_pad(E) sparse_keymap(E) sch_fq_codel(E)
[ 8.360290] CPU: 0 PID: 166 Comm: kworker/u16:3 Tainted: G W E 5.10.43-yocto-standard #1
[ 8.360290] Hardware name: Azulle BYTE4/Rev PB01-TGL-V10, BIOS PB01 V1.0 11/05/2021
[ 8.360291] Workqueue: events_unbound async_run_entry_fn
[ 8.360319] RIP: 0010:intel_atomic_commit_tail+0x11e0/0x1220 [i915]
[ 8.360320] Code: 05 fb ff ff e9 68 f3 ff ff e8 62 35 e3 d3 0f 0b 49 8b 46 50 e9 c9 fd ff ff e8 52 35 e3 d3 0f 0b e9 54 f7 ff ff e8 46 35 e3 d3 <0f> 0b 48 8b 45 98 0f b6 80 48 01 00 00 e9 2d f7 ff ff e8 2f 35 e3
[ 8.360321] RSP: 0018:ffffa2620099bb40 EFLAGS: 00010286
[ 8.360322] RAX: 0000000000000000 RBX: ffff8f1252c04000 RCX: 0000000000000027
[ 8.360322] RDX: 0000000000000027 RSI: 00000000ffffdfff RDI: ffff8f13c3a18908
[ 8.360323] RBP: ffffa2620099bc28 R08: ffff8f13c3a18900 R09: ffffa2620099b918
[ 8.360323] R10: 0000000000000001 R11: 0000000000000001 R12: ffff8f12541e0000
[ 8.360324] R13: ffff8f12541e0000 R14: ffff8f12540af000 R15: ffff8f1242c1d000
[ 8.360324] FS: 0000000000000000(0000) GS:ffff8f13c3a00000(0000) knlGS:0000000000000000
[ 8.360325] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 8.360325] CR2: 00007fa4c99f2178 CR3: 0000000102fa4003 CR4: 0000000000770ef0
[ 8.360326] PKRU: 55555554
[ 8.360326] Call Trace:
[ 8.360328] ? flush_workqueue_prep_pwqs+0x125/0x140
[ 8.360329] ? flush_workqueue+0x196/0x430
[ 8.360356] intel_atomic_commit+0x303/0x380 [i915]
[ 8.360357] drm_atomic_commit+0x4a/0x50
[ 8.360358] drm_client_modeset_commit_atomic+0x1d2/0x210
[ 8.360359] drm_client_modeset_commit_locked+0x57/0x160
[ 8.360360] drm_client_modeset_commit+0x27/0x50
[ 8.360362] __drm_fb_helper_initial_config_and_unlock.cold+0x30/0xba
[ 8.360363] drm_fb_helper_initial_config+0x36/0x40
[ 8.360395] intel_fbdev_initial_config+0x18/0x30 [i915]
[ 8.360396] async_run_entry_fn+0x3c/0x150
[ 8.360397] process_one_work+0x1e3/0x3b0
[ 8.360398] worker_thread+0x4d/0x3d0
[ 8.360400] ? process_one_work+0x3b0/0x3b0
[ 8.360401] kthread+0x129/0x170
[ 8.360402] ? kthread_park+0x90/0x90
[ 8.360403] ret_from_fork+0x1f/0x30
[ 8.360404] ---[ end trace 96c9fbd64621212f ]---
jakogut push balena-io-playground/balenaVirt
commit sha: 80320ed7ad0397c5972a686fe1beba80447093ca
push time in 3 weeks agojakogut push balena-os/meta-balena
commit sha: cb19043d77a68e24e48a96acb2391938acd7cd71
push time in 3 weeks agojakogut push balena-io-playground/balenaVirt
commit sha: 871aa78e9e4e5778c54c9f3112e1979771ecd0fc
push time in 3 weeks agojakogut pull request balena-os/meta-balena
Change-type: patch Signed-off-by: Joseph Kogut [email protected]
Change-type
present on at least one commitSigned-off-by
is presentjakogut merge to balenablocks/xserver
This gives an explicit DISPLAY
value on the start of the xserver to avoid collision or randomness.
jakogut push balena-os/balena-intel
commit sha: 19b4344fd9d4488ca7487620ee48b948360585f9
push time in 3 weeks agojakogut push balena-os/leviathan
commit sha: c8ff93ccab3fdb52ba58229b1b73536ac5ae7077
push time in 3 weeks ago
Dockerfile: change workdir to /data
This obviates the need to set
GUEST_CONFIG_PATH
if the config is created in the container's/data
directory.Signed-off-by: Joseph Kogut [email protected]