Creating Bricks via the REST API

Under "Compute -> Hosts -> Host Name -> Storage Devices" one can create new Gluster Bricks on free partitions. How can i do this via the REST API?

This is documented in section 6.92.2. of [1] [1] https://access.redhat.com/documentation/en-us/red_hat_virtualization/4.3/htm... On Sun, Sep 22, 2019 at 11:59 PM Julian Schill <schill-julian@gmx.de> wrote:
Under "Compute -> Hosts -> Host Name -> Storage Devices" one can create new Gluster Bricks on free partitions. How can i do this via the REST API? _______________________________________________ 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/THFM6YI6R6F4LE...

I had assumed Julian was asking how to create the bricks on the hosts whereas the API only seems to allow you to add bricks that have been created. Regards, Paul S. ________________________________ From: Amit Bawer <abawer@redhat.com> Sent: 23 September 2019 15:52 To: Julian Schill <schill-julian@gmx.de> Cc: users@ovirt.org <users@ovirt.org> Subject: [ovirt-users] Re: Creating Bricks via the REST API This is documented in section 6.92.2. of [1] [1] https://access.redhat.com/documentation/en-us/red_hat_virtualization/4.3/html/rest_api_guide/services#services-gluster_bricks-methods-add<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Faccess.redhat.com%2Fdocumentation%2Fen-us%2Fred_hat_virtualization%2F4.3%2Fhtml%2Frest_api_guide%2Fservices%23services-gluster_bricks-methods-add&data=02%7C01%7Cp.staniforth%40leedsbeckett.ac.uk%7Cfad563f08e7f48bc483c08d740362913%7Cd79a81124fbe417aa112cd0fb490d85c%7C0%7C1%7C637048473674167800&sdata=2%2BVXFJzAdp4WyvDXbmJgKIwJdTb1bDwnjyvLtEeXBJA%3D&reserved=0> On Sun, Sep 22, 2019 at 11:59 PM Julian Schill <schill-julian@gmx.de<mailto:schill-julian@gmx.de>> wrote: Under "Compute -> Hosts -> Host Name -> Storage Devices" one can create new Gluster Bricks on free partitions. How can i do this via the REST API? _______________________________________________ Users mailing list -- users@ovirt.org<mailto:users@ovirt.org> To unsubscribe send an email to users-leave@ovirt.org<mailto:users-leave@ovirt.org> Privacy Statement: https://www.ovirt.org/site/privacy-policy/<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.ovirt.org%2Fsite%2Fprivacy-policy%2F&data=02%7C01%7Cp.staniforth%40leedsbeckett.ac.uk%7Cfad563f08e7f48bc483c08d740362913%7Cd79a81124fbe417aa112cd0fb490d85c%7C0%7C1%7C637048473674167800&sdata=AiE6UcsaG%2B6hMc3bvkt3jn%2BLVs5VZo1mDBp6ibzX78o%3D&reserved=0> oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.ovirt.org%2Fcommunity%2Fabout%2Fcommunity-guidelines%2F&data=02%7C01%7Cp.staniforth%40leedsbeckett.ac.uk%7Cfad563f08e7f48bc483c08d740362913%7Cd79a81124fbe417aa112cd0fb490d85c%7C0%7C1%7C637048473674177795&sdata=EgB9LOxRXT5QKYSU%2Bm1IGY1oTaNXZNpYyz14KepV13k%3D&reserved=0> List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/THFM6YI6R6F4LE6W34SJ7REIKVYCPALL/<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.ovirt.org%2Farchives%2Flist%2Fusers%40ovirt.org%2Fmessage%2FTHFM6YI6R6F4LE6W34SJ7REIKVYCPALL%2F&data=02%7C01%7Cp.staniforth%40leedsbeckett.ac.uk%7Cfad563f08e7f48bc483c08d740362913%7Cd79a81124fbe417aa112cd0fb490d85c%7C0%7C1%7C637048473674187792&sdata=gIueY0UnRMAGOFwfFNBO%2FTRce70adx82tU54B6qIFCY%3D&reserved=0> To view the terms under which this email is distributed, please go to:- http://leedsbeckett.ac.uk/disclaimer/email/

This is documented in section 6.92.2. of [1]
[1] https://access.redhat.com/documentation/en-us/red_hat_virtualization/4.3/...
Section 6.92.2 documents a POST request that lets one add *existing* bricks to an existing volume. This doesn't answer my question on how one can create *new* bricks via the REST API.

+Sahina Bose <sabose@redhat.com> Thanks for your clarification Julian, creating new Gluster brick from ovirt's REST API is not currently supported, only from UI. On Mon, Sep 23, 2019 at 6:25 PM Julian Schill <schill-julian@gmx.de> wrote:
This is documented in section 6.92.2. of [1]
[1]
https://access.redhat.com/documentation/en-us/red_hat_virtualization/4.3/. ..
Section 6.92.2 documents a POST request that lets one add *existing* bricks to an existing volume. This doesn't answer my question on how one can create *new* bricks via the REST API. _______________________________________________ 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/QMPFTXA2WX3JMB...

On Mon, Sep 23, 2019 at 9:08 PM Amit Bawer <abawer@redhat.com> wrote:
+Sahina Bose <sabose@redhat.com> Thanks for your clarification Julian, creating new Gluster brick from ovirt's REST API is not currently supported, only from UI.
That's right. We do have a bug tracking this - https://bugzilla.redhat.com/show_bug.cgi?id=1601336
On Mon, Sep 23, 2019 at 6:25 PM Julian Schill <schill-julian@gmx.de> wrote:
This is documented in section 6.92.2. of [1]
[1]
https://access.redhat.com/documentation/en-us/red_hat_virtualization/4.3/. ..
Section 6.92.2 documents a POST request that lets one add *existing* bricks to an existing volume. This doesn't answer my question on how one can create *new* bricks via the REST API. _______________________________________________ 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/QMPFTXA2WX3JMB...
participants (4)
-
Amit Bawer
-
Julian Schill
-
Sahina Bose
-
Staniforth, Paul