Re: ovirt_host_network -> networks: pass list
by Angus Clarke
The following works, however it is looping through the whole routine for each and every VLAN which is a bit sad when the routine itself supports multiple additions in one go, I just can't see how to automatically populate the yml list under the "networks:" parameter.
- name: Add Networks to Hosts
ovirt_host_network:
auth: "{{ ovirt_auth }}"
state: present
name: "{{ item[0] }}"
interface: "bond0"
networks:
- name: "{{ item[1] }}"
wait: true
with_nested:
- "{{ groups['kvm'] }}"
- "{{ groups['net'] }}"
Cheers
Angus
________________________________
From: Angus Clarke <angus(a)charworth.com>
Sent: 14 February 2021 18:07
To: users(a)ovirt.org <users(a)ovirt.org>
Subject: ovirt_host_network -> networks: pass list
Hello
I can see some examples of what I am trying to understand, but I'm still not quite clear, perhaps someone can help?
I am trying to lookup a list of network names to pass to the ovirt_host_network, networks parameter.
I have the networks in my hosts file like:
# Logical networks
net:
hosts:
v1234-test-vlan:
net_vlan: 1234
net_vms: true
v1235-another-test-vlan:
net_vlan: 1235
net_vms: true
And now I would like to loop through those entries to pass as a list to the "networks:" parameter of overt_host_networks. Manually it looks like this:
ovirt_host_network:
auth: "{{ ovirt_auth }}"
state: present
name: "{{ item }}"
interface: "bond0"
networks:
- name: v1234-test-vlan
- name: v1235-another-test-vlan
wait: true
loop: "{{ groups['kvm'] }}"
Thanks for any help!
Angus
3 years, 10 months
ovirt_host_network -> networks: pass list
by Angus Clarke
Hello
I can see some examples of what I am trying to understand, but I'm still not quite clear, perhaps someone can help?
I am trying to lookup a list of network names to pass to the ovirt_host_network, networks parameter.
I have the networks in my hosts file like:
# Logical networks
net:
hosts:
v1234-test-vlan:
net_vlan: 1234
net_vms: true
v1235-another-test-vlan:
net_vlan: 1235
net_vms: true
And now I would like to loop through those entries to pass as a list to the "networks:" parameter of overt_host_networks. Manually it looks like this:
ovirt_host_network:
auth: "{{ ovirt_auth }}"
state: present
name: "{{ item }}"
interface: "bond0"
networks:
- name: v1234-test-vlan
- name: v1235-another-test-vlan
wait: true
loop: "{{ groups['kvm'] }}"
Thanks for any help!
Angus
3 years, 10 months
VM stuck in reboot
by Michael Schmid
Hi All,
I am running on 4.4.4.7-1.el8
I messed up. I was doing some weekend maintenance on VMs and some VMs
needed to be stopped and some rebooted and I stopped one, thought I
clicked on the next one and clicked shutdown. But... I clicked reboot
and shutdown on the same VM, now it is stuck. The Overview in the engine
shows the VM "Reboot In Progress" and it has for two weeks at this
point, it was a fresh VM so I just created a new one until I had this
figured out, but here I am. Clicking "Shutdown" does nothing but
generate an error, same with "Power Off" the error I get is
---
2021-02-10 12:04:03,460-05 INFO
[org.ovirt.engine.core.bll.StopVmCommand]
(EE-ManagedThreadFactory-engine-Thread-244169)
[c3ce0a41-3f53-4f3e-993f-0d75f62cc8e6] Running command: StopVmCommand
internal: false. Entities affected : ID:
d4e90edd-0598-4ac1-b814-2cae8d29e216 Type: VMAction group STOP_VM with
role type USER
2021-02-10 12:04:03,464-05 WARN
[org.ovirt.engine.core.bll.StopVmCommand]
(EE-ManagedThreadFactory-engine-Thread-244169)
[c3ce0a41-3f53-4f3e-993f-0d75f62cc8e6] Strange, according to the status
'RebootInProgress' virtual machine
'd4e90edd-0598-4ac1-b814-2cae8d29e216' should be running in a host but
it isn't.
2021-02-10 12:04:03,485-05 ERROR
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector]
(EE-ManagedThreadFactory-engine-Thread-244169)
[c3ce0a41-3f53-4f3e-993f-0d75f62cc8e6] EVENT_ID:
USER_FAILED_STOP_VM(56), Failed to power off VM snipeit
---
I have shut down the entire system. all VMs the hosts, the engine, and
nothing changes. still stuck in reboot in progress
I would greatly appreciate any help
Thanks
Mike
3 years, 10 months
Cockpit and Gluster
by C Williams
Hello,
I have a hardware RAID 10 array and want to use Cockpit to deploy a hosted
engine with replica 3 Gluster.
Should I pick the JBOD option for this ?
Will my disk alignments be correct for my PVs, VGs, LVs and xfs formatting?
I don't see RAID 10. I see where it was removed in 4.2.8 -- I think.
Thank You All For Your Help !
3 years, 10 months
strange behavior of fresh ovirt setup..
by stankunas.justas@gmail.com
Justas Stankūnas <stankunas.justas(a)gmail.com>
Wed, Feb 10, 11:29 PM (10 hours ago)
to infra-owner
Hi,
so i have just installed oVirt on 4 nodes (oVirt node 4.4.4) with a hosted engine. For storage I have TrueNAS dedicated machine for NFS.
hosts are all identical Lenovo thinkcentre m92 with (Intel(R) Core(TM) i5-3470T CPU @ 2.90GHz and 16 GB of RAM).
everything is connected with a physical managed switch over 1Gbps each.
everything is setup without any additional configuration. There is only a single vm (hosted engine). but hosts are constant errors and warnings being presented and I am lost even from where to start looking.
Time | Message
Feb 10, 2021, 11:07:38 PM| |VM HostedEngine is not responding.
Feb 10, 2021, 10:46:48 PM| |VM HostedEngine is not responding.
Feb 10, 2021, 10:46:35 PM| |Failed to connect Host host1.local to Storage Pool Home
Feb 10, 2021, 10:46:35 PM| |Host host1.local cannot access the Storage Domain(s) ovirt_manager_nfs attached to the Data Center Home. Setting Host state to Non-Operational.
Feb 10, 2021, 10:46:35 PM| |Host host1.local reports about one of the Active Storage Domains as Problematic.
Feb 10, 2021, 10:46:17 PM| |VDSM host1.local command Get Host Statistics failed: Connection timeout for host 'host1.local', last response arrived 17522 ms ago.
Feb 10, 2021, 10:36:27 PM| |VM HostedEngine is not responding.
Feb 10, 2021, 10:25:54 PM| |VM HostedEngine is not responding.
Feb 10, 2021, 10:05:03 PM| |VM HostedEngine is not responding.
Feb 10, 2021, 10:04:54 PM| |Failed to connect Host host1.local to Storage Pool Home
Feb 10, 2021, 10:04:54 PM| |Host host1.local cannot access the Storage Domain(s) ovirt_manager_nfs attached to the Data Center Home. Setting Host state to Non-Operational.
Feb 10, 2021, 10:04:54 PM| |Host host1.local reports about one of the Active Storage Domains as Problematic.
Feb 10, 2021, 10:04:33 PM| |Invalid status on Data Center Home. Setting Data Center status to Non Responsive (On host host3.local, Error: Network error during communication with the Host.).
Feb 10, 2021, 10:04:33 PM| |VDSM host3.local command SpmStatusVDS failed: Connection timeout for host 'host3.local', last response arrived 2184 ms ago.
Feb 10, 2021, 9:54:41 PM| |VM HostedEngine is not responding.
Feb 10, 2021, 9:33:47 PM| |VM HostedEngine is not responding.
Feb 10, 2021, 9:25:52 PM| |VDSM host2.local command Get Host Statistics failed: Message timeout which can be caused by communication issues
Feb 10, 2021, 9:23:22 PM| |VM HostedEngine is not responding.
Feb 10, 2021, 9:12:51 PM| |Failed to connect Host host1.local to Storage Pool Home
Feb 10, 2021, 9:12:51 PM| |Host host1.local cannot access the Storage Domain(s) nfs_vms attached to the Data Center Home. Setting Host state to Non-Operational.
Feb 10, 2021, 9:12:51 PM| |Host host1.local reports about one of the Active Storage Domains as Problematic.
Feb 10, 2021, 9:12:44 PM| |Invalid status on Data Center Home. Setting Data Center status to Non Responsive (On host host3.local, Error: Network error during communication with the Host.).
Feb 10, 2021, 9:12:44 PM| |VDSM host1.local command Get Host Statistics failed: Connection timeout for host 'host1.local', last response arrived 16869 ms ago.
Feb 10, 2021, 9:12:44 PM| |VDSM host3.local command SpmStatusVDS failed: Connection timeout for host 'host3.local', last response arrived 16931 ms ago.
Feb 10, 2021, 9:02:51 PM| |VM HostedEngine is not responding.
Feb 10, 2021, 8:52:25 PM| |VM HostedEngine is not responding.
Feb 10, 2021, 8:31:34 PM| |VM HostedEngine is not responding.
Feb 10, 2021, 8:21:06 PM| |VM HostedEngine is not responding.
Feb 10, 2021, 8:20:36 PM| |Invalid status on Data Center Home. Setting Data Center status to Non Responsive (On host host3.local, Error: Network error during communication with the Host.).
Feb 10, 2021, 8:20:36 PM| |VDSM host3.local command Get Host Statistics failed: Connection timeout for host 'host3.local', last response arrived 23346 ms ago.
Feb 10, 2021, 8:10:11 PM| |Failed to connect Host host1.local to Storage Pool Home
Feb 10, 2021, 8:10:11 PM| |Host host1.local cannot access the Storage Domain(s) ovirt_manager_nfs, nfs_vms, iso attached to the Data Center Home. Setting Host state to Non-Operational.
Feb 10, 2021, 8:10:10 PM| |Host host1.local reports about one of the Active Storage Domains as Problematic.
Feb 10, 2021, 8:10:01 PM| |Failed to connect Host host4.local to Storage Pool Home
Feb 10, 2021, 8:10:01 PM| |Host host4.local cannot access the Storage Domain(s) nfs_vms attached to the Data Center Home. Setting Host state to Non-Operational.
Feb 10, 2021, 8:10:00 PM| |Host host4.local reports about one of the Active Storage Domains as Problematic.
Feb 10, 2021, 8:09:52 PM| |VDSM host1.local command Get Host Statistics failed: Connection timeout for host 'host1.local', last response arrived 22891 ms ago.
Feb 10, 2021, 7:56:14 PM| |Failed to connect Host host2.local to Storage Pool Home
Feb 10, 2021, 7:56:14 PM| |Host host2.local cannot access the Storage Domain(s) iso, ovirt_manager_nfs, nfs_vms attached to the Data Center Home. Setting Host state to Non-Operational.
Feb 10, 2021, 7:56:14 PM| |Host host2.local reports about one of the Active Storage Domains as Problematic.
Feb 10, 2021, 7:56:06 PM| |Invalid status on Data Center Home. Setting Data Center status to Non Responsive (On host host3.local, Error: Network error during communication with the Host.).
Feb 10, 2021, 7:56:06 PM| |VDSM host3.local command SpmStatusVDS failed: Connection timeout for host 'host3.local', last response arrived 24449 ms ago.
Feb 10, 2021, 7:46:10 PM| |VM HostedEngine is not responding.
Feb 10, 2021, 7:45:40 PM| |Invalid status on Data Center Home. Setting Data Center status to Non Responsive (On host host3.local, Error: Network error during communication with the Host.).
Feb 10, 2021, 7:45:40 PM| |VDSM host3.local command SpmStatusVDS failed: Connection timeout for host 'host3.local', last response arrived 24857 ms ago.
Feb 10, 2021, 7:35:49 PM| |VM HostedEngine is not responding.
Feb 10, 2021, 7:25:20 PM| |VM HostedEngine is not responding.
Feb 10, 2021, 7:24:50 PM| |Invalid status on Data Center Home. Setting Data Center status to Non Responsive (On host host3.local, Error: Network error during communication with the Host.).
Feb 10, 2021, 7:24:50 PM| |VDSM host3.local command Get Host Statistics failed: Connection timeout for host 'host3.local', last response arrived 27295 ms ago.
Feb 10, 2021, 7:14:55 PM| |VM HostedEngine is not responding.
Feb 10, 2021, 7:07:37 PM| |Failed to connect Host host1.local to Storage Pool Home
Feb 10, 2021, 7:07:37 PM| |Host host1.local cannot access the Storage Domain(s) ovirt_manager_nfs, nfs_vms, iso attached to the Data Center Home. Setting Host state to Non-Operational.
Feb 10, 2021, 7:07:37 PM| |Host host1.local reports about one of the Active Storage Domains as Problematic.
Feb 10, 2021, 7:07:30 PM| |Failed to connect Host host4.local to Storage Pool Home
Feb 10, 2021, 7:07:30 PM| |Host host4.local cannot access the Storage Domain(s) nfs_vms attached to the Data Center Home. Setting Host state to Non-Operational.
Feb 10, 2021, 7:07:30 PM| |Host host4.local reports about one of the Active Storage Domains as Problematic.
Feb 10, 2021, 7:07:23 PM| |Invalid status on Data Center Home. Setting Data Center status to Non Responsive (On host host3.local, Error: Network error during communication with the Host.).
Feb 10, 2021, 7:07:23 PM| |VDSM host3.local command SpmStatusVDS failed: Connection timeout for host 'host3.local', last response arrived 22551 ms ago.
Feb 10, 2021, 6:46:56 PM| |Failed to connect Host host1.local to Storage Pool Home
Feb 10, 2021, 6:46:56 PM| |Host host1.local cannot access the Storage Domain(s) ovirt_manager_nfs, iso attached to the Data Center Home. Setting Host state to Non-Operational.
Feb 10, 2021, 6:46:55 PM| |Host host1.local reports about one of the Active Storage Domains as Problematic.
Feb 10, 2021, 6:46:50 PM| |Invalid status on Data Center Home. Setting Data Center status to Non Responsive (On host host1.local, Error: Network error during communication with the Host.).
3 years, 10 months
export a VM to export domain in 4.4.4
by Gianluca Cecchi
Hello,
in 4.4.4 I see that I can import from export domain, but if I select
"export VM" I can only export to a storage domain.... is this by design?
What if I want to export from 4.4.4 and import into an older oVirt version?
Thanks,
Gianluca
3 years, 10 months
The conditional check 'firewalld_s.status.SubState != 'running' or firewalld_s.status.LoadState == 'masked'' failed
by lejeczek
Hi,
I filed a bugzilla report about the problem a while ago, but
since I got so much better feedback here on the list, about
different issue though, I thought I should try here again.
I attempt to deploy hosted engine and it fails:
...
[ INFO ] TASK [ovirt.ovirt.hosted_engine_setup : Check
firewalld status]
[ INFO ] ok: [localhost]
[ INFO ] TASK [ovirt.ovirt.hosted_engine_setup : Enforce
firewalld status]
[ ERROR ] fatal: [localhost]: FAILED! => {"msg": "The
conditional check 'firewalld_s.status.SubState != 'running'
or firewalld_s.status.LoadState == 'masked'' failed. The
error was: error while evaluating conditional
(firewalld_s.status.SubState != 'running' or
firewalld_s.status.LoadState == 'masked'): 'dict object' has
no attribute 'SubState'\n\nThe error appears to be in
'/usr/share/ansible/collections/ansible_collections/ovirt/ovirt/roles/hosted_engine_setup/tasks/pre_checks/validate_firewalld.yml':
line 8, column 5, but may\nbe elsewhere in the file
depending on the exact syntax problem.\n\nThe offending line
appears to be:\n\n register: firewalld_s\n - name:
Enforce firewalld status\n ^ here\n"}
[ ERROR ] Failed to execute stage 'Closing up': Failed
executing ansible-playbook
This is on Centos Stream with perhaps the latest of those:
cockpit-ovirt-dashboard-0.14.20-0.0.master.20210210161723.git7ea56eb.el8.noarch
ovirt-ansible-collection-1.3.2-0.1.master.20210210132916.el8.noarch
ovirt-engine-appliance-4.4-20210210182638.1.el8.x86_64
ovirt-host-4.4.6-0.0.20210127122119.gitef84c5a.el8.x86_64
ovirt-host-dependencies-4.4.6-0.0.20210127122119.gitef84c5a.el8.x86_64
ovirt-hosted-engine-ha-2.4.7-0.0.master.20210203134854.20210203134846.git7d297c2.el8.noarch
ovirt-hosted-engine-setup-2.5.0-0.0.master.20201216174101.git2a94b06.el8.noarch
ovirt-imageio-client-2.2.0-0.202102041750.git98b0a36.el8.x86_64
ovirt-imageio-common-2.2.0-0.202102041750.git98b0a36.el8.x86_64
ovirt-imageio-daemon-2.2.0-0.202102041750.git98b0a36.el8.x86_64
ovirt-openvswitch-2.11-0.2020061801.el8.noarch
ovirt-openvswitch-ovn-2.11-0.2020061801.el8.noarch
ovirt-openvswitch-ovn-common-2.11-0.2020061801.el8.noarch
ovirt-openvswitch-ovn-host-2.11-0.2020061801.el8.noarch
ovirt-provider-ovn-driver-1.2.34-0.20201207083749.git75016ed.el8.noarch
ovirt-python-openvswitch-2.11-0.2020061801.el8.noarch
ovirt-release-master-4.4.5-0.0.master.20210210011142.git0fb6ce0.el8.noarch
ovirt-vmconsole-1.0.9-1.20201130191550.git0bf874a.el8.noarch
ovirt-vmconsole-host-1.0.9-1.20201130191550.git0bf874a.el8.noarch
python3-ovirt-engine-sdk4-4.4.10-1.20210209.gitf3d6f43.el8.x86_64
python3-ovirt-setup-lib-1.3.3-0.0.master.20200727063144.git90cd6d9.el8.noarch
To make it a bit more curious - this is a bare-metal system
and I cannot reproduce that same errors on a simple KVM
host. One possibly major difference is that hardware has
multiple ifaces as oppose to single iface in KVM.
For any thoughts you care to share I'll be grateful.
thanks, L
3 years, 10 months
lxd, openvz in kvm have issues connecting to public phys network
by david duchovny
hi
ovirt 444
lxd, openvz in kvm have issues connecting to public network
i can't to allow access to physical interface.
In general i cannot seem to get containers direct access to the network
e.g. in order to pull a dhcp address from my public network. I have tried
macvlan, bridge mode, openvswitch as well.
there are no connection issues on the baremetal server, but this issue
exists on the kvm vm
how to fix it?
3 years, 10 months
Re: [External] : Using VNC console on new cluster
by Simon Coter
Hi Matthew,
this is a known issue for 4.3.6 release (OLVM or oVirt).
You should check if your KVM cluster has VNC Encryption enabled; if this is the case you should:
* disable VNC console for your Cluster (by OLVM/oVirt)
* Comment out line "vnc_tls=1" in /etc/libvirt/qemu.conf on the KVM host.
* Go to OLVM Web Console, Compute -> Hosts -> select <KVM host> -> Management -> Maintenance, then Installation -> Reinstall, to apply above change.
* After above step reinstall KVM host, launch novnc VM console works fine.
Hope this helps.
Simon
On Feb 12, 2021, at 12:25 AM, Matthew.Stier(a)fujitsu.com<mailto:Matthew.Stier@fujitsu.com> wrote:
I’m running OLVM 4.3.6 (Consider it oVIrt 4.3.6).
When I created my second cluster, I could not access the hosts on the second cluster using VNC (haven’t tried to get html5 working).
Since I was forced to power off everything, (power outage), I’ve had no issue with accessing the console on any host in the second cluster.
I have just created a third cluster. Same problem. No issues with hosts on the first two clusters, but any host I’ve migrated to the third cluster, I cannot access the console.
When I select a host, click on the button for ‘Console’ I get a download on my browser, I tell the browser to open the download, and I get, what I think is the Spice application starting and quitting in a second or two.
I’m not looking forward to telling my management that we need another power outage.
_______________________________________________
Users mailing list -- users(a)ovirt.org<mailto:users@ovirt.org>
To unsubscribe send an email to users-leave(a)ovirt.org<mailto:users-leave@ovirt.org>
Privacy Statement: https://urldefense.com/v3/__https://www.ovirt.org/privacy-policy.html__;!...
oVirt Code of Conduct: https://urldefense.com/v3/__https://www.ovirt.org/community/about/communi...
List Archives: https://urldefense.com/v3/__https://lists.ovirt.org/archives/list/users@o...
3 years, 10 months
Using VNC console on new cluster
by Matthew.Stier@fujitsu.com
I'm running OLVM 4.3.6 (Consider it oVIrt 4.3.6).
When I created my second cluster, I could not access the hosts on the second cluster using VNC (haven't tried to get html5 working).
Since I was forced to power off everything, (power outage), I've had no issue with accessing the console on any host in the second cluster.
I have just created a third cluster. Same problem. No issues with hosts on the first two clusters, but any host I've migrated to the third cluster, I cannot access the console.
When I select a host, click on the button for 'Console' I get a download on my browser, I tell the browser to open the download, and I get, what I think is the Spice application starting and quitting in a second or two.
I'm not looking forward to telling my management that we need another power outage.
3 years, 10 months