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

Assigning artifacts after successful update again #446

Open
EugenWiens opened this issue Feb 28, 2017 · 6 comments · May be fixed by #1620
Open

Assigning artifacts after successful update again #446

EugenWiens opened this issue Feb 28, 2017 · 6 comments · May be fixed by #1620

Comments

@EugenWiens
Copy link

Hi,
how is the right procedure when after a successful update I try to assign the artifact again.

My problem is: The system that is updated have redundancy boot mechanism. When the system detect a problem with the current software version (V2) its switch back to the last one (V1). If that happening and the update to V2 comes from hawkbit the hawkbit will never again deliver the version V2.

I tried to assign the artifact to the device again in the Deployment Management view but I get a notification that the version is already installed.
Is it possible that the device reports his software version for this decision ?
What means the options forced, Soft and time Forced

image

@michahirsch
Copy link
Contributor

michahirsch commented Feb 28, 2017

Hi @EugenWiens ,

There are two questions in this issue.

  1. Yes, hawkBit is checking if the installed-DistributionSet is already set to the device and won't create an update-action for it if so. There is currently no mechanism to set a fix installed-DistributionSet There is an issue which describes the functionality that a device can tell it's installed version. See: Provide means to record manual off-line device updates into hawkBit's history #242

  2. The options forced and soft are meta-data for the device. The interpretation is device specific actually. Use-cases are for example in a case of a soft update you want to inform a user that there is an update available, or a soft update can indicate that the device can download and install the update when resources are available. A forced update could indicate that critical security updates needs to be immediately installed without user-interaction for example. time-forced only means that you want to execute an update as soft but e.g. in a case the update is not installed after a period of time hawkBit switching the update automatically into forced.

Cheers,
Michael

@sbabic
Copy link

sbabic commented Feb 28, 2017 via email

@EugenWiens
Copy link
Author

A feedback channel will be great. That the DB is out of sync with the real software version is a problem in some embedded update concepts. e.g. second way for an update ( USB-Stick ) or redundancy boot.

@sbabic
Copy link

sbabic commented Feb 28, 2017 via email

@michahirsch
Copy link
Contributor

yeah, there are use-cases where hawkBit does not know about the installed version of a device (e.g. also in a plug'n play scenario where the device first time registered at hawkBit server), the truth which software is installed is always on the device.

So in general it would be good if a device could tell hawkBit which version is currently installed. Problem though is that hawkBit only knows about distribution-sets and a device is not distribution-set aware. There is some tricky parts to solve so in case a device tells hawkBit installedVersion=1.0.2 which distribution set belongs to that version. So the issue #242 I guess explaining this scenario.

@kaizimmerm
Copy link
Member

I think what needs to be done after #242 is that devices by DDI or DMF as well can report offline updates by identifying DS by name, version.

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

Successfully merging a pull request may close this issue.

4 participants