vagrant-openstack-provider
vagrant-openstack-provider copied to clipboard
Show startup instance log on `vagrant up` error
trafficstars
When vagrant up command fails it is often interesting to have a look at the OpenStack instance startup log to see if the error comes from Vagrant or from OpenStack.
I propose to add a config attribute server_log that can take one of the following values :
none- Never get the instance log from nova (default value)error- Fetch and output to the console the instance log ifvagrant upfailsalways- Unconditionally fetch and output to the console the instance log at the end of the commandvagrant up
The instance log can be fetch using the nova extension api :
POST /v2/{tenant_id}/servers/{server_id}/action
{
"os-getConsoleOutput": {
}
}