07-04-2018 11:26 PM - edited 03-01-2019 04:12 AM
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.
11-30-2022 08:15 AM - edited 11-30-2022 08:16 AM
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?
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide