Skip to content

Initial Update Designs #2686

Closed
Closed

Description

@benjaminleonard

Based on the ongoing API work and Andrew’s progress API, I’ve put together the following:
• Release list page
• Update status page
• Single release detail modal

As usual, this includes some elements that aren’t yet in the API but seem necessary for MVP (and a bit beyond). For example, when designing this there was no endpoint for listing releases.

A couple of open questions:
• For current releases, do users need to manage or prune old releases from the list?
• Would the release list be a standard paginated endpoint?

For the upload release and set target dialogs, we’ll need inline documentation – please ignore the placeholder text for now. As always, we’ll want concise docs in the dialog itself, plus links to more comprehensive information on the docs site.

On the upgrade status page, I’ve added a “status” cell. The idea is that we could either infer the status from the current and target version (which would require returning metadata from the current target TUF repo) or, preferably, have the API return the status directly. Rather than just using a version number/unknown/installing dataset/error, what if we split the state into its own attribute? This would let us show when a component has completed its upgrade.

Any thoughts on exposing more detailed monitoring (similar to what’s shown during ‎⁠mupdate⁠) as part of the troubleshooting UX? I haven’t explored handling stalled or failed updates yet—happy to take your lead here. It might make sense to direct users to the CLI for more granular monitoring if needed.

Finally, I’m using “Releases” as a placeholder term for now, since exposing something like “TUF repo” might be too implementation-specific. Open to discussion on naming!

--

See designs / comment here: https://app.workflow.design/w/doc/ac8c2576-7902-493f-a5f4-6a234e5a193b

