Skip to content

serial console error message on node that is not running is unhelpful #295

@rcgoodfellow

Description

@rcgoodfellow

If an instance is not running for some reason and an attempt to get a serial console is made, we get the following.

$ ./solo serial turbolift
Entering VM console.
Use ^q to exit.
Press enter to continue.
Error: Anyhow(failed to create serial websocket stream

Caused by:
    HTTP error: 200 OK)

Which is not at all helpful.

This can be reproduced as follows with a simple one node topology.

use libfalcon::{cli::run, error::Error, unit::gb, Runner};

#[tokio::main]
async fn main() -> Result<(), Error> {
    let mut d = Runner::new("solo");

    // nodes
    let turbolift = d.node("turbolift", "helios-2.9", 8, gb(8));
    run(&mut d).await?;

    Ok(())
}
pfexec ./solo launch
# wait for topology to come up
pfexec pkill propolis-server
./solo serial turbolift

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions