
Dear Strahil, For 4.4.4 the sdk examples do require that you create a configuration file. Here is an example: ~/config/ovirt.conf: [engine1] engine_url = http://localhost:8080 username = admin@internal password = 123 secure = yes cafile = /home/user/ovirt_engine_master/etc/pki/ovirt-engine/ca.pem With Best Regards. Steven Rosenberg. On Fri, Jan 1, 2021 at 4:48 PM Strahil Nikolov via Users <users@ovirt.org> wrote:
Hi Ilan,
Do you know how to use the config for disk_upload.py (or the --engine-url, --username, --password-file or --cafile params) on 4.3.10 as I had to directly edit the script ?
Best Regards, Strahil Nikolov
В четвъртък, 31 декември 2020 г., 00:07:06 Гринуич+2, Jorge Visentini < jorgevisentini@gmail.com> написа:
Hi Nikolov.
I uploaded to 4.4.4
Are you uploading to 4.4 or to the old 4.3 ? I'm asking as there should be an enhancement that makes a checksum on
Em qua., 30 de dez. de 2020 às 14:14, Strahil Nikolov < hunter86_bg@yahoo.com> escreveu: the uploads in order to verify that the upload was successfull.
Best Regards, Strahil Nikolov
В сряда, 30 декември 2020 г., 18:37:52 Гринуич+2, Jorge Visentini <
jorgevisentini@gmail.com> написа:
Hi Ilan.
Ohh sorry I didn't understand.
I created the file and executed the script as you said and it worked.
python3 /usr/share/doc/python3-ovirt-engine-sdk4/examples/upload_disk.py
[ 0.0 ] Checking image... [ 0.4 ] Image format: qcow2 [ 0.4 ] Disk format: cow [ 0.4 ] Disk content type: data [ 0.4 ] Disk provisioned size: 32213303296 [ 0.4 ] Disk initial size: 12867010560 [ 0.4 ] Disk name: disk01-SO.qcow2 [ 0.4 ] Disk backup: False [ 0.4 ] Connecting... [ 0.4 ] Creating disk... [ 19.4 ] Disk ID: 9328e954-9307-420f-b5d7-7b81071f88a5 [ 19.4 ] Creating image transfer... [ 22.5 ] Transfer ID: 16236f8e-79af-4159-83f7-8331a2f25919 [ 22.5 ] Transfer host name: kcmi1kvm08.kosmo.cloud [ 22.5 ] Uploading image... [ 100.00% ] 30.00 GiB, 197.19 seconds, 155.79 MiB/s [ 219.7 ] Finalizing image transfer... [ 227.0 ] Upload completed successfully
Thank you for the explanation!
Em qua., 30 de dez. de 2020 às 00:54, Ilan Zuckerman < izuckerm@redhat.com> escreveu:
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://<engine FQDN> username = admin@internal password = xxxxxx cafile = /path/to/engine1.pem
On Wed, Dec 30, 2020 at 4:18 AM Jorge Visentini < jorgevisentini@gmail.com> 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 ISOs usage: 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] filename upload_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]
-c engine disk01-SO.qcow2 --disk-format qcow2 --disk-sparse --sd-name ISOs 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-leave@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/PYNCYYFNT42NEH...
-- Thanks -- With Respect,
Ilan Zuckerman, ISTQB, ANSIBLE SPECIALIST, RHCE RHV-M STORAGE AUTOMATION QE Red Hat EMEA
Israel izuckerm@redhat.com T: +972-9-7692000 M: 054-9956728 IM: izuckerm
-- Att, Jorge Visentini +55 55 98432-9868 _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@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/TZUHO3375AL43U...
-- Att, Jorge Visentini +55 55 98432-9868 _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@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/7UZG5OYP2FMN4C... _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@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/OGMRLQBIW3LL2J...