-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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
Openstack Inventory Plugin "'NoneType' object has no attribute 'set'" #45431
Comments
Files identified in the description: If these files are inaccurate, please update the |
I believe this was introduced in e89e4c99 Specifically, the openstack inventory plugin tries to self.cache.set when self.cache is None. I don't have a lot of experience here, but I'm experiencing this bug, and guessing it's caused when the user doesn't have caching enabled? Anyway, just thought I would add this info. |
I was able to fix the issue which is still present in 2.7rc2 by adding a none type check on the line https://github.com/ansible/ansible/blob/devel/lib/ansible/plugins/inventory/openstack.py#L199 |
@mitchellmaler @jakegatsby can you confirm my PR above fixes the issue for you? |
@bcoca that is the exact fix that I added and it does fix it! |
- Ansible 2.6.4 introduces openstack inventory cache related issue, see ansible/ansible#45431 for details
- Ansible 2.6.4 introduces openstack inventory cache related issue, see ansible/ansible#45431 for details
Fix not included in 2.7.1 patch either ... |
fixes ansible#45431 (cherry picked from commit a47671a)
fixes ansible#45431 (cherry picked from commit a47671a)
The openstack plugin has a bug [1] which requires it to have a cache configured. This bug has been fixed, but it is not yet released. We therefore configure a fact cache to work around the issue. [1] ansible/ansible#45431 [2] ansible/ansible@8490588 JIRA: RE-1721
The openstack plugin has a bug [1] which requires it to have a cache configured. This bug has been fixed, but it is not yet released. We therefore configure a fact cache to work around the issue. [1] ansible/ansible#45431 [2] ansible/ansible@8490588 JIRA: RE-1721
The openstack plugin has a bug [1] which requires it to have a cache configured. This bug has been fixed, but it is not yet released. We therefore configure a fact cache to work around the issue. [1] ansible/ansible#45431 [2] ansible/ansible@8490588 JIRA: RE-1721
SUMMARY
Trying to use the OpenStack Inventory plugin and I am getting the error
'NoneType' object has no attribute 'set'
ISSUE TYPE
COMPONENT NAME
Inventory Plugin
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
MacOS
STEPS TO REPRODUCE
EXPECTED RESULTS
It gets the inventory from OpenStack.
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: