[ovirt-users] Re: How can I download multiple disks using wget or curl?

2022-10-31 Thread Albert Esteve
Hi wodel,

With ovirt 4.5.2 you can use the new ovirt-img command:


$ ovirt-img download-disk \
--engine-url https://engine.com \
--username admin@internal \
--cafile /path/to/cert.pem \
{disk-id} download.qcow2

This downloads the disk with ID "disk-id" into download.qcow2 in the
current local directory.

There are options to control the destination image format (e.g. --format
raw).
See `ovirt-img download-disk --help`.

You can also add configuration for your setup (you can have many):
$ cat ~/.config/ovirt-img.conf
[engine1]
engine_url = https://engine.com
username = admin@internal
password = password
cafile = /path/to/cert.pem

And then just select the section name in the configuration that you want to
use:
$ ovirt-img download-disk --config engine1 {disk-id} image.qcow2
[ 100% ] 6.00 GiB, 16.85 s, 364.64 MiB/s | download completed

The command is already installed with all the dependencies on hosts and
engine, and available
via the ovirt-imageio-client package on any host (if you have the right
repos).

ovirt-img should be much faster than curl since it understands image
sparseness so it does not
transfer gigabytes of zeroes over the wire.

BR,

Albert Esteve

Senior Software Engineer

Red Hat 

aest...@redhat.com



On Mon, Oct 31, 2022 at 4:16 PM Jayme  wrote:

> You would likely need to use the REST API or ansible to achieve this.
>
> On Mon, Oct 31, 2022 at 10:32 AM wodel youchi 
> wrote:
>
>> Hi,
>>
>> VM disks can be downloaded from the Manager UI. How can I achieve the same 
>> result using curl or wget or something else?
>> I have several disks that I wish to download via script. Could you help with 
>> that?
>>
>> Regards.
>>
>> ___
>> Users mailing list -- users@ovirt.org
>> To unsubscribe send an email to users-le...@ovirt.org
>> Privacy Statement: https://www.ovirt.org/privacy-policy.html
>> oVirt Code of Conduct:
>> https://www.ovirt.org/community/about/community-guidelines/
>> List Archives:
>> https://lists.ovirt.org/archives/list/users@ovirt.org/message/F6RMF3EJMSVHVTBN2CMEAJ6GXSM3L635/
>>
> ___
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-le...@ovirt.org
> Privacy Statement: https://www.ovirt.org/privacy-policy.html
> oVirt Code of Conduct:
> https://www.ovirt.org/community/about/community-guidelines/
> List Archives:
> https://lists.ovirt.org/archives/list/users@ovirt.org/message/E56BTC33Y3SF3KXHHI25LPTLIBPX7JCA/
>
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/EUSHCZXXZD4HHBQ64OEVXN5FE7SJT7R6/


[ovirt-users] Re: How can I download multiple disks using wget or curl?

2022-10-31 Thread Jayme
You would likely need to use the REST API or ansible to achieve this.

On Mon, Oct 31, 2022 at 10:32 AM wodel youchi 
wrote:

> Hi,
>
> VM disks can be downloaded from the Manager UI. How can I achieve the same 
> result using curl or wget or something else?
> I have several disks that I wish to download via script. Could you help with 
> that?
>
> Regards.
>
> ___
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-le...@ovirt.org
> Privacy Statement: https://www.ovirt.org/privacy-policy.html
> oVirt Code of Conduct:
> https://www.ovirt.org/community/about/community-guidelines/
> List Archives:
> https://lists.ovirt.org/archives/list/users@ovirt.org/message/F6RMF3EJMSVHVTBN2CMEAJ6GXSM3L635/
>
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/E56BTC33Y3SF3KXHHI25LPTLIBPX7JCA/


[ovirt-users] How can I download multiple disks using wget or curl?

2022-10-31 Thread wodel youchi
Hi,

VM disks can be downloaded from the Manager UI. How can I achieve the
same result using curl or wget or something else?
I have several disks that I wish to download via script. Could you
help with that?

Regards.
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/F6RMF3EJMSVHVTBN2CMEAJ6GXSM3L635/


