cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1161
Views
5
Helpful
1
Replies

How to get allocation resource synchronously

kuiliu
Cisco Employee
Cisco Employee

The standard resource allocation package is asynchronously by reactive fast map, if committing a service which has several resource to allocation within CREATE method, it returns back immediately without knowing if configuration is correctly pushed to devices. I'm wondering if there is a way to allocate resource synchronously, the committing could returns correctly status of the service.

1 Reply 1

u.avsec
Spotlight
Spotlight

Necrobumping this thread.

Resource manager version 4.0 allows synchronous allocations.

Or at least I think it does. The code for the feature is not documented at all (and kinda messy too in case of Python) and pdf documentation just writes about it from a high level.

The thing that I can't figure out yet is if it actually works only on pre-existing pools or not. For now it seems that if I'm both creating a pool and allocating from it in the same transaction, the only result will be:

"response error com.tailf.pkg.resourcemanager.ResourceErrorException: Unable to get pool."

Anyone knows how to deal with this to retain dry-run and stuff working?