[ovirt-users] Re: upload_disk.py - CLI Upload Disk

2020-12-29 Thread Ilan Zuckerman
Hi Jorge,

Lately DEV started to implement the capability of passing the basic
arguments for the SDK example scripts with a help of configuration file.
I assume that not all of the example scripts support this new feature yet.

Until now you had to run the examples with:

--engine-url https://engine1
--username admin@internal
--password-file /path/to/engine1-password
--cafile /path/to/engine1.pem

This is very painful when running the example a lot.
Now you can run them with:

-c engine1

Assuming that you have a configuration file with all the
details at:

~/.config/ovirt.conf

Here is an example for you of how this file should look like:

[engine1]
engine_url = https://
username = admin@internal
password = xx
cafile = /path/to/engine1.pem

On Wed, Dec 30, 2020 at 4:18 AM Jorge Visentini 
wrote:

> Hi All.
>
> I'm using version 4.4.4 (latest stable version -
> ovirt-node-ng-installer-4.4.4-2020122111.el8.iso)
>
> I tried using the upload_disk.py script, but I don't think I knew how to
> use it.
>
> When I try to use it, these errors occur:
>
>
>
>
>
>
>
>
> *python3 /usr/share/doc/python3-ovirt-engine-sdk4/examples/upload_disk.py
> disk01-SO.qcow2 --disk-format qcow2 --sd-name ISOsusage: upload_disk.py
> [-h] -c CONFIG [--debug] [--logfile LOGFILE]
> [--disk-format {raw,qcow2}] [--disk-sparse]
> [--enable-backup] --sd-name SD_NAME [--use-proxy]
> [--max-workers MAX_WORKERS] [--buffer-size BUFFER_SIZE]
>   filenameupload_disk.py: error: the following arguments are required:
> -c/--config*
>
> Using the upload_disk.py help:
>
>
>
>
>
> *python3 upload_disk.py --help-c CONFIG, --config CONFIG
>   Use engine connection details from [CONFIG] section in
> ~/.config/ovirt.conf.*
> This CONFIG, is the API access configuration for authentication? Because
> analyzing the script I did not find this information.
>
> Does this new version work differently or am I doing something wrong?
>
> In the sdk_4.3 version of upload_disk.py I had to change the script to add
> the access information, but it worked.
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *[root@engineteste01 ~]# python3 upload_disk.py disk01-SO.qcow2Checking
> image...Disk format: qcow2Disk content type: dataConnecting...Creating
> disk...Creating transfer session...Uploading image...Uploaded
> 20.42%Uploaded 45.07%Uploaded 68.89%Uploaded 94.45%Uploaded 2.99g in 42.17
> seconds (72.61m/s)Finalizing transfer session...Upload completed
> successfully[root@engineteste01 ~]#*
>
> Thank you all!!
>
> --
> Att,
> Jorge Visentini
> +55 55 98432-9868
> ___
> 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/PYNCYYFNT42NEHBXD57V3MMMUP3LZRZA/
>


-- 
Thanks
-- 
With Respect,

Ilan Zuckerman, ISTQB, ANSIBLE SPECIALIST, RHCE

RHV-M

STORAGE AUTOMATION QE

Red Hat EMEA 

Israel

izuck...@redhat.comT: +972-9-7692000
M: 054-9956728 IM: izuckerm

___
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/WYW35WKQ4MS5OHOY6KSTXMPM3VWUAETV/


[ovirt-users] upload_disk.py - CLI Upload Disk

2020-12-29 Thread Jorge Visentini
Hi All.

I'm using version 4.4.4 (latest stable version -
ovirt-node-ng-installer-4.4.4-2020122111.el8.iso)

I tried using the upload_disk.py script, but I don't think I knew how to
use it.

When I try to use it, these errors occur:








*python3 /usr/share/doc/python3-ovirt-engine-sdk4/examples/upload_disk.py
disk01-SO.qcow2 --disk-format qcow2 --sd-name ISOsusage: upload_disk.py
[-h] -c CONFIG [--debug] [--logfile LOGFILE]
[--disk-format {raw,qcow2}] [--disk-sparse]
[--enable-backup] --sd-name SD_NAME [--use-proxy]
[--max-workers MAX_WORKERS] [--buffer-size BUFFER_SIZE]
  filenameupload_disk.py: error: the following arguments are required:
-c/--config*

Using the upload_disk.py help:





*python3 upload_disk.py --help-c CONFIG, --config CONFIG
Use engine connection details from [CONFIG] section in
  ~/.config/ovirt.conf.*
This CONFIG, is the API access configuration for authentication? Because
analyzing the script I did not find this information.

Does this new version work differently or am I doing something wrong?

In the sdk_4.3 version of upload_disk.py I had to change the script to add
the access information, but it worked.
















*[root@engineteste01 ~]# python3 upload_disk.py disk01-SO.qcow2Checking
image...Disk format: qcow2Disk content type: dataConnecting...Creating
disk...Creating transfer session...Uploading image...Uploaded
20.42%Uploaded 45.07%Uploaded 68.89%Uploaded 94.45%Uploaded 2.99g in 42.17
seconds (72.61m/s)Finalizing transfer session...Upload completed
successfully[root@engineteste01 ~]#*

Thank you all!!

-- 
Att,
Jorge Visentini
+55 55 98432-9868
___
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/PYNCYYFNT42NEHBXD57V3MMMUP3LZRZA/


