Open imriz opened 8 years ago
I am getting this error too. Even if this faulty logging line is commented out, it still fails
Bringing machine 'default' up with 'openstack' provider...==> default: Finding flavor for server...==> default: Finding image for server...==> default: Finding network(s) for server...==> default: Trying authentication...
==> default: Trying authentication...
==> default: Trying authentication...Authentication token is missing or no longer valid.
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: Failed to complete #create action: [Expected process to exit with [0], but received '1'
---- Begin output of vagrant up --no-provision --provider openstack ----
STDOUT: Bringing machine 'default' up with 'openstack' provider...
==> default: Finding flavor for server...
==> default: Finding image for server...
==> default: Finding network(s) for server...
==> default: Trying authentication...
==> default: Trying authentication...
==> default: Trying authentication...
STDERR: Authentication token is missing or no longer valid.
---- End output of vagrant up --no-provision --provider openstack ----
Ran vagrant up --no-provision --provider openstack returned 1]
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration
Most likely it happens when auth token has expired.
After some time I found out this openstack bug. This has nothing to do with vagrant-openstack-provider. Any client will experience these problems, related bugs
@tomzo My bug report is on the formatting of the log, not about the reason for the exception itself :)
In https://github.com/ggiamarchi/vagrant-openstack-provider/blob/master/source/lib/vagrant-openstack-provider/client/http_utils.rb#L107, you probably want something in the lines of
env[:ui].warn("#{e.class}: #{e.message}" + e.backtrace.join("\n"))
orenv[:ui].warn(e.to_s)
?