Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HostOS update warns about image platform not matching the host platform #3328

Open
AtanasBunchev opened this issue Jan 8, 2024 · 1 comment

Comments

@AtanasBunchev
Copy link

AtanasBunchev commented Jan 8, 2024

Doing a HostOS update on RaspberryPi4-64 from BalenaOS 4.1.3+rev2 to 5.0.8 succeeds but produces the following warning:
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested

Seen in the following snippets:

[000000221][INFO]hostapp-update command exists, use that for update
[000000223][WARNING]Removing /mnt/boot/FSCK0000.REC from boot partition
[000000223][WARNING]Removing /mnt/boot/FSCK0001.REC from boot partition
[000000223][INFO]Running pre-update fixes for raspberrypi4-64
[000000223][INFO]Removing start_db.elf from boot partition
[000000223][INFO]Removing fixup_db.dat from boot partition
[000000223][INFO]Calling hostapp-update for registry2.balena-cloud.com/v2/e22c85a2be29d78972dbf2581be2d487:delta-aa3436dae00a7d83
delta-aa3436dae00a7d83: Pulling from v2/e22c85a2be29d78972dbf2581be2d487
3c062f215bd2: Pulling fs layer
3c062f215bd2: Ready to download
3c062f215bd2: Pull complete
Digest: sha256:7cdeb6fd6c661d718da5a7b6a57641def83d22f0e044727542920706f00c9507
Status: Downloaded newer image for registry2.balena-cloud.com/v2/e22c85a2be29d78972dbf2581be2d487:delta-aa3436dae00a7d83
registry2.balena-cloud.com/v2/e22c85a2be29d78972dbf2581be2d487:delta-aa3436dae00a7d83
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
Before hooks (old os) ran successfully
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
[1-bootfiles][INFO] Boot partition can accomodate the new update.
[1-bootfiles][INFO] Updated timestamps for all files in /mnt/boot
[1-bootfiles][INFO] Deploying /mnt/boot/fixup4x.dat
[000000915][INFO]Supervisor update start...
[000000915][INFO]No explicit supervisor version was provided, update to default version in target balenaOS...
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
[000000944][INFO]Extracted default version is v15.0.4...
[000000944][INFO]Supervisor state: Target 15.0.4, current 14.13.13, scheduled 14.13.13
[000000944][INFO]Patching supervisor target state from v14.13.13 to v15.0.4
[000000945][INFO]Extracted supervisor vars: ID: 2797786
[000000945][INFO]Setting supervisor version in the API...
[000000946][INFO]Successfully set supervision version in target state

I did find the exact warning being reported twice in the Forums at May 2023 and February 2023 during application deployment with balena-cli, but in both cases it did interrupt the process and was resolved.

I couldn't find any information in the Balena Forums or the GitHub issues about this warning during a HostOS update, so I'm reporting it here.

I've noticed the same warning when updating other devices as well.
It seems to not affect the update process.

Is there a way to resolve this warning during a HostOS update?

@AtanasBunchev AtanasBunchev changed the title HostOS update warns about incorrect platform HostOS update warns about image platform not matching the host platform Jan 9, 2024
@klutchell
Copy link
Collaborator

Thank you for raising this warning! It indeed can be safely ignored for now, and it's a matter of the target HostApp release image not matching the device target platform.

This is due to how we use Yocto to compile the target hostOS docker images and does not actual reflect the device architecture in the resulting image metadata.

We may be able to avoid this in a future release, but rest assured that for now the warning can be ignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants