From P.Staniforth at leedsbeckett.ac.uk Mon Sep 12 21:32:23 2016
Content-Type: multipart/mixed; boundary="===============7310311090458531056=="
MIME-Version: 1.0
From: Staniforth, Paul
To: users at ovirt.org
Subject: [ovirt-users] quota creation from ovirt-shell
Date: Mon, 12 Sep 2016 16:00:50 +0000
Message-ID: <1473696050643.53044@leedsbeckett.ac.uk>
--===============7310311090458531056==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
--_000_147369605064353044leedsbeckettacuk_
Content-Type: text/plain; charset=3D"iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hello,
I am trying to create user quotas from the command line via the =
=3D
shell.
I am using ovirt 3.6.7 and the command
add quota --parent-datacenter-name Default --name testcli
creates a quota but without quotaclusterlimit or quotastoragelimit
I can't find the correct syntax to create these.
Also how would I add a consumer and change the values when created?
Any examples or pointers to documentation would be appreciated.
Thanks,
Paul S.
To view the terms under which this email is distributed, please go to:-
http://disclaimer.leedsbeckett.ac.uk/disclaimer/disclaimer.html
--_000_147369605064353044leedsbeckettacuk_
Content-Type: text/html; charset=3D"iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hello,
I am trying to create user quot=
=3D
as from the command line via the shell.
I am using ovirt 3.6.7 and the command
add quota --parent-datacenter-name Default --name testcli
creates a quota but without quotaclusterlimit or quotastoragelimit
I can't find the correct syntax to create these.
Also how would I add a consumer and change the values when created?
Any examples or pointers to documentation would be appreciated.
Thanks,
Paul S.
To view the terms under which this email is distributed, please go to:-
http://disclaimer.leedsbeckett.ac.uk/disclaimer/discla=
im=3D
er.html
--_000_147369605064353044leedsbeckettacuk_--
--===============7310311090458531056==
Content-Type: multipart/alternative
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="attachment.bin"
LS1fMDAwXzE0NzM2OTYwNTA2NDM1MzA0NGxlZWRzYmVja2V0dGFjdWtfCkNvbnRlbnQtVHlwZTog
dGV4dC9wbGFpbjsgY2hhcnN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N5bnRheCB0byBjcmVhdGUgdGhlc2Uu
IDwvcD4KPHA+PGJyPgo8L3A+CjxwPkFsc28gaG93IHdvdWxkIEkgYWRkIGEgY29uc3VtZXIgYW5k
IGNoYW5nZSB0aGUgdmFsdWVzIHdoZW4gY3JlYXRlZD88L3A+CjxwPjxicj4KPC9wPgo8cD5Bbnkg
ZXhhbXBsZXMgb3IgcG9pbnRlcnMgdG8gZG9jdW1lbnRhdGlvbiB3b3VsZCBiZSBhcHByZWNpYXRl
ZC48L3A+CjxwPjxicj4KPC9wPgo8cD5UaGFua3MsPC9wPgo8cD4mbmJzcDsgJm5ic3A7ICZuYnNw
OyAmbmJzcDsgJm5ic3A7ICZuYnNwOyAmbmJzcDsgUGF1bCBTLjxicj4KPC9wPgpUbyB2aWV3IHRo
ZSB0ZXJtcyB1bmRlciB3aGljaCB0aGlzIGVtYWlsIGlzIGRpc3RyaWJ1dGVkLCBwbGVhc2UgZ28g
dG86LSA8YnI9Cj4KPGEgaHJlZj0zRCJodHRwOi8vZGlzY2xhaW1lci5sZWVkc2JlY2tldHQuYWMu
dWsvZGlzY2xhaW1lci9kaXNjbGFpbWVyLmh0bWwiPQogdGFyZ2V0PTNEIl9ibGFuayI+aHR0cDov
L2Rpc2NsYWltZXIubGVlZHNiZWNrZXR0LmFjLnVrL2Rpc2NsYWltZXIvZGlzY2xhaW09CmVyLmh0
bWw8L2E+CjxwPjwvcD4KPC9ib2R5Pgo8L2h0bWw+CgotLV8wMDBfMTQ3MzY5NjA1MDY0MzUzMDQ0
bGVlZHNiZWNrZXR0YWN1a18tLQo=
--===============7310311090458531056==--
From akrejcir at redhat.com Tue Sep 20 05:44:29 2016
Content-Type: multipart/mixed; boundary="===============6874601181618544392=="
MIME-Version: 1.0
From: Andrej Krejcir
To: users at ovirt.org
Subject: Re: [ovirt-users] quota creation from ovirt-shell
Date: Tue, 20 Sep 2016 05:44:23 -0400
Message-ID: <1275660577.1004600.1474364663742.JavaMail.zimbra@redhat.com>
In-Reply-To: 1473696050643.53044@leedsbeckett.ac.uk
--===============6874601181618544392==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Hi,
there is a bug in the ovirt-cli, which makes creating quotaclusterlimit and=
quotastoragelimit impossible.
The correct syntax would be: =
add quotastoragelimit --parent-datacenter-name Default --parent-quota-name =
testcli ...
You could use a python script with the SDK instead.
For example:
from ovirtsdk.api import API
from ovirtsdk.xml.params import Quota
from ovirtsdk.xml.params import QuotaStorageLimit
api =3D API('IP:PORT/ovirt-engine/api', 'admin(a)internal', 'pass')
dc =3D api.datacenters.list()[0]
quota =3D dc.quotas.add(Quota(name=3D"quota1"))
quota.quotastoragelimits.add(QuotaStorageLimit(limit=3D100))
Regards,
Andrej
----- Original Message -----
From: "Paul Staniforth"
To: users(a)ovirt.org
Sent: Monday, September 12, 2016 6:00:50 PM
Subject: [ovirt-users] quota creation from ovirt-shell
Hello, =
I am trying to create user quotas from the command line via the shell. =
I am using ovirt 3.6.7 and the command =
add quota --parent-datacenter-name Default --name testcli =
creates a quota but without quotaclusterlimit or quotastoragelimit =
I can't find the correct syntax to create these. =
Also how would I add a consumer and change the values when created? =
Any examples or pointers to documentation would be appreciated. =
Thanks, =
Paul S. =
To view the terms under which this email is distributed, please go to:- =
http://disclaimer.leedsbeckett.ac.uk/disclaimer/disclaimer.html =
_______________________________________________
Users mailing list
Users(a)ovirt.org
http://lists.ovirt.org/mailman/listinfo/users
--===============6874601181618544392==--
From P.Staniforth at leedsbeckett.ac.uk Tue Sep 20 10:34:08 2016
Content-Type: multipart/mixed; boundary="===============5081926865616392985=="
MIME-Version: 1.0
From: Staniforth, Paul
To: users at ovirt.org
Subject: Re: [ovirt-users] quota creation from ovirt-shell
Date: Tue, 20 Sep 2016 11:00:23 +0000
Message-ID: <1474369223977.83795@leedsbeckett.ac.uk>
In-Reply-To: 1275660577.1004600.1474364663742.JavaMail.zimbra@redhat.com
--===============5081926865616392985==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Thanks Andrej,
it gives me another reason to learn python.=
I will try but things are a little hectic at the moment as it's induction =
week at our University.
Regards,
Paul S.
________________________________________
From: Andrej Krejcir
Sent: 20 September 2016 10:44
To: Staniforth, Paul
Cc: users(a)ovirt.org
Subject: Re: [ovirt-users] quota creation from ovirt-shell
Hi,
there is a bug in the ovirt-cli, which makes creating quotaclusterlimit and=
quotastoragelimit impossible.
The correct syntax would be:
add quotastoragelimit --parent-datacenter-name Default --parent-quota-name =
testcli ...
You could use a python script with the SDK instead.
For example:
from ovirtsdk.api import API
from ovirtsdk.xml.params import Quota
from ovirtsdk.xml.params import QuotaStorageLimit
api =3D API('IP:PORT/ovirt-engine/api', 'admin(a)internal', 'pass')
dc =3D api.datacenters.list()[0]
quota =3D dc.quotas.add(Quota(name=3D"quota1"))
quota.quotastoragelimits.add(QuotaStorageLimit(limit=3D100))
Regards,
Andrej
----- Original Message -----
From: "Paul Staniforth"
To: users(a)ovirt.org
Sent: Monday, September 12, 2016 6:00:50 PM
Subject: [ovirt-users] quota creation from ovirt-shell
Hello,
I am trying to create user quotas from the command line via the shell.
I am using ovirt 3.6.7 and the command
add quota --parent-datacenter-name Default --name testcli
creates a quota but without quotaclusterlimit or quotastoragelimit
I can't find the correct syntax to create these.
Also how would I add a consumer and change the values when created?
Any examples or pointers to documentation would be appreciated.
Thanks,
Paul S.
To view the terms under which this email is distributed, please go to:-
http://disclaimer.leedsbeckett.ac.uk/disclaimer/disclaimer.html
_______________________________________________
Users mailing list
Users(a)ovirt.org
http://lists.ovirt.org/mailman/listinfo/users
To view the terms under which this email is distributed, please go to:-
http://disclaimer.leedsbeckett.ac.uk/disclaimer/disclaimer.html
--===============5081926865616392985==--
From dfediuck at redhat.com Sun Sep 25 02:30:51 2016
Content-Type: multipart/mixed; boundary="===============4745422820152875410=="
MIME-Version: 1.0
From: Doron Fediuck
To: users at ovirt.org
Subject: Re: [ovirt-users] quota creation from ovirt-shell
Date: Sun, 25 Sep 2016 09:30:30 +0300
Message-ID:
In-Reply-To: 1474369223977.83795@leedsbeckett.ac.uk
--===============4745422820152875410==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
On Tue, Sep 20, 2016 at 2:00 PM, Staniforth, Paul <
P.Staniforth(a)leedsbeckett.ac.uk> wrote:
> Thanks Andrej,
> it gives me another reason to learn
> python. I will try but things are a little hectic at the moment as it's
> induction week at our University.
>
Paul. you can also use Java or Ruby instead of Python.
>
> Regards,
> Paul S.
> ________________________________________
> From: Andrej Krejcir
> Sent: 20 September 2016 10:44
> To: Staniforth, Paul
> Cc: users(a)ovirt.org
> Subject: Re: [ovirt-users] quota creation from ovirt-shell
>
> Hi,
>
> there is a bug in the ovirt-cli, which makes creating quotaclusterlimit
> and quotastoragelimit impossible.
>
> The correct syntax would be:
> add quotastoragelimit --parent-datacenter-name Default --parent-quota-name
> testcli ...
>
> You could use a python script with the SDK instead.
> For example:
>
>
> from ovirtsdk.api import API
> from ovirtsdk.xml.params import Quota
> from ovirtsdk.xml.params import QuotaStorageLimit
>
> api =3D API('IP:PORT/ovirt-engine/api', 'admin(a)internal', 'pass')
> dc =3D api.datacenters.list()[0]
> quota =3D dc.quotas.add(Quota(name=3D"quota1"))
> quota.quotastoragelimits.add(QuotaStorageLimit(limit=3D100))
>
>
>
> Regards,
> Andrej
>
> ----- Original Message -----
> From: "Paul Staniforth"
> To: users(a)ovirt.org
> Sent: Monday, September 12, 2016 6:00:50 PM
> Subject: [ovirt-users] quota creation from ovirt-shell
>
>
>
> Hello,
>
> I am trying to create user quotas from the command line via the shell.
>
>
>
>
> I am using ovirt 3.6.7 and the command
>
>
>
>
> add quota --parent-datacenter-name Default --name testcli
>
>
>
>
> creates a quota but without quotaclusterlimit or quotastoragelimit
>
>
>
>
> I can't find the correct syntax to create these.
>
>
>
>
> Also how would I add a consumer and change the values when created?
>
>
>
>
> Any examples or pointers to documentation would be appreciated.
>
>
>
>
> Thanks,
>
> Paul S.
> To view the terms under which this email is distributed, please go to:-
> http://disclaimer.leedsbeckett.ac.uk/disclaimer/disclaimer.html
>
>
>
> _______________________________________________
> Users mailing list
> Users(a)ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
> To view the terms under which this email is distributed, please go to:-
> http://disclaimer.leedsbeckett.ac.uk/disclaimer/disclaimer.html
> _______________________________________________
> Users mailing list
> Users(a)ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
--===============4745422820152875410==
Content-Type: text/html
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="attachment.html"
PGRpdiBkaXI9Imx0ciI+PGJyPjxkaXYgY2xhc3M9ImdtYWlsX2V4dHJhIj48YnI+PGRpdiBjbGFz
cz0iZ21haWxfcXVvdGUiPk9uIFR1ZSwgU2VwIDIwLCAyMDE2IGF0IDI6MDAgUE0sIFN0YW5pZm9y
dGgsIFBhdWwgPHNwYW4gZGlyPSJsdHIiPiZsdDs8YSBocmVmPSJtYWlsdG86UC5TdGFuaWZvcnRo
QGxlZWRzYmVja2V0dC5hYy51ayIgdGFyZ2V0PSJfYmxhbmsiPlAuU3Rhbmlmb3J0aEBsZWVkc2Jl
Y2tldHQuYWMudWs8L2E+Jmd0Ozwvc3Bhbj4gd3JvdGU6PGJyPjxibG9ja3F1b3RlIGNsYXNzPSJn
bWFpbF9xdW90ZSIgc3R5bGU9Im1hcmdpbjowIDAgMCAuOGV4O2JvcmRlci1sZWZ0OjFweCAjY2Nj
IHNvbGlkO3BhZGRpbmctbGVmdDoxZXgiPlRoYW5rcyBBbmRyZWosPGJyPgrCoCDCoCDCoCDCoCDC
oCDCoCDCoCDCoCDCoCDCoCDCoCDCoCDCoCDCoCDCoCDCoCBpdCBnaXZlcyBtZSBhbm90aGVyIHJl
YXNvbiB0byBsZWFybiBweXRob24uIEkgd2lsbCB0cnkgYnV0IHRoaW5ncyBhcmUgYSBsaXR0bGUg
aGVjdGljIGF0IHRoZ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dHQuYWMudWsvZGlzY2xhaW1lci9kaXNjbGFpbWVyLmh0bWwiIHJlbD0ibm9yZWZlcnJlciIgdGFy
Z2V0PSJfYmxhbmsiPmh0dHA6Ly9kaXNjbGFpbWVyLjx3YnI+bGVlZHNiZWNrZXR0LmFjLnVrL2Rp
c2NsYWltZXIvPHdicj5kaXNjbGFpbWVyLmh0bWw8L2E+PGJyPgpfX19fX19fX19fX19fX19fX19f
X19fX19fX19fX188d2JyPl9fX19fX19fX19fX19fX19fPGJyPgpVc2VycyBtYWlsaW5nIGxpc3Q8
YnI+CjxhIGhyZWY9Im1haWx0bzpVc2Vyc0BvdmlydC5vcmciPlVzZXJzQG92aXJ0Lm9yZzwvYT48
YnI+CjxhIGhyZWY9Imh0dHA6Ly9saXN0cy5vdmlydC5vcmcvbWFpbG1hbi9saXN0aW5mby91c2Vy
cyIgcmVsPSJub3JlZmVycmVyIiB0YXJnZXQ9Il9ibGFuayI+aHR0cDovL2xpc3RzLm92aXJ0Lm9y
Zy88d2JyPm1haWxtYW4vbGlzdGluZm8vdXNlcnM8L2E+PGJyPgo8L2Rpdj48L2Rpdj48L2Jsb2Nr
cXVvdGU+PC9kaXY+PGJyPjwvZGl2PjwvZGl2Pgo=
--===============4745422820152875410==--
From P.Staniforth at leedsbeckett.ac.uk Sun Sep 25 10:05:52 2016
Content-Type: multipart/mixed; boundary="===============0459271866235848917=="
MIME-Version: 1.0
From: Staniforth, Paul
To: users at ovirt.org
Subject: Re: [ovirt-users] quota creation from ovirt-shell
Date: Sun, 25 Sep 2016 12:32:36 +0000
Message-ID: <1474806757332.88260@leedsbeckett.ac.uk>
In-Reply-To: CAJ6ag55o6-0mEouVWSinsJTdeiW9_t_fSaPk1RjTWreva445LA@mail.gmail.com
--===============0459271866235848917==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Thanks, I've got it to work in python, just need to work out how to change/=
update them now.
I'm in just get the job done mode at present so it's not the most elegant c=
ode.
Paul S.
________________________________________
From: Doron Fediuck [dfediuck(a)redhat.com]
Sent: 25 September 2016 07:30
To: Staniforth, Paul
Cc: Andrej Krejcir; users(a)ovirt.org
Subject: Re: [ovirt-users] quota creation from ovirt-shell
On Tue, Sep 20, 2016 at 2:00 PM, Staniforth, Paul > wrote:
Thanks Andrej,
it gives me another reason to learn python.=
I will try but things are a little hectic at the moment as it's induction =
week at our University.
Paul. you can also use Java or Ruby instead of Python.
Regards,
Paul S.
________________________________________
From: Andrej Krejcir >
Sent: 20 September 2016 10:44
To: Staniforth, Paul
Cc: users(a)ovirt.org
Subject: Re: [ovirt-users] quota creation from ovirt-shell
Hi,
there is a bug in the ovirt-cli, which makes creating quotaclusterlimit and=
quotastoragelimit impossible.
The correct syntax would be:
add quotastoragelimit --parent-datacenter-name Default --parent-quota-name =
testcli ...
You could use a python script with the SDK instead.
For example:
from ovirtsdk.api import API
from ovirtsdk.xml.params import Quota
from ovirtsdk.xml.params import QuotaStorageLimit
api =3D API('IP:PORT/ovirt-engine/api', 'admin(a)internal', 'pass')
dc =3D api.datacenters.list()[0]
quota =3D dc.quotas.add(Quota(name=3D"quota1"))
quota.quotastoragelimits.add(QuotaStorageLimit(limit=3D100))
Regards,
Andrej
----- Original Message -----
From: "Paul Staniforth" >
To: users(a)ovirt.org
Sent: Monday, September 12, 2016 6:00:50 PM
Subject: [ovirt-users] quota creation from ovirt-shell
Hello,
I am trying to create user quotas from the command line via the shell.
I am using ovirt 3.6.7 and the command
add quota --parent-datacenter-name Default --name testcli
creates a quota but without quotaclusterlimit or quotastoragelimit
I can't find the correct syntax to create these.
Also how would I add a consumer and change the values when created?
Any examples or pointers to documentation would be appreciated.
Thanks,
Paul S.
To view the terms under which this email is distributed, please go to:-
http://disclaimer.leedsbeckett.ac.uk/disclaimer/disclaimer.html
_______________________________________________
Users mailing list
Users(a)ovirt.org
http://lists.ovirt.org/mailman/listinfo/users
To view the terms under which this email is distributed, please go to:-
http://disclaimer.leedsbeckett.ac.uk/disclaimer/disclaimer.html
_______________________________________________
Users mailing list
Users(a)ovirt.org
http://lists.ovirt.org/mailman/listinfo/users
To view the terms under which this email is distributed, please go to:-
http://disclaimer.leedsbeckett.ac.uk/disclaimer/disclaimer.html
--===============0459271866235848917==--