
Hi, In oVirt 4.1 we used this command to set a volume as LEGAL: vdsClient -s <host> setVolumeLegality sdUUID spUUID imgUUID leafUUID LEGAL What would be the equivalent to this command using vdsm-client in oVirt 4.3? Thanks.

it should be something like this: $ cat update.json { "job_id":"<job_uuid>", "vol_info": { "sd_id": "<sd_id>", "img_id": "<img_id>", "vol_id": "<vol_id>", "generation": "<vol_gen>" }, "legality": "LEGAL" } } $ vdsm-client SDM update_volume -f update.json On Wed, Apr 3, 2019 at 11:48 AM <nicolas@devels.es> wrote:
Hi,
In oVirt 4.1 we used this command to set a volume as LEGAL:
vdsClient -s <host> 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-leave@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/T7QYVJMDWNRUOK...

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":"<job_uuid>", "vol_info": { "sd_id": "<sd_id>", "img_id": "<img_id>", "vol_id": "<vol_id>", "generation": "<vol_gen>" }, "legality": "LEGAL" } }
$ vdsm-client SDM update_volume -f update.json
On Wed, Apr 3, 2019 at 11:48 AM <nicolas@devels.es> wrote:
Hi,
In oVirt 4.1 we used this command to set a volume as LEGAL:
vdsClient -s <host> 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-leave@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/T7QYVJMDWNRUOK...

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 <nicolas@devels.es> 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":"<job_uuid>", "vol_info": { "sd_id": "<sd_id>", "img_id": "<img_id>", "vol_id": "<vol_id>", "generation": "<vol_gen>" }, "legality": "LEGAL" } }
$ vdsm-client SDM update_volume -f update.json
On Wed, Apr 3, 2019 at 11:48 AM <nicolas@devels.es> wrote:
Hi,
In oVirt 4.1 we used this command to set a volume as LEGAL:
vdsClient -s <host> 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-leave@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/T7QYVJMDWNRUOK...
Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@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/LUZX6W6KWRZWHD...

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 <nicolas@devels.es> 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":"<job_uuid>", "vol_info": { "sd_id": "<sd_id>", "img_id": "<img_id>", "vol_id": "<vol_id>", "generation": "<vol_gen>" }, "legality": "LEGAL" } }
$ vdsm-client SDM update_volume -f update.json
On Wed, Apr 3, 2019 at 11:48 AM <nicolas@devels.es> wrote:
Hi,
In oVirt 4.1 we used this command to set a volume as LEGAL:
vdsClient -s <host> 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-leave@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/T7QYVJMDWNRUOK...
Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@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/LUZX6W6KWRZWHD...

please note setLegality has been deprecated since 4.1 On Wed, Apr 3, 2019 at 1:45 PM <nicolas@devels.es> 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 <nicolas@devels.es> 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":"<job_uuid>", "vol_info": { "sd_id": "<sd_id>", "img_id": "<img_id>", "vol_id": "<vol_id>", "generation": "<vol_gen>" }, "legality": "LEGAL" } }
$ vdsm-client SDM update_volume -f update.json
On Wed, Apr 3, 2019 at 11:48 AM <nicolas@devels.es> wrote:
Hi,
In oVirt 4.1 we used this command to set a volume as LEGAL:
vdsClient -s <host> 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-leave@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/T7QYVJMDWNRUOK...
Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@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/LUZX6W6KWRZWHD...

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 <nicolas@devels.es> 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":"<job_uuid>", "vol_info": { "sd_id": "<sd_id>", "img_id": "<img_id>", "vol_id": "<vol_id>", "generation": "<vol_gen>" }, "legality": "LEGAL" } }
$ vdsm-client SDM update_volume -f update.json
On Wed, Apr 3, 2019 at 11:48 AM <nicolas@devels.es> wrote:
Hi,
In oVirt 4.1 we used this command to set a volume as LEGAL:
vdsClient -s <host> 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-leave@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/T7QYVJMDWNRUOK...
participants (3)
-
Benny Zlotnik
-
Liran Rotenberg
-
nicolas@devels.es