Skip to content

Instantly share code, notes, and snippets.

@odyssey4me
Last active November 20, 2017 19:27
Show Gist options
  • Save odyssey4me/8d9e41db623aa8f893e6db48bfd004fd to your computer and use it in GitHub Desktop.
Save odyssey4me/8d9e41db623aa8f893e6db48bfd004fd to your computer and use it in GitHub Desktop.
Breaking examples of clouds.yaml
clouds:
_test_cloud_:
auth:
auth_url: https://identity.example.com
password: password
project_name: admin
username: admin
user_domain_name: default
project_domain_name: default
region_name: RegionOne
foo:
bar: baz
clouds:
_test_cloud_:
auth:
auth_url: https://identity.example.com
password: password
project_name: admin
username: admin
user_domain_name: default
project_domain_name: default
region_name: RegionOne
foo: bar
(ansible-2.3)$ ./openstack.py --list --debug
Traceback (most recent call last):
File "./openstack.py", line 246, in <module>
main()
File "./openstack.py", line 232, in main
inventory = shade.inventory.OpenStackInventory(**inventory_args)
File "/Users/odyssey4me/venvs/ansible-2.3/lib/python2.7/site-packages/shade/inventory.py", line 42, in __init__
for cloud_config in config.get_all_clouds()
File "/Users/odyssey4me/venvs/ansible-2.3/lib/python2.7/site-packages/os_client_config/config.py", line 801, in get_all_clouds
cloud, region_name=region['name']))
File "/Users/odyssey4me/venvs/ansible-2.3/lib/python2.7/site-packages/os_client_config/config.py", line 1074, in get_one_cloud
auth_plugin = loader.load_from_options(**config['auth'])
File "/Users/odyssey4me/venvs/ansible-2.3/lib/python2.7/site-packages/keystoneauth1/loading/base.py", line 162, in load_from_options
raise exceptions.MissingRequiredOptions(missing_required)
keystoneauth1.exceptions.auth_plugins.MissingRequiredOptions: Auth plugin requires parameters which were not given: auth_url
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment