test-kitchen / kitchen-openstack

OpenStack Compute driver for Test-Kitchen
Other
56 stars 77 forks source link

Environment variables to define credentials #203

Open gionn opened 4 years ago

gionn commented 4 years ago

It looks like it's not supported to provide credentials via environment variables, which make really hard to configure CI.

I've also tried the upstream fog-openstack envs but they are not working:

https://github.com/fog/fog-openstack/blob/v1.0.0/spec/shared_context.rb#L102

OS_USERNAME=redacted OS_PASSWORD=redacted bundle exec kitchen converge default-ubuntu-1804
-----> Starting Kitchen (v1.23.2)
-----> Creating <default-ubuntu-1804>...
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: 1 actions failed.
>>>>>>     Failed to complete #create action: [Missing required arguments: openstack_api_key, openstack_username or openstack_userid] on default-ubuntu-1804
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration
ramereth commented 4 years ago

@gionn is this still happening with the current version?