[ovirt-devel] Re: What values should i give in this ovirt api to get the correct response

2019-07-21 Thread Germano Veit Michel
There is an example that implements all the logic you need for this:
https://github.com/oVirt/ovirt-engine-sdk/blob/master/sdk/examples/vm_backup.py
The only thing missing there is the software inside the VM that does the
data copy (it could even be a script), which is out of scope or oVirt.



On Sat, Jul 20, 2019 at 5:10 PM  wrote:

> I am following this link.
>
>
> https://ovirt.org/documentation/admin-guide/chap-Backups_and_Migration.html#backing-up-and-restoring-virtual-machines-using-the-backup-and-restore-api
>
> I got response for
>
> GET
> /api/vms/4ef8b995-ae58-49d6-8980-ef0fa6688d92/snapshots/1b94ca4e-8c03-4166-8d29-2b831e24b90e/disks
> HTTP/1.1 Accept: application/xml Content-type: application/xml
>
>
> Identify disk id "Array
> (
> [disk] => Array
> (
> [0] => Array
> (
> [actual_size] => 0
> [alias] => GlanceDisk-8700235
> [format] => cow
> [image_id] => a42bda58-7556-4ebe-a54d-03dc0a3b1f54
> [propagate_errors] => false
> [provisioned_size] => 8589934592
> [read_only] => false
> [shareable] => false
> [sparse] => true
> [status] => ok
> [storage_type] => image
> [wipe_after_delete] => false
> [snapshot] => Array
> (
> [id] => 1b94ca4e-8c03-4166-8d29-2b831e24b90e
> )
>
> [storage_domains] => Array
> (
> [storage_domain] => Array
> (
> [0] => Array
> (
> [id] =>
> ad6aea6d-ff90-457f-98eb-99380949e23a
> )
>
> )
>
> )
>
> [name] => GlanceDisk-8700235
> [description] => CentOS 7 Generic Cloud Image v1711
> for x86_64 (8700235)
> [id] => dded245b-4a73-48b4-a1b4-ba98c37490ad
> )
>
>
>
>
> What is the values that i have to give to the POST request in this api
>
>
>  POST /api/vms/----/disks/ HTTP/1.1
>  Accept: application/xml
>  Content-type: application/xml
>
>  
>  
>  true
>  
>
> to replace
> 1)vms ===>> ----
> 2)disk id   ----
> 3)snapshot id   ----
> ___
> Devel mailing list -- devel@ovirt.org
> To unsubscribe send an email to devel-le...@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/devel@ovirt.org/message/OPXOP7OLFGSJ626VEX7ZMRWG5IWKGPWZ/
>
___
Devel mailing list -- devel@ovirt.org
To unsubscribe send an email to devel-le...@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/devel@ovirt.org/message/KQGYKHX4SNIV3F6WYCRSYJOA4G7BM43U/


[ovirt-devel] Re: ioprocess-1.2.1 for ovirt 4.3.6

2019-07-21 Thread Nir Soffer
On Sun, Jul 21, 2019 at 4:35 PM Nir Soffer  wrote:

> On Sun, Jul 21, 2019 at 12:16 PM Eyal Edri  wrote:
>
>> ioprocess is misconfigured in STDCI V1 and is missing V2 configuration to
>> be fully functional.
>> Currently, 4.3 is configured to come from ioprocess-1.0 branch:
>>
>>  version:
>>   - 4.3:
>>   branch: ioprocess-1.0
>>   repoversion: 4.3
>>
>> But the last commit for that branch was 12 months ago, so I assume its
>> not being used anymore? and master branch is used for all versions?
>> This is why 4.3 tested repo doesn't have it and only master repo has it.
>>
>
> Thanks for solving this issue!
>
> I think we can create 1.2 branch for 4.3, or use master, since ioprocess
> does not change
> a lot.
>
> I believe you should switch to V2, it will simplify the configuration
>> dramatically ( Ehud can help you if needed ).
>>
>
> Good idea.
>

These patches should fix the issue:

ioprocess:
build: Add CI V2 configuration 
tests: Mark expected failures on s390x 

jenkins:
iprocess: Move to V2 

Please review.

Thanks,
Nir
___
Devel mailing list -- devel@ovirt.org
To unsubscribe send an email to devel-le...@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/devel@ovirt.org/message/TDDANHOJRZEJDAQUC57CDJSF5JKHVU7R/


[ovirt-devel] Re: ioprocess-1.2.1 for ovirt 4.3.6

2019-07-21 Thread Nir Soffer
On Sun, Jul 21, 2019 at 12:16 PM Eyal Edri  wrote:

> ioprocess is misconfigured in STDCI V1 and is missing V2 configuration to
> be fully functional.
> Currently, 4.3 is configured to come from ioprocess-1.0 branch:
>
>  version:
>   - 4.3:
>   branch: ioprocess-1.0
>   repoversion: 4.3
>
> But the last commit for that branch was 12 months ago, so I assume its not
> being used anymore? and master branch is used for all versions?
> This is why 4.3 tested repo doesn't have it and only master repo has it.
>

Thanks for solving this issue!

I think we can create 1.2 branch for 4.3, or use master, since ioprocess
does not change
a lot.

I believe you should switch to V2, it will simplify the configuration
> dramatically ( Ehud can help you if needed ).
>

Good idea.

Nir

>
___
Devel mailing list -- devel@ovirt.org
To unsubscribe send an email to devel-le...@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/devel@ovirt.org/message/M2COW2K6E37DTCMQBQAYZDUBL5MTAHSG/


[ovirt-devel] Re: Jenkins build fails to clone gerrit repo

