I have got a self-hosted-engine (4.2) running on centos (7.4).
I am trying to create new vanilla vm with static ip using cloud-init to test ssh
connectivity. I have below playbook -
- name: Add vanilla vm
ovirt_vms:
auth: "{{ ovirt_auth }}"
name: test01
cluster: Default
state: running
memory: 2GiB
cpu_cores: 8
operating_system: rhel_7x64
high_availability: true
high_availability_priority: 50 # Available from Ansible 2.5
cloud_init:
nic_boot_protocol: static
nic_ip_address: 10.34.60.86
nic_netmask: 255.255.252.0
nic_gateway: 10.34.63.254
nic_name: eth1
nic_on_boot: true
host_name: test01.ovirt.dw
custom_script: |
write_files:
- content: |
Hello, world!
path: /tmp/greeting.txt
permissions: '0644'
user_name: root
root_password: super_password
nics:
- name: vnet0
network: ovirtmgmt
profile: ovirtmgmt
interface: virtio
# taken from actual vm-infra playbook
- name: Add disks
ovirt_disks:
auth: "{{ ovirt_auth }}"
name: "{{ item.0.name }}_{{ item.1.name }}"
vm_name: test01
size: "{{ item.1.size | default(omit) }}"
format: "{{ item.1.format | default(omit) }}"
storage_domain: "{{ item.1.storage_domain | default(omit) }}"
interface: "{{ item.1.interface | default(omit) }}"
bootable: "{{ item.1.bootable | default(omit) }}"
wait: true
with_subelements:
- "{{ vms }}"
- "profile.disks"
- flags:
skip_missing: true
the playbook runs successfully, but when I want to see the summary of vms using ovirt4.py,
i do not see any devices attached, nor using curl api i see anything under
reported_devices.
Is there something I am missing?
thank you.