You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
Release 1.3.0 broke our pipeline because the inventory could not be loaded: WARNING]: Unable to parse /mnt/data/...our_path.../inventory.azure_rm.yml as an inventory source
Fortunately I think I found the issue. It's related to #197
It seems harmless but then I remember the PR #197 I made a while ago which was merged:
We have some azure VM without OS profile ! See screenshots in the PR.
Thus, I suspect that self._vm_model['properties']['osProfile'] is None
Therefore .get('computerName') likely cause an exception.
=> that's why inventory is not loaded
Could you fix this please?
Graceful degradation is acceptable (set computerName to empty string / None)
Thanks !
For now we have fixed to 1.2.0 in our code
EXPECTED RESULTS
Inventory is loaded
ACTUAL RESULTS
Inventory not loaded
Works on 1.2.0
The text was updated successfully, but these errors were encountered:
Please see #368 . I am thinking that this will correct the problem you're seeing. I unfortunately do not have any machines that are breaking in the manner you're experiencing, so I don't have anything emulating your environment to test with. Would you be able to implement the code change I've pushed a PR for, and see if it corrects your issue locally?
SUMMARY
Hello,
Release 1.3.0 broke our pipeline because the inventory could not be loaded:
WARNING]: Unable to parse /mnt/data/...our_path.../inventory.azure_rm.yml as an inventory source
Fortunately I think I found the issue. It's related to #197
ISSUE TYPE
COMPONENT NAME
azure/plugins/inventory/azure_rm.py
ANSIBLE VERSION
ANALYSIS
There are 2 commits in azure/plugins/inventory/azure_rm.py between 1.2.0 and 1.3.0
1 is documentation and the other is 1436f7937eeafc2f26743b2fc383b549f8f99d48
It seems harmless but then I remember the PR #197 I made a while ago which was merged:
We have some azure VM without OS profile ! See screenshots in the PR.
Thus, I suspect that
self._vm_model['properties']['osProfile']
is NoneTherefore
.get('computerName')
likely cause an exception.=> that's why inventory is not loaded
Could you fix this please?
Graceful degradation is acceptable (set computerName to empty string / None)
Thanks !
For now we have fixed to 1.2.0 in our code
EXPECTED RESULTS
Inventory is loaded
ACTUAL RESULTS
Inventory not loaded
Works on 1.2.0
The text was updated successfully, but these errors were encountered: