Skip to content
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

errors returned by instance serial console Nexus API should include the *effective* state #6457

Open
hawkw opened this issue Aug 27, 2024 · 0 comments
Assignees

Comments

@hawkw
Copy link
Member

hawkw commented Aug 27, 2024

The instance serial console endpoint will return an error when the instance is in a state where it doesn't have a serial console. Currently, though, that error message includes the instance's database (internal) instance state, rather than its external API state (which is determined based on both the instance and VMM records). This results in leaking internal instance states to the user, in the form of "instance is no VMM and has no active serial console server".

Incidentally, that error message should probably be improved; it's using the instance's internal state, when it should really be using the instance's effective state determined from the instance and VMM records. Then, it would actually tell us what the VMM's state was, rather than saying "instance is no VMM", which is both unhelpful and grammatically incorrect :)

Originally posted by @hawkw in #6453 (comment)

@hawkw hawkw self-assigned this Aug 27, 2024
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

No branches or pull requests

1 participant