Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined openstack fact - molecule_openstack_ci #8

Open
tehsmyers opened this issue Nov 11, 2019 · 1 comment
Open

undefined openstack fact - molecule_openstack_ci #8

tehsmyers opened this issue Nov 11, 2019 · 1 comment

Comments

@tehsmyers
Copy link
Contributor

In tasks/create.yml, this check happens: failed_when: (openstack.clouds | length) != 1. I'm still not sure how this happens, but we've gotten a report that somehow the openstack var is undefined:

msg: 'The conditional check ''(openstack.clouds | length) != 1'' failed. The error was: error while evaluating conditional ((openstack.clouds | length) != 1): ''openstack'' is undefined'
@tehsmyers
Copy link
Contributor Author

Without knowing more about how the os_client_config is returning without populating the openstack fact (I haven't yet looked into it), something we could potentially do in the meantime is default the openstack fact, e.g. failed_when: ((openstack.clouds | default({'clouds': []})) | length) != 1

A reproducer would be handy, and at that point we could potentially open an issue/pr against ansible if there's a bug in the module

@greg-hellings greg-hellings transferred this issue from oasis-roles/molecule_openstack_ci May 11, 2020
@greg-hellings greg-hellings changed the title undefined openstack fact undefined openstack fact - molecule_openstack_ci May 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant