Bug 1610333

Summary: [RFE] - Test shutdown/startup Ansible script in a RHHI environment
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Sandro Bonazzola <sbonazzo>
Component: rhhiAssignee: Simone Tiraboschi <stirabos>
Status: CLOSED CURRENTRELEASE QA Contact: SATHEESARAN <sasundar>
Severity: high Docs Contact:
Priority: high    
Version: rhhi-1.1CC: cminkema, dfediuck, didi, fgarciad, godas, jclaretm, lsurette, mperina, rcyriac, rhs-bugs, sabose, sankarshan, sasundar, stirabos
Target Milestone: ---Keywords: FutureFeature, TestOnly, Tracking, ZStream
Target Release: RHHI-V 1.5.z Async   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-ansible-shutdown-env-1.0.0-1.el7ev Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: 1578339
: 1662625 (view as bug list) Environment:
Last Closed: 2019-05-20 04:54:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Gluster RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1578339, 1613509    
Bug Blocks: 1660739, 1662625    

Description Sandro Bonazzola 2018-07-31 12:41:43 UTC
We are implementing shutdown/startup Ansible script a RHV/RHHI environment on oVirt side and we need to ensure it's covered by QE on RHHI part.

Comment 2 Sandro Bonazzola 2018-07-31 12:44:13 UTC
This is targeted to oVirt 4.2.6 being handled in first sprint, starting August 1st

Comment 7 Sahina Bose 2018-08-23 05:05:09 UTC
Sas, are you covering this in your testing for RHHI 2.0

Comment 8 SATHEESARAN 2018-10-17 10:29:33 UTC
Yes, its been already tested with RHHI 2.0

Comment 9 SATHEESARAN 2018-10-17 10:31:54 UTC
But as this doc changes are not included for RHHI 2.0, this fix could be taken in for RHHI 2.0.1

Comment 10 SATHEESARAN 2018-11-05 10:59:28 UTC
(In reply to SATHEESARAN from comment #9)
> But as this doc changes are not included for RHHI 2.0, this fix could be
> taken in for RHHI 2.0.1

This doc changes are not targeted for RHHI-V 1.5

Comment 13 SATHEESARAN 2019-02-09 01:57:40 UTC
Tested with RHV 4.2.8-async with ovirt-ansible-shutdown-env-1.0.2-2.el7ev.noarch

Playbook used:
--------------

<content>
---
- name: oVirt shutdown environment
  hosts: localhost
  connection: local
  gather_facts: false

  vars:
    engine_url: https://ovirt-engine.example.com/ovirt-engine/api
    engine_user: admin@internal
    engine_password: 123456
    engine_cafile: /etc/pki/ovirt-engine/ca.pem

  roles:
    - ovirt.shutdown_env
</content>

On executing this playbook, all the applications VM is shutdown, followed by the event of HE moving in to Global maintenance, 
then HE VM is also shutdown, followed by shutting down of hosts.