Re: Ovirt-4.4.7 Adding host to existing cluster will attempt to run ovirt-hosted-engine-setup
by Paul-Erik Törrönen
On 2021-08-17 11:12, Dana Elfassy wrote:
> The execution of the task itself is fine - we're always installing this
> package because of dependencies.
> As for its failure- looks like an issue with the repositories.
> Please run $ yum repolist
> on the host and copy the output
Sorry for replying so late, was on a 2-week road-trip.
$ yum repolist
repo id
repo name
appstream
CentOS Stream 8 - AppStream
baseos
CentOS Stream 8 - BaseOS
elasticsearch-7.x
Elasticsearch repository for 7.x
packages
epel-next
Extra Packages for Enterprise
Linux 8 - Next - x86_64
extras
CentOS Stream 8 - Extras
ovirt-4.4
Latest oVirt 4.4 Release
ovirt-4.4-centos-ceph-pacific
Ceph packages for x86_64
ovirt-4.4-centos-gluster8
CentOS-8 - Gluster 8
ovirt-4.4-centos-opstools
CentOS-8 - OpsTools - collectd
ovirt-4.4-centos-stream-advanced-virtualization
Advanced Virtualization CentOS
Stream packages for x86_64
ovirt-4.4-centos-stream-nfv-openvswitch
CentOS-8 - NFV OpenvSwitch
ovirt-4.4-centos-stream-ovirt44
CentOS-8 Stream - oVirt 4.4
ovirt-4.4-copr:copr.fedorainfracloud.org:mdbarroso:ovsdbapp
Copr repo for ovsdbapp owned by
mdbarroso
ovirt-4.4-copr:copr.fedorainfracloud.org:sac:gluster-ansible
Copr repo for gluster-ansible
owned by sac
ovirt-4.4-copr:copr.fedorainfracloud.org:sbonazzo:EL8_collection
Copr repo for EL8_collection
owned by sbonazzo
ovirt-4.4-epel
Extra Packages for Enterprise
Linux 8 - x86_64
ovirt-4.4-openstack-train
OpenStack Train Repository
ovirt-4.4-virtio-win-latest
virtio-win builds roughly
matching what will be shipped in upcoming RHEL
powertools
CentOS Stream 8 - PowerTools
Then there's also this:
$ dnf update
Last metadata expiration check: 0:28:17 ago on Tue 31 Aug 2021 12:45:32
PM EEST.
Error:
Problem 1: cannot install the best update candidate for package
ovirt-host-dependencies-4.4.7-1.el8.x86_64
- nothing provides python3-os-brick needed by
ovirt-host-dependencies-4.4.8-1.el8.x86_64
Problem 2: package ovirt-host-4.4.8-1.el8.x86_64 requires
ovirt-host-dependencies = 4.4.8-1.el8, but none of the providers can be
installed
- cannot install the best update candidate for package
ovirt-host-4.4.7-1.el8.x86_64
- nothing provides python3-os-brick needed by
ovirt-host-dependencies-4.4.8-1.el8.x86_64
Poltsi
3 years, 6 months
ovirt go sdk
by Nikita Zubarev
Hello.
I need help creating a virtual machine using
https://github.com/oVirt/go-ovirt
I need set cmdline vm , Please help me
my create vm configuration, but cmd not set
[image: image.png]
Vm(
ovirtsdk4.NewVmBuilder().
Name(*name).
Console(
ovirtsdk4.NewConsoleBuilder().
Enabled(true).
MustBuild()).
Memory(ram2 * int64(1<<30)).
MemoryPolicy(
ovirtsdk4.NewMemoryPolicyBuilder().
Guaranteed(int64(ram2) * int64(1<<30)).
Max(int64(ram2) * 2 * int64(1<<30)).
Ballooning(true).
MustBuild()).
// Memory(int64(ram2) * int64(1<<30)).
Os(
ovirtsdk4.NewOperatingSystemBuilder().
CustomKernelCmdline("qemu_cmdline").Cmdline("qemu_cmdline").Boot(
ovirtsdk4.NewBootBuilder().
DevicesOfAny(
ovirtsdk4.BOOTDEVICE_NETWORK,
ovirtsdk4.BOOTDEVICE_HD).
MustBuild()).
MustBuild()).
HighAvailability(
ovirtsdk4.NewHighAvailabilityBuilder().
Enabled(true).
MustBuild()).
Cpu(
ovirtsdk4.NewCpuBuilder().
Topology(
ovirtsdk4.NewCpuTopologyBuilder().
Cores(cpu2).
Sockets(1).
MustBuild()).
MustBuild()).
Cluster(
ovirtsdk4.NewClusterBuilder().
Name(Cluster).
MustBuild()).
Template(
ovirtsdk4.NewTemplateBuilder().
Name("Blank").
MustBuild()).
MustBuild()).
Send()
3 years, 6 months
Re: [External] : Re: about the hugepage setting of the KVM server
by Tommy Sway
I use the ovirt-node, and I configured HUGEPAGE on the VM, and does not
configure the HUGEPAGE on the KVM host.
The THP I don't configure anything about it, and after configure the
HUGEPAGE on the vm, there is no report.
I don't know which method is the best.
From: Marcos Sungaila <marcos.sungaila(a)oracle.com>
Sent: Thursday, August 26, 2021 9:13 PM
To: Tommy Sway <sz_cuitao(a)163.com>; users(a)ovirt.org
Subject: RE: [External] : [ovirt-users] Re: about the hugepage setting of
the KVM server
Hi Tommy,
I have no simple answer to your question since I did not need this before,
but some questions may help us understand how it is currently working.
1st- Are you using an ovirt-node or an OS+vdsm as a hypervisor?
2nd- Did you enabled huge pages on the VM OS?
3rd- Did you check on the hypervisor OS if transparent hugepages (THP) is
enabled? And if, after enabling/configuring hugepages in the VM, it is
reporting hugepages are in use in the host?
Marcos
From: Tommy Sway <sz_cuitao(a)163.com <mailto:sz_cuitao@163.com> >
Sent: quinta-feira, 26 de agosto de 2021 04:49
To: users(a)ovirt.org <mailto:users@ovirt.org>
Subject: [External] : [ovirt-users] Re: about the hugepage setting of the
KVM server
Anyone can help me ?
From: users-bounces(a)ovirt.org <mailto:users-bounces@ovirt.org>
<users-bounces(a)ovirt.org <mailto:users-bounces@ovirt.org> > On Behalf Of
Tommy Sway
Sent: Thursday, August 26, 2021 12:27 AM
To: users(a)ovirt.org <mailto:users@ovirt.org>
Subject: [ovirt-users] about the hugepage setting of the KVM server
Hi:
I am running virtual machines on the KVM servers of oVirt env. The virtual
machine is running database, which needs to set the memory huge page on the
OPERATING system of the virtual machine.
If I need to set the huge page on the VIRTUAL machine, do I also need to set
huge page on the KVM physical machine? Or just on the virtual machine?
What best practices do you recommend?
Thank you very much!
3 years, 6 months
Unable to export VM from data storage domain.
by Diggy Mc
I'm running oVirt 4.4.4 with two data storage domains. One domain is where the production VMs run. The second domain is where I make backup copies of the VMs in the event of problems with the main production VMs. I make backups using the export option from the GUI's dropdown list.
I just now tried to "restore" a backup copy via the export function and get an error. In fact, I get errors trying to export (import to my original data domain) any of the VMs that were exported to my backup data domain. My backup domain is a DATA domain and not an EXPORT domain.
The exact error is:
Export VM Failed
[Cannot add VM. Cannot find a disk profile defined on storage domain 246c69e9-6f16-489f-8022-8613f6c1c22a.]
Is this a bug or am I doing something wrong? Help is needed urgently. In advance, thank you.
3 years, 6 months
Unexpected return value: Status [code=-32603, message=Internal JSON-RPC error: {'reason': "'libvirt'"}]
by marek
hi,
i have problem adding host to ovirt 4.4.8 standalone engine
host is centos 8 stream (migrated from centos 8)
on engine
/var/log/ovirt-engine/engine.log
2021-08-30 10:32:43,422+02 ERROR
[org.ovirt.engine.core.vdsbroker.vdsbroker.GetCapabilitiesAsyncVDSCommand]
(EE-ManagedScheduledExecutorService-engineScheduledThreadPool-Thread-69)
[] Failed in 'Get Host Capabilities' method
2021-08-30 10:32:43,422+02 WARN
[org.ovirt.engine.core.vdsbroker.vdsbroker.GetCapabilitiesAsyncVDSCommand]
(EE-ManagedScheduledExecutorService-engineScheduledThreadPool-Thread-69)
[] Unexpected return value: Status [code=-32603, message=Internal
JSON-RPC error: {'reason': "'libvirt'"}]
2021-08-30 10:32:43,423+02 ERROR
[org.ovirt.engine.core.vdsbroker.monitoring.HostMonitoring]
(EE-ManagedScheduledExecutorService-engineScheduledThreadPool-Thread-69)
[] Unable to RefreshCapabilities beforeFirstRefreshTreatment:
VDSErrorException: VDSGenericException: VDSErrorException: Failed to Get
Host Capabilities, error = Internal JSON-RPC error: {'reason':
"'libvirt'"}, code = -32603
any tips/ideas?
Marek
3 years, 6 months
Import OVA problem
by Dominique D
I have tried exporting 4 VMs (2 centos and 2 Windows) to an nfs mount (export OVA) and importing from ova and I can't see all the files.
Here are the files in the directory
-rw-------+ 1 root root 10739331584 Aug 29 10:27 linux2.ova
-rw-------+ 1 root root 1784370176 Aug 28 12:00 linuxtest.ova
-rw-------+ 1 root root 64434655232 Aug 28 13:57 vdiw10-2004v1C.ova
-rw-------+ 1 vdsm kvm 49040712192 Aug 27 17:21 vdiw10rg06.ova
The only file I see in virtual machine on source is linuxtest.ova and linux2.ova. Do you know why ?
ovirt 4.4.6
3 years, 6 months
ovirt 4.4.8 centos cloud image problem
by marek
hi,
i need test environment for centos6 system
on new ovirt installation downloaded CentOS 6 Generic Cloud Image v1907
for x86_64 (09463e6) from ovirt-image-repository as usual
created new VM from from this cloud image but VM cannot find disk
(console shows "pres any key to boot")
tried legacy BIOS and UEFI too - nothing changed
so i tried install centos6 from ISO . works. then i made template from
this VM.
created new VM from from this template and situation is the same
Centos 7 cloud image works
any hints/tips?
Marek
3 years, 6 months
Re: How to re-import a VM with an invalid timezone?
by Saif Abu Saleh
Hi,
Can you please provide what time-zone the VM you are trying to Import has?
if you are trying to import from the OVA you can get the time-zone by going
to the host location where the exported OVA exists,
open it and check what is the value of the <TimeZone> tag
Thanks,
Saif
From: <hibbsncc1701(a)gmail.com>
> Date: Fri, Aug 27, 2021 at 9:27 AM
> Subject: [ovirt-users] How to re-import a VM with an invalid timezone?
> To: <users(a)ovirt.org>
>
>
> I've just finished my upgrade to oVirt 4.4.8.4, but I've got one
> previously working VM that I cannot reimport. (I did a fresh install
> instead of restoring an engine backup.) It's a Windows VM, and every
> attempt I make to import it causes the following error:
>
> Cannot import VM. Invalid time zone for given OS type.
> Attribute: vm.vmStatic
>
> The interface doesn't give me the option to change the timezone before
> import. The most that I can get from the logs on either the engine host or
> SPM host is this:
>
> 2021-08-26 17:38:30,793-04 WARN
> [org.ovirt.engine.core.bll.exportimport.ImportVmFromConfigurationCommand]
> (default task-35) [96d9f0ea-99be-477a-b1d1-3781ffbac041] Validation of
> action 'ImportVmFromConfiguration' failed for user admin@internal-authz.
> Reasons:
> VAR__ACTION__IMPORT,VAR__TYPE__VM,ACTION_TYPE_FAILED_INVALID_TIMEZONE,$groups
> [Ljava.lang.Class;@b263017,$message
> ACTION_TYPE_FAILED_INVALID_TIMEZONE,$payload [Ljava.lang.Class;@3b789cbf,ACTION_TYPE_FAILED_ATTRIBUTE_PATH,$path
> vm.vmStatic,$validatedValue
> org.ovirt.engine.core.common.businessentities.VmStatic@9f994c52
>
> Does anyone know how to get a VM imported in this case?
>
> 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/J4L5M3PDZRB...
>
3 years, 6 months
Crash Debugging VDSM Hook
by Jean-Louis Dupond
Hi All,
While debugging some Qemu 6 issue I was requested to remove the
error_policy from the libvirt xml.
See https://bugzilla.redhat.com/show_bug.cgi?id=1999051#c12
Now to have this working I just wrote some small python hook for VDSM
which adjusts the XML before startup.
Just added the file in /usr/libexec/vdsm/hooks/before_vm_start:
# cat 40_crashtest
#!/usr/libexec/platform-python
import os
import hooking
class CrashTestHook(object):
def __init__(self):
super(CrashTestHook, self).__init__()
self.config = {}
self.domxml = hooking.read_domxml()
def save(self):
hooking.write_domxml(self.domxml)
def set_error_policy(self):
drivers = self.domxml.getElementsByTagName('driver')
for driver in drivers:
policy = driver.getAttribute('error_policy')
if policy == 'stop':
driver.removeAttribute('error_policy')
def main(self):
self.set_error_policy()
self.save()
if __name__ == "__main__":
CrashTestHook().main()
# vim: expandtab tabstop=4 shiftwidth=4
Might be usefull if somebody else needs the same thing :)
Jean-Louis
3 years, 6 months
cannot add host to cluster - libvirt.libvirtError: internal error: unknown feature amd-sev-es
by marek
ovirt 4.4.8 standalone
cluster cpu type: nehalem family
ovirt host centos 8 stream
ovirt gui info: Host CPU type is not supported in this cluster
compatibility version or is not supported at all.
vdsm.log
2021-08-30 11:30:58,600+0200 ERROR (jsonrpc/4) [root] Error while
getting domain capabilities (machinetype:92)
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/vdsm/common/cache.py", line
41, in __call__
return self.cache[args]
KeyError: ()
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/vdsm/machinetype.py", line 90,
in _get_domain_capabilities
domcaps = conn.getDomainCapabilities(None, arch, None, virt_type, 0)
File
"/usr/lib/python3.6/site-packages/vdsm/common/libvirtconnection.py",
line 131, in wrapper
ret = f(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/vdsm/common/function.py", line
94, in wrapper
return func(inst, *args, **kwargs)
File "/usr/lib64/python3.6/site-packages/libvirt.py", line 4493, in
getDomainCapabilities
raise libvirtError('virConnectGetDomainCapabilities() failed')
libvirt.libvirtError: internal error: unknown feature amd-sev-es
2021-08-30 11:30:58,650+0200 ERROR (jsonrpc/4) [root] Error while
getting CPU features: no domain capabilities found (machinetype:188)
model name : Intel(R) Xeon(R) CPU E5504 @ 2.00GHz
cat /sys/devices/cpu/caps/pmu_name
nehalem
grep -E 'svm|vmx' /proc/cpuinfo | grep nx
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ht tm pbe syscall
nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology
nonstop_tsc cpuid aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3
cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm pti ssbd ibrs ibpb stibp
tpr_shadow vnmi flexpriority ept vpid dtherm flush_l1d
3 years, 6 months