Bug 1709466 - ovirt-ansible-vm-infra do not allow to set serial_policy and serial_policy_value for vm or profile
Summary: ovirt-ansible-vm-infra do not allow to set serial_policy and serial_policy_va...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-ansible-roles
Version: 4.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ovirt-4.3.4
: 4.3.1
Assignee: Martin Necas
QA Contact: Petr Kubica
URL:
Whiteboard:
Depends On:
Blocks: 1541529
TreeView+ depends on / blocked
 
Reported: 2019-05-13 16:20 UTC by Andrea Perotti
Modified: 2023-12-15 16:30 UTC (History)
4 users (show)

Fixed In Version: ovirt-ansible-vm-infra-1.1.15
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-06-20 14:48:22 UTC
oVirt Team: Infra
Target Upstream Version:
Embargoed:
lsvaty: testing_plan_complete-


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github oVirt ovirt-ansible-vm-infra issues 75 0 'None' closed Unable to set serial_policy and serial_policy_value for vm or profile 2020-11-10 18:34:31 UTC
Github oVirt ovirt-ansible-vm-infra pull 77 0 'None' closed add serial 2020-11-10 18:34:31 UTC
Red Hat Product Errata RHEA-2019:1564 0 None None None 2019-06-20 14:48:25 UTC

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


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