Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1422676 - [Test Only] Test Ansible playbook for registration
[Test Only] Test Ansible playbook for registration
Status: CLOSED ERRATA
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: rhev-hypervisor-ng (Show other bugs)
4.1.0
All Linux
medium Severity high
: ovirt-4.2.0
: ---
Assigned To: Douglas Schilling Landgraf
cshao
: TestOnly, ZStream
Depends On:
Blocks: 1446167
  Show dependency treegraph
 
Reported: 2017-02-15 15:32 EST by Douglas Schilling Landgraf
Modified: 2018-05-15 13:58 EDT (History)
13 users (show)

See Also:
Fixed In Version:
Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of:
: 1446167 (view as bug list)
Environment:
Last Closed: 2018-05-15 13:57:40 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: Node
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2018:1524 None None None 2018-05-15 13:58 EDT

  None (edit)
Description Douglas Schilling Landgraf 2017-02-15 15:32:51 EST
Description of problem:

Users might want to register multiple hosts via ansible, we must test and document it.

How reproducible:

Requires on the machine that will trigger the registration:
  - Ansible 2.3
  - ovirt-engine-sdk-python version 4 or higher

To work with hosts via ansible it's required version 2.3 (currently in devel tree)

Steps to Reproduce:
1. Install RHVH (Requires set root password and network so ansible can access)

   Example of kickstart: 
      https://github.com/dougsland/misc-ovirt/blob/master/ansible/kickstart-autoinstall-ovirt-node-ng.ks
  
2. Example of ansible files are available here:
      https://github.com/dougsland/misc-ovirt/blob/master/ansible/vars.yml
      https://github.com/dougsland/misc-ovirt/blob/master/ansible/register-hosts.yml

   - Download both files, change the files with proper credentials.
   - Register the hosts
     $ ansible-playbook register-hosts.yml 

In case needed, there is README file here:
https://github.com/dougsland/misc-ovirt/tree/master/ansible
Comment 2 Ying Cui 2017-02-20 01:35:42 EST
Moving this bug to MODIFIED status because it is set to ovirt-4.2-0, no build yet for 4.2.
Comment 3 Sandro Bonazzola 2017-02-21 04:22:04 EST
Ansible 2.3 should become available in 4.1.1
Comment 4 dguo 2017-02-23 04:36:18 EST
Douglas,

We need to clarify that whether the ansible 2.3 package will be build into rhvh4.1.1 from comment 3?

Besides, we wonder the customer's use scenario, ansible-playbook in  https://github.com/dougsland/misc-ovirt/blob/master/ansible/ will be documented  to customer, or we QE just test this ansible way can be supported in node is enough?
Comment 5 Douglas Schilling Landgraf 2017-02-23 23:56:41 EST
(In reply to dguo from comment #4)
> Douglas,
> 
> We need to clarify that whether the ansible 2.3 package will be build into
> rhvh4.1.1 from comment 3?
>

We will need to check.

> Besides, we wonder the customer's use scenario, ansible-playbook in 
> https://github.com/dougsland/misc-ovirt/blob/master/ansible/ will be
> documented  to customer, or we QE just test this ansible way can be
> supported in node is enough?

Probably both, I can see at least two scenarios for justifying the tests/documentation of registration:

#1 Users already use ansible for others automation tasks in their environment.
   Based on that, they would like to use ansible to automate rhv deploy.

#2 Users would like to automate their install/registration/approval/manage rhv/
   of several hundreds servers by kickstart and ansible.
Comment 6 Sandro Bonazzola 2017-03-27 02:54:36 EDT
ansible 2.3 not yet available,postponing to 4.1.2
Comment 8 dguo 2017-11-08 05:44:40 EST
Verified on latest build rhvh-4.2-0.20171102.0

Test version:
redhat-release-virtualization-host-4.2-0.4.el7.x86_64
RHVM: 4.2.0-0.4.master.el7
vdsm-4.20.6-1.el7ev.x86_64
ansible-2.4.0.0-5.el7.noarch

Test steps:
1. Install rhvh via pxe
2. Download files from Description, change the files with proper credentials.
3. Register the host
$ ansible-playbook register-hosts.yml

Test results:
1. After step#3, rhvh is added to engine successfully, status is up.
Comment 11 cshao 2018-04-24 01:53:54 EDT
Re-verify this bug according #c8.
Comment 14 errata-xmlrpc 2018-05-15 13:57:40 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

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

https://access.redhat.com/errata/RHSA-2018:1524

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