moving disk from one storage domain to another
by Bill James
We are trying to convert our qa environment from local nfs to gluster.
When I move a disk with a VM that is running on same server as the
storage it fails.
When I move a disk with VM running on a different system it works.
VM running on same system as disk:
2017-04-06 13:31:00,588 ERROR (jsonrpc/6) [virt.vm]
(vmId='e598485a-dc74-43f7-8447-e00ac44dae21') Unable to start
replication for vda to {u'domainID':
u'6affd8c3-2c51-4cd1-8300-bfbbb14edbe9', 'volumeInfo': {'domainID':
u'6affd8c3-2c
51-4cd1-8300-bfbbb14edbe9', 'volType': 'path', 'leaseOffset': 0, 'path':
u'/rhev/data-center/mnt/glusterSD/ovirt1-ks.test.j2noc.com:_gv2/6affd8c3-2c51-4cd1-8300-bfbbb14edbe9/images/7ae9b3f7-3507-4469-a080-d0944d0ab753/30fd46c9-c738-4b13-aeca-3dc9ffc677f5',
'volumeID': u'30fd46c9-c738-4b13-aeca-3dc9ffc677f5', 'leasePath':
u'/rhev/data-center/mnt/glusterSD/ovirt1-ks.test.j2noc.com:_gv2/6affd8c3-2c51-4cd1-8300-bfbbb14edbe9/images/7ae9b3f7-3507-4469-a080-d0944d0ab753/30fd46c9-c738-4b13-aeca-3dc9ffc677f5.lease',
'imageID': u'7ae9b3f7-3507-4469-a080-d0944d0ab753'}, 'diskType': 'file',
'format': 'cow', 'cache': 'none', u'volumeID':
u'30fd46c9-c738-4b13-aeca-3dc9ffc677f5', u'imageID':
u'7ae9b3f7-3507-4469-a080-d0944d0ab753', u'poolID':
u'8b6303b3-79c6-4633-ae21-71b15ed00675', u'device': 'disk', 'path':
u'/rhev/data-center/8b6303b3-79c6-4633-ae21-71b15ed00675/6affd8c3-2c51-4cd1-8300-bfbbb14edbe9/images/7ae9b3f7-3507-4469-a080-d0944d0ab753/30fd46c9-c738-4b13-aeca-3dc9ffc677f5',
'propagateErrors': u'off', 'volumeChain': [{'domainID':
u'6affd8c3-2c51-4cd1-8300-bfbbb14edbe9', 'volType': 'path',
'leaseOffset': 0, 'path':
u'/rhev/data-center/mnt/glusterSD/ovirt1-ks.test.j2noc.com:_gv2/6affd8c3-2c51-4cd1-8300-bfbbb14edbe9/images/7ae9b3f7-3507-4469-a080-d0944d0ab753/6756eb05-6803-42a7-a3a2-10233bf2ca8d',
'volumeID': u'6756eb05-6803-42a7-a3a2-10233bf2ca8d', 'leasePath':
u'/rhev/data-center/mnt/glusterSD/ovirt1-ks.test.j2noc.com:_gv2/6affd8c3-2c51-4cd1-8300-bfbbb14edbe9/images/7ae9b3f7-3507-4469-a080-d0944d0ab753/6756eb05-6803-42a7-a3a2-10233bf2ca8d.lease',
'imageID': u'7ae9b3f7-3507-4469-a080-d0944d0ab753'}, {'domainID':
u'6affd8c3-2c51-4cd1-8300-bfbbb14edbe9', 'volType': 'path',
'leaseOffset': 0, 'path':
u'/rhev/data-center/mnt/glusterSD/ovirt1-ks.test.j2noc.com:_gv2/6affd8c3-2c51-4cd1-8300-bfbbb14edbe9/images/7ae9b3f7-3507-4469-a080-d0944d0ab753/30fd46c9-c738-4b13-aeca-3dc9ffc677f5',
'volumeID': u'30fd46c9-c738-4b13-aeca-3dc9ffc677f5', 'leasePath':
u'/rhev/data-center/mnt/glusterSD/ovirt1-ks.test.j2noc.com:_gv2/6affd8c3-2c51-4cd1-8300-bfbbb14edbe9/images/7ae9b3f7-3507-4469-a080-d0944d0ab753/30fd46c9-c738-4b13-aeca-3dc9ffc677f5.lease',
'imageID': u'7ae9b3f7-3507-4469-a080-d0944d0ab753'}]} (vm:3594)
Traceback (most recent call last):
File "/usr/share/vdsm/virt/vm.py", line 3588, in diskReplicateStart
self._startDriveReplication(drive)
File "/usr/share/vdsm/virt/vm.py", line 3713, in _startDriveReplication
self._dom.blockCopy(drive.name, destxml, flags=flags)
File "/usr/lib/python2.7/site-packages/vdsm/virt/virdomain.py", line
69, in f
ret = attr(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/vdsm/libvirtconnection.py",
line 123, in wrapper
ret = f(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/vdsm/utils.py", line 941, in
wrapper
return func(inst, *args, **kwargs)
File "/usr/lib64/python2.7/site-packages/libvirt.py", line 684, in
blockCopy
if ret == -1: raise libvirtError ('virDomainBlockCopy() failed',
dom=self)
libvirtError: internal error: unable to execute QEMU command
'drive-mirror': Could not open
'/rhev/data-center/8b6303b3-79c6-4633-ae21-71b15ed00675/6affd8c3-2c51-4cd1-8300-bfbbb14edbe9/images/7ae9b3f7-3507-4469-a080-d0944d0ab753/30fd46c9-c738-4b13-aeca-3dc9ffc677f5':
Permission denied
[root@ovirt1 test vdsm]# ls -l
/rhev/data-center/8b6303b3-79c6-4633-ae21-71b15ed00675/6affd8c3-2c51-4cd1-8300-bfbbb14edbe9/images/7ae9b3f7-3507-4469-a080-d0944d0ab753/30fd46c9-c738-4b13-aeca-3dc9ffc677f5
-rw-rw---- 2 vdsm kvm 197120 Apr 6 13:29
/rhev/data-center/8b6303b3-79c6-4633-ae21-71b15ed00675/6affd8c3-2c51-4cd1-8300-bfbbb14edbe9/images/7ae9b3f7-3507-4469-a080-d0944d0ab753/30fd46c9-c738-4b13-aeca-3dc9ffc677f5
Then if I try and rerun it it says, even though move failed:
2017-04-06 13:49:27,197 INFO (jsonrpc/1) [dispatcher] Run and protect:
getAllTasksStatuses, Return response: {'allT
asksStatus': {'078d962c-e682-40f9-a177-2a8b479a7d8b': {'code': 212,
'message': 'Volume already exists', 'taskState':
'finished', 'taskResult': 'cleanSuccess', 'taskID':
'078d962c-e682-40f9-a177-2a8b479a7d8b'}}} (logUtils:52)
So now I have to clean up the disks that it failed to move so I can
migrate the VM and then move the disk again.
Or so it seems.
Failed move disks do exist in new location, even though it "failed".
vdsm.log attached.
ovirt-engine-tools-4.1.0.4-1.el7.centos.noarch
vdsm-4.19.4-1.el7.centos.x86_64
7 years, 7 months
Re: [ovirt-users] Hosts Network Management
by Charles Tassell
Hey Kai,
Go into the Hosts tab, click on the host you want to add the bonded
interface to then on the Network Interfaces tab in the bottom pane.
Click on Setup Host Networks and drag an unused network adaptor over the
one that you want to bond it with. A box will come up and let you
configure bonding parameters like which mode to use.
On 2017-04-09 04:17 AM, users-request(a)ovirt.org wrote:
> Date: Sat, 8 Apr 2017 23:46:27 +0200
> From: Kai Wagner <kwagner(a)suse.com>
> To: Ondrej Svoboda <osvoboda(a)redhat.com>, users(a)ovirt.org
> Subject: Re: [ovirt-users] Hosts Network Management
> Message-ID: <b38cc8d1-d7f3-0172-fc97-6cbf31e6a8f3(a)suse.com>
> Content-Type: text/plain; charset="utf-8"
>
> I need to create a bonded device with lacp. How can I do this through
> the UI?
>
> Sorry, maybe it's quite easy, but I don't know how to configure it.
>
>
> On 04/07/2017 07:10 PM, Ondrej Svoboda wrote:
>> Hello Kai,
>>
>> I'd like to know ? what is your initial problem that you cannot solve
>> through the GUI?
>>
>> VDSM does use a custom comment in ifcfg files, but only to recognize
>> them ? if they are unknown, it acquires the relevant network devices
>> from NetworkManager. But VDSM is in charge of networking
>> configuration, exclusively.
>>
>> If you need to add extra configuration parameters in ifcfg files, or
>> modify them, you could write or use a VDSM hook to alter the ifcfg
>> files as they are written.
>>
>> But perhaps it is better for us to know what problems you are having
>> and whether they can be solved by available methods.
>>
>> Thank you,
>> Ondra
>>
>> On Thu, Apr 6, 2017 at 12:14 PM, Kai Wagner <kwagner(a)suse.com
>> <mailto:kwagner@suse.com>> wrote:
>>
>> Hi all,
>>
>> is it possible to set a comment at the beginning of a file for network
>> files -> something like don't touch this anymore please?
>>
>> I want to configure my network stuff on the cli and not via the UI
>> because I failed now a few times.
>>
>> Thx
>>
>> Kai
>>
>>
>> --
>> SUSE Linux GmbH, GF: Felix Imend?rffer, Jane Smithard, Graham
>> Norton, HRB 21284 (AG N?rnberg)
>>
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users(a)ovirt.org <mailto:Users@ovirt.org>
>> http://lists.ovirt.org/mailman/listinfo/users
>> <http://lists.ovirt.org/mailman/listinfo/users>
>>
>>
7 years, 7 months
Hosts Network Management
by Kai Wagner
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--WIvTsgqFc0Vw6IGKvn67rP3OvSNrUQp2q
Content-Type: multipart/mixed; boundary="crsmAHLwUdrTsU3RpOWU8fVd1rFuR7MjK";
protected-headers="v1"
From: Kai Wagner <kwagner(a)suse.com>
To: users(a)ovirt.org
Message-ID: <e30a5560-e5e2-bb38-89d7-a55bc5630d0b(a)suse.com>
Subject: Hosts Network Management
--crsmAHLwUdrTsU3RpOWU8fVd1rFuR7MjK
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Hi all,
is it possible to set a comment at the beginning of a file for network
files -> something like don't touch this anymore please?
I want to configure my network stuff on the cli and not via the UI
because I failed now a few times.
Thx
Kai
--=20
SUSE Linux GmbH, GF: Felix Imend=C3=B6rffer, Jane Smithard, Graham Norton=
, HRB 21284 (AG N=C3=BCrnberg)
--crsmAHLwUdrTsU3RpOWU8fVd1rFuR7MjK--
--WIvTsgqFc0Vw6IGKvn67rP3OvSNrUQp2q
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQEcBAEBAgAGBQJY5hULAAoJEB6MkVYW48RuVrMH/3oAENmN3vKuQRdOHH/6wHKp
RWUFeN4hlIdm15iO5PXaLyCHlc7EjnvA2j7z31Pt6jVsMCaZm9TRffMXSxKQ1kfF
4nUaFNJ09p2h4m2L4s8EgRoTd3jziKVGrljEicw9tKD2HJSgfI99+6IzBNLR/jmB
GbKQbwmR9oXW3kT1vAQ6eJ34XsmYO4MDWSTb6vsyRCJs9T/MIwEXP/ShioRwQaNR
aoCKZm9jrUuUIAvdteJ7nOKhDr1udQzjRzKudMaaP5pRRLtPvw3rMTLs2qWHwNnP
lAKWDiZrq2qn9K26OwAr83lLj+Pc4bOZVImYbC9HU0OY20Y6xs2ZH+WShxT3z6s=
=atZW
-----END PGP SIGNATURE-----
--WIvTsgqFc0Vw6IGKvn67rP3OvSNrUQp2q--
7 years, 7 months
JavaAPI exporting VM
by David David
Hello.
Can't reexport a VM if this VM is already present in the export domain
With Java api:
*VM vm = api.getVMs().get("vm01");StorageDomain exportDomain =
api.getStorageDomains().get("export"); *
*Action act = vm.exportVm(new Action() { {
setExclusive(True); setDiscardSnapshots(True);
setStorageDomain(exportDomain); }});*
And following error is returned:
Exception in thread "main"
code : 409
reason: Conflict
detail: Cannot export VM. VM with the same identifier already exists.
at org.ovirt.engine.sdk.web.HttpProxy.execute(HttpProxy.java:120)
at
org.ovirt.engine.sdk.web.HttpProxyBroker.add(HttpProxyBroker.java:209)
at
org.ovirt.engine.sdk.web.HttpProxyBroker.action(HttpProxyBroker.java:153)
at org.ovirt.engine.sdk.decorators.VM.exportVm(VM.java:784)
7 years, 7 months
for some reason ovirtnode creates unecessary vg and lvs
by martin chamambo
I managed to configure the mail iscsi domain for my ovirt 4.1 engine and
node , it connects to the storage initially and initialises the data center
,but after rebooting the node and engine , it creates unecessary vg and lvs
like below
280246d3-ac7b-44ff-8c03-dc2bcb9edb70 d5104206-5863-4f9d-9ea7-2b140c97d65f
-wi-a----- 128.00m
2d57ab88-16e4-4007-9047-55fc4a35b534 d5104206-5863-4f9d-9ea7-2b140c97d65f
-wi-a----- 128.00m
ids d5104206-5863-4f9d-9ea7-2b140c97d65f
-wi-a----- 128.00m
inbox d5104206-5863-4f9d-9ea7-2b140c97d65f
-wi-a----- 128.00m
leases d5104206-5863-4f9d-9ea7-2b140c97d65f
-wi-a----- 2.00g
master d5104206-5863-4f9d-9ea7-2b140c97d65f
-wi-a----- 1.00g
metadata d5104206-5863-4f9d-9ea7-2b140c97d65f
-wi-a----- 512.00m
outbox d5104206-5863-4f9d-9ea7-2b140c97d65f
-wi-a----- 128.00m
xleases d5104206-5863-4f9d-9ea7-2b140c97d65f
-wi-a----- 1.00g
whats the cause of this
NB:mY ISCSI storage is on a centos 7 box
7 years, 7 months
Host in connecting state and all data domains are red in ovirt 4.1
by gflwqs gflwqs
Hi list this morning i saw one of my 2 hosts were in connecting state.
When i checked the /var/log/messages on the host i saw this happened:
Apr 7 06:05:38 ovirt12 journal: ovirt-ha-broker
ovirt_hosted_engine_ha.broker.submonitor_base.SubmonitorBase ERROR Error
executing submonitor mgmt-bridge, args {'use_ssl': 'true', 'bridge_name':
'ovirtmgmt', 'address': '0'}#012Traceback (most recent call last):#012
File
"/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/broker/submonitor_base.py",
line 115, in _worker#012 self.action(self._options)#012 File
"/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/broker/submonitors/mgmt_bridge.py",
line 44, in action#012 caps = cli.getVdsCapabilities()#012 File
"/usr/lib/python2.7/site-packages/vdsm/jsonrpcvdscli.py", line 167, in
_callMethod#012 raise
JsonRpcNoResponseError(method)#012JsonRpcNoResponseError: [-32605] No
response for JSON-RPC Host.getCapabilities request.
Apr 7 06:05:40 ovirt12 journal: vdsm vds.dispatcher ERROR SSL error
receiving from <yajsonrpc.betterAsyncore.Dispatcher connected ('::1',
53454, 0, 0) at 0x7fcc685ce560>: unexpected eof
Is this the cause of the problem?
What has happened?
How do i get out of this problem?
Regards
Christian
7 years, 7 months
Upgrading libguestfs to import debian VM
by Simon Vincent
I find that running oVirt 4.1.1 I can not import any debian based VMs as
virt-v2v/libguestfs is too old.
This bug report https://bugzilla.redhat.com/show_bug.cgi?id=1362497
indicates that newer versions of libguestfs support importing debian and
Ubuntu VMs.
Are there any plans to include a newer version of libguestfs in oVirt soon?
If I built a newer version of libguestfs on my ovirt-node would it break
everything?
Regards
Simon
7 years, 7 months
mount glusterfs from 127.0.0.1
by /dev/null
Hello all together,
having a three node oVirt cluster for virtualization and gluster, each node providing
bricks for a replica 3 volume, I would like to mount the volume from 127.0.0.1 to
distribute i/o and to have a better failover situation.
This leads to a volume having the same address in oVirt althoght it is addressed on
different hosts.
Is this common, supported, relyable and recommended?
Thanks in advance!
/dev/null
--
Diese Nachricht wurde auf Viren und andere gefährliche Inhalte untersucht
und ist - aktuelle Virenscanner vorausgesetzt - sauber.
For all your IT requirements visit: http://www.transtec.co.uk
7 years, 7 months
After 3.5->3.6 upgrade, OVF update error every hour
by Chris Adams
After upgrading an oVirt cluster from 3.5 to 3.6, I am getting the
following error every hour:
Failed to update OVF disks ce8647c6-f936-4633-8a7b-e7dcb45d8ebb, OVF
data isn't updated on those OVF stores (Data Center Middle-Earth,
Storage Domain equallogic).
Looking in the vdsm log on the SPM node, it looks like the problem is
that an attempt was made to lvextend an LV to 2m, but the LV is already
128m, so the extend failed (not needed). I've attached the log entries
for that task.
Any suggestions, ideas how to fix, etc.?
--
Chris Adams <cma(a)cmadams.net>
7 years, 7 months