Unfriendly error message if trying to operate on invalid passwords.yml
Bug #1880220 reported by
Mark Goddard
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla-ansible |
Fix Released
|
Low
|
Mark Goddard | ||
Stein |
Fix Released
|
Low
|
Radosław Piliszek | ||
Train |
Fix Released
|
Low
|
Mark Goddard | ||
Ussuri |
Fix Released
|
Low
|
Mark Goddard | ||
Victoria |
Fix Released
|
Low
|
Mark Goddard |
Bug Description
The kolla-genpwd and kolla-mergepwd commands can be used to manipulate the kolla passwords.yml file. The format is a YAML encoded dict of password variable names to their values. If the format is not a dict, the error messages are unhelpful. In particular, this can happen if the file is encrypted e.g. via Ansible Vault.
For kolla-genpwd:
AttributeError: 'NoneType' object has no attribute 'items'
For kolla-mergepwd:
AttributeError: 'NoneType' object has no attribute 'update'
Changed in kolla-ansible: | |
importance: | Undecided → Low |
description: | updated |
To post a comment you must log in.
Fix proposed to branch: master /review. opendev. org/730388
Review: https:/