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

Add additional output when MAAS hosted machines are reserved #125

Open
bladernr opened this issue Jun 23, 2023 · 2 comments
Open

Add additional output when MAAS hosted machines are reserved #125

bladernr opened this issue Jun 23, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@bladernr
Copy link
Collaborator

When reserving a system using a YAML file as we're going to be suggesting, this is the current output from testflinger-cli:

*** TESTFLINGER SYSTEM RESERVED ***
You can now connect to [[email protected]](mailto:[email protected])
Current time:           [2023-06-21T15:04:51.451849]
Reservation expires at: [2023-06-21T15:31:31.451873]
Reservation will automatically timeout in 1600 seconds
To end the reservation sooner use: testflinger-cli cancel cab62369-d0fc-484c-8ba7-0084c3edb649

First, I'd like to dump the machine name as well as the IP, so that first line would look like:

You can now connect to tadrock by ssh to [email protected]

Next, I'd like also a blurb that includes system make/model and the OS (and kernel, if specified in the YAML):

System: Dell PowerEdge R340
OS: Ubuntu 22.04 LTS GA Kernel

This is all information that the agent is aware of, as it does a maas <login> machine read <machine ID> when it begins provisioning. So it's already collected the hostname, and whatever make/model data, and it knows from the YAML if it's installing 22.04, 20.04, or whatevere (and the kernel if we've explicitly specified a kernel in the YAML).

Finally, I'm not sure why there's a mailto: link in the output...

the output would then look something like:

*** TESTFLINGER SYSTEM RESERVED ***
You can now connect to tadrock by ssh to [email protected]

System: Dell PowerEdge R340
Installed OS: Ubuntu 22.04 LTS GA Kernel

Current time:           [2023-06-21T15:04:51.451849]
Reservation expires at: [2023-06-21T15:31:31.451873]

Reservation will automatically timeout in 1600 seconds
To end the reservation sooner use: testflinger-cli cancel cab62369-d0fc-484c-8ba7-0084c3edb649
@jocave jocave transferred this issue from canonical/snappy-device-agents Oct 13, 2023
@fginther
Copy link

fginther commented Jan 10, 2025

@bladernr This may have some overlap with #289. Instead of just dumping out the info you want to stdout, provide it via a CLI call.

Copy link

Thank you for reporting your feedback to us!

The internal ticket has been created: https://warthogs.atlassian.net/browse/CERTTF-475.

This message was autogenerated

@pedro-avalos pedro-avalos added the enhancement New feature or request label Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants