Support virsh console through PVC command #149
Labels
No Label
API
blocked
bug
CLI
Client
Daemon
debt
documentation
feature
improvement
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: parallelvirtualcluster/pvc#149
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This was looked at briefly in the past, but I'd like to revisit it again as a QOL feature.
Currently, console logs can be viewed via the PVC API/CLI, but no interaction is possible.
It would be nice if we could interact with the console as well, a la
virsh console
.Main difficulties are going to be (a) figuring out how to pass this data via the API, and (b) how to direct it at the right node.
It looks like there is a python-native implementation of virsh console here:
https://github.com/libvirt/libvirt-python/blob/master/examples/consolecallback.py
And because of how we configure libvirt for live migration, it's possible to connect from the API node to the active node, e.g.
hv1$ sudo virsh -c qemu+tcp://10.98.0.2:16509/system console ldap2
The big question would be how to leverage the API for bidirectional support between the CLI and the remote site in a sensible way.
From some quick testing, the consolecallback script does not work properly - it prints no output and immediately exits on any input. This is also the only example I can find so far which does not bode well. Will continue to search and experiment.
Never did find any better solution here. Leaving as a future to-do to dig further into the callback.
Investigated several options for this recently, taking inspiration from NoVNC. So far, none have proven particularly impressive but investigation can continue. This is a desired 1.0 feature.
Did some more testing and investigation, and I've come to the conclusion that this really is not easy or supportable.