Bug 1575984
| Summary: | fail_over script reports false positively DR fail over operations | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [oVirt] ovirt-ansible-collection | Reporter: | Elad <ebenahar> | ||||
| Component: | disaster-recovery | Assignee: | Maor <mlipchuk> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Kevin Alon Goldblatt <kgoldbla> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 1.1.4 | CC: | mlipchuk, tnisan | ||||
| Target Milestone: | ovirt-4.2.4 | Flags: | rule-engine:
ovirt-4.2+
|
||||
| Target Release: | --- | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | DR | ||||||
| Fixed In Version: | ovirt-ansible-disaster-recovery-1.1.0 | Doc Type: | If docs needed, set a value | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2018-06-26 08:40:42 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: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 1582073 | ||||||
| Attachments: |
|
||||||
|
Description
Elad
2018-05-08 13:31:26 UTC
Fixed in commit https://github.com/oVirt/ovirt-ansible-disaster-recovery/pull/43/commits/712bb4f669eb569b742ac476d450184eac1fac3c (In reply to Maor from comment #1) > Fixed in commit > https://github.com/oVirt/ovirt-ansible-disaster-recovery/pull/43/commits/ > 712bb4f669eb569b742ac476d450184eac1fac3c Here is an example of the output with that fix while the engine in unreachable: [Failover] Please enter the vault password: 1 TASK [Gathering Facts] ******************************************************************************************************* TASK [oVirt.disaster-recovery : Recover target engine] *********************************************************************** TASK [oVirt.disaster-recovery : Obtain SSO token] **************************************************************************** [WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all' Exception: Command '['ansible-playbook', '/usr/share/doc/ovirt-ansible-disaster-recovery/examples/dr_play.yml', '-t', 'fail_over', '-e', '@/var/lib/ovirt-ansible-disaster-recovery/mapping_vars.yml', '-e', '@/usr/share/doc/ovirt-ansible-disaster-recovery/examples/ovirt_passwords.yml', '-e', ' dr_target_host=secondary dr_source_map=primary dr_report_file=report-1526533446084.log', '--vault-password-file', 'vault_secret.sh', '-vvv']' returned non-zero exit status 2 failover operation failed, please check log file for further details. Verified with the following code; ----------------------------------------- ovirt-ansible-disaster-recovery-1.1.0-1.el7ev.noarch Verified with the following scenario: ----------------------------------------- Ran sudo ./ovirt-dr failover Due to an error in the password file the dr failed wit an error>>>> Exception: Command '['ansible-playbook', '/usr/share/doc/ovirt-ansible-disaster-recovery-1.1.0/examples/dr_play.yml', '-t', 'fail_over', '-e', '@/var/lib/ovirt-ansible-disaster-recovery/mapping_vars.yml', '-e', '@/usr/share/doc/ovirt-ansible-disaster-recovery-1.1.0/examples/ovirt_passwords.yml', '-e', ' dr_target_host=secondary dr_source_map=primary dr_report_file=report-1528385666059.log', '--vault-password-file', 'vault_secret.sh', '-vvv']' returned non-zero exit status 2 failover operation failed, please check log file for further details. Moving to VERIFIED! This bugzilla is included in oVirt 4.2.4 release, published on June 26th 2018. Since the problem described in this bug report should be resolved in oVirt 4.2.4 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. |