Re: ovirt api vm snapshot cloning error
by Avihai Efrat
Hi Peter,
Would you mind reporting a bug on this issue you saw?
To me, it looks like sync/timing issue between snapshot state('OK) and
disk state('Locked').
Can you also please check if the disk that is reported as locked is indeed
locked at the time the error is reported?
Please add this info to the bug and all relevant scripts.
As a workaround, please consider adding an additional wait for all the VM
disks to also reach 'OK' state.
Thanks,
Avihai
On Wed, Aug 22, 2018 at 10:01 AM, Raz Tamir <ratamir(a)redhat.com> wrote:
> I have a feeling this is related to the issue we reviewed yesterday and,
> that we have a bug here
>
> Could you please take care of this?
>
> ---------- Forwarded message ---------
> From: Peter Hudec <phudec(a)cnc.sk>
> Date: Wed, Aug 22, 2018, 01:33
> Subject: [ovirt-users] ovirt api vm snapshot cloning error
> To: users <users(a)ovirt.org>
>
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
>
> Hi,
>
> I'm trying to solve an issue described in
> https://github.com/openbacchus/bacchus/issues/30.
>
> Short description is
> - - create snapshot
> - - wait until the snapshot is OK
> - - clone snapshot
> - - got error: Fault reason is "Operation Failed". Fault detail is
> "[Cannot add VM: The following disks are locked: ditlcm01_Disk1.
> Please try again in a few minutes.]". HTTP response code is 409
>
> To simulate the error I have combined the exampe scripts
> - -
> https://github.com/oVirt/ovirt-engine-sdk/blob/master/sdk/examples/clone
> _vm_from_snapshot.py
> <https://github.com/oVirt/ovirt-engine-sdk/blob/master/sdk/examples/clone_...>
> - -
> https://github.com/oVirt/ovirt-engine-sdk/blob/master/sdk/examples/add_v
> m_snapshot.py
> <https://github.com/oVirt/ovirt-engine-sdk/blob/master/sdk/examples/add_vm...>
>
> The full code is here: https://tools.apps.hudecof.net/paste/view/0319f4f
> 1
>
> This code was working on 4.2.3 version. I skipped the 4.2.4, but n
> 4.2.5 is broken.
>
> Any clue what's wrong?
>
> regards
> Peter
>
> - --
> *Peter Hudec*
> Infraštruktúrny architekt
> phudec(a)cnc.sk <mailto:phudec@cnc.sk>
>
> *CNC, a.s.*
> Borská 6, 841 04 Bratislava
> <https://maps.google.com/?q=Borsk%C3%A1+6,+841+04+Bratislava&entry=gmail&s...>
> Recepcia: +421 2 35 000 100
>
> Mobil:+421 905 997 203
> *www.cnc.sk* <http:///www.cnc.sk>
>
> -----BEGIN PGP SIGNATURE-----
>
> iQIzBAEBCgAdFiEEqSUbhuEwhryifNeVQnvVWOJ35BAFAlt8kfIACgkQQnvVWOJ3
> 5BBMCQ//SkRDqG6Av15ZIbpAby3+Z7mYjxdW/chGjR5cgVNG7vmprJIz9Jo3EQLV
> mYCRj6XU9l6uFQ2WHtFbVKHlbcRl9Qw2a6nGFDRWvG7CCqStg5mmVhFo8fKNGIl8
> avjN9uaZqypIdJCB80tFnVEv4a5IWWJkAll3B8KKPAsIeYMNP+d/8D6AAunR6AKH
> kVft+mRBjlJUeYTe/QfeNW1J+JUCZd1Qd4A8h/E9B16Cc/8xfgr88uGUDqZCMgUc
> bQcW8CAfAHFq19mOjxBtmwjNtchcb5EUdCvZSYc34ujdZSU6v8GWPqnHVUnve4G0
> O0ZhOXKjUZS9FO7n7JrhkIwOwmMRqAaBiKYuVd8g+iib9z+Wlb9W3uZnll9Bik65
> UvSpl5Rp/Vy/Rx7GHpCn/TqIwnMppEF2Bp55ZGh77zM+Almy4PtGJp4py+FU8/4I
> wZ59bMgAgj4vquPWbtEP5QQtThucqpoJc+7wnHdhPFR3Ks+PTy4qkSgOnTr+lLbr
> yGvqZJEqwSH5Kga/5HyAb94ZikTC6zCLcuQur19TR+O2WnG3JFXEOSuumU59mIjs
> XelKHkvb5RhZ34w8mfGZM09MpWKyWCMjPQTLUABqzOaK6OHY5vku1RwKILSRjb3x
> tNCFCl9oqPPTQbiGq2+xT43KFtTvrmC17dshsLjUi97vKcSDe+I=
> =cVTg
> -----END PGP SIGNATURE-----
> _______________________________________________
> Users mailing list -- users(a)ovirt.org
> To unsubscribe send an email to users-leave(a)ovirt.org
> Privacy Statement: https://www.ovirt.org/site/privacy-policy/
> oVirt Code of Conduct: https://www.ovirt.org/communit
> y/about/community-guidelines/
> List Archives: https://lists.ovirt.org/archiv
> es/list/users(a)ovirt.org/message/EPMEOT523Z7JXIUVO6BJSQOD4NYUBBQZ/
>
--
6 years, 3 months
Fwd: ovirt api vm snapshot cloning error
by Avihai Efrat
Hi Peter,
Would you mind reporting a bug on this issue you saw?
To me, it looks like sync/timing issue between snapshot state('OK) and
disk state('Locked').
Can you also please check if the disk that is reported as locked is indeed
locked at the time the error is reported?
Please add this info to the bug and all relevant scripts.
As a workaround, please consider adding an additional wait for all the VM
disks to also reach 'OK' state.
Thanks,
Avihai
---------- Forwarded message ---------
From: Peter Hudec <phudec(a)cnc.sk>
Date: Wed, Aug 22, 2018, 01:33
Subject: [ovirt-users] ovirt api vm snapshot cloning error
To: users <users(a)ovirt.org>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Hi,
I'm trying to solve an issue described in
https://github.com/openbacchus/bacchus/issues/30.
Short description is
- - create snapshot
- - wait until the snapshot is OK
- - clone snapshot
- - got error: Fault reason is "Operation Failed". Fault detail is
"[Cannot add VM: The following disks are locked: ditlcm01_Disk1.
Please try again in a few minutes.]". HTTP response code is 409
To simulate the error I have combined the exampe scripts
- -
https://github.com/oVirt/ovirt-engine-sdk/blob/master/sdk/examples/clone
_vm_from_snapshot.py
- -
https://github.com/oVirt/ovirt-engine-sdk/blob/master/sdk/examples/add_v
m_snapshot.py
The full code is here: https://tools.apps.hudecof.net/paste/view/0319f4f
1
This code was working on 4.2.3 version. I skipped the 4.2.4, but n
4.2.5 is broken.
Any clue what's wrong?
regards
Peter
- --
*Peter Hudec*
Infraštruktúrny architekt
phudec(a)cnc.sk <mailto:phudec@cnc.sk>
*CNC, a.s.*
Borská 6, 841 04 Bratislava
<https://maps.google.com/?q=Borsk%C3%A1+6,+841+04+Bratislava&entry=gmail&s...>
Recepcia: +421 2 35 000 100
Mobil:+421 905 997 203
*www.cnc.sk* <http:///www.cnc.sk>
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEqSUbhuEwhryifNeVQnvVWOJ35BAFAlt8kfIACgkQQnvVWOJ3
5BBMCQ//SkRDqG6Av15ZIbpAby3+Z7mYjxdW/chGjR5cgVNG7vmprJIz9Jo3EQLV
mYCRj6XU9l6uFQ2WHtFbVKHlbcRl9Qw2a6nGFDRWvG7CCqStg5mmVhFo8fKNGIl8
avjN9uaZqypIdJCB80tFnVEv4a5IWWJkAll3B8KKPAsIeYMNP+d/8D6AAunR6AKH
kVft+mRBjlJUeYTe/QfeNW1J+JUCZd1Qd4A8h/E9B16Cc/8xfgr88uGUDqZCMgUc
bQcW8CAfAHFq19mOjxBtmwjNtchcb5EUdCvZSYc34ujdZSU6v8GWPqnHVUnve4G0
O0ZhOXKjUZS9FO7n7JrhkIwOwmMRqAaBiKYuVd8g+iib9z+Wlb9W3uZnll9Bik65
UvSpl5Rp/Vy/Rx7GHpCn/TqIwnMppEF2Bp55ZGh77zM+Almy4PtGJp4py+FU8/4I
wZ59bMgAgj4vquPWbtEP5QQtThucqpoJc+7wnHdhPFR3Ks+PTy4qkSgOnTr+lLbr
yGvqZJEqwSH5Kga/5HyAb94ZikTC6zCLcuQur19TR+O2WnG3JFXEOSuumU59mIjs
XelKHkvb5RhZ34w8mfGZM09MpWKyWCMjPQTLUABqzOaK6OHY5vku1RwKILSRjb3x
tNCFCl9oqPPTQbiGq2+xT43KFtTvrmC17dshsLjUi97vKcSDe+I=
=cVTg
-----END PGP SIGNATURE-----
_______________________________________________
Users mailing list -- users(a)ovirt.org
To unsubscribe send an email to users-leave(a)ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: https://www.ovirt.org/community/about/community-
guidelines/
List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/
message/EPMEOT523Z7JXIUVO6BJSQOD4NYUBBQZ/
6 years, 3 months
Can't start the VM ... There are no hosts to use. Check that the cluster contains at least one host in Up state.
by daniel@djj-consultants.com
Hello
I'm stuck since 3 days trying to find out why I can't start a VM. I tried to start with the GUI (ovirt-manager) and ovirt-shell
action vm 5a61762e-ff97-47b6-891b-2a05d38ebc45 start
==================================================================================
status: 400
reason: Bad Request
detail: There are no hosts to use. Check that the cluster contains at least one host in Up state.
=================================================================================
list hosts;
id : f76a3135-8a3b-4c5b-b7bd-4c539e93d944
name : ovirt01.xxx.yy
id : 1f545c5a-06a7-497c-914a-29e81b1b80d7
name : ovirt02.xxx.yy
Theses 2 hosts are running other VMs without any problem. I tried to export the VM and re-import it but the problem still present. I'm thinking of something like a lease for HA that went bad somewhere and that's maybe why the VM don't want to start but I can't find out.
I went to postgresql (engine DB) to find out some clues but nothing yet.
Is there someone that can send me some clues or better a solution for this issue
Hosted engine is Version 4.2.4.5-1.el7
Hosts are running :ovirt-host-4.2.3-1.el7.x86_64
Storage use ISCSI with a Storinator from 45Drives (Freenas 11)
Thanks
6 years, 3 months
Hosted Engine on single server
by Peter Hudec
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Hi guys,
I need to deal with following scenario.
I have 2 servers with local storage, no shared storage.
The question is how to install the oVirt with Hosted Engine.
1)
is there a way how to install the HE on local storage.
There will be no redundancy, but it's DEV system.
2)
Am I able to use host with local storage and remote at once?
If the server uses local store the oVirt will create a separate DC for
the hosts. Am I able to attach also remote storage there?
3)
could be HE still installed on bare metal? I guess yes.
regards
Peter
- --
*Peter Hudec*
Infraštruktúrny architekt
phudec(a)cnc.sk <mailto:phudec@cnc.sk>
*CNC, a.s.*
Borská 6, 841 04 Bratislava
Recepcia: +421 2 35 000 100
Mobil:+421 905 997 203
*www.cnc.sk* <http:///www.cnc.sk>
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEqSUbhuEwhryifNeVQnvVWOJ35BAFAlt8laYACgkQQnvVWOJ3
5BASPA/9GDTT9YKHQHM2nDH0HGyunFmYZOTAuwnkzvTCrRF4O/oBiGmu1ovYMDpi
R9uq+5vhPHDMJc9WGS37xL13hM1FCCmFDtETI2Q3pAliWq4R4n/tKriObMgOFCmA
Vdqg5Yz+vrkLhdtZKDxMOPnJyBD+ET2ewaISEKgmS9cUQYnBU4ADqfDmHfnpPH8P
4EoAeZEYpO/7GICuW6SzLpbv19bhXnpnRBcRrYRqzU7cYEhyPCv0c/M4In/gOoAn
ZX9h0LQoZhxK0xkFvUAqaUoO4BRwA/PjxDzz58upGtstO2JZehvpxWeVMD3aNbhb
IBn6EnmZtSV9tNyifxegTluTcZAYhrIw8vpgpNHVFzRV7Q8/o0nfGIuWeNrCRDsG
spzm9BNahk7IlEhquJu8XoGT8GgPAoeIFEzSfj55MH792lmfn05n3HaVtVv94WK/
FdBcVu4CxYMWPHWRycQc7OYc2S/aHhIzWl3C+/d4Y6yzb0u374ffLdkqO6c6u3Dm
khIf0b+xhy0g0EhzvcaQ6T/yPjsB+wTcQbCnlCARbhYMuB4zvzfIAj3fzFOTgSm2
0rhG6KZ1G2hKrzBJGW2reOh9hUzba9QrwxVcHqewxPrf8/uddldZyzgLu5S/B7gl
LVBY3wJHyph6hrRYsJdfOaEIQdoUUhJ3nh0VhjAplHLa2JJbC9A=
=pEM/
-----END PGP SIGNATURE-----
6 years, 3 months
live migration of hosted engine between two hosts
by Douglas Duckworth
Hi
I am trying to live migrate my hosted engine between two hosts.
Both hosts are now up.
The hosted engine exists on shared NFS storage mounted on both hypervisors.
Though when I tried to migrate the VM I am told that's not possible.
Could this be since I never defined migration network? If so I tried doing
that in the oVirt UI as described
https://ovirt.org/documentation/admin-guide/chap-Logical_Networks/ though
many of these options have changed.
Thanks,
Douglas Duckworth, MSc, LFCS
HPC System Administrator
Scientific Computing Unit
Weill Cornell Medicine
1300 York - LC-502
E: doug(a)med.cornell.edu
O: 212-746-6305
F: 212-746-8690
6 years, 3 months
vacuumdb: could not connect to database ovirt_engine_history
by emanuel.santosvarina@mahle.com
..trying to update from 4.2.3 to 4.2.4 engine-setup fails with the
following error:
--snip
2018-06-28 16:26:45,507+0200 DEBUG
otopi.plugins.ovirt_engine_setup.ovirt_engine_dwh.db.vacuum
plugin.execute:926 execute-output:
['/usr/share/ovirt-engine-dwh/bin/dwh-vacuum.sh', '-f', '-v'] stderr:
vacuumdb: could not connect to database ovirt_engine_history: FATAL:
password authentication failed for user "ovirt_engine_history"
2018-06-28 16:26:45,507+0200 DEBUG otopi.context
context._executeMethod:143 method exception
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/otopi/context.py", line 133, in
_executeMethod
method['method']()
File
"/usr/share/ovirt-engine/setup/bin/../plugins/ovirt-engine-setup/ovirt-engine-dwh/db/vacuum.py",
line 126, in _vacuum
self.execute(args=args)
File "/usr/lib/python2.7/site-packages/otopi/plugin.py", line 931, in
execute
command=args[0],
RuntimeError: Command '/usr/share/ovirt-engine-dwh/bin/dwh-vacuum.sh'
failed to execute
2018-06-28 16:26:45,508+0200 ERROR otopi.context
context._executeMethod:152 Failed to execute stage 'Misc configuration':
Command '/usr/share/ovirt-engine-dwh/bin/dwh-vacuum.sh' failed to execute
2018-06-28 16:26:45,508+0200 DEBUG otopi.transaction transaction.abort:119
aborting 'Yum Transaction'
--snap
Any ideas?
Thank You,
Ema
6 years, 3 months
ovirt virtulization manager login error failed: Connection refused (Connection refused)
by Ariez Ahito
i am now encountering problem logging in..
tried this workaround but still fails to log in
Create a new conf file /etc/ovirt-engine/engine.conf.d/99-sso.conf and add:
SSO_CALLBACK_PREFIX_CHECK=false
then
systemctl restart ovirt-engine
2018-08-17 02:52:30,534-04 INFO [org.ovirt.engine.extension.aaa.jdbc.core.Tasks] (default task-4) [] (house keeping) deleting failed logins prior to 2018-08-10 06:52:30Z.
2018-08-17 02:52:30,663-04 INFO [org.ovirt.engine.extension.aaa.jdbc.core.Tasks] (default task-4) [] (house keeping) deleting failed logins prior to 2018-08-10 06:52:30Z.
2018-08-17 02:52:30,776-04 INFO [org.ovirt.engine.core.sso.utils.AuthenticationUtils] (default task-4) [] User admin@internal successfully logged in with scopes: ovirt-app-admin ovirt-app-api ovirt-app-portal ovirt-ext=auth:sequence-priority=~ ovirt-ext=revoke:revoke-all ovirt-ext=token-info:authz-search ovirt-ext=token-info:public-authz-search ovirt-ext=token-info:validate ovirt-ext=token:password-access
2018-08-17 02:52:30,849-04 ERROR [org.ovirt.engine.core.aaa.servlet.SsoPostLoginServlet] (default task-4) [] server_error: Connect to ovirt-engine.govcloud.ph:443 [ovirt-engine.govcloud.ph/203.119.4.201] failed: Connection refused (Connection refused)
6 years, 3 months
ovirt api vm snapshot cloning error
by Peter Hudec
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Hi,
I'm trying to solve an issue described in
https://github.com/openbacchus/bacchus/issues/30.
Short description is
- - create snapshot
- - wait until the snapshot is OK
- - clone snapshot
- - got error: Fault reason is "Operation Failed". Fault detail is
"[Cannot add VM: The following disks are locked: ditlcm01_Disk1.
Please try again in a few minutes.]". HTTP response code is 409
To simulate the error I have combined the exampe scripts
- -
https://github.com/oVirt/ovirt-engine-sdk/blob/master/sdk/examples/clone
_vm_from_snapshot.py
- -
https://github.com/oVirt/ovirt-engine-sdk/blob/master/sdk/examples/add_v
m_snapshot.py
The full code is here: https://tools.apps.hudecof.net/paste/view/0319f4f
1
This code was working on 4.2.3 version. I skipped the 4.2.4, but n
4.2.5 is broken.
Any clue what's wrong?
regards
Peter
- --
*Peter Hudec*
Infraštruktúrny architekt
phudec(a)cnc.sk <mailto:phudec@cnc.sk>
*CNC, a.s.*
Borská 6, 841 04 Bratislava
Recepcia: +421 2 35 000 100
Mobil:+421 905 997 203
*www.cnc.sk* <http:///www.cnc.sk>
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEqSUbhuEwhryifNeVQnvVWOJ35BAFAlt8kfIACgkQQnvVWOJ3
5BBMCQ//SkRDqG6Av15ZIbpAby3+Z7mYjxdW/chGjR5cgVNG7vmprJIz9Jo3EQLV
mYCRj6XU9l6uFQ2WHtFbVKHlbcRl9Qw2a6nGFDRWvG7CCqStg5mmVhFo8fKNGIl8
avjN9uaZqypIdJCB80tFnVEv4a5IWWJkAll3B8KKPAsIeYMNP+d/8D6AAunR6AKH
kVft+mRBjlJUeYTe/QfeNW1J+JUCZd1Qd4A8h/E9B16Cc/8xfgr88uGUDqZCMgUc
bQcW8CAfAHFq19mOjxBtmwjNtchcb5EUdCvZSYc34ujdZSU6v8GWPqnHVUnve4G0
O0ZhOXKjUZS9FO7n7JrhkIwOwmMRqAaBiKYuVd8g+iib9z+Wlb9W3uZnll9Bik65
UvSpl5Rp/Vy/Rx7GHpCn/TqIwnMppEF2Bp55ZGh77zM+Almy4PtGJp4py+FU8/4I
wZ59bMgAgj4vquPWbtEP5QQtThucqpoJc+7wnHdhPFR3Ks+PTy4qkSgOnTr+lLbr
yGvqZJEqwSH5Kga/5HyAb94ZikTC6zCLcuQur19TR+O2WnG3JFXEOSuumU59mIjs
XelKHkvb5RhZ34w8mfGZM09MpWKyWCMjPQTLUABqzOaK6OHY5vku1RwKILSRjb3x
tNCFCl9oqPPTQbiGq2+xT43KFtTvrmC17dshsLjUi97vKcSDe+I=
=cVTg
-----END PGP SIGNATURE-----
6 years, 3 months
ovirt 4.2.5.2-1.el7 cannot locate ovirt-host package when trying to add new host
by Douglas Duckworth
Hi
Do we need to add the ovirt repo on new potential host? If I don't do that
manually then adding host, via oVirt UI, fails.
The error:
2018-08-21 17:08:49,957-0400 DEBUG otopi.context context._executeMethod:143
method exception
Traceback (most recent call last):
File "/tmp/ovirt-w7xzFVIWO7/pythonlib/otopi/context.py", line 133, in
_executeMethod
method['method']()
File
"/tmp/ovirt-w7xzFVIWO7/otopi-plugins/ovirt-host-deploy/host/packages.py",
line 69, in _validation
'Cannot locate ovirt-host package, '
RuntimeError: Cannot locate ovirt-host package, possible cause is incorrect
channels
2018-08-21 17:08:49,958-0400 ERROR otopi.context context._executeMethod:152
Failed to execute stage 'Setup validation': Cannot locate ovirt-host
package, possible cause is incorrect channels
2018-08-21 17:08:49,958-0400 DEBUG otopi.plugins.otopi.dialog.machine
dialog.__logString:204 DIALOG:SEND **%EventEnd STAGE validation
METHOD otopi.plugins.ovirt_host_deploy.host.packages.Plugin._validation
(None)
2018-08-21 17:08:49,958-0400 DEBUG otopi.context
context.dumpEnvironment:859 ENVIRONMENT DUMP - BEGIN
2018-08-21 17:08:49,958-0400 DEBUG otopi.context
context.dumpEnvironment:869 ENV BASE/error=bool:'True'
2018-08-21 17:08:49,958-0400 DEBUG otopi.context
context.dumpEnvironment:869 ENV BASE/exceptionInfo=list:'[(<type
'exceptions.RuntimeError'>, RuntimeError('Cannot locate ovirt-host package,
possible cause is incorrect channels',), <traceback object at
0x7f7b46d58cb0>)]
Though if I add https://resources.ovirt.org/pub/yum-repo/ovirt-release42.rpm
on the new host manually then adding the new host succeeds.
Thanks,
Douglas Duckworth, MSc, LFCS
HPC System Administrator
Scientific Computing Unit
Weill Cornell Medicine
1300 York - LC-502
E: doug(a)med.cornell.edu
O: 212-746-6305
F: 212-746-8690
6 years, 3 months
vdsm hook
by 董青龙
Hi all,
I want to write a hook in which name or id of the vm can be acquired and the hook should be executed before the vm shutdown. I could acquire name or id of the vm in a before_vm_start hook using "hooking.read_domxml()". However, it did not work in a before_vm_destroy hook. So what should I do? Can Anyone give me some advice? Thanks a lot!
6 years, 3 months