Skip to content

Doc upgrade/downgrade policy #1038

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 5, 2025
Merged

Doc upgrade/downgrade policy #1038

merged 2 commits into from
May 5, 2025

Conversation

jovatn
Copy link
Contributor

@jovatn jovatn commented May 2, 2025

  • Add section on upgrading/downgrading and boot-order to system.md
  • Add or update references on upgrading from other pages
    • boot.md (update ref)
    • cli/upgrade.md (add ref)
    • management.md (add ref)

Fixes #1009

Description

Checklist

Tick relevant boxes, this PR is-a or has-a:

  • Bugfix
    • Regression tests
    • ChangeLog updates (for next release)
  • Feature
    • YANG model change => revision updated?
    • Regression tests added?
    • ChangeLog updates (for next release)
    • Documentation added?
  • Test changes
    • Checked in changed Readme.adoc (make test-spec)
    • Added new test to group Readme.adoc and yaml file
  • Code style update (formatting, renaming)
  • Refactoring (please detail in commit messages)
  • Build related changes
  • Documentation content changes
    • ChangeLog updated (for major changes)
  • Other (please describe):

- Add section on upgrading/downgrading and boot-order to system.md
- Add or update references on upgrading from other pages
  - boot.md (update ref)
  - cli/upgrade.md (add ref)
  - management.md (add ref)

[skip ci]
@jovatn jovatn requested a review from troglobit May 2, 2025 14:23
@jovatn
Copy link
Contributor Author

jovatn commented May 2, 2025

Perhaps too chatty documentation? :-)

Copy link
Contributor

@troglobit troglobit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very well written, comprehensive and instructive! I've given some very minor comments and ideas for improvements. Nothing blocking merge, so this is approved in the state it is now.

The comments for lists apply to all lists in this PR even though I've just commented on the first.

doc/system.md Outdated
Comment on lines 358 to 369
1. Download and unpack the release to install. Make the image *pkg*
bundle available at some suitable URL (FTP/TFTP/SFTP/HTTP/HTTPS).
1. Assume the unit has booted the `primary` image. Then running the
`upgrade` command installs a new image on the `secondary`
partition.
1. As part of a successful upgrade, the boot-order is implictly
changed to boot the newly installed image.
1. Reboot the unit.
1. During boot, the unit may [migrate](#configuration-migration) the
startup configuration inline with newer configuration definitions.
1. The unit now runs the new image. To upgrade the remaining partition
(`primary`), run the same upgrade command again, and reboot.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even though it works, thanks to Markdown, for enumerated lists I'd recommend1 using 1, 2, 3, ... instead of 1, 1, 1, ... and personally I try to avoid closing period for each item. Iirc that was one of the points from Strunk & White ...

Also, for instruction lists like this I'd recommend going for brevity in each item and move any helpful hints to footnotes. Example:

  1. Download and unpack the release to install, make the .pkg file available at some URL2
  2. Assuming the device has booted from the primary partition, the upgrade command will upgrade the secondary partition
  3. ...

For the last item, reboot is really optional, so explain why one may want to reboot anyway. I.e., to verify the upgrade. Also, the second to last item should tie in better with the last, because of the risk of starting a device with a migrated configuration with an older version of Infix. Maybe a warning or caution notice could be added here, possibly replacing one or two items? Like this:

Caution

During boot, the unit may migrate the startup configuration for any syntax changes. It is therefore important that you make sure to upgrade the other partition as well after reboot, of course after having verified your setup.

Footnotes

  1. A trick in Emacs markdown mode is to press Alt-Enter when creating a new item in an itemized or enumerated list.

  2. Set up an FTP/TFTP/SFTP or HTTP/HTTPS server on the same LAN.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! :-)

@jovatn jovatn merged commit 7560da8 into main May 5, 2025
@jovatn jovatn deleted the doc-upgrade-downgrade-policy branch May 5, 2025 07:45
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

Successfully merging this pull request may close these issues.

Document upgrade/downgrade policy
2 participants