Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1588557

Summary: [DR]Validator failed to validate when using encrypted password file
Product: [oVirt] ovirt-ansible-collection Reporter: Kevin Alon Goldblatt <kgoldbla>
Component: disaster-recoveryAssignee: Maor <mlipchuk>
Status: CLOSED CURRENTRELEASE QA Contact: Kevin Alon Goldblatt <kgoldbla>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 1.1.0CC: tnisan
Target Milestone: ovirt-4.2.5Flags: rule-engine: ovirt-4.2+
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: DR
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-07-31 15:25:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.