VMware Cloud Community
VirExprt
Expert
Expert

vCAC5.2: Allocate reservation operation failed. Error: Unable to allocate storage request for data stores

Hello,

I am getting error on request form at Self Service Portal which says

  • Error requesting machine. Allocate reservation operation failed. No reservation available to allocate storage.

complete stack is as follow for the error

at System.Data.Services.ErrorHandler.HandleTargetInvocationException(TargetInvocationException exception) at System.Data.Services.RequestUriProcessor.CreateFirstSegment(IDataService service, String identifier, Boolean checkRights, String queryPortion, Boolean isLastSegment, Boolean& crossReferencingUrl) at System.Data.Services.RequestUriProcessor.CreateSegments(String[] segments, IDataService service) at System.Data.Services.RequestUriProcessor.ProcessRequestUri(Uri absoluteRequestUri, IDataService service) at System.Data.Services.DataService`1.HandleRequest() Inner Exception: at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Data.Services.Providers.BaseServiceProvider.InvokeServiceOperation(ServiceOperation serviceOperation, Object[] parameters) at System.Data.Services.RequestUriProcessor.CreateFirstSegment(IDataService service, String identifier, Boolean checkRights, String queryPortion, Boolean isLastSegment, Boolean& crossReferencingUrl)

check Repository logs found

[Error]: System.Data.Services.DataServiceException: Error requesting machine. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Data.Services.DataServiceException: Error requesting machine. ---> System.ApplicationException: Allocate reservation operation failed. No reservation available to allocate storage.

   at DynamicOps.ManagementModel.Services.AllocateReservationService.ThrowUnableToAllocateException(AllocateMachineRequest request, String errorMessage, String specificErrorMessage)

   at DynamicOps.ManagementModel.Services.AllocateReservationService.GetAvailableReservations(AllocateMachineRequest request)

   at DynamicOps.ManagementModel.Services.AllocateReservationService.AllocateReservationByType(AllocateMachineRequest request)

   at DynamicOps.ManagementModel.Services.AllocateReservationService.<>c__DisplayClass2.<AllocateReservationsWithRetry>b__1()

   at DynamicOps.Common.RetryTransactionException.RetryIfNecessary(Action action)

   at DynamicOps.ManagementModel.Services.AllocateReservationService.AllocateReservationsWithRetry(AllocateRequest request)

   at DynamicOps.ManagementModel.Services.ProvisionMachineService.AllocateMachine(VirtualMachineTemplate template, ProvisioningGroup group, String owner, List`1 properties, Boolean isComponent, Boolean applyExpiresOverride, Nullable`1 expiresOverride)

   at DynamicOps.ManagementModel.Services.ProvisionMachineService.SubmitMachineRequest(MachineRequest request)

   --- End of inner exception stack trace ---

   at DynamicOps.ManagementModel.Services.ProvisionMachineService.SubmitMachineRequest(MachineRequest request)

   at DynamicOps.ManagementModel.ManagementModelOperations.<SubmitVirtualMachineRequest>b__c(MachineRequest r, ManagementModelEntities d)

   at DynamicOps.Common.Entity.OperationInvoke`1.Execute[TRequest](Func`3 operation)

   --- End of inner exception stack trace ---

   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)

   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)

   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

   at System.Data.Services.Providers.BaseServiceProvider.InvokeServiceOperation(ServiceOperation serviceOperation, Object[] parameters)

   at System.Data.Services.RequestUriProcessor.CreateFirstSegment(IDataService service, String identifier, Boolean checkRights, String queryPortion, Boolean isLastSegment, Boolean& crossReferencingUrl)

   --- End of inner exception stack trace ---

   at System.Data.Services.ErrorHandler.HandleTargetInvocationException(TargetInvocationException exception)

   at System.Data.Services.RequestUriProcessor.CreateFirstSegment(IDataService service, String identifier, Boolean checkRights, String queryPortion, Boolean isLastSegment, Boolean& crossReferencingUrl)

   at System.Data.Services.RequestUriProcessor.CreateSegments(String[] segments, IDataService service)

   at System.Data.Services.RequestUriProcessor.ProcessRequestUri(Uri absoluteRequestUri, IDataService service)

   at System.Data.Services.DataService`1.HandleRequest()

INNER EXCEPTION: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Data.Services.DataServiceException: Error requesting machine. ---> System.ApplicationException: Allocate reservation operation failed. No reservation available to allocate storage.

   at DynamicOps.ManagementModel.Services.AllocateReservationService.ThrowUnableToAllocateException(AllocateMachineRequest request, String errorMessage, String specificErrorMessage)

   at DynamicOps.ManagementModel.Services.AllocateReservationService.GetAvailableReservations(AllocateMachineRequest request)

   at DynamicOps.ManagementModel.Services.AllocateReservationService.AllocateReservationByType(AllocateMachineRequest request)

   at DynamicOps.ManagementModel.Services.AllocateReservationService.<>c__DisplayClass2.<AllocateReservationsWithRetry>b__1()

   at DynamicOps.Common.RetryTransactionException.RetryIfNecessary(Action action)

   at DynamicOps.ManagementModel.Services.AllocateReservationService.AllocateReservationsWithRetry(AllocateRequest request)

   at DynamicOps.ManagementModel.Services.ProvisionMachineService.AllocateMachine(VirtualMachineTemplate template, ProvisioningGroup group, String owner, List`1 properties, Boolean isComponent, Boolean applyExpiresOverride, Nullable`1 expiresOverride)

   at DynamicOps.ManagementModel.Services.ProvisionMachineService.SubmitMachineRequest(MachineRequest request)

   --- End of inner exception stack trace ---

   at DynamicOps.ManagementModel.Services.ProvisionMachineService.SubmitMachineRequest(MachineRequest request)

   at DynamicOps.ManagementModel.ManagementModelOperations.<SubmitVirtualMachineRequest>b__c(MachineRequest r, ManagementModelEntities d)

   at DynamicOps.Common.Entity.OperationInvoke`1.Execute[TRequest](Func`3 operation)

   --- End of inner exception stack trace ---

   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)

   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)

   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

   at System.Data.Services.Providers.BaseServiceProvider.InvokeServiceOperation(ServiceOperation serviceOperation, Object[] parameters)

   at System.Data.Services.RequestUriProcessor.CreateFirstSegment(IDataService service, String identifier, Boolean checkRights, String queryPortion, Boolean isLastSegment, Boolean& crossReferencingUrl)

It looks to me some issue with Storage reservation policy, as i checked for the KB article where no workaround mentioned. VMware KB: Provisioning a machine in VMware vCloud Automation Center fails with the error: Allocate ...

I do not have any Storage Reservation policy defined and assigned to any Reservation/Provisioning Group or Blueprint.

surprisingly, i can successfully provision VM from vCAC Portal but not from Self Service Portal.

Please help me with this issue if someone else also encountered .. Smiley Sad

Thanks in Advance

Br,

MG

Regards, MG
0 Kudos
2 Replies
jlharbin00
Enthusiast
Enthusiast

I was receiving this exact error and found that it was due to my user account having access to two Reservations, one of which didn't have enough space. 

0 Kudos
abhilashhb
VMware Employee
VMware Employee

This definitely looks like a space issue. If you feel its not and you have enough space to deploy VM's i suggest you check the property that's mentioned in the KB and see if its encrypted. Its not related to reservation policy. Its just a machine property.

Abhilash B
LinkedIn : https://www.linkedin.com/in/abhilashhb/

0 Kudos