[ovirt-users] restore snapshot cannot restore memory
hello I found if we retore snapshot, memory cannot be restored, I test it with ovirt-4.1.2、vdsm-4.17.0 and libvirt-3.0.0, and i get some errors in [1],it seems vm not paused in creating snapshot, but self._underlyingCont() called in vm starting, so error occurs, then vm is started in libvirt but shutdowned in vdsm, changes in [2], then it works well. [1] 2018-02-12 19:39:23,830+0800 ERROR (vm/d7be0fde) [virt.vm] (vmId='d7be0fde-f9b9-4447-a250-2453482faef9') The vm start process failed (vm:662) Traceback (most recent call last): File "/usr/share/vdsm/virt/vm.py", line 607, in _startUnderlyingVm self._completeIncomingMigration() File "/usr/share/vdsm/virt/vm.py", line 3268, in _completeIncomingMigration self.cont() File "/usr/share/vdsm/virt/vm.py", line 1128, in cont self._underlyingCont() File "/usr/share/vdsm/virt/vm.py", line 3368, in _underlyingCont self._dom.resume() File "/usr/lib/python2.7/dist-packages/vdsm/virt/virdomain.py", line 69, in f ret = attr(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/vdsm/libvirtconnection.py", line 123, in wrapper ret = f(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/vdsm/utils.py", line 926, in wrapper return func(inst, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/libvirt.py", line 1905, in resume if ret == -1: raise libvirtError ('virDomainResume() failed', dom=self) libvirtError: Requested operation is not valid: domain is already running [2] --- a/Linx_Node/node_iso/install_script/py/vdsm/vdsm/virt/vm.py +++ b/Linx_Node/node_iso/install_script/py/vdsm/vdsm/virt/vm.py @@ -3677,6 +3677,8 @@ class Vm(object): else: snapFlags |= libvirt.VIR_DOMAIN_SNAPSHOT_CREATE_DISK_ONLY +self._underlyingPause() + # When creating memory snapshot libvirt will pause the vm should_freeze = not (memoryParams or frozen) @@ -3734,6 +3736,8 @@ class Vm(object): if memoryParams: self.cif.teardownVolumePath(memoryVol) +self._underlyingCont() + # Returning quiesce to notify the manager whether the guest agent # froze and flushed the filesystems or not. quiesce = should_freeze and freezed["status"]["code"] == 0___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
[ovirt-users] what does the metadata param "LEGALITY", "VOLTYPE" and "GEN" means?
hello, everyone! There's a list storage metadata format in [1], what does the "FAKE" , "INTERNAL|SHARED|LEAF", "GEN" means in ovirt? How did these used? [1] # Here is the worst case metadata format: # # CTIME=1440935038# int(time.time()) # DESCRIPTION=# text|JSON # DISKTYPE=2 # enum # DOMAIN=75f8a1bb-4504-4314-91ca-d9365a30692b # uuid # FORMAT=COW # RAW|COW # IMAGE=75f8a1bb-4504-4314-91ca-d9365a30692b # uuid # LEGALITY=ILLEGAL# ILLEGAL|LEGAL|FAKE # MTIME=0 # always 0 # POOL_UUID= # always empty # PUUID=75f8a1bb-4504-4314-91ca-d9365a30692b # uuid # SIZE=2147483648 # size in blocks # TYPE=PREALLOCATED # PREALLOCATED|UNKNOWN|SPARSE # VOLTYPE=INTERNAL# INTERNAL|SHARED|LEAF # GEN=999 # int # EOF___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
[ovirt-users] what does memory balloon optimize means in cluster?
hello, every! I want know what does memory balloon optimize means? and what should i do to test it's effective? ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
[ovirt-users] ovirt nfs mount caused sanlock failed to access data storage
hello,everyone sanlock's log: 425120 Traceback (most recent call last): 425121 File "/usr/lib/python2.7/dist-packages/vdsm/storage/task.py", line 878, in _run 425122 return fn(*args, **kargs) 425123 File "/usr/lib/python2.7/dist-packages/vdsm/logUtils.py", line 52, in wrapper 425124 res = f(*args, **kwargs) 425125 File "/usr/share/vdsm/storage/hsm.py", line 619, in getSpmStatus 425126 status = self._getSpmStatusInfo(pool) 425127 File "/usr/share/vdsm/storage/hsm.py", line 613, in _getSpmStatusInfo 425128 (pool.spmRole,) + pool.getSpmStatus())) 425129 File "/usr/share/vdsm/storage/sp.py", line 141, in getSpmStatus 425130 return self._backend.getSpmStatus() 425131 File "/usr/share/vdsm/storage/spbackends.py", line 433, in getSpmStatus 425132 lVer, spmId = self.masterDomain.inquireClusterLock() 425133 File "/usr/share/vdsm/storage/sd.py", line 817, in inquireClusterLock 425134 return self._manifest.inquireDomainLock() 425135 File "/usr/share/vdsm/storage/sd.py", line 522, in inquireDomainLock 425136 return self._domainLock.inquire(self.getDomainLease()) 425137 File "/usr/lib/python2.7/dist-packages/vdsm/storage/clusterlock.py", line 372, in i nquire 425138 resource = sanlock.read_resource(lease.path, lease.offset) 425139 SanlockException: (13, 'Sanlock resource read failure', 'Permission denied') i test it, and in node,I add user "linx" to group "kvm" $ cat /etc/group | grep "kvm" kvm:x:112:qemu,vdsm,linx,sanlock then i create a file in $HOME: $ ls -l 总用量 16 -rw-rw 1 vdsm kvm 6 9月 11 20:06 1.txt drwxr-xr-x 9 linx linx 4096 9月 1 15:58 linx-virtualization drw-rw 3 linx linx 4096 9月 11 20:13 test2 drw-rw 2 linx linx 4096 9月 11 20:19 test3 then we can view the file in user "linx": $ cat 1.txt pencc leases if vdsm:kvm too: $ ls -l /rhev/data-center/mnt/192.168.11.55\:_home_dataStorage/1845be22-1ac4-4e42-bbcb-7ba9ccd6e569/dom_md/leases -rw-rw 1 vdsm kvm 2097152 9月 11 19:21 /rhev/data-center/mnt/192.168.11.55:_home_dataStorage/1845be22-1ac4-4e42-bbcb-7ba9ccd6e569/dom_md/leases but we cannot read the file in user "linx": $ cat /rhev/data-center/mnt/192.168.11.55\:_home_dataStorage/1845be22-1ac4-4e42-bbcb-7ba9ccd6e569/dom_md/leases cat: '/rhev/data-center/mnt/192.168.11.55:_home_dataStorage/1845be22-1ac4-4e42-bbcb-7ba9ccd6e569/dom_md/leases': 权限不够 why is this? follows the nfs server configure # cat /etc/exports /home/dataStorage 192.168.11.*(rw,sync) /home/dataStorage2 192.168.11.*(rw,sync,no_root_squash,no_subtree_check) /home/isoStorage 192.168.11.*(rw,sync,no_root_squash,no_subtree_check) Is my nfs-server configurations miss some arguments? have any idea? ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
[ovirt-users] ovirt's stress test
hello, everyone does you have used some stress test software to evaluating ovirt? like vmware's viewplanner or RAWC. Have a nice day pencc ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users