Activity

  1. added
    design
    on Feb 10, 2025
  2. added this to the 15 milestone on Feb 10, 2025
  3. modified the milestones: 15, 16 on Jun 2, 2025
  4. benjaminleonard commented on Jun 25, 2025

    @benjaminleonard
    ContributorAuthor

    CC: @davepacheco @sunshowers @andrewjstone @iliana @smklein @jgallagher @david-crespo @karencfv (apologies if I've missed someone)

    Will try and find some time to discuss on the calendar, perhaps at an update huddle, will give some warning before hand. I do also need to check back in with the latest update API work as some of this may be already out of date.

  5. changed the title [-]Initial Upgrade Designs[/-] [+]Initial Update Designs[/+] on Jun 25, 2025
  6. david-crespo commented on Jun 25, 2025

    @david-crespo
    Collaborator

    • For current releases, do users need to manage or prune old releases from the list?

    Assuming we will not support downgrade (I think this is the case) I think we may want a visual treatment of releases older than current (possibly operationalized as older than any component in the system) that marks them as not actually available for upgrade. We could disappear them but it feels less surprising to keep them there, but grayed out.

    • Would the release list be a standard paginated endpoint?

    I don't see why not.

  7. benjaminleonard commented on Jun 25, 2025

    @benjaminleonard
    ContributorAuthor

    Assuming we will not support downgrade (I think this is the case) I think we may want a visual treatment of releases older than current (possibly operationalized as older than any component in the system) that marks them as not actually available for upgrade. We could disappear them but it feels less surprising to keep them there, but grayed out.

    For the update crew: perhaps the case for newer releases that are not viably updated from the current release also, if that's also a limitation?

  8. jgallagher commented on Jun 25, 2025

    @jgallagher

    For the update crew: perhaps the case for newer releases that are not viably updated from the current release also, if that's also a limitation?

    It is. More context in oxidecomputer/omicron#8056 and RFD 557, but I believe the current state is:

    • Releases have a version that's parseable as semver (although we're not following semver; more in the RFD on the meaning).
    • If the system's current target release has major version N, releases with major version N+2 or higher are not viable. (I.e., you cannot skip major releases.) This will be a limitation indefinitely.
    • If an upgrade is currently in progress, the target release cannot be changed at all until the upgrade completes. This may be relaxed after we ship the first upgrade implementation; ideally you'd be able to set the target release to a higher minor version (e.g., if you're currently upgrading from 15.0.0 to 15.1.0, you ought to be able to change the target to 15.2.0 even before the upgrade finishes, but will not be able to for now).
  9. karencfv commented on Jun 25, 2025

    @karencfv

    Just saw the designs, they look really cool! There's definitely something about finally seeing the work come together in a UI. I left a couple of comments on the artifact visualisation, but just generally really happy to see the UI!

  10. benjaminleonard commented on Jun 26, 2025

    @benjaminleonard
    ContributorAuthor
    • Releases have a version that's parseable as semver (although we're not following semver; more in the RFD on the meaning).
    • If the system's current target release has major version N, releases with major version N+2 or higher are not viable. (I.e., you cannot skip major releases.) This will be a limitation indefinitely.
    • If an upgrade is currently in progress, the target release cannot be changed at all until the upgrade completes. This may be relaxed after we ship the first upgrade implementation; ideally you'd be able to set the target release to a higher minor version (e.g., if you're currently upgrading from 15.0.0 to 15.1.0, you ought to be able to change the target to 15.2.0 even before the upgrade finishes, but will not be able to for now).

    All useful info thanks, we'll probably want to prevent these actions on the client since it's usually a nicer experience than waiting for the server error response.

    Just saw the designs, they look really cool! There's definitely something about finally seeing the work come together in a UI. I left a couple of comments on the artifact visualisation, but just generally really happy to see the UI!

    Much appreciated!

  11. benjaminleonard commented on Jun 26, 2025

    @benjaminleonard
    ContributorAuthor

    If the viable upgrade logic is particularly complicated we might consider an endpoint (or a dry run API param) that returns if it's possible and why. Though if it's as simple as you have we could probably recreate it in the console.

  12. david-crespo commented on Jun 26, 2025

    @david-crespo
    Collaborator

    I was thinking we could just have a boolean field on each release in the list saying whether you can set it as the target at that moment. Maybe not boolean if there’s metadata, like a reason. Wouldn’t need to be a separate endpoint necessarily.

  13. benjaminleonard commented on Jun 26, 2025

    @benjaminleonard
    ContributorAuthor

    That's why you're the engineer 🧠

  14. davepacheco commented on Jul 1, 2025

    @davepacheco

    Thanks @benjaminleonard! This looks great. I commented with some specifics on the design.

    A couple of open questions: • For current releases, do users need to manage or prune old releases from the list? • Would the release list be a standard paginated endpoint?

    I would say that:

    • Through as far as 2025, we may not even have the ability to remove older releases (a customer can have at most 1-2 here in 2025 so it doesn't seem urgent).
    • At some point, we will want to give them the ability to delete older releases' data. We may want to hang onto the metadata forever. I'm not sure if we want to bother communicating that to them since it's not useful for them. (It would be useful, for example, if someone plugged in a sled running older software for us to be able to say "hey, this sled is running release X" instead of "this is running some unknown software".)
    • At some point, we may want to automatically prune older releases' data (and metadata, if we decide we don't need that).

    Yes, I'd expect it to be an ordinary, paginated endpoint.

    On the upgrade status page, I’ve added a “status” cell. The idea is that we could either infer the status from the current and target version (which would require returning metadata from the current target TUF repo) or, preferably, have the API return the status directly. Rather than just using a version number/unknown/installing dataset/error, what if we split the state into its own attribute? This would let us show when a component has completed its upgrade.

    I mentioned this on the design: I don't think we want to break out per-component update status. It's way too complicated to make sense of and a big part of the value we're delivering is not having to think about this level detail. Concretely: what's the point of the system reporting the individual status of 5 CockroachDB nodes if we haven't told you what CockroachDB is, what it's used for, that the replication factor is 5, what it means when 1 of 5 is updated vs. 4 of 5 are updated, etc. In the limit I could see documenting this sort of stuff in a product service manual but it's way outside the scope of what we'd want customers to feel like they need to learn.

    Any thoughts on exposing more detailed monitoring (similar to what’s shown during ‎⁠mupdate⁠) as part of the troubleshooting UX? I haven’t explored handling stalled or failed updates yet—happy to take your lead here. It might make sense to direct users to the CLI for more granular monitoring if needed.

    We definitely want a space to be able to say things like: "The update is currently stuck because the system cannot reach sled 10."

    Finally, I’m using “Releases” as a placeholder term for now, since exposing something like “TUF repo” might be too implementation-specific. Open to discussion on naming!

    Agreed -- I like "releases" much better for this.

  15. modified the milestones: 16, 17 on Aug 18, 2025
  16. david-crespo commented on Sep 29, 2025

    @david-crespo
    Collaborator

    I'm going to call this done, we'll iterate on the implementation side.

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

Metadata

Metadata

Labels

design

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions