open-horizon.github.io icon indicating copy to clipboard operation
open-horizon.github.io copied to clipboard

Updating node with new service version

Open jsaez-ibm opened this issue 4 years ago • 3 comments

How do you update a service running on a node with a newer (latest) version of the service?

jsaez-ibm avatar Oct 21 '21 20:10 jsaez-ibm

@jsaez-ibm We're searching to see if there are existing documentation pages that cover this topic. In the meantime, the specific answer from @TheMosquito is:

  1. Make and publish a new version of the service, ideally updating the version
  2. Update the existing Service Definition file and publish it
  3. Edit pattern or policy to change the version number, and republish it

joewxboy avatar Mar 10 '22 19:03 joewxboy

@joewxboy do we got any existing documentation pages that cover this topic? or can we go further with the answer suggested by @TheMosquito and add that to the docs?

Abhijay007 avatar Oct 27 '22 15:10 Abhijay007

Glen's comment is correct. That's how I deploy updated Service containers to edge nodes.

Maybe we need a Common Use Cases page in the Developing section?

johnwalicki avatar Oct 27 '22 16:10 johnwalicki

Glen's comment is correct. That's how I deploy updated Service containers to edge nodes.

Maybe we need a Common Use Cases page in the Developing section?

ya we can add one

Abhijay007 avatar Jan 01 '23 05:01 Abhijay007

This is now documented several places. In https://open-horizon.github.io/docs/using_edge_services/service_rollbacks/#creating_edge_service_definition it states:

the main steps to release a new version of an edge service are:

  1. Edit the edge service code as needed for the new version.
  2. Edit the semantic version number of the code in the service version variable in the hzn.json configuration file.
  3. Rebuild your service containers.
  4. Sign and publish the new edge service version into the Horizon exchange.

joewxboy avatar Sep 26 '23 12:09 joewxboy