[Users] NFS domain and LVM
by René Koch (ovido)
Hi,
I just rebooted my NFS server which hosts a ISO domain which is used by
RHEV 3.1 and oVirt 3.2. In both environments the ISO domain became
inactive and I tried to activate it again.
In RHEV this worked fine, but in oVirt it didn't.
Just for your information: both - RHEV and oVirt use "Local on host" as
datacenter storage type.
I normally use a local NFS server and mount the share locally (dc with
storage type NFS) as "Local on host" is making troubles in most of my
setups (in both - oVirt and RHEV) and the issues are mainly missing
(sometimes lost) volume groups.
As my oVirt 3.2 setup is a testing environment and my test vms are still
running, I'll keep it in this state for finding a solution for this. As
said, have seen issues like this more then one time before, so maybe
this is a bug and need some attention (can also open a bug report if
needed).
vdsm.log is telling me that the storage domain doesn't exist (as
complained by vdsm daemon):
2013-05-07 16:44:18,493 INFO
[org.ovirt.engine.core.vdsbroker.irsbroker.ActivateStorageDomainVDSCommand] (pool-3-thread-47) [210a0bcb] START, ActivateStorageDomainVDSCommand( storagePoolId = 484e62d7-7a01-4b5e-aec8-59d366100281, ignoreFailoverLimit = false, compatabilityVersion = null, storageDomainId = a4c43175-ce34-49a5-8608-cac573bf7647), log id: 33c54af7
2013-05-07 16:44:20,770 ERROR
[org.ovirt.engine.core.vdsbroker.vdsbroker.BrokerCommandBase]
(pool-3-thread-47) [210a0bcb] Failed in ActivateStorageDomainVDS method
2013-05-07 16:44:20,781 ERROR
[org.ovirt.engine.core.vdsbroker.vdsbroker.BrokerCommandBase]
(pool-3-thread-47) [210a0bcb] Error code StorageDomainDoesNotExist and
error message IRSGenericException: IRSErrorException: Failed to
ActivateStorageDomainVDS, error = Storage domain does not exist:
('a4c43175-ce34-49a5-8608-cac573bf7647',)
2013-05-07 16:44:20,791 ERROR
[org.ovirt.engine.core.vdsbroker.irsbroker.IrsBrokerCommand]
(pool-3-thread-47) [210a0bcb]
IrsBroker::Failed::ActivateStorageDomainVDS due to: IRSErrorException:
IRSGenericException: IRSErrorException: Failed to
ActivateStorageDomainVDS, error = Storage domain does not exist:
('a4c43175-ce34-49a5-8608-cac573bf7647',)
More interesting is the behavior of my host (CentOS 6.4) which tries to
find a logical volume and is doing some iSCSI-scans:
Thread-224450::DEBUG::2013-05-07
16:44:19,333::task::957::TaskManager.Task::(_decref)
Task=`ab00697e-32df-43b1-822b-a94bef55909d`::ref 0 aborting False
Thread-1129392::DEBUG::2013-05-07
16:44:20,555::misc::84::Storage.Misc.excCmd::(<lambda>) '/usr/bin/sudo
-n /sbin/multipath' (cwd None)
Thread-1129392::DEBUG::2013-05-07
16:44:20,608::misc::84::Storage.Misc.excCmd::(<lambda>) SUCCESS: <err> =
''; <rc> = 0
Thread-1129392::DEBUG::2013-05-07
16:44:20,609::lvm::477::OperationMutex::(_invalidateAllPvs) Operation
'lvm invalidate operation' got the operation mutex
Thread-1129392::DEBUG::2013-05-07
16:44:20,609::lvm::479::OperationMutex::(_invalidateAllPvs) Operation
'lvm invalidate operation' released the operation mutex
Thread-1129392::DEBUG::2013-05-07
16:44:20,609::lvm::488::OperationMutex::(_invalidateAllVgs) Operation
'lvm invalidate operation' got the operation mutex
Thread-1129392::DEBUG::2013-05-07
16:44:20,610::lvm::490::OperationMutex::(_invalidateAllVgs) Operation
'lvm invalidate operation' released the operation mutex
Thread-1129392::DEBUG::2013-05-07
16:44:20,610::lvm::508::OperationMutex::(_invalidateAllLvs) Operation
'lvm invalidate operation' got the operation mutex
Thread-1129392::DEBUG::2013-05-07
16:44:20,610::lvm::510::OperationMutex::(_invalidateAllLvs) Operation
'lvm invalidate operation' released the operation mutex
Thread-1129392::DEBUG::2013-05-07
16:44:20,610::misc::1064::SamplingMethod::(__call__) Returning last
result
Thread-1129392::DEBUG::2013-05-07
16:44:20,610::lvm::368::OperationMutex::(_reloadvgs) Operation 'lvm
reload operation' got the operation mutex
Thread-1129392::DEBUG::2013-05-07
16:44:20,612::misc::84::Storage.Misc.excCmd::(<lambda>) '/usr/bin/sudo
-n /sbin/lvm vgs --config " devices { preferred_names = [\
\"^/dev/mapper/\\"
] ignore_suspended_devices=1 write_cache_state=0
disable_after_error_count=3 filter = [ \\"r%.*%\\" ] } global {
locking_type=1 prioritise_write_locks=1 wait_for_locks=1 } back
up { retain_min = 50 retain_days = 0 } " --noheadings --units b
--nosuffix --separator | -o
uuid,name,attr,size,free,extent_size,extent_count,free_count,tags,vg_mda_size,vg_mda_fr
ee a4c43175-ce34-49a5-8608-cac573bf7647' (cwd None)
Thread-1129392::DEBUG::2013-05-07
16:44:20,759::misc::84::Storage.Misc.excCmd::(<lambda>) FAILED: <err> =
' Volume group "a4c43175-ce34-49a5-8608-cac573bf7647" not found\n';
<rc> =
5
Thread-1129392::WARNING::2013-05-07
16:44:20,760::lvm::373::Storage.LVM::(_reloadvgs) lvm vgs failed: 5 []
[' Volume group "a4c43175-ce34-49a5-8608-cac573bf7647" not found']
Thread-1129392::DEBUG::2013-05-07
16:44:20,760::lvm::397::OperationMutex::(_reloadvgs) Operation 'lvm
reload operation' released the operation mutex
Thread-1129392::ERROR::2013-05-07
16:44:20,767::task::833::TaskManager.Task::(_setError)
Task=`589ebcc8-2255-4a29-b995-5e76f3697ec8`::Unexpected error
Traceback (most recent call last):
File "/usr/share/vdsm/storage/task.py", line 840, in _run
return fn(*args, **kargs)
File "/usr/share/vdsm/logUtils.py", line 42, in wrapper
res = f(*args, **kwargs)
File "/usr/share/vdsm/storage/hsm.py", line 1144, in
activateStorageDomain
pool.activateSD(sdUUID)
File "/usr/share/vdsm/storage/securable.py", line 68, in wrapper
return f(self, *args, **kwargs)
File "/usr/share/vdsm/storage/sp.py", line 1042, in activateSD
dom = sdCache.produce(sdUUID)
File "/usr/share/vdsm/storage/sdc.py", line 97, in produce
domain.getRealDomain()
File "/usr/share/vdsm/storage/sdc.py", line 52, in getRealDomain
return self._cache._realProduce(self._sdUUID)
File "/usr/share/vdsm/storage/sdc.py", line 121, in _realProduce
domain = self._findDomain(sdUUID)
File "/usr/share/vdsm/storage/sdc.py", line 152, in _findDomain
raise se.StorageDomainDoesNotExist(sdUUID)
StorageDomainDoesNotExist: Storage domain does not exist:
('a4c43175-ce34-49a5-8608-cac573bf7647',)
Thread-1129392::DEBUG::2013-05-07
16:44:20,768::task::852::TaskManager.Task::(_run)
Task=`589ebcc8-2255-4a29-b995-5e76f3697ec8`::Task._run:
589ebcc8-2255-4a29-b995-5e76f3697ec8
('a4c43175-ce34-49a5-8608-cac573bf7647',
'484e62d7-7a01-4b5e-aec8-59d366100281') {} failed - stopping task
Thread-1129392::DEBUG::2013-05-07
16:44:20,768::task::1177::TaskManager.Task::(stop)
Task=`589ebcc8-2255-4a29-b995-5e76f3697ec8`::stopping in state preparing
(force False)
Thread-1129392::DEBUG::2013-05-07
16:44:20,768::task::957::TaskManager.Task::(_decref)
Task=`589ebcc8-2255-4a29-b995-5e76f3697ec8`::ref 1 aborting True
Thread-1129392::INFO::2013-05-07
16:44:20,769::task::1134::TaskManager.Task::(prepare)
Task=`589ebcc8-2255-4a29-b995-5e76f3697ec8`::aborting: Task is aborted:
'Storage domain does not exist' - code 358
It's clear to me that my host can't find a volume group named
a4c43175-ce34-49a5-8608-cac573bf7647, because this is the ID of my ISO
domain which resists on NFS and not iSCSI or FC or local on host.
I use RPM for RHEL from ovirt-stable repository on my CentOS 6.4 host:
[root@centos-hyp01 ~]# yum list vdsm* | grep '@'
vdsm.x86_64 4.10.3-10.el6
@ovirt-stable
vdsm-cli.noarch 4.10.3-10.el6
@ovirt-stable
vdsm-gluster.noarch 4.10.3-10.el6
@ovirt-stable
vdsm-python.x86_64 4.10.3-10.el6
@ovirt-stable
vdsm-xmlrpc.noarch 4.10.3-10.el6
@ovirt-stable
Please let me know if you need further information.
Thanks a lot!
--
Best Regards,
René Koch
Senior Solution Architect
============================================
ovido gmbh - "Das Linux Systemhaus"
Brünner Straße 163, A-1210 Wien
Phone: +43 720 / 530 670
Mobile: +43 660 / 512 21 31
E-Mail: r.koch(a)ovido.at
============================================
11 years, 6 months
[Users] deploy without engine.conf.defaults?
by lof yer
I compiled the latest source yesterday, but I met a problem in deploying it.
I used old env-variable:
ENGINE_DEFAULTS=/home/demo/gittest/virtfan-ovirt/backend/manager/conf/engine.conf.defaults
and engine.conf.defaults had content like this:
ENGINE_USR=/usr/share/ovirt-engine
ENGINE_ETC=/etc/ovirt-engine
When I ran standalone.sh, it just tell me that I need more variables like
ENGINE_PKI_ENGINE_STORE and etc..
What should I add exactly?
11 years, 6 months
[Users] vdsm can not call libvirt function
by bigclouds
------=_Part_240922_1442187622.1367821148482
Content-Type: text/plain; charset=GBK
Content-Transfer-Encoding: 7bit
hi,
this vm is running, but calls failed.
---------------log-----------------------
Thread-52180::ERROR::2013-05-03 10:02:26,967::utils::412::vm.Vm::(collect) vmId=`900da72e-687f-4f53-b54a-f8da73ae8bbe`::Stats function failed: <AdvancedStatsFunction _s ampleCpu at 0x259fbc8>
694 Traceback (most recent call last):
695 File "/usr/lib64/python2.6/site-packages/vdsm/utils.py", line 408, in collect
696 statsFunction()
697 File "/usr/lib64/python2.6/site-packages/vdsm/utils.py", line 283, in __call__
698 retValue = self._function(*args, **kwargs)
699 File "/usr/share/vdsm/libvirtvm.py", line 137, in _sampleCpu
700 cpuStats = self._vm._dom.getCPUStats(True, 0)
701 File "/usr/share/vdsm/libvirtvm.py", line 515, in f
702 ret = attr(*args, **kwargs)
703 File "/usr/lib64/python2.6/site-packages/vdsm/libvirtconnection.py", line 83, in wrapper
704 ret = f(*args, **kwargs)
705 File "/usr/lib64/python2.6/site-packages/libvirt.py", line 1715, in getCPUStats
706 if ret is None: raise libvirtError ('virDomainGetCPUStats() failed', dom=self)
707 libvirtError: Requested operation is not valid: domain is not running
708 Thread-52180::ERROR::2013-05-03 10:02:26,978::utils::412::vm.Vm::(collect) vmId=`900da72e-687f-4f53-b54a-f8da73ae8bbe`::Stats function failed: <AdvancedStatsFunction _s ampleDisk at 0x259fc38>
709 Traceback (most recent call last):
710 File "/usr/lib64/python2.6/site-packages/vdsm/utils.py", line 408, in collect
711 statsFunction()
712 File "/usr/lib64/python2.6/site-packages/vdsm/utils.py", line 283, in __call__
713 retValue = self._function(*args, **kwargs)
714 File "/usr/share/vdsm/libvirtvm.py", line 147, in _sampleDisk
715 diskSamples[vmDrive.name] = self._vm._dom.blockStats(vmDrive.name)
716 File "/usr/share/vdsm/libvirtvm.py", line 515, in f
717 ret = attr(*args, **kwargs)
718 File "/usr/lib64/python2.6/site-packages/vdsm/libvirtconnection.py", line 83, in wrapper
719 ret = f(*args, **kwargs)
720 File "/usr/lib64/python2.6/site-packages/libvirt.py", line 1686, in blockStats
721 if ret is None: raise libvirtError ('virDomainBlockStats() failed', dom=self)
722 libvirtError: Requested operation is not valid: domain is not running
723 Thread-52180::ERROR::2013-05-03 10:02:26,999::utils::412::vm.Vm::(collect) vmId=`900da72e-687f-4f53-b54a-f8da73ae8bbe`::Stats function failed: <AdvancedStatsFunction _s ampleDiskLatency at 0x2598e70>
724 Traceback (most recent call last):
689 Thread-52180::DEBUG::2013-05-03 10:02:26,947::task::568::TaskManager.Task::(_updateState) Task=`958a52ab-d9ca-4410-8611-c3dfeee3fcd4`::moving from state preparing -> state finished
------=_Part_240922_1442187622.1367821148482
Content-Type: text/html; charset=GBK
Content-Transfer-Encoding: 7bit
<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><div>hi,</div><div>this vm is running, but calls failed.</div><div> </div><div>---------------log-----------------------</div><div> </div><div>Thread-52180::ERROR::2013-05-03 10:02:26,967::utils::412::vm.Vm::(collect) vmId=`900da72e-687f-4f53-b54a-f8da73ae8bbe`::Stats function failed: <AdvancedStatsFunction _s ampleCpu at 0x259fbc8><br> 694 Traceback (most recent call last):<br> 695 File "/usr/lib64/python2.6/site-packages/vdsm/utils.py", line 408, in collect<br> 696 statsFunction()<br> 697 File "/usr/lib64/python2.6/site-packages/vdsm/utils.py", line 283, in __call__<br> 698 retValue = self._function(*args, **kwargs)<br> 699 File "/usr/share/vdsm/libvirtvm.py", line 137, in _sampleCpu<br> 700 cpuStats = self._vm._dom.getCPUStats(True, 0)<br> 701 File "/usr/share/vdsm/libvirtvm.py", line 515, in f<br> 702 ret = attr(*args, **kwargs)<br> 703 File "/usr/lib64/python2.6/site-packages/vdsm/libvirtconnection.py", line 83, in wrapper<br> 704 ret = f(*args, **kwargs)<br> 705 File "/usr/lib64/python2.6/site-packages/libvirt.py", line 1715, in getCPUStats<br> 706 if ret is None: raise libvirtError ('virDomainGetCPUStats() failed', dom=self)<br> 707 libvirtError: Requested operation is not valid: domain is not running<br> 708 Thread-52180::ERROR::2013-05-03 10:02:26,978::utils::412::vm.Vm::(collect) vmId=`900da72e-687f-4f53-b54a-f8da73ae8bbe`::Stats function failed: <AdvancedStatsFunction _s ampleDisk at 0x259fc38><br> 709 Traceback (most recent call last):<br> 710 File "/usr/lib64/python2.6/site-packages/vdsm/utils.py", line 408, in collect<br> 711 statsFunction()<br> 712 File "/usr/lib64/python2.6/site-packages/vdsm/utils.py", line 283, in __call__<br> 713 retValue = self._function(*args, **kwargs)<br> 714 File "/usr/share/vdsm/libvirtvm.py", line 147, in _sampleDisk<br> 715 diskSamples[vmDrive.name] = self._vm._dom.blockStats(vmDrive.name)<br> 716 File "/usr/share/vdsm/libvirtvm.py", line 515, in f<br> 717 ret = attr(*args, **kwargs)<br> 718 File "/usr/lib64/python2.6/site-packages/vdsm/libvirtconnection.py", line 83, in wrapper<br> 719 ret = f(*args, **kwargs)<br> 720 File "/usr/lib64/python2.6/site-packages/libvirt.py", line 1686, in blockStats<br> 721 if ret is None: raise libvirtError ('virDomainBlockStats() failed', dom=self)<br> 722 libvirtError: Requested operation is not valid: domain is not running<br> 723 Thread-52180::ERROR::2013-05-03 10:02:26,999::utils::412::vm.Vm::(collect) vmId=`900da72e-687f-4f53-b54a-f8da73ae8bbe`::Stats function failed: <AdvancedStatsFunction _s ampleDiskLatency at 0x2598e70><br> 724 Traceback (most recent call last):<br> 689 Thread-52180::DEBUG::2013-05-03 10:02:26,947::task::568::TaskManager.Task::(_updateState) Task=`958a52ab-d9ca-4410-8611-c3dfeee3fcd4`::moving from state preparing -> state finished</div></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>
------=_Part_240922_1442187622.1367821148482--
11 years, 6 months
[Users] Logical Networks and hosts
by Lee Jones
I have assigned a logical network to a cluster in a data center.I assigned
a host host1 to this cluster.
I then created a second data center DC2 with cluster DC2. The DC2 cluster
has no logical networks assigned to it,but I am still able to assign host1
to this cluster.Is this working as designed?
Thanks,
Lee
11 years, 6 months
[Users] what is volume and image in vdsm
by bigclouds
------=_Part_36961_1501069094.1367727291106
Content-Type: text/plain; charset=GBK
Content-Transfer-Encoding: 7bit
hi,all
please tell me what is volume ,image and their relation.i do not fully understand them via code
thanks
------=_Part_36961_1501069094.1367727291106
Content-Type: text/html; charset=GBK
Content-Transfer-Encoding: 7bit
<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><div>hi,all</div><div>please tell me what is volume ,image and their relation.i do not fully understand them via code</div><div> </div><div>thanks</div></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>
------=_Part_36961_1501069094.1367727291106--
11 years, 6 months
[Users] Unable to add host - Error looking up infinispan/ovirt-engine
by snmishra@linux.vnet.ibm.com
Added one host to my ovirt-engine and when I try to add another host,
I get an error -
ERROR [org.ovirt.engine.core.utils.ejb.EJBUtilsStrategy]
(DefaultQuartzScheduler_Worker-3) [68658049] Failed to lookup resource
type: CACHE_CONTAINER. JNDI name: java:jboss/infinispan/ovirt-engine:
javax.naming.NameNotFoundException: Error looking up
infinispan/ovirt-engine, service service
jboss.naming.context.java.jboss.infinispan.ovirt-engine is not started
Attached is the engine.log from the time when I manually hit
"Activate" button on webadmin UI.
-Sharad
11 years, 6 months
[Users] Unanble to start spice console.
by snmishra@linux.vnet.ibm.com
After defining a new VM, hit 'Run Once' and chose to install F18 by
attaching an iso. The green arrow comes up next to the new defined
VM. When I select to start the console, Error dialog pops up with
message -
"Error while executing action: A Request to the Server failed with the
following Status Code: 500"
Engine log has following to report -
013-05-03 14:08:32,363 INFO
[org.ovirt.engine.core.bll.SetVmTicketCommand] (http--0.0.0.0-8080-3)
[385b5ed5] Running command: SetVmTicketCommand internal: false.
Entities affected : ID: cc00379f-5e70-4e62-85c2-a2a9f5a59dd3 Type: VM
2013-05-03 14:08:32,369 INFO
[org.ovirt.engine.core.vdsbroker.vdsbroker.SetVmTicketVDSCommand]
(http--0.0.0.0-8080-3) [385b5ed5] START,
SetVmTicketVDSCommand(HostName = host26, HostId =
54e1b3f0-7b17-47b1-9302-c63d69d408bf,
vmId=cc00379f-5e70-4e62-85c2-a2a9f5a59dd3, ticket=+Q4Hkz4CCAjI,
validTime=120,m userName=admin@internal,
userId=fdfc627c-d875-11e0-90f0-83df133b58cc), log id: 73e73b73
2013-05-03 14:08:32,389 INFO
[org.ovirt.engine.core.vdsbroker.vdsbroker.SetVmTicketVDSCommand]
(http--0.0.0.0-8080-3) [385b5ed5] FINISH, SetVmTicketVDSCommand, log
id: 73e73b73
2013-05-03 14:08:32,452 WARN
[org.ovirt.engine.core.bll.CommandsFactory] (http--0.0.0.0-8080-3)
Unable to find class for action: GetCACertificateQuery
Thanks
Sharad
11 years, 6 months
[Users] Fault tolerant storage
by Jakub Bittner
Hi,
would it be possible in near future to use for example 2 attached DATA
storage (iSCSi, or so) as fault tolerant storage?
I mean I have two data storage connected to data center and they include
exactly same data and my VMs runs from one and all changes are mirrored
to second like RAID 1 and if one storage fails everything switch to
second storage without user notice?
11 years, 6 months
[Users] Attach export domain
by Jakub Bittner
Hello,
I exported 3 VMs to export domain, than the ovirt engine fails and I
installed new version of ovirt engine. If I import export domain with
exported VMs I can not attach it to DC, because it says it is used by
another DC. Is there a way how to "force" attach that export domain to DC?
Thank you,
Jakub Bittner
11 years, 6 months