[ovirt-users] Re: mom-vdsm service is failing after update to 4.5.3.2-1.el8

2022-10-31 Thread Jirka Simon

Ahoj Martine,

Thank you, maybe I was to fast (last upgrade I made on Friday 28.9)

today I upgraded the rest of cluster and it looks ok, then I updated 
first nodes again and issue is fixed.


Thank you again.

Jirka

On 10/31/22 10:41, Martin Perina wrote:

Hi,

below error should be fixed in mom-0.6.4, which was included in last 
week's oVirt 4.5.3 async release:


https://lists.ovirt.org/archives/list/users@ovirt.org/message/TCGC54KIG7XIYNBO44WKKLCNZJQITWMO/

Regards,
Martin


On Fri, Oct 28, 2022 at 2:07 PM Jirka Simon  wrote:

Hello there,

we just updated oVirt engine to 4.5.3.2-1.el8 which was smooth,
but then when we start to update all nodes, after restart mom-vdsm
service is failing to start

mom-vdsm

rpm -q vdsm
vdsm-4.50.3.4-1.el8.x86_64 (VDSM was updated from 4.50.2.2-1.el8 )

rpm -q mom
mom-0.6.3-1.el8.noarch  (MOM was not updated duting tha last update)

here is error from /var/log/vdsm/mom.log

2022-10-28 13:17:18,105 - mom - INFO - MOM starting
2022-10-28 13:17:18,138 - mom.HostMonitor - INFO - Host Monitor
starting
2022-10-28 13:17:18,138 - mom - INFO - hypervisor interface
vdsmjsonrpcclient
2022-10-28 13:17:18,179 - mom.HostMonitor - INFO - HostMonitor is
ready
2022-10-28 13:17:18,242 - mom.GuestManager - INFO - Guest Manager
starting: multi-thread
2022-10-28 13:17:18,247 - mom.Policy - INFO - Loaded policy
'00-defines'
2022-10-28 13:17:18,247 - mom - ERROR - Failed to initialize MOM
threads
Traceback (most recent call last):
 File "/usr/lib/python3.6/site-packages/mom/__init__.py", line 35,
in run
   host_monitor, guest_manager)
 File "/usr/lib/python3.6/site-packages/mom/PolicyEngine.py", line
42, in __init__
   self.load_policy()
 File "/usr/lib/python3.6/site-packages/mom/PolicyEngine.py", line
71, in load_policy
   read_policy(fname, name.split('.policy')[0])
 File "/usr/lib/python3.6/site-packages/mom/PolicyEngine.py", line
53, in read_policy
   return self.policy.set_policy(policy_name, policyStr)
 File "/usr/lib/python3.6/site-packages/mom/Policy/Policy.py",
line 64, in set_policy
   self.code = get_code(Evaluator(), self._cat_policies())
 File "/usr/lib/python3.6/site-packages/mom/Policy/Parser.py",
line 543, in get_code
   tokens = scanner.tokenize(string)
 File "/usr/lib/python3.6/site-packages/mom/Policy/Parser.py",
line 72, in tokenize
   GenericScanner.tokenize(self, input)
 File "/usr/lib/python3.6/site-packages/mom/Policy/spark.py", line
78, in tokenize
   add_lines = self.index2func[i](groups[i], line)
TypeError: t_default() takes 2 positional arguments but 3 were given


any tip what could be the reason ?

Thaak you

Jirka

___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct:
https://www.ovirt.org/community/about/community-guidelines/
List Archives:

https://lists.ovirt.org/archives/list/users@ovirt.org/message/3QATBEY4A7ZJ7UMJM2KGZ6GCKVF5U23D/



--
Martin Perina
Manager, Software Engineering
Red Hat Czech s.r.o.

___
Users mailing list --users@ovirt.org
To unsubscribe send an email tousers-le...@ovirt.org
Privacy Statement:https://www.ovirt.org/privacy-policy.html
oVirt Code of 
Conduct:https://www.ovirt.org/community/about/community-guidelines/
List 
Archives:https://lists.ovirt.org/archives/list/users@ovirt.org/message/25RYUUUPF4RFRKFXHGWLRANZBMGAZ7KV/___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/CALXQACLCHKRLF66SKTR7I5IUGG7MD4L/


