RHEV 3.3 migrating guest to host lacking memory yields ambiguous host not found
Issue
In Redhat RHEV 3.3 attempting to migrate a guest to a specific host / hypervisor that does not have sufficient scheduling memory for said guest yields an ambiguous host not found error. The error is misleading if you don't expect this behavior.
[RHEVM shell (connected)]# info
backend version: 3.3
sdk version : 3.3.0.21.*final-.1
cli version : 3.3.0.13.*final-.1
python version : 2.6.6.final.0
entry point : https://123.acme.com/api
[RHEVM shell (connected)]# action vm 123vm migrate --host-name 123rhelhost
error:
status: 400
reason: Bad Request
detail: Host not found.
[RHEVM shell (connected)]# show vm 123vm | grep memory
memory : 4294967296
memory_policy-guaranteed : 4294967296
[RHEVM shell (connected)]# show host 123rhelhost
id : 392fe10a-06cc-4b8a-8570-9aa7f429d7ba
name : 123rhelhost
address : 123rhelhost.acme.com
certificate-organization : CME Lab RHEV Testing A
certificate-subject : O=CME Lab RHEV Testing A,CN=123rhelhost.acme.com
cluster-id : 8ad3f67e-1e40-46d2-9c42-5583e604206c
cpu-name : Intel(R) Xeon(R) CPU E5-2670 0 @ 2.60GHz
cpu-speed : 2601.0
cpu-topology-cores : 8
cpu-topology-sockets : 2
cpu-topology-threads : 2
hardware_information-family : Not Specified
hardware_information-manufacturer : Dell Inc.
hardware_information-product_name : PowerEdge R620
hardware_information-serial_number : FNWBQV1
hardware_information-uuid : 4C4C4544-004E-5710-8042-C6C04F515631
hardware_information-version : Not Specified
iscsi-initiator : iqn.1994-05.com.redhat:980cfedb4d
ksm-enabled : True
libvirt_version-build : 2
libvirt_version-full_version : libvirt-0.10.2-29.el6_5.2
libvirt_version-major : 0
libvirt_version-minor : 10
libvirt_version-revision : 0
max_scheduling_memory : 1652555776
memory : 67504177152
os-type : RHEL
os-version-full_version : 6Server - 6.5.0.1.el6
port : 54321
power_management-address : 123rhelhost
power_management-agents-agent-address : 123rhelhost
power_management-agents-agent-order : 1
power_management-agents-agent-type : cmellsc
power_management-agents-agent-username: rhevfence
power_management-enabled : True
power_management-type : cmellsc
power_management-username : rhevfence
ssh-fingerprint : 30:fc:8c:21:25:97:f1:ac:9c:ef:b5:41:9d:63:fc:1a
ssh-port : 22
status-state : up
storage_manager-priority : 5
storage_manager-valueOf : false
summary-active : 15
summary-migrating : 0
summary-total : 15
transparent_hugepages-enabled : True
type : rhel
version-build : 2
version-full_version : vdsm-4.13.2-0.6.el6ev
version-major : 4
version-minor : 13
version-revision : 0
2014-01-27 22:10:50,963 INFO [org.ovirt.engine.core.bll.MigrateVmToServerCommand] (ajp-/127.0.0.1:8702-50) [209c4e1f] Lock Acquired to object EngineLock [exc
lusiveLocks= key: 077d3787-b472-4e8f-8abd-50cef342cb23 value: VM
, sharedLocks= ]
2014-01-27 22:10:51,913 INFO [org.ovirt.engine.core.bll.scheduling.SchedulingManager] (ajp-/127.0.0.1:8702-50) [209c4e1f] Candidate host 123rhelhost (392fe10a-06c
c-4b8a-8570-9aa7f429d7ba) was filtered out by VAR__FILTERTYPE__INTERNAL filter Memory
2014-01-27 22:10:51,994 INFO [org.ovirt.engine.core.bll.MigrateVmToServerCommand] (ajp-/127.0.0.1:8702-50) [209c4e1f] Running command: MigrateVmToServerComma
nd internal: false. Entities affected : ID: 077d3787-b472-4e8f-8abd-50cef342cb23 Type: VM
2014-01-27 22:10:52,259 INFO [org.ovirt.engine.core.bll.scheduling.SchedulingManager] (ajp-/127.0.0.1:8702-50) [209c4e1f] Candidate host 123rhelhost (392fe10a-06c
c-4b8a-8570-9aa7f429d7ba) was filtered out by VAR__FILTERTYPE__INTERNAL filter Memory (correlation id: 209c4e1f)
2014-01-27 22:10:52,260 ERROR [org.ovirt.engine.core.bll.MigrateVmToServerCommand] (ajp-/127.0.0.1:8702-50) [209c4e1f] Command org.ovirt.engine.core.bll.Migra
teVmToServerCommand throw Vdc Bll exception. With error message VdcBLLException: RESOURCE_MANAGER_VDS_NOT_FOUND (Failed with error RESOURCE_MANAGER_VDS_NOT_FO
UND and code 5004)
2014-01-27 22:10:52,262 ERROR [org.ovirt.engine.core.bll.MigrateVmToServerCommand] (ajp-/127.0.0.1:8702-50) [209c4e1f] Transaction rolled-back for command: or
g.ovirt.engine.core.bll.MigrateVmToServerCommand.
2014-01-27 22:10:52,282 INFO [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (ajp-/127.0.0.1:8702-50) [209c4e1f] Correlation ID: 209c4e1f, Job ID: 566da75a-c737-4127-8e2c-8b64a928cb2f, Call Stack: null, Custom Event ID: -1, Message: Migration failed (VM: 123vm, Source: xyz111, Destination: <UNKNOWN>).
2014-01-27 22:10:52,292 INFO [org.ovirt.engine.core.bll.MigrateVmToServerCommand] (ajp-/127.0.0.1:8702-50) [209c4e1f] Lock freed to object EngineLock [exclusiveLocks= key: 077d3787-b472-4e8f-8abd-50cef342cb23 value: VM
, sharedLocks= ]
Environment
Red Hat Enterprise Virtualization
3.3
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
