Skip to content

Assigning artifacts after successful update again #446

Closed

Description

@EugenWiens

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

Activity

  1. michahirsch commented on Feb 28, 2017

    @michahirsch
    Contributor

    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

  2. sbabic commented on Feb 28, 2017

    @sbabic
  3. EugenWiens commented on Feb 28, 2017

    @EugenWiens
    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.

  4. sbabic commented on Feb 28, 2017

    @sbabic
  5. michahirsch commented on Feb 28, 2017

    @michahirsch
    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.

  6. kaizimmerm commented on May 30, 2018

    @kaizimmerm
    Contributor

    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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions