[rhevm] Option get host name instead host ID in RHEVM logs - Exception message is VdcBLLException: Vds with id: vdsid=e078d7ac-279d-49b3-898b-48df88d4a923 was not found
Product:
Red Hat Enterprise Virtualization Manager
Reporter:
vvyazmin <vvyazmin>
Component:
ovirt-engine
Assignee:
Nobody's working on this, feel free to take it <nobody>
Descriptionvvyazmin@redhat.com
2013-05-29 06:35:20 UTC
Created attachment 754197[details]
## Logs rhevm, vdsm, libvirt, thread dump, vds_table
Description of problem:
Option get host name instead host ID in RHEVM logs - Exception message is VdcBLLException: Vds with id: vdsid=e078d7ac-279d-49b3-898b-48df88d4a923
was not found
Version-Release number of selected component (if applicable):
RHEVM 3.2 - SF17.1 environment:
RHEVM: rhevm-3.2.0-11.28.el6ev.noarch
VDSM: vdsm-4.10.2-21.0.el6ev.x86_64
LIBVIRT: libvirt-0.10.2-18.el6_4.5.x86_64
QEMU & KVM: qemu-kvm-rhev-0.12.1.2-2.355.el6_4.3.x86_64
SANLOCK: sanlock-2.6-2.el6.x86_64
How reproducible:
100%
Steps to Reproduce:
1. Create iSCSI DC with 50 hosts (in my case 50 fake hosts)
2. Try to add first Storage Domain
Actual results:
In RHEVM log I host ID instead host name
Expected results:
Option get host name instead host ID in RHEVM logs
Impact on user:
User can get host name only via query in DB or API – see workaround
Workaround:
1. psql -U postgres engine -c 'select * from vds;' | grep e078d7ac-279d-49b3-898b-48df88d4a923 | less -S
2. https://green-vdsc.qa.lab.tlv.redhat.com/api/hosts/e078d7ac-279d-49b3-898b-48df88d4a923
Additional info:
/var/log/ovirt-engine/engine.log
2013-05-28 18:11:33,583 ERROR [org.ovirt.engine.core.vdsbroker.ResourceManager] (ajp-/127.0.0.1:8702-7) Cannot get vdsManager for vdsid=e078d7ac-279d-49b3-898b-48df88d4a923
2013-05-28 18:11:33,583 ERROR [org.ovirt.engine.core.vdsbroker.ResourceManager] (ajp-/127.0.0.1:8702-7) CreateCommand failed: org.ovirt.engine.core.common.errors.VdcBLLException: VdcBLLException: V
ds with id: e078d7ac-279d-49b3-898b-48df88d4a923 was not found
at org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerCommand.initializeVdsBroker(VdsBrokerCommand.java:50) [engine-vdsbroker.jar:]
at org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerCommand.<init>(VdsBrokerCommand.java:29)
.
.
.
2013-05-28 18:11:33,590 ERROR [org.ovirt.engine.core.bll.storage.GetDeviceListQuery] (ajp-/127.0.0.1:8702-7) Query GetDeviceListQuery failed. Exception message is VdcBLLException: Vds with id: e078d7ac-279d-49b3-898b-48df88d4a923 was not found
/var/log/vdsm/vdsm.log
while we need to solve the bug 968150, if the code did not locate the host uuid, obviously, the exception can't get the name of a host not found (i understand it is actually in the db and this looks like a bug, but the error path in this case is for an invalid uuid most likely...)