[ovirt-users] create custom scheduling policy

2021-11-13 Thread Hadiyansyah Hadiyansyah
hi all,

i have 4 host in the cluster, i wanna create custom schedulin policy for this 
cluster with condition. 
- max vm guest on single host is 10 vms
- host with 70% cpu, vm guest cant migrate to this host

anyone can help me for explained this condition to create custom scheduling 
policy ?


thanks

hadi
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@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/KNYQMS5BUMNHQWK6HEUWEBV2QBNIRLKB/


[ovirt-users] Cannot import some OVAs exported from oVirt 4.3.10 into 4.4.9

2021-11-13 Thread Thomas Simmons
Hello,
I exported all of the VMs on my 4.3.10 cluster to OVAs and while a few have 
imported into my new 4.4.9 cluster just fine, most are failing to import with 
the error below being logged in my engine.log.

Caused by: org.postgresql.util.PSQLException: ERROR: insert or update on table 
"vm_static" violates foreign key constraint 
"fk_vm_static_lease_sd_id_storage_domain_static_id"

I haven't been able to find much about this error. Google only has a few hits, 
but it looks like there was a similar issue in 4.2.x that was resolved in one 
of the 4.3 RCs.

https://bugzilla.redhat.com/show_bug.cgi?id=1641703

Any advise to get these VMs imported is appreciated.

More log output:
PL/pgSQL function insertvmstatic(character 
varying,text,integer,integer,integer,integer,uuid,uuid,character 
varying,uuid,timestamp with time 
zone,integer,boolean,boolean,integer,integer,integer,integer,character 
varying,boolean,boolean,boolean,boolean,character 
varying,text,integer,integer,integer,integer,integer,integer,character 
varying,integer,character varying,character varying,character 
varying,integer,character varying,character varying,integer,uuid,character 
varying,boolean,boolean,character varying,boolean,uuid,uuid,uuid,uuid,character 
varying,integer,integer,smallint,character 
varying,boolean,boolean,boolean,uuid,boolean,boolean,boolean,character 
varying,integer,character varying,uuid,uuid,character varying,character 
varying,character varying,uuid,uuid,boolean,boolean,boolean,character 
varying,boolean) line 8 at SQL statement
at 
org.springframework@5.0.4.RELEASE//org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.doTranslate(SQLErrorCodeSQLExceptionTranslator.java:247)
at 
org.springframework@5.0.4.RELEASE//org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:72)
at 
org.springframework@5.0.4.RELEASE//org.springframework.jdbc.core.JdbcTemplate.translateException(JdbcTemplate.java:1402)
at 
org.springframework@5.0.4.RELEASE//org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:1065)
at 
org.springframework@5.0.4.RELEASE//org.springframework.jdbc.core.JdbcTemplate.call(JdbcTemplate.java:1104)
at 
org.springframework@5.0.4.RELEASE//org.springframework.jdbc.core.simple.AbstractJdbcCall.executeCallInternal(AbstractJdbcCall.java:414)
at 
org.springframework@5.0.4.RELEASE//org.springframework.jdbc.core.simple.AbstractJdbcCall.doExecute(AbstractJdbcCall.java:374)
at 
org.springframework@5.0.4.RELEASE//org.springframework.jdbc.core.simple.SimpleJdbcCall.execute(SimpleJdbcCall.java:198)
at 
org.ovirt.engine.core.dal//org.ovirt.engine.core.dal.dbbroker.SimpleJdbcCallsHandler.executeImpl(SimpleJdbcCallsHandler.java:135)
at 
org.ovirt.engine.core.dal//org.ovirt.engine.core.dal.dbbroker.SimpleJdbcCallsHandler.executeImpl(SimpleJdbcCallsHandler.java:130)
at 
org.ovirt.engine.core.dal//org.ovirt.engine.core.dal.dbbroker.SimpleJdbcCallsHandler.executeModification(SimpleJdbcCallsHandler.java:76)
at 
org.ovirt.engine.core.dal//org.ovirt.engine.core.dao.DefaultGenericDao.save(DefaultGenericDao.java:93)
at 
deployment.engine.ear.bll.jar//org.ovirt.engine.core.bll.exportimport.ImportVmCommandBase.addVmStatic(ImportVmCommandBase.java:628)
at 
deployment.engine.ear.bll.jar//org.ovirt.engine.core.bll.exportimport.ImportVmFromExternalProviderCommand.addVmStatic(ImportVmFromExternalProviderCommand.java:309)
at 
deployment.engine.ear.bll.jar//org.ovirt.engine.core.bll.exportimport.ImportVmCommandBase.lambda$addVmToDb$8(ImportVmCommandBase.java:560)
at 
org.ovirt.engine.core.utils//org.ovirt.engine.core.utils.transaction.TransactionSupport.executeInNewTransaction(TransactionSupport.java:181)
at 
deployment.engine.ear.bll.jar//org.ovirt.engine.core.bll.exportimport.ImportVmCommandBase.addVmToDb(ImportVmCommandBase.java:559)
at 
deployment.engine.ear.bll.jar//org.ovirt.engine.core.bll.exportimport.ImportVmFromExternalProviderCommand.addVmToDb(ImportVmFromExternalProviderCommand.java:391)
at 
deployment.engine.ear.bll.jar//org.ovirt.engine.core.bll.exportimport.ImportVmCommandBase.executeVmCommand(ImportVmCommandBase.java:511)
at 
deployment.engine.ear.bll.jar//org.ovirt.engine.core.bll.VmCommand.executeCommand(VmCommand.java:178)
at 
deployment.engine.ear.bll.jar//org.ovirt.engine.core.bll.CommandBase.executeWithoutTransaction(CommandBase.java:1174)
at 
deployment.engine.ear.bll.jar//org.ovirt.engine.core.bll.CommandBase.executeActionInTransactionScope(CommandBase.java:1332)
at 
deployment.engine.ear.bll.jar//org.ovirt.engine.core.bll.CommandBase.runInTransaction(CommandBase.java:2010)
at 
org.ovirt.engine.core.utils//org.ovirt.engine.core.utils.transaction.TransactionSupport.executeInSuppressed(TransactionSupport.java:140)
at