Backlog #1710

Add support for "Console Output"

Added by Ricardo Duarte over 8 years ago. Updated over 7 years ago.

Status:PendingStart date:12/31/2012
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Drivers - VM
Target version:-

Description

Some hypervisors (KVM, Xen) support dumping the console output to a file.
The console output includes the boot sequence output.
OpenNebula can easily be extended to make the file available from CLI, Sunstone and Self-service, by using the same functionality that supports the "VM Log" tab.
Changes required would be:
- Add the option for console output to the "new" template form, and translate that into hypervisor specific configuration
- Add a "Console Output" tab to the virtual machine details
- Create a get-console-output CLI action

This will then be used to implement the GetConsoleOutput EC2 action.

console.patch Magnifier (1.57 KB) Ricardo Duarte, 04/07/2013 01:26 PM


Related issues

Related to Feature #1768: CloudInit and Instance Data, or replacing the current con... Closed 02/15/2013

History

#1 Updated by Ruben S. Montero over 8 years ago

  • Target version set to Release 4.0

#2 Updated by Ruben S. Montero over 8 years ago

  • Target version deleted (Release 4.0)

#3 Updated by Ricardo Duarte over 8 years ago

Here is a simple patch that implements console output to file.
Currently it will always create a file based serial port, but can be easily changed to be conditional (ex.: only create the console if parameter X is set).

#4 Updated by Ruben S. Montero about 8 years ago

  • Category set to Drivers - VM

maybe the console output could be gathered during the monitor phase or boot and attached to the vm template (base64 encoded)

#5 Updated by Ruben S. Montero about 8 years ago

  • Tracker changed from Feature to Request

#6 Updated by Ruben S. Montero about 8 years ago

  • Tracker changed from Request to Backlog

#7 Updated by Ruben S. Montero about 8 years ago

  • Status changed from New to Pending

#8 Updated by Ricardo Duarte about 8 years ago

Ruben S. Montero wrote:

maybe the console output could be gathered during the monitor phase or boot and attached to the vm template (base64 encoded)

Making it part of the VM template seems like a great idea, as it will simplify getting the console output from all the OpenNebula endpoints/APIs. We just have to keep it truncated to some number of lines, as I assume there is a limitation on how much data you can reasonably put inside the vm template. The raw console.log file can still be kept under the datastore, if the user really needs it.

Gathering it (only) as part of the boot process does not seem to fit tho, because the console output can change during the lifetime of the instance. Doing it during monitoring will also have some problems, because users generally want the data to be available as soon as the instance boots/fails. Can you speed up the first monitoring so that it runs shortly after an instance boots?

#9 Updated by Ruben S. Montero over 7 years ago

  • Status changed from Pending to Closed

#10 Updated by Ruben S. Montero over 7 years ago

  • Status changed from Closed to Pending

Also available in: Atom PDF