[ovirt-users] Re: Shrink iSCSI Domain

2020-12-29 Thread Vinícius Ferrão via Users
It provides but isn’t enabled.

I run on TrueNAS, so in the past FreeNAS didn’t recommend deduplication due to 
some messy requirement that the deduplication table must fit on RAM or else the 
pool will be unable to mount. So I’ve avoided using it. Not sure how it’s today…

Thanks.

> On 28 Dec 2020, at 13:43, Strahil Nikolov  wrote:
> 
> Vinius,
> 
> does your storage provide dedpulication ? If yes, then you can provide a new 
> thin-provisioned LUN and migrate the data from the old LUN to the new one.
> 
> Best Regards,
> Strahil Nikolov
> 
> 
> 
> 
> 
> 
> В понеделник, 28 декември 2020 г., 18:27:38 Гринуич+2, Vinícius Ferrão via 
> Users  написа: 
> 
> 
> 
> 
> 
> Hi Shani, thank you! 
> 
> 
> 
> It’s only one LUN :(
> 
> 
> 
> 
> So it may be a best practice to split an SD in multiple LUNs?
> 
> 
> 
> 
> Thank you.
> 
> 
> 
>>   
>> On 28 Dec 2020, at 09:08, Shani Leviim  wrote:
>> 
>> 
>>   
>>   
>>   Hi,
>> 
>>   You can reduce LUNs from an iSCSI storage domain once it's in maintenance. 
>> [1]
>> 
>> 
>>   On the UI, after putting the storage domain in maintenance > Manage Domain 
>> > select the LUNs to be removed from the storage domain.
>> 
>>   
>> 
>> 
>>   Note that reducing LUNs is applicable in case the storage domain has more 
>> than 1 LUN.
>> 
>>   (Otherwise, removing the single LUN means removing the whole storage 
>> domain).
>> 
>> 
>>   
>> 
>> 
>>   [1]  
>> https://www.ovirt.org/develop/release-management/features/storage/reduce-luns-from-sd.html
>> 
>>   
>> 
>> 
>>   
>>   
>>   
>>   
>>   
>> Regards,
>> Shani Leviim
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>>   
>> On Sun, Dec 27, 2020 at 8:16 PM Vinícius Ferrão via Users  
>> wrote:
>> 
>> 
>>>   Hello,
>>> 
>>> Is there any way to reduce the size of an iSCSI Storage Domain? I can’t 
>>> seem to figure this myself. It’s probably unsupported, and the path would 
>>> be create a new iSCSI Storage Domain with the reduced size and move the 
>>> virtual disks to there and them delete the old one.
>>> 
>>> But I would like to confirm if this is the only way to do this…
>>> 
>>> In the past I had a requirement, so I’ve created the VM Domains with 10TB, 
>>> now it’s just too much, and I need to use the space on the storage for 
>>> other activities.
>>> 
>>> Thanks all and happy new year.
>>> ___
>>> 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/4B26ZBZUMRXZ6MLJ6YQTK26SZNZOYQLF/
>>> 
>> 
>> 
>> 
> 
> 
> 
> 
> ___
> 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/OWQ2WQZ35U3XEU67MWKPB7CJK7YMNTTG/

___
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/MYAM2QM7D2RZJZ632IRHLTIZ6XGMPC4Y/


[ovirt-users] Re: ovirt 4.0 after set the host into maintenance and then "Enroll Certificates" but the install failed

2020-12-29 Thread Yedidyah Bar David
On Tue, Dec 29, 2020 at 11:10 AM momokch--- via Users  wrote:
>
> hello everyone,
> my ovirt-engine and host certification is expired, is it any method no need 
> to shutdown
> all the vm can enroll/update the certificate between engine and the host???
> i am using the ovirt 4.0
>
>
> i tried to set the host into maintenance and then "Enroll Certificates"
> from the UI
> but the engine also show install failed

Please check/share relevant logs:

From the engine machine:

/var/log/ovirt-engine/* (including subdirs)

From the host:

/var/log/vdsm/*

From both:

/var/log/messages and similar (e.g. audit etc.).

Thanks and best regards,
-- 
Didi
___
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/BLG7AVHPLP46I3PTXX2QJYWPRX322OS5/


[ovirt-users] ovirt 4.0 after set the host into maintenance and then "Enroll Certificates" but the install failed

2020-12-29 Thread momokch--- via Users
hello everyone,
my ovirt-engine and host certification is expired, is it any method no need to 
shutdown
all the vm can enroll/update the certificate between engine and the host???
i am using the ovirt 4.0


i tried to set the host into maintenance and then "Enroll Certificates"
from the UI
but the engine also show install failed
thank you
___
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/M4BV7DZWYVUOIOMUQI2F2VCY5P5ZUXX4/


[ovirt-users] ovirt 4.0 after set the host into maintenance and then "Enroll Certificates" but the install failed

2020-12-29 Thread momokch--- via Users
hello everyone,
my ovirt-engine and host certification is expired, is it any method no need to 
shutdown
all the vm can enroll/update the certificate between engine and the host???
i am using the ovirt 4.0


i tried to set the host into maintenance and then "Enroll Certificates"
from the UI
but the engine also show install failed
thank you
___
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/KGI26JXEUR3UHE72LUCQPTGO53LMDQQH/