[ovirt-users] Re: mom-vdsm service is failing after update to 4.5.3.2-1.el8

2022-10-31 Thread Martin Perina
Hi,

below error should be fixed in mom-0.6.4, which was included in last week's
oVirt 4.5.3 async release:

https://lists.ovirt.org/archives/list/users@ovirt.org/message/TCGC54KIG7XIYNBO44WKKLCNZJQITWMO/

Regards,
Martin


On Fri, Oct 28, 2022 at 2:07 PM Jirka Simon  wrote:

> Hello there,
>
> we just updated oVirt engine to 4.5.3.2-1.el8 which was smooth, but then
> when we start to update all nodes, after restart mom-vdsm service is
> failing to start
>
> mom-vdsm
>
> rpm -q vdsm
> vdsm-4.50.3.4-1.el8.x86_64 (VDSM was updated from 4.50.2.2-1.el8 )
>
> rpm -q mom
> mom-0.6.3-1.el8.noarch  (MOM was not updated duting tha last update)
>
> here is error from  /var/log/vdsm/mom.log
>
> 2022-10-28 13:17:18,105 - mom - INFO - MOM starting
> 2022-10-28 13:17:18,138 - mom.HostMonitor - INFO - Host Monitor starting
> 2022-10-28 13:17:18,138 - mom - INFO - hypervisor interface
> vdsmjsonrpcclient
> 2022-10-28 13:17:18,179 - mom.HostMonitor - INFO - HostMonitor is ready
> 2022-10-28 13:17:18,242 - mom.GuestManager - INFO - Guest Manager
> starting: multi-thread
> 2022-10-28 13:17:18,247 - mom.Policy - INFO - Loaded policy '00-defines'
> 2022-10-28 13:17:18,247 - mom - ERROR - Failed to initialize MOM threads
> Traceback (most recent call last):
>  File "/usr/lib/python3.6/site-packages/mom/__init__.py", line 35, in run
>host_monitor, guest_manager)
>  File "/usr/lib/python3.6/site-packages/mom/PolicyEngine.py", line 42, in
> __init__
>self.load_policy()
>  File "/usr/lib/python3.6/site-packages/mom/PolicyEngine.py", line 71, in
> load_policy
>read_policy(fname, name.split('.policy')[0])
>  File "/usr/lib/python3.6/site-packages/mom/PolicyEngine.py", line 53, in
> read_policy
>return self.policy.set_policy(policy_name, policyStr)
>  File "/usr/lib/python3.6/site-packages/mom/Policy/Policy.py", line 64, in
> set_policy
>self.code = get_code(Evaluator(), self._cat_policies())
>  File "/usr/lib/python3.6/site-packages/mom/Policy/Parser.py", line 543,
> in get_code
>tokens = scanner.tokenize(string)
>  File "/usr/lib/python3.6/site-packages/mom/Policy/Parser.py", line 72, in
> tokenize
>GenericScanner.tokenize(self, input)
>  File "/usr/lib/python3.6/site-packages/mom/Policy/spark.py", line 78, in
> tokenize
>add_lines = self.index2func[i](groups[i], line)
> TypeError: t_default() takes 2 positional arguments but 3 were given
>
>
> any tip what could be the reason ?
>
> Thaak you
>
> Jirka
> ___
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-le...@ovirt.org
> Privacy Statement: https://www.ovirt.org/privacy-policy.html
> oVirt Code of Conduct:
> https://www.ovirt.org/community/about/community-guidelines/
> List Archives:
> https://lists.ovirt.org/archives/list/users@ovirt.org/message/3QATBEY4A7ZJ7UMJM2KGZ6GCKVF5U23D/
>


-- 
Martin Perina
Manager, Software Engineering
Red Hat Czech s.r.o.
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/25RYUUUPF4RFRKFXHGWLRANZBMGAZ7KV/