Bug 1588557 - [DR]Validator failed to validate when using encrypted password file
Summary: [DR]Validator failed to validate when using encrypted password file
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-ansible-collection
Classification: oVirt
Component: disaster-recovery
Version: 1.1.0
Hardware: x86_64
OS: Unspecified
unspecified
medium
Target Milestone: ovirt-4.2.5
: ---
Assignee: Maor
QA Contact: Kevin Alon Goldblatt
URL:
Whiteboard: DR
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-06-07 14:24 UTC by Kevin Alon Goldblatt
Modified: 2018-07-31 15:25 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2018-07-31 15:25:36 UTC
oVirt Team: Storage
Embargoed:
rule-engine: ovirt-4.2+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github oVirt ovirt-ansible-disaster-recovery pull 54 0 None None None 2018-06-25 20:30:58 UTC

Description Kevin Alon Goldblatt 2018-06-07 14:24:17 UTC
Description of problem:
Calling ovirt-vr validate with an encrypted password file will fail with the following error message:
[Validate Mapping File] Can not read passwords from vault. Will try to read as plain file.
[Validate Mapping File] Can not read passwords from file
If a simple password file is used the validate operation is successfull


Version-Release number of selected component (if applicable):
ovirt-ansible-disaster-recovery-1.1.0-1.el7ev.noarch

How reproducible:
100%

Steps to Reproduce:
1. ovirt-dr validate with encypted password file
2.
3.

Actual results:
Validate fails


Expected results:
Should pass

Additional info:

Comment 1 Maor 2018-06-11 21:44:49 UTC
There is a regression which was reported recently in ansible on this usecase (see [1]) but it seems that it was closed on the reason that python API is not the public API ansible is using.
I will try to find an alternative in out code

[1] https://github.com/ansible/ansible/issues/30969

Comment 2 Kevin Alon Goldblatt 2018-07-26 16:04:53 UTC
Verified with the following code:
---------------------------------------
ovirt-ansible-disaster-recovery-1.1.1-1.el7ev.noarch

Verified with the following scenario:
----------------------------------------
1. Ovirt-dr validate
2. enter password for source and destination  >>>>> Validation is successfull

Moving to VERIFIED!

Comment 3 Sandro Bonazzola 2018-07-31 15:25:36 UTC
This bugzilla is included in oVirt 4.2.5 release, published on July 30th 2018.

Since the problem described in this bug report should be
resolved in oVirt 4.2.5 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.


Note You need to log in before you can comment on or make changes to this bug.