[ovirt-users] cloud-init not setting gateway

Maton, Brett matonb at ltresources.co.uk
Wed Jan 31 06:35:48 UTC 2018


Are there any known issues with cloud-init not setting the network gateway ?

I'm trying to create a host with the ansible roles, all is Ok apart from
network settings.

Ansible code:

-
  block:
    -
      name: Authenticate
      ovirt_auth:
        password: ***
        url: "https://***/ovirt-engine/api"
        username: admin at internal
    -
      name: "Create Virtual Machines"
      ovirt_vms:
        auth: "{{ ovirt_auth }}"
        clone: false
        cloud_init:
          custom_script: "touch /etc/cloud/cloud-init.disabled"
          dns_search: ***
          dns_servers: "*** ***"
          host_name: ***
          nic_boot_protocol: static
          nic_gateway: "***"
          nic_ip_address: "***"
          nic_name: eth0
          nic_netmask: "***"
          nic_on_boot: true
        cluster: Default
        comment: "Ansible Created"
        name: "***"
        state: present
        stateless: false
        storage_domain: "***"
        template: CentOS7_1711_could_init
        timeout: 600
      register: ovirt_vm
  always:
    -
      name: "Sign Out"
      ovirt_auth:
        ovirt_auth: "{{ ovirt_auth }}"
        state: absent


I've also tried using the web-ui, again most 'things' get set but not the
gateway which is a killer as I can only access the VM with remote console
until I set the gateway.

Regards,
Brett
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20180131/5a131033/attachment.html>


More information about the Users mailing list