Ansible: add better error message when ansible_become_pass is missing
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Low
|
Tee Ngo |
Bug Description
Brief Description
-----------------
When an ansible playbook is applied and the following are true:
1. The wrsroot password is not set to the default St8rlingX* password.
2. The ansible_become_pass option is not specified.
The playbook apply fails with this error: "Host localhost does not have the right image!"
This is not intuitive and doesn't indicate the cause of the error.
Severity
--------
Minor
Steps to Reproduce
------------------
See above
Expected Behavior
------------------
The error message should indicate the cause of the problem. Also note that if the playbook apply is done with sudo permissions the error does not occur. Even if sudo is used, the playbook should probably still fail with an indication that there is a password mismatch issue.
Actual Behavior
----------------
See above
Reproducibility
---------------
Reproducible
System Configuration
-------
Any
Branch/Pull Time/Commit
-------
Designer load built on June 4, 2019.
Last Pass
---------
Never
Timestamp/Logs
--------------
N/A
Test Activity
-------------
Developer testing
Low priority; inaccurate error msg. Would be nice to fix, but not considered gating.