Forum Discussion
General Rollback Question
I have a general question about the proper way to rollback incomplete API calls. I have written code that performs the following series of API calls:
* Create virtual server
* Create empty pool
* Create rule for the pool
* Add the rule to the virtual server
* Create a monitor association for the pool
* Create a persistence profile for the new pool
* Add the persisten profile to the virtual server
I would like to know what is the standard way to undo the actions that completed should one in the list further down the list fail?
Regards,
Mark
- hoolio
Cirrostratus
Hi Mark, - MarkM_63051
Nimbostratus
I think I'm using BIGIP-10.1.0.3341.0. I've been looking through the GUI but can't find version information. Where can I find version information? - MarkM_63051
Nimbostratus
I just found the BIGIP version on the dashboard page and I am using 10.1.0. I have also downloaded iControl 11 and will give it a whirl. Thank you very much for the URL link. - hoolio
Cirrostratus
Unfortunately, the API doesn't provide the functionality--it's just giving you the hooks to use the functionality in the LTM software. So you'd need to upgrade LTM to 11.x to use iControl transactions. If this is the only reason you have for upgrading to 11.x, I'd suggest waiting to upgrade. - MarkM_63051
Nimbostratus
Where can I get the LTM 11.1 download? I have a real license to use, but I did not want to use it on an LTM until I was sure that I wouldn't need to move it. For the past 2 months I have been using a trial license which is ok for what I am developing. When I go to the F5 web site I can only find the 10.1 version to download. - hoolio
Cirrostratus
You can download the 11.1 release code here: - MarkM_63051
Nimbostratus
Why did you recommend to wait to upgrade? Is it due to the cost of upgrading? I'm afraid that I am a developer and do not know F5's pricing strategy. - hoolio
Cirrostratus
There is no cost for upgrading. You just need to have had an active support contract on the unit when the version you want to install was released: - MarkM_63051
Nimbostratus
I have built a new VM with LTM 11.1 and added session transaction code. Problems: - MarkM_63051
Nimbostratus
I am running into a problem when I add the start/submit transaction code. Without these lines my code executes to completion. When I add these lines back, I get an error stating that the profile cannot be deleted because it is still attached to a virtual server. Has anyone else had problems with transaction ordering?
Code:
// Get the system session binding stub and start transaction management (F5 LTM versions 11.0 and up)
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com