How to obtain vm snapshots status
by anton.alymov@cyberprotect.ru
Hi! I use ovirt rest api to start vm, backup vm and then remove vm.
I start vm, wait for vmstatus up, then start backup, wait for starting, finalize, wait for succeeded, wait for disk unlock. Looks like backup is finished here from my side.Because ovirt repost succeed status and unlocks disk. But if i try shutdown and remove vm ovirt will throw error Cannot remove VM. The VM is performing an operation on a Snapshot. Please wait for the operation to finish, and try again.
Ok, ovirt is right here, I see from web interface that operation hasn't finished yet. How can I obtain correct status where vm can be removed? I also tried to get info about vm snapshots but all of them had Status: ok
1 year, 1 month
Cannot remove template because a disk is based on it
by nicolas@devels.es
Hi,
We're running oVirt 4.5. We have a template which we'd like to get rid
of, there are no VMs based on it. However, trying to remove it oVirt
states that:
Cannot remove Template. The following Disk(s) are based on it:
(b54ee1cb-ed64-4db4-bd3d-eac8b22ea095) .
When opening the 'Disks' subtab in the template, it appears a disk
(screenshot attached).
However, when opening the oVirt Storage->Disks option, I cannot find the
disk by the ID, not even ordering the ID column and trying to find it
visually.
Can anyone point to the problem and a possible solution/workaround?
Thanks.
1 year, 1 month
Re: host deploy problem
by David Slaine
installed python3.11-netaddr the following error appeared:
FAILED! => {\"msg\": \"The conditional check 'elasticsearch_host == None or
elasticsearch_host is undefined' failed. The error was: error while
evaluating conditional (elasticsearch_host == None or elasticsearch_host is
undefined): 'elasticsearch_host' is undefined. 'elasticsearch_host' is
undefined\\n\\nThe error appears to be in
'/usr/share/ansible/roles/oVirt.metrics/roles/ovirt_initial_validations/tasks/check_logging_collectors.yml':
line 4, 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: If
output plugin is elasticsearch, validate host address is set\\n ^
here\\n\"}",
ср, 27 сент. 2023 г. в 10:54, David Slaine <david.slaine(a)gmail.com>:
> Thanks for your answer
> I installed python38-netaddr-0.8.0-2.el8.noarch on both servers(host and
> engine), but it didn't help and the same error appears
>
> ср, 27 сент. 2023 г. в 08:56, David Slaine <david.slaine(a)gmail.com>:
>
>> Thanks for your answer
>> I installed python38-netaddr-0.8.0-2.el8.noarch on both servers(host and
>> engine), but it didn't help and the same error appears
>>
>> вт, 26 сент. 2023 г. в 22:12, Strahil Nikolov <hunter86_bg(a)yahoo.com>:
>>
>>> Install python3-netaddr or python38-netaddr package.
>>>
>>> Best Regards,
>>> Strahil Nikolov
>>>
>>>
>>> On Tuesday, September 26, 2023, 9:04 PM, David Slaine <
>>> david.slaine(a)gmail.com> wrote:
>>>
>>> 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
>>> _______________________________________________
>>> Users mailing list -- users(a)ovirt.org
>>> To unsubscribe send an email to users-leave(a)ovirt.org
>>> Privacy Statement: https://www.ovirt.org/privacy-policy.html
>>> oVirt Code of Conduct:
>>> https://www.ovirt.org/community/about/community-guidelines/
>>> List Archives:
>>> https://lists.ovirt.org/archives/list/users@ovirt.org/message/FDEAQXI7XHU...
>>>
>>>
1 year, 1 month
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, 1 month
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, 1 month
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, 2 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, 2 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, 2 months