[ovirt-users] Re: vdsClient in oVirt 4.3

2019-04-03 Thread Benny Zlotnik
please note setLegality has been deprecated since 4.1

On Wed, Apr 3, 2019 at 1:45 PM  wrote:
>
> Thanks Liran, it worked perfectly.
>
> Regards.
>
> El 2019-04-03 11:33, Liran Rotenberg escribió:
> > I think the similar way to do it as you used to is:
> > $ vdsm-client Volume setLegality storagedomainID=sdUUID
> > storagepoolID=spUUID imageID=imgUUID legality=LEGAL volumeID=volUUID
> > Where the values you set should be inside quotes for example 'LEGAL'.
> >
> > On Wed, Apr 3, 2019 at 1:08 PM  wrote:
> >>
> >> Hi Benny,
> >>
> >> Thanks for the help.
> >>
> >> Could you please tell me what job_uuid and vol_gen should be replaced
> >> by? Should I just put any UUID for the job?
> >>
> >> Thanks.
> >>
> >> El 2019-04-03 09:52, Benny Zlotnik escribió:
> >> > it should be something like this:
> >> >   $ cat update.json
> >> >   {
> >> >   "job_id":"",
> >> >   "vol_info": {
> >> >   "sd_id": "",
> >> >   "img_id": "",
> >> >   "vol_id": "",
> >> >   "generation": ""
> >> >   },
> >> >   "legality": "LEGAL"
> >> >   }
> >> >   }
> >> >
> >> >   $ vdsm-client SDM update_volume -f update.json
> >> >
> >> > On Wed, Apr 3, 2019 at 11:48 AM  wrote:
> >> >>
> >> >> Hi,
> >> >>
> >> >> In oVirt 4.1 we used this command to set a volume as LEGAL:
> >> >>
> >> >>  vdsClient -s  setVolumeLegality sdUUID spUUID imgUUID
> >> >> leafUUID
> >> >> LEGAL
> >> >>
> >> >> What would be the equivalent to this command using vdsm-client in
> >> >> oVirt
> >> >> 4.3?
> >> >>
> >> >> Thanks.
> >> >> ___
> >> >> Users mailing list -- users@ovirt.org
> >> >> To unsubscribe send an email to users-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/users@ovirt.org/message/T7QYVJMDWNRUOKLOZGEA7QPDBKLX4TO2/
> >> ___
> >> Users mailing list -- users@ovirt.org
> >> To unsubscribe send an email to users-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/users@ovirt.org/message/LUZX6W6KWRZWHDRDJPH6PIEGRVNAGVED/
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-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/users@ovirt.org/message/44GHPYCK6QYCA5Q52EYNDNABQ4N45QB2/


[ovirt-users] Re: vdsClient in oVirt 4.3

2019-04-03 Thread Benny Zlotnik
you can put any UUID for the job, you can check it using the
generation with `Volume getInfo`


On Wed, Apr 3, 2019 at 1:06 PM  wrote:
>
> Hi Benny,
>
> Thanks for the help.
>
> Could you please tell me what job_uuid and vol_gen should be replaced
> by? Should I just put any UUID for the job?
>
> Thanks.
>
> El 2019-04-03 09:52, Benny Zlotnik escribió:
> > it should be something like this:
> >   $ cat update.json
> >   {
> >   "job_id":"",
> >   "vol_info": {
> >   "sd_id": "",
> >   "img_id": "",
> >   "vol_id": "",
> >   "generation": ""
> >   },
> >   "legality": "LEGAL"
> >   }
> >   }
> >
> >   $ vdsm-client SDM update_volume -f update.json
> >
> > On Wed, Apr 3, 2019 at 11:48 AM  wrote:
> >>
> >> Hi,
> >>
> >> In oVirt 4.1 we used this command to set a volume as LEGAL:
> >>
> >>  vdsClient -s  setVolumeLegality sdUUID spUUID imgUUID
> >> leafUUID
> >> LEGAL
> >>
> >> What would be the equivalent to this command using vdsm-client in
> >> oVirt
> >> 4.3?
> >>
> >> Thanks.
> >> ___
> >> Users mailing list -- users@ovirt.org
> >> To unsubscribe send an email to users-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/users@ovirt.org/message/T7QYVJMDWNRUOKLOZGEA7QPDBKLX4TO2/
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-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/users@ovirt.org/message/FNUXKSMZGN4CRZROGDQMG2GHN6TCT3MK/


[ovirt-users] Re: vdsClient in oVirt 4.3

2019-04-03 Thread nicolas

Thanks Liran, it worked perfectly.

Regards.

El 2019-04-03 11:33, Liran Rotenberg escribió:

I think the similar way to do it as you used to is:
$ vdsm-client Volume setLegality storagedomainID=sdUUID
storagepoolID=spUUID imageID=imgUUID legality=LEGAL volumeID=volUUID
Where the values you set should be inside quotes for example 'LEGAL'.

On Wed, Apr 3, 2019 at 1:08 PM  wrote:


Hi Benny,

Thanks for the help.

Could you please tell me what job_uuid and vol_gen should be replaced
by? Should I just put any UUID for the job?

Thanks.

El 2019-04-03 09:52, Benny Zlotnik escribió:
> it should be something like this:
>   $ cat update.json
>   {
>   "job_id":"",
>   "vol_info": {
>   "sd_id": "",
>   "img_id": "",
>   "vol_id": "",
>   "generation": ""
>   },
>   "legality": "LEGAL"
>   }
>   }
>
>   $ vdsm-client SDM update_volume -f update.json
>
> On Wed, Apr 3, 2019 at 11:48 AM  wrote:
>>
>> Hi,
>>
>> In oVirt 4.1 we used this command to set a volume as LEGAL:
>>
>>  vdsClient -s  setVolumeLegality sdUUID spUUID imgUUID
>> leafUUID
>> LEGAL
>>
>> What would be the equivalent to this command using vdsm-client in
>> oVirt
>> 4.3?
>>
>> Thanks.
>> ___
>> Users mailing list -- users@ovirt.org
>> To unsubscribe send an email to users-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/users@ovirt.org/message/T7QYVJMDWNRUOKLOZGEA7QPDBKLX4TO2/
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-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/users@ovirt.org/message/LUZX6W6KWRZWHDRDJPH6PIEGRVNAGVED/

___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-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/users@ovirt.org/message/RHODSQZLPK6JEGUH2NKTSGRVTBJXDXJC/


[ovirt-users] Re: vdsClient in oVirt 4.3

2019-04-03 Thread Liran Rotenberg
I think the similar way to do it as you used to is:
$ vdsm-client Volume setLegality storagedomainID=sdUUID
storagepoolID=spUUID imageID=imgUUID legality=LEGAL volumeID=volUUID
Where the values you set should be inside quotes for example 'LEGAL'.

On Wed, Apr 3, 2019 at 1:08 PM  wrote:
>
> Hi Benny,
>
> Thanks for the help.
>
> Could you please tell me what job_uuid and vol_gen should be replaced
> by? Should I just put any UUID for the job?
>
> Thanks.
>
> El 2019-04-03 09:52, Benny Zlotnik escribió:
> > it should be something like this:
> >   $ cat update.json
> >   {
> >   "job_id":"",
> >   "vol_info": {
> >   "sd_id": "",
> >   "img_id": "",
> >   "vol_id": "",
> >   "generation": ""
> >   },
> >   "legality": "LEGAL"
> >   }
> >   }
> >
> >   $ vdsm-client SDM update_volume -f update.json
> >
> > On Wed, Apr 3, 2019 at 11:48 AM  wrote:
> >>
> >> Hi,
> >>
> >> In oVirt 4.1 we used this command to set a volume as LEGAL:
> >>
> >>  vdsClient -s  setVolumeLegality sdUUID spUUID imgUUID
> >> leafUUID
> >> LEGAL
> >>
> >> What would be the equivalent to this command using vdsm-client in
> >> oVirt
> >> 4.3?
> >>
> >> Thanks.
> >> ___
> >> Users mailing list -- users@ovirt.org
> >> To unsubscribe send an email to users-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/users@ovirt.org/message/T7QYVJMDWNRUOKLOZGEA7QPDBKLX4TO2/
> ___
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-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/users@ovirt.org/message/LUZX6W6KWRZWHDRDJPH6PIEGRVNAGVED/
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-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/users@ovirt.org/message/RMQL7YGTBFQVMBTW574KGHPPQPHEMWXO/


[ovirt-users] Re: vdsClient in oVirt 4.3

2019-04-03 Thread nicolas

Hi Benny,

Thanks for the help.

Could you please tell me what job_uuid and vol_gen should be replaced 
by? Should I just put any UUID for the job?


Thanks.

El 2019-04-03 09:52, Benny Zlotnik escribió:

it should be something like this:
  $ cat update.json
  {
  "job_id":"",
  "vol_info": {
  "sd_id": "",
  "img_id": "",
  "vol_id": "",
  "generation": ""
  },
  "legality": "LEGAL"
  }
  }

  $ vdsm-client SDM update_volume -f update.json

On Wed, Apr 3, 2019 at 11:48 AM  wrote:


Hi,

In oVirt 4.1 we used this command to set a volume as LEGAL:

 vdsClient -s  setVolumeLegality sdUUID spUUID imgUUID 
leafUUID

LEGAL

What would be the equivalent to this command using vdsm-client in 
oVirt

4.3?

Thanks.
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-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/users@ovirt.org/message/T7QYVJMDWNRUOKLOZGEA7QPDBKLX4TO2/

___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-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/users@ovirt.org/message/LUZX6W6KWRZWHDRDJPH6PIEGRVNAGVED/


[ovirt-users] Re: vdsClient in oVirt 4.3

2019-04-03 Thread Benny Zlotnik
it should be something like this:
  $ cat update.json
  {
  "job_id":"",
  "vol_info": {
  "sd_id": "",
  "img_id": "",
  "vol_id": "",
  "generation": ""
  },
  "legality": "LEGAL"
  }
  }

  $ vdsm-client SDM update_volume -f update.json

On Wed, Apr 3, 2019 at 11:48 AM  wrote:
>
> Hi,
>
> In oVirt 4.1 we used this command to set a volume as LEGAL:
>
>  vdsClient -s  setVolumeLegality sdUUID spUUID imgUUID leafUUID
> LEGAL
>
> What would be the equivalent to this command using vdsm-client in oVirt
> 4.3?
>
> Thanks.
> ___
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-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/users@ovirt.org/message/T7QYVJMDWNRUOKLOZGEA7QPDBKLX4TO2/
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-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/users@ovirt.org/message/NC3XKZRGM5NNO5BFKTIKZUYHTUVGLQR4/