Bug 1709466

Summary: ovirt-ansible-vm-infra do not allow to set serial_policy and serial_policy_value for vm or profile
Product: Red Hat Enterprise Virtualization Manager Reporter: Andrea Perotti <aperotti>
Component: ovirt-ansible-rolesAssignee: Martin Necas <mnecas>
Status: CLOSED ERRATA QA Contact: Petr Kubica <pkubica>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.3.0CC: lleistne, mgoldboi, mperina, omachace
Target Milestone: ovirt-4.3.4Keywords: ZStream
Target Release: 4.3.1Flags: lsvaty: testing_plan_complete-
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-ansible-vm-infra-1.1.15 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-20 14:48:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1541529    

Description Andrea Perotti 2019-05-13 16:20:12 UTC
Description of problem:

When using the ovirt.vm-infra module is not possible to set a custom serial to a VM nor to specify the desired serial-policy

That feature is provided by ovirt-vm [0]

Version-Release number of selected component (if applicable):

ovirt-ansible-vm-infra-1.1.14-1

Steps to Reproduce:

a playbook example with the expected behaviour

[...]
vars:

vm_custom_serial:
  state: running
  cluster: Minion
  serial_policy: custom
  serial_policy_value: my_personal_custom_serial

vms:
  - name: serial1
    profile: "{{ vm_custom_serial }}"
  - name: serial2
    serial_policy_value: my_personal_custom_serial_just_for_2
    profile: "{{ vm_custom_serial }}"
  - name: serial3
    profile: "{{ vm_custom_serial }}"

roles:
- ovirt.vm-infra

Actual results:

Nothing is changed on VMs serial1, serial2 and serial3

Expected results:

A custom serial number is set on those 3 VMs

[0] https://docs.ansible.com/ansible/latest/modules/ovirt_vm_module.html#ovirt-vm-module

Comment 3 Petr Kubica 2019-06-04 13:19:43 UTC
verified in 
ovirt-ansible-vm-infra-1.1.15-1.el7ev.noarch

Comment 5 errata-xmlrpc 2019-06-20 14:48:22 UTC
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/RHEA-2019:1564

Comment 6 Daniel Gur 2019-08-28 13:13:54 UTC
sync2jira

Comment 7 Daniel Gur 2019-08-28 13:18:08 UTC
sync2jira