Skip to content

Conversation

david-crespo
Copy link
Collaborator

@david-crespo david-crespo commented May 15, 2024

Closes #2169

This is what it looks like when you try to connect to a stopped instance.

image

The error state is quite ugly, but I'm going to merge this and get design notes later because a) I think this is rarely seen, and b) overall this is an important fix.

image

Copy link

vercel bot commented May 15, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
console ✅ Ready (Inspect) Visit Preview Jun 7, 2024 8:20pm

@david-crespo
Copy link
Collaborator Author

david-crespo commented May 16, 2024

This is almost there, except @benjaminleonard @paryhin I need something to show here when the connection has closed. (Right now we show this for any state other than open.) It's not really an error state (the instance is stopped), it should be neutral. We can say the instance is in X state.

Removing the spinner without replacing it with some kind of icon doesn't work very well because you see the spinner briefly while it tries to connect.

image

@benjaminleonard
Copy link
Contributor

I suppose we don't have any serial console history in any other state than connected?

We'd probably want to include something that takes the user to a screen where they can start the instance, or let them start the instance directly here. But that might get a bit complicated if we need to handle the instance not coming up.

Do we want any docs here? We don't have any guides around the serial console, but we could include something around troubleshooting images ... or our requirements (https://docs.oxide.computer/guides/architecture/os-hypervisor-storage#_guest_workload_support).

@david-crespo
Copy link
Collaborator Author

That’s interesting! We do have a serial console history endpoint, I wonder if it stores it outside the instance and can therefore return something even when the instance is stopped. I kinda doubt it, but I’ll check.

@david-crespo
Copy link
Collaborator Author

The history endpoint does not work for a stopped instance: it returns an error saying the instance is stopped and has no active serial console server.

On the other points:

  • Yes to docs. We don't have one but we should add one (ASAP so we can make sure the link is at least there in the next release even if the content is not all the way where we want it)
  • I think it's ok to just link back to the instance (probably include the instance state somewhere on the page) and not get too elaborate with controls. I guess I could imagine putting the same instance actions menu button we have on instance detail on this page, but I don't see why you'd want to do any of those things while looking at the serial console, plus when you hit start we'd have to then poll status and only try to connect when it'll work. All in all, that kind of liveness is something we should probably do eventually but I'd rather not do it now.

@david-crespo
Copy link
Collaborator Author

made progress

2024-05-21-serial-console-stopped

@david-crespo david-crespo marked this pull request as ready for review June 7, 2024 20:21
@david-crespo david-crespo deleted the serial-console-closed branch June 7, 2024 20:23
@david-crespo david-crespo restored the serial-console-closed branch June 7, 2024 20:23
@david-crespo david-crespo reopened this Jun 7, 2024
@david-crespo
Copy link
Collaborator Author

Aaaagh whoops

@david-crespo david-crespo enabled auto-merge (squash) June 7, 2024 20:26
@david-crespo david-crespo merged commit 69ba87b into main Jun 7, 2024
@david-crespo david-crespo deleted the serial-console-closed branch June 7, 2024 20:34
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.

Serial console shows "Connected" when instance is not running
2 participants