Hi All,
I am currently trying to use WFX workflows with swupdate and I understand there is already a existing WFX integration available with the help of suricatta. I have updated the necessary configs in the suricatta section of swupdate.cfg file as below:
suricatta :
{
id = "clientId";
url = http://<WFX-SERVER-IP>/api/wfx/v1;
polldelay = 5;
};
I am trying to use the Direct workflow which is part of the DAU workflow made available by WFX. I am trying this in qemu.
After I create the WFX job, I see that swupdate downloads and installs the update.
After the WFX state transitions from INSTALLING -> INSTALLED, the device reboots. Attaching a part of the journalctl logs.
-------------------------------------------------------------------------------------------------------------------------------------------------
May 31 11:27:35 demo swupdate.sh[360]: [INFO ] : SWUPDATE running : [notify_helper] : Round Robin Handler: Setting bootloader environment: kernelfile=C:BOOT1:linux.efi
May 31 11:27:35 demo swupdate.sh[360]: [TRACE] : SWUPDATE running : [l_handler_wrapper] : [Lua handler] returned: 0
May 31 11:27:35 demo swupdate.sh[360]: Probing config file at /tmp/mnt-bihjTK/BGENV.DAT.
May 31 11:27:35 demo swupdate.sh[360]: [INFO ] : SWUPDATE successful ! SWUPDATE successful !
May 31 11:27:35 demo systemd[1]: tmp-mnt\x2dbihjTK.mount: Deactivated successfully.
May 31 11:27:35 demo swupdate.sh[360]: [TRACE] : SWUPDATE running : [network_initializer] : Main thread sleep again !
May 31 11:27:35 demo swupdate.sh[360]: [INFO ] : No SWUPDATE running : Waiting for requests...
May 31 11:27:35 demo swupdate.sh[360]: [DEBUG] : SWUPDATE running : [channel_callback_headers] : Header not processed: 'HTTP/1.1 100 Continue
May 31 11:27:35 demo swupdate.sh[360]: [DEBUG] : SWUPDATE running : [channel_callback_headers] : Header not processed: '
May 31 11:27:35 demo swupdate.sh[360]: [DEBUG] : SWUPDATE running : [channel_callback_headers] : Header not processed: 'HTTP/1.1 200 OK
May 31 11:27:35 demo swupdate.sh[360]: [DEBUG] : SWUPDATE running : [notify_helper] : [100%] Finished.
May 31 11:27:35 demo swupdate.sh[360]: [INFO ] : SWUPDATE running : [notify_helper] : Invoking transition REGULAR:INSTALLING → REGULAR:INSTALLED
May 31 11:27:35 demo swupdate.sh[360]: [DEBUG] : SWUPDATE running : [channel_callback_headers] : Header not processed: 'HTTP/1.1 100 Continue
May 31 11:27:35 demo swupdate.sh[360]: [DEBUG] : SWUPDATE running : [channel_callback_headers] : Header not processed: '
May 31 11:27:35 demo swupdate.sh[360]: [DEBUG] : SWUPDATE running : [channel_callback_headers] : Header not processed: 'HTTP/1.1 200 OK
May 31 11:27:35 demo swupdate.sh[360]: [DEBUG] : SWUPDATE running : [channel_callback_headers] : Header processed: Content-Type : application/json
May 31 11:27:35 demo swupdate.sh[360]: [DEBUG] : SWUPDATE running : [channel_callback_headers] : Header processed: Vary : Origin
May 31 11:27:35 demo swupdate.sh[360]: [DEBUG] : SWUPDATE running : [channel_callback_headers] : Header processed: X-Response-Filter : del(.context)
May 31 11:27:35 demo swupdate.sh[360]: [DEBUG] : SWUPDATE running : [channel_callback_headers] : Header processed: Date : Fri, 31 May 2024 11:27:38 GMT
May 31 11:27:35 demo swupdate.sh[360]: [DEBUG] : SWUPDATE running : [channel_callback_headers] : Header processed: Content-Length : 104
May 31 11:27:35 demo swupdate.sh[360]: [DEBUG] : SWUPDATE running : [channel_callback_headers] : Header not processed: '
May 31 11:27:35 demo swupdate.sh[360]: [TRACE] : SWUPDATE running : [channel_log_effective_url] : Channel's effective URL resolved to http://<WFX-SERVER-IP>/api/wfx/v1/jobs/24870055-7ebd-4834-885b-5b3a0257c3c4/status
May 31 11:27:35 demo swupdate.sh[360]: [DEBUG] : SWUPDATE running : [notify_helper] : [100%] Finished.
May 31 11:27:35 demo swupdate.sh[360]: [INFO ] : SWUPDATE running : [notify_helper] : Yielding to wfx.
May 31 11:27:35 demo swupdate.sh[360]: [DEBUG] : SWUPDATE running : [start_suricatta] : No pending action to process.
May 31 11:27:35 demo swupdate.sh[360]: [DEBUG] : SWUPDATE running : [suricatta_wait] : Sleeping for 5 seconds.
-- Boot c991253307894cd09f2536936738fbd0 --
May 31 11:27:48 demo kernel: Linux version 6.1.90-cip20 (gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT_DYNAMIC Thu, 01 Jan 1970 01:00:00 +0000
May 31 11:27:48 demo kernel: Command line: console=tty0 console=ttyS0,115200 rootwait earlyprintk watchdog.handle_boot_enabled=0 iTCO_wdt.nowayout=1
May 31 11:27:48 demo kernel: BIOS-provided physical RAM map:
May 31 11:27:48 demo kernel: BIOS-e820: [mem 0x0000000000000000-0x000000000009ffff] usable
May 31 11:27:48 demo kernel: BIOS-e820: [mem 0x0000000000100000-0x0000000000805fff] usable
May 31 11:27:48 demo kernel: BIOS-e820: [mem 0x0000000000806000-0x0000000000807fff] ACPI NVS
May 31 11:27:48 demo kernel: BIOS-e820: [mem 0x0000000000808000-0x000000000080ffff] usable
May 31 11:27:48 demo kernel: BIOS-e820: [mem 0x0000000000810000-0x00000000008fffff] ACPI NVS
-------------------------------------------------------------------------------------------------------------------------------------------------------
After the device reboots, WFX state transitions from ACTIVATE -> ACTIVATING and then subsequently reboots the device again. (This reboot when the wfx state transitions to ACTIVATING is expected).
But the previous reboot is not expected.
By the way I am using SWUpdate from debian salsa. (Commit: 6ccd44a8539ebb880bf0dac408d5db5de7e2de99)
Would like to understand if I am missing something here.
Thanks and Regards,
Adithya Balakumar