2019-07-21 Thread Eyal Edri
I can see its working now and passed multiple builds since then.
Could it be a networking issue with Gerrit (hosted on Amazon),
Evgheni/Anton - were you able to find the root cause for this?

On Fri, Jul 19, 2019 at 7:04 PM Vojtech Juranek  wrote:

> Hi,
> lots of Jenkin jobs fail as they cannot fetch git repo from gerrit:
>
> 17:35:32  Fetching upstream changes from https://gerrit.ovirt.org/vdsm
> 17:35:32   > git --version # timeout=10
> 17:35:32   > git fetch --tags --progress https://gerrit.ovirt.org/vdsm
> +refs/heads/*:refs/remotes/origin/*
> 17:36:38  ERROR: Error cloning remote repo 'origin'
> 17:36:38  hudson.plugins.git.GitException: Command "git fetch --tags
> --progress https://gerrit.ovirt.org/vdsm
> +refs/heads/*:refs/remotes/origin/*" returned status code 128:
> 17:36:38  stdout:
> 17:36:38  stderr: error: RPC failed; result=22, HTTP code = 502
> 17:36:38  fatal: The remote end hung up unexpectedly
>
> see e.g. [1, 2, 3] for more details, to name couple of examples.
>
> Can someone take a look?
> Thanks
> Vojta
>
> [1] https://jenkins.ovirt.org/job/vdsm_standard-check-patch/8277/console
> [2] https://jenkins.ovirt.org/job/vdsm_standard-check-patch/8285/console
> [3] https://jenkins.ovirt.org/job/vdsm_standard-check-patch/8291/console
> ___
> Infra mailing list -- in...@ovirt.org
> To unsubscribe send an email to infra-le...@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/in...@ovirt.org/message/KMTRVLFWG344Q5ULEOR3CXI777WFFEWR/
>


-- 

Eyal edri

He / Him / His


MANAGER

CONTINUOUS PRODUCTIZATION

SYSTEM ENGINEERING

Red Hat 

phone: +972-9-7692018
irc: eedri (on #tlv #rhev-dev #rhev-integ #cp-devel)
___
Devel mailing list -- devel@ovirt.org
To unsubscribe send an email to devel-le...@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/devel@ovirt.org/message/3UJ3BMPTU2ICBBMEPOQB5DZH5JPDE2OY/


[ovirt-devel] Re: ioprocess-1.2.1 for ovirt 4.3.6

2019-07-21 Thread Eyal Edri
ioprocess is misconfigured in STDCI V1 and is missing V2 configuration to
be fully functional.
Currently, 4.3 is configured to come from ioprocess-1.0 branch:

 version:
  - 4.3:
  branch: ioprocess-1.0
  repoversion: 4.3

But the last commit for that branch was 12 months ago, so I assume its not
being used anymore? and master branch is used for all versions?
This is why 4.3 tested repo doesn't have it and only master repo has it.

I believe you should switch to V2, it will simplify the configuration
dramatically ( Ehud can help you if needed ).

To solve quickly the issue in the patch you can replace the tested repo in
the check-patch.repos to master:
https://resources.ovirt.org/repos/ovirt/tested/master/rpm/el7/x86_64/

since master has it.

On Sat, Jul 20, 2019 at 9:39 PM Nir Soffer  wrote:

> This is a requirement for supporting 4k in ovirt 4.3.6.
>
> We have a build for RHEL:
> https://bugzilla.redhat.com/1728953
>
> We need build for CentOS 7 - currently providing only:
> ioprocess-1.1.2-1.el7.x86_64.rpm
>
> Vdsm requires 1.2.1 for about 2 weeks, and OST builds pass, probably
> consuming 1.2.1 from
> ovirt repositories.
> https://resources.ovirt.org/repos/ovirt/tested/master/rpm/el7/x86_64/
>
> But CI on 4.3 fails with:
>
> Error: Package: vdsm-python-4.30.24-48.gitcc1fe4e.el7.noarch (artifacts)
> Requires: python-ioprocess >= 1.2.1 Installed:
> python2-ioprocess-1.1.2-1.201903201036.gita80158c.el7.x86_64 (@tested)
> python-ioprocess = 1.1.2 Available: python-ioprocess-0.15.1-1.el7.noarch
> (epel-el7) python-ioprocess = 0.15.1-1.el7 Available:
> python-ioprocess-0.16.1-1.el7.noarch (centos-ovirt-common-candidate)
> python-ioprocess = 0.16.1-1.el7 Available:
> python2-ioprocess-1.1.2-1.el7.x86_64 (centos-ovirt42-testing-x86_64)
> python-ioprocess = 1.1.2
>
> See https://gerrit.ovirt.org/c/101951/
>
> So either CI on 4.3 is missing the repo providing this version, or this
> build needs to be elsewhere,
>

The CI (automation/check-patch.repos) is using the 4.3 repo, which is using
the ioprocess-1.0 branch and only has 1.1.2 version.
Master has the newer version.


> probably in:
> https://cbs.centos.org/repos/virt7-ovirt-43-testing/x86_64/os/Packages/
>
> Nir
> ___
> Devel mailing list -- devel@ovirt.org
> To unsubscribe send an email to devel-le...@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/devel@ovirt.org/message/DYDBO2GJMKKHG5VT2OBPEYDXR4H642EY/
>


-- 

Eyal edri

He / Him / His


MANAGER

CONTINUOUS PRODUCTIZATION

SYSTEM ENGINEERING

Red Hat 

phone: +972-9-7692018
irc: eedri (on #tlv #rhev-dev #rhev-integ #cp-devel)
___
Devel mailing list -- devel@ovirt.org
To unsubscribe send an email to devel-le...@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/devel@ovirt.org/message/QY25QKLARZ3THFR67CFX2V4AQZINYCEW/