host deploy problem
by David Slaine
Ovirt-engine 4.5.4-1
Rocky 8.8
Hello!
problem with adding a host to the cluster, it fails with the following
message in /var/log/ovirt-engine/host-deploy/:
FAILED! => {\"msg\": \"The conditional check 'cluster_switch == \\\"ovs\\\"
or (ovn_central is defined and ovn_central | ipaddr)' failed. The error
was: The ipaddr filter requires python's netaddr be installed on the
ansible controller\\n\\nThe error appears to be in
'/usr/share/ovirt-engine/ansible-runner-service-project/project/roles/ovirt-provider-ovn-driver/tasks/configure.yml':
line 3, column 5, but may\\nbe elsewhere in the file depending on the exact
syntax problem.\\n\\nThe offending line appears to be:\\n\\n- block:\\n -
name: Install ovs\\n ^ here\\n\"}
how to fix this issue ?
thanks
1 year, 6 months
Unable to add KVM (ubuntu flavour)hypervisors on Ovirt engine.
by spp16121991@gmail.com
Hi all,
I am a noob in KVM. I am a VMware engineer.
I have created a lab environment to where i have hosted KVM as nested hypervisors within esxi.
I have a vsan environment. I want to create a similar KVM environment.
hence, i have deployed 3 kvm hypervisors (nested)
i have deployed Ovirt-manager ( equivalent to vcenter) to host/manage my KVM hypervisors.
to deploy Ovirt-manager, i installed ovirt packages in centos VM. Because ovirt pacjages are not available in ubuntu, hence choose centos.
next is i want to add kvm hypervisors on ovirt manager similar to how we add esxi hosts to vcenter.
That is where i am failing.
From my limited understanding in KVM, ovirt is looking for yum package manager , KVM are ubuntu flavoured, hence it has apt package manager.
What my ask is, can this be fixed? is there a file i need to edit in ovirt-engine.?
Can Ovirt-manager host KVM of ubuntu flavour?
Please advise.
Checked the ovirt logs:
Here is the log excerpts:
----------------------------------------------
} ],
"python3-oauthlib" : [ {
"name" : "python3-oauthlib",
"version" : "3.1.0-1ubuntu2",
"arch" : "all",
"category" : "python",
"origin" : "Ubuntu",
"source" : "apt"
} ],
"python3-openssl" : [ {
"name" : "python3-openssl",
"version" : "19.0.0-1build1",
"arch" : "all",
"category" : "python",
"origin" : "Ubuntu",
"source" : "apt"
} ],
"python3-pexpect" : [ {
"name" : "python3-pexpect",
"version" : "4.6.0-1build1",
"arch" : "all",
"category" : "python",
"origin" : "Ubuntu",
"source" : "apt"
} ],
"python3-pkg-resources" : [ {
"name" : "python3-pkg-resources",
"version" : "45.2.0-1ubuntu0.1",
"arch" : "all",
"category" : "python",
"origin" : "Ubuntu",
"source" : "apt"
} ],
"python3-problem-report" : [ {
"name" : "python3-problem-report",
"version" : "2.20.11-0ubuntu27.27",
"arch" : "all",
"category" : "python",
"origin" : "Ubuntu",
"source" : "apt"
} ],
"python3-ptyprocess" : [ {
"name" : "python3-ptyprocess",
"version" : "0.6.0-1ubuntu1",
"arch" : "all",
"category" : "python",
"origin" : "Ubuntu",
"source" : "apt"
} ],
"python3-pyasn1" : [ {
"name" : "python3-pyasn1",
"version" : "0.4.2-3build1",
"arch" : "all",
"category" : "python",
"origin" : "Ubuntu",
"source" : "apt"
} ],
"python3-pyasn1-modules" : [ {
"name" : "python3-pyasn1-modules",
"version" : "0.2.1-0.2build1",
"arch" : "all",
"category" : "python",
"origin" : "Ubuntu",
"source" : "apt"
} ],
"python3-pymacaroons" : [ {
"name" : "python3-pymacaroons",
"version" : "0.13.0-3",
"arch" : "all",
"category" : "python",
"origin" : "Ubuntu",
"source" : "apt"
} ],
"python3-pyrsistent" : [ {
"name" : "python3-pyrsistent",
"version" : "0.15.5-1build1",
"arch" : "amd64",
"category" : "python",
"origin" : "Ubuntu",
"source" : "apt"
} ],
"python3-requests" : [ {
"name" : "python3-requests",
"version" : "2.22.0-2ubuntu1.1",
"arch" : "all",
"category" : "python",
"origin" : "Ubuntu",
"source" : "apt"
} ],
"python3-requests-unixsocket" : [ {
"name" : "python3-requests-unixsocket",
"version" : "0.2.0-2",
"arch" : "all",
"category" : "python",
"origin" : "Ubuntu",
"source" : "apt"
} ],
"python3-secretstorage" : [ {
"name" : "python3-secretstorage",
"version" : "2.3.1-2ubuntu1",
"arch" : "all",
"category" : "python",
"origin" : "Ubuntu",
"source" : "apt"
} ],
"python3-serial" : [ {
"name" : "python3-serial",
"version" : "3.4-5.1",
"arch" : "all",
"category" : "python",
"origin" : "Ubuntu",
"source" : "apt"
} ],
"python3-service-identity" : [ {
"name" : "python3-service-identity",
"version" : "18.1.0-5build1",
"arch" : "all",
"category" : "python",
"origin" : "Ubuntu",
"source" : "apt"
} ],
"python3-setuptools" : [ {
"name" : "python3-setuptools",
"version" : "45.2.0-1ubuntu0.1",
"arch" : "all",
"category" : "python",
"origin" : "Ubuntu",
"source" : "apt"
} ],
"python3-simplejson" : [ {
"name" : "python3-simplejson",
"version" : "3.16.0-2ubuntu2",
"arch" : "amd64",
"category" : "python",
"origin" : "Ubuntu",
"source" : "apt"
} ],
"python3-six" : [ {
"name" : "python3-six",
"version" : "1.14.0-2",
"arch" : "all",
"category" : "python",
"origin" : "Ubuntu",
"source" : "apt"
} ],
"python3-software-properties" : [ {
"name" : "python3-software-properties",
"version" : "0.99.9.12",
"arch" : "all",
"category" : "python",
"origin" : "Ubuntu",
"source" : "apt"
} ],
"python3-systemd" : [ {
"name" : "python3-systemd",
"version" : "234-3build2",
"arch" : "amd64",
"category" : "python",
"origin" : "Ubuntu",
"source" : "apt"
} ],
"python3-twisted" : [ {
"name" : "python3-twisted",
"version" : "18.9.0-11ubuntu0.20.04.2",
"arch" : "all",
"category" : "python",
"origin" : "Ubuntu",
"source" : "apt"
} ],
"python3-twisted-bin" : [ {
"name" : "python3-twisted-bin",
"version" : "18.9.0-11ubuntu0.20.04.2",
"arch" : "amd64",
"category" : "python",
"origin" : "Ubuntu",
"source" : "apt"
} ],
"python3-update-manager" : [ {
"name" : "python3-update-manager",
"version" : "1:20.04.10.11",
"arch" : "all",
"category" : "python",
"origin" : "Ubuntu",
"source" : "apt"
} ],
==============================
"duration" : 2.05353,
"event_loop" : null,
"uuid" : "f72c96ea-2491-4612-807e-37da9d563d4d"
}
}
}
2023-09-15 03:18:41 EDT - TASK [ovirt-host-deploy-facts : Check if vdsm is preinstalled] *****************
2023-09-15 03:18:41 EDT - ok: [10.125.0.110]
2023-09-15 03:18:41 EDT - {
"status" : "OK",
"msg" : "",
"data" : {
"uuid" : "89475143-4bb1-41ec-806d-53def5431773",
"counter" : 23,
"stdout" : "ok: [10.125.0.110]",
"start_line" : 18,
"end_line" : 19,
"runner_ident" : "137dc514-5398-11ee-8c1e-00505686a372",
"event" : "runner_on_ok",
"pid" : 498377,
"created" : "2023-09-15T07:18:39.085171",
"parent_uuid" : "00505686-a372-da37-7bda-00000000016b",
============================================================
"task_action" : "lineinfile",
"task_args" : "",
"task_path" : "/usr/share/ovirt-engine/ansible-runner-service-project/project/roles/ovirt-host-deploy-facts/tasks/host-os.yml:19",
"role" : "ovirt-host-deploy-facts",
"host" : "10.125.0.110",
"remote_addr" : "10.125.0.110",
"res" : {
"changed" : true,
"msg" : "line added",
"backup" : "",
"diff" : [ {
"before" : "",
"after" : "",
"before_header" : "/etc/os-release (content)",
"after_header" : "/etc/os-release (content)"
}, {
"before_header" : "/etc/os-release (file attributes)",
"after_header" : "/etc/os-release (file attributes)"
} ],
"invocation" : {
"module_args" : {
=============================================================
"duration" : 0.094784,
"event_loop" : "items",
"uuid" : "c29c53ba-c732-4237-bb6b-decac24d15b1"
}
}
}
2023-09-15 03:18:41 EDT - TASK [ovirt-host-deploy-vdsm : Install ovirt-hosted-engine-setup package] ******
2023-09-15 03:18:41 EDT - fatal: [10.125.0.110]: FAILED! => {"changed": false, "msg": ["Could not detect which major revision of yum is in use, which is required to determine module backend.", "You can manually specify use_backend to tell the module whether to use the yum (yum3) or dnf (yum4) backend})"]}
2023-09-15 03:18:41 EDT - {
"status" : "OK",
"msg" : "",
"data" : {
"uuid" : "f730ac20-fe5b-4240-8074-f5c04dddeeec",
"counter" : 78,
"stdout" : "fatal: [10.125.0.110]: FAILED! => {\"changed\": false, \"msg\": [\"Could not detect which major revision of yum is in use, which is required to determine module backend.\", \"You can manually specify use_backend to tell the module whether to use the yum (yum3) or dnf (yum4) backend})\"]}",
"start_line" : 67,
"end_line" : 68,
"runner_ident" : "137dc514-5398-11ee-8c1e-00505686a372",
"event" : "runner_on_failed",
"pid" : 498377,
"created" : "2023-09-15T07:18:41.351584",
"parent_uuid" : "00505686-a372-da37-7bda-0000000001ba",
"event_data" : {
"playbook" : "ovirt-host-deploy.yml",
"playbook_uuid" : "ba8a6834-12cf-4837-ae46-f70182bbad00",
"play" : "all",
"play_uuid" : "00505686-a372-da37-7bda-000000000008",
"play_pattern" : "all",
"task" : "Install ovirt-hosted-engine-setup package",
"task_uuid" : "00505686-a372-da37-7bda-0000000001ba",
"task_action" : "yum",
"task_args" : "",
"task_path" : "/usr/share/ovirt-engine/ansible-runner-service-project/project/roles/ovirt-host-deploy-vdsm/tasks/packages.yml:6",
"role" : "ovirt-host-deploy-vdsm",
"host" : "10.125.0.110",
"remote_addr" : "10.125.0.110",
"res" : {
"msg" : [ "Could not detect which major revision of yum is in use, which is required to determine module backend.", "You can manually specify use_backend to tell the module whether to use the yum (yum3) or dnf (yum4) backend})" ],
"_ansible_no_log" : false,
"changed" : false
1 year, 6 months
Impossibile to install a new system
by Andrea Chierici
Dear all,
I've been struggling with a new ovirt installation for several weeks but
I seem to have no luck at all.
I've tried both starting from a centos8 stream system and a ovirt-node,
but the engine installation always breaks here:
TASK [ovirt.ovirt.hosted_engine_setup : Wait for the host to be up]
I keep getting the same problem, it looks like the engine is not
"migrated" to the public ip and is stuck on the natted address that the
installation process is using during the preliminary phase.
Here is a message that seems to confirm my theory:
2023-09-19 15:43:29,259+0200 DEBUG
otopi.ovirt_hosted_engine_setup.ansible_utils
ansible_utils._process_output:109 {'msg': "The task includes an option
with an undefined variable. The error was: 'local_vm_ip' is
undefined\n\nThe error appears to be in
'/usr/share/ansible/collections/ansible_collections/ovirt/ovirt/roles/hosted_engine_setup/tasks/sync_on_engine_machine.yml':
line 2, column 3, but may\nbe elsewhere in the file depending on the
exact syntax problem.\n\nThe offending line appears to be:\n\n---\n-
name: Set the name for add_host\n ^ here\n", '_ansible_no_log': False}
2
I know the problem the development of ovirt is facing lately, but I am
simply wondering: is there a way to install ovirt 4.5.4 today or is it
all already lost??!
Any kind of help would be really appreciated.
Thanks,
Andrea
--
Andrea Chierici - INFN-CNAF
Viale Berti Pichat 6/2, 40127 BOLOGNA
Office Tel: +39 051 2095463
SkypeID ataruz
--
1 year, 6 months
In-place upgrade of Windows OS
by Hean-Seng Tan
We are unable to do an in-place upgrade of the Windows OS for a vm from Windows Server 2012r2 to version 2016. Has anyone ever performed successfully an in-place upgrade? Can you please share the steps?
1 year, 6 months
oVirt 4.5.4-1: engine-setup does not renew certificates
by Lars Stolpe
Hi,
I wanted to add short names to the webgui apache certificate. I followed these instructions:
„Engine can be accessed using alternate host names (or IP addresses) that can configured by adding a new configuration file (for example /etc/ovirt-engine/engine.conf.d/99-custom-sso-setup.conf) with following content: SSO_ALTERNATE_ENGINE_FQDNS="alias1.example.com alias2.example.com" The list of alternate names has to be listed separated by spaces. It's possible to add also IP addresses of engine host, but using IP addresses instead of DNS names is not considered to be a good practise. Run engine-setup to generate new certificates.“
Certificates where not renewed. How do i get engine-setup to renew the apache certificate?
oVirt: 4.5.4-1
Regards, Lars
1 year, 6 months
How to turn off this checks?
by Jorge Visentini
Hi guys,
Is it possible to disable these checks?
*1 - Failed to verify Power Management configuration for Host
ovirtHost.domain.*
*2 - Available swap memory of host ovirtHost.domain [2 MB] is under defined
threshold [1024 MB].*
I know that is not a good practice, but I don't need it for now.
Thanks all!
--
Att,
Jorge Visentini
+55 55 98432-9868
1 year, 6 months
Version 4.5. How should I properly replace a failed host?
by ziyi Liu
gluster uses 2+1 arbitration mode
My host is damaged and I need to reinstall the system. The host fqdn still uses the old fqdn. What should I do?
I found some historical information. Is it still usable for the new version?
Found gluster-ansible in GitHub
https://github.com/gluster/gluster-ansible/blob/master/playbooks/hc-ansib...
See the instructions and configure node_prep_inventory.yml and node_replace_inventory.yml to restore.
Execute ansible-playbook -i node_prep_inventory.yml -i node_replace_inventory.yml tasks/replace_node.yml
My data disk /dev/sdb has also been initialized by me. Can this ansible script help me create a new partition, create a mount, and complete the recovery of the gluster node?
1 year, 6 months
ssl stomp reactor timeout
by Chris Smith
Hi all,
I'm using ovirt 4.2 so I'm a little behind, but I'm trying to understand
what this error message means.
ERROR [org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient] (SSL Stomp
Reactor) [] Connection timeout for host 'x.x.x.x', last response arrived
1549 ms ago.
Is this initiated by the engine server or the ovirt host ?
Is there a way for me to replicate what ovirt is doing manually via a
telnet or curl type command ?
Thanks,
--
Chris
--
Squiz named market leader (second year) in Omdia's Selecting a Digital
Experience Management Solution report, 2022-23. Download the report today!
<https://www.squiz.net/omdia-report-2022-23?utm_source=Website&utm_medium=...>
1 year, 6 months
engine python sdk ImportError: cannot import name 'Client'
by parallax
I try to use the Python sdk to download vm disk but get the error:
# python3.9 download_disk.py f556403f-2a32-4e35-9f17-dc67864e0ae1
/home/librenms.raw --format raw --config engine2
Traceback (most recent call last):
File "download_disk.py", line 31, in <module>
from ovirt_imageio import client
ModuleNotFoundError: No module named 'ovirt_imageio'
or when run it with python3.6:
# python3.6 download_disk.py f556403f-2a32-4e35-9f17-dc67864e0ae1
/home/librenms.raw --format raw --config engine2
Traceback (most recent call last):
File "download_disk.py", line 31, in <module>
from ovirt_imageio import client
ImportError: cannot import name 'client'
Environment:
Rocky Linux release 8.8
Python 3.6.8, Python 3.9.16
python39-ovirt-engine-sdk4-4.6.0-1.el8.x86_64,
python3-ovirt-engine-sdk4-4.6.2-1.el8.x86_64
ovirt-release44-4.4.10.3-1.el8.noarch
1 year, 6 months