[ovirt-users] Repository downloads failing checksum

2021-11-26 Thread p . staniforth
Hello, When trying to do an update running fails dnf update ovirt\*setup\* Upgrade 4 Packages Total download size: 338 k Is this ok [y/N]: y Downloading Packages: [MIRROR] ovirt-engine-dwh-grafana-integration-setup-4.4.9.1-1.el8.noarch.rpm: Downloading successful, but checksum

[ovirt-users] Re: Creating VMs from templates with their own disks

2021-11-26 Thread Sina Owolabi
Thanks Paul. I seem to be getting this by hand, but trying with ansible, I think my skills are a bit lacking. I can create with ansible, and it seems to work well, except for the fact that the new vm is created with the hostname of the vm from which the template was made. The disk is also named

[ovirt-users] Re: Creating VMs from templates with their own disks

2021-11-26 Thread Staniforth, Paul
Hi Sina, I get easily confused with cloud-init but shouldn't you be setting the hostname, username, etc before the custom script? Also, you could rename the disk as a separate play in your playbook. e.g. # Change Disk Name - ovirt.ovirt.ovirt_disk: id:

[ovirt-users] Re: Creating VMs from templates with their own disks

2021-11-26 Thread Staniforth, Paul
Hi Sina, These should be part of the cloud-init dictionary and are strict about indentation. e.g. from the documentation. - name: Run VM with cloud init ovirt.ovirt.ovirt_vm: name: rhel7 template: rhel7 cluster: Default memory: 1GiB high_availability: true

[ovirt-users] Re: Creating VMs from templates with their own disks

2021-11-26 Thread Sina Owolabi
And Paul when I try to add host_name, I get this error: TASK [Creates new virtual machine] fatal: [ovirt.ovirt.trove.internal]: FAILED! =>

[ovirt-users] Re: Creating VMs from templates with their own disks

2021-11-26 Thread Strahil Nikolov via Users
I don't seeany Ansible code bellow. Best Regards,Strahil Nikolov On Fri, Nov 26, 2021 at 17:04, Sina Owolabi wrote: ___ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-le...@ovirt.org Privacy Statement:

[ovirt-users] Re: Creating VMs from templates with their own disks

2021-11-26 Thread Sina Owolabi
Thanks guys, not sure why the ansible isnt showing up, Posting again: - hosts: ovirt.ovirt.mydom.internal tasks: - import_tasks: ovirt_auth.yml - name: Creates new virtual machine ovirt.ovirt.ovirt_vm: auth: "{{ ovirt_auth }}" name: "{{ vm_fqdn }}" state:

[ovirt-users] Re: Creating VMs from templates with their own disks

2021-11-26 Thread Sina Owolabi
Same thing when its written as 'hostname': atal: [ovirt.ovirt.trove.internal]: FAILED! => {"changed": false, "msg": "Unsupported parameters for (ovirt.ovirt.ovirt_vm) module: hostname Supported parameters include: affinity_gr gs, affinity_label_mappings, allow_partial_import, auth,

[ovirt-users] Re: Creating VMs from templates with their own disks

2021-11-26 Thread Strahil Nikolov via Users
yaml is picky... write_files:            - path: /tmp/setup.sh            permissions: '0755'            content: | permissions & content should be on the same indentation with path: - path  permissions  content What is the error you receive ? Best Regards,Strahil Nikolov On Sat, Nov 27,

[ovirt-users] Re: Creating VMs from templates with their own disks

2021-11-26 Thread Strahil Nikolov via Users
Yep. Your code: cloud_init: custom_script: | host_name: "{{ vm_fqdn }}" user_name: myadmin user_password: write_files: - path: /tmp/setup.sh permissions: '0755' content: | #!/bin/bash echo "$(hostnamectl)" >> /tmp/myhostname.txt Yet, in "custom_script" there is no "host_name"

[ovirt-users] Updating hosted-engine from 4.4.5 to latest(4.4.9) fail with "DNF name '_get_key_for_package' is not defined"

2021-11-26 Thread rene . purcell
Hi! I'm having issue updating my nodes, normally I just clicked on them and update each of them without problem. I haven't updated since few months, now I'm unable to. So I checked the doc and saw that I probably should update my engine first so that's what I tried. Info on my setup: 2 nodes

[ovirt-users] Re: Creating VMs from templates with their own disks

2021-11-26 Thread Sina Owolabi
No errors at all Same results again Screenshot attached for a better view, but this is where it's at right now: sso: true disk_format: raw graphical_console: protocol: - spice - vnc cloud_init: regenerate_ssh_keys: