vagrant-openstack-provider icon indicating copy to clipboard operation
vagrant-openstack-provider copied to clipboard

Show startup instance log on `vagrant up` error

Open ggiamarchi opened this issue 10 years ago • 1 comments
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 if vagrant up fails
  • always - Unconditionally fetch and output to the console the instance log at the end of the command vagrant up

ggiamarchi avatar Jan 18 '15 23:01 ggiamarchi

The instance log can be fetch using the nova extension api :

POST /v2/​{tenant_id}​/servers/​{server_id}​/action

{
    "os-getConsoleOutput": {
    }
}

ggiamarchi avatar Jan 18 '15 23:01 ggiamarchi