Wind River Support Network

HomeDefectsLINCD-9561
Fixed

LINCD-9561 : The fullmetalupdate.service started before vpn connection is established

Created: Jun 10, 2022    Updated: Jul 20, 2022
Resolved Date: Jun 19, 2022
Found In Version: 10.22.24.0
Fix Version: 10.22.29.0
Severity: Standard
Applicable for: Wind River Linux CD
Component/s: Userspace

Description

$ setup.sh --machine nxp-s32g --distro wrlinux --dl-layers --template feature/ostree feature/fullmetalupate
$ . ./oe-init-build-env
$ bitbake wrlinux-image-std


root@nxp-s32g:~# systemctl status fullmetalupdate

    fullmetalupdate.service - FullMetalUpdate Python daemon
    Loaded: loaded (/usr/lib/systemd/system/fullmetalupdate.service; enabled; vendor preset: enabled)
    Active: active (running) since Thu 2022-04-28 17:42:29 UTC; 9min ago
    Main PID: 360 (fullmetalupdate)
    Tasks: 4 (limit: 3883)
    Memory: 50.0M
    CGroup: /system.slice/fullmetalupdate.service
        360 /bin/sh /usr/bin/fullmetalupdate/fullmetalupdate.sh
        `- 364 /usr/bin/python3 /usr/bin/fullmetalupdate/fullmetalupdate.py --config /etc/fullmetalupdate/config.cfg

Steps to Reproduce

1) setup.sh

 /lpg-build/cdc/fast_prod/WRLINUX_MASTER_WR/MASTER_WR_GIT/wrlinux-10/setup.sh 
--machine nxp-s32g --dl-layers --layers meta-lat --template feature/ostree feature/fullmetalupate

3) . ./oe-init-build-env

4) # cat config.cfg
[client]
hawkbit_vendor_name = WRLinux
hawkbit_url_port = 8080
hawkbit_ssl = false
hawkbit_tenant_id = DEFAULT
hawkbit_target_name = nxp-s32g_tgt1
hawkbit_auth_token = 380ff2b5908e776cb69159f3f4477e4f
log_level = debug

[ostree]
ostree_name_remote = fullmetalupdate
ostree_gpg-verify = false
ostree_ssl = false
ostree_url_port = 8000
ostreepush_ssh_port = 8022
ostreepush_ssh_user = root
ostreepush_ssh_pwd = root
ostreepush_ssh_path = /ostree/repo
ostree_host_name = 128.224.179.28

[server]
server_host_name = 128.224.162.140

5) vim conf/local.conf
HAWKBIT_CONFIG_FILE = "${TOPDIR}/config.cfg"
HAWKBIT_USER_PASSWORD = "admin:wind"
BB_NUMBER_THREADS ?= "24"
PARALLEL_MAKE ?= "-j 24"

OPENVPN_CLIENT_START = "1"
OPENVPN_CLIENT_CONFIG_FILE = "/folk/zliu2/aptiv/vpn/aptiv2_test.ovpn"


6) bitbake wrlinux-image-small
7)boot the target and run commands per problem description
Live chat
Online