[ovirt-users] User permission error in add new disk using API

Juan Hernández jhernand at redhat.com
Thu Mar 31 13:38:59 UTC 2016


On 03/31/2016 07:00 AM, Vishal Panchal wrote:
> I send the following request:
> 
> {"name":"vishaltestdisk","storage_domains":{"storage_domain":[{"name":"s1eu"}]},"provisioned_size":"512000000","size":"512000000","interface":"virtio","format":"cow","sparse":true,"bootable":true}
> 

That request is syntactically correct. But as explained by Ondra
Machacek there is a bug that makes this fail:

  assign DiskProfileUser role to Everyone group to newly added
storagedomain's profile
  https://bugzilla.redhat.com/1209505

That can affect you if you are trying to perform this operation with an
user that doesn't have the permission. Are you? Or are you using the
adminstrator?

Ondra, do you know if there is a workaround for this? Can the permission
be added manually? How?

> 
> 
> On Wed, Mar 30, 2016 at 8:04 PM, Juan Hernández <jhernand at redhat.com
> <mailto:jhernand at redhat.com>> wrote:
> 
>     On 03/30/2016 01:31 PM, Vishal Panchal wrote:
>     > Hello,
>     >
>     > I got following error during add new disk using API but on other side
>     > from admin panel I can create new disk.
>     >
>     > *Error :*
>     > Cannot add Virtual Machine Disk. The user doesn't have permissions to
>     > attach Disk Profile to the Disk.*
>     > *
> 
>     What version of the engine? How are you creating the disk? Can you share
>     the request that you are sending to the server?
> 

-- 
Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta
3ºD, 28016 Madrid, Spain
Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.



More information about the Users mailing list