Search code examples
openstackopenstack-nova

OpenStack Rally - is it possible to check nova console logs?


Openstack/Rally newbie here. In the basic Rally scenario for boot_and_list.json, the boot operation simply checks whether the VM reaches the "ACTIVE" state.

However, in my organization, just because the VM has become "ACTIVE" does not mean that it has completely finished setting up all of our networking configuration. We would like to use Rally to benchmark the time it takes until a VM reaches a "Working" state, where "Working" is reached when a certain message is output into the nova console log. Currently our organization has set up a custom message to be printed out in the console log which indicates the state, such as "My image booted!" or "My image failed to boot: ". This way we can be confident that the VM is both "ACTIVE" and "Working."

Is there any existing way to use Rally to check some output in the nova console log? Perhaps by using the getConsoleOutput API?

Any insight would be appreciated, thanks!


Solution

  • The boot_and_get_sonsole_output method contains this exact funtionality, which was included with Rally version 0.1.2.

    Since this is packaged in Rally now, users can use the boot-and-get-console-server scenario, editing the parameters to their needs.