Skip to content

mgmt: hawkbit: do not prepend custom controllerId #89500

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

Merged
merged 2 commits into from
May 28, 2025

Conversation

nealjack
Copy link
Contributor

@nealjack nealjack commented May 5, 2025

This PR changes how the controllerId is generated based on device id, and disentangles the two. The controllerId is what hawkbit uses to uniquely identify a device, and is not necessarily the same as the device id, and should be fully customizeable by the user if needed. Previously, all custom device ids were being prepended with CONFIG_BOARD. When a user selects CONFIG_HAWKBIT_CUSTOM_DEVICE_ID, they should be able to specify the full controllerId used with hawkbit, without a forced prepend.

The default handler (hawkbit_get_device_identity_default) for returning the controllerId is modified to also include the prefix, so the default behavior without CONFIG_HAWKBIT_CUSTOM_DEVICE_ID enabled is preserved.

@rlubos
Copy link
Collaborator

rlubos commented May 6, 2025

About the compliance failure, note that the email address in the sign-off line should be inside square bracket, I. e. Signed-off-by: Neal Jackson <[email protected]> (git does this automatically if you use git commit -s parameter.

@nealjack nealjack force-pushed the hawkbit_controllerid branch 2 times, most recently from d8d4a94 to 663f7d5 Compare May 6, 2025 15:06
@github-actions github-actions bot added the Release Notes To be mentioned in the release notes label May 6, 2025
@nealjack nealjack force-pushed the hawkbit_controllerid branch 2 times, most recently from 700f1b8 to c0cc20f Compare May 6, 2025 15:43
@nealjack nealjack force-pushed the hawkbit_controllerid branch from c0cc20f to f68ae2b Compare May 7, 2025 15:36
@nealjack
Copy link
Contributor Author

Are there any other changes that are required for this pull request?

@rlubos rlubos requested a review from maass-hamburg May 26, 2025 07:25
@maass-hamburg
Copy link
Collaborator

@nealjack please rebase

maass-hamburg
maass-hamburg previously approved these changes May 27, 2025
nealjack added 2 commits May 27, 2025 12:19
This commit changes how the controllerId is generated based on device
id, and disentangles the two. The controllerId is what hawkbit uses to
uniquely identify a device, and is not necessarily the same as the
device id, and should be fully customizeable by the user if needed.
Previously, all custom device ids were being prepended with
`CONFIG_BOARD`. When a user selects `CONFIG_HAWKBIT_CUSTOM_DEVICE_ID`,
they should be able to specify the full controllerId used with hawkbit,
without a forced prepend.

Signed-off-by: Neal Jackson <[email protected]>
When `CONFIG_HAWKBIT_CUSTOM_DEVICE_ID` is selected, the device_id will
no longer be automatically prepended with `CONFIG_BOARD`.

Signed-off-by: Neal Jackson <[email protected]>
Copy link

@maass-hamburg
Copy link
Collaborator

@nealjack needs another rebase, due to some bug, that lets ci fail, that is fixed now on the current main

@rlubos
Copy link
Collaborator

rlubos commented May 28, 2025

@nealjack needs another rebase, due to some bug, that lets ci fail, that is fixed now on the current main

Apparently rerun was enough, no need to rebase.

@kartben kartben merged commit b13983a into zephyrproject-rtos:main May 28, 2025
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: hawkBit Release Notes To be mentioned in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants