Forum Discussion
Problems with REST API and asynchronus ucs creation
Maybe you're running into this bug: https://cdn.f5.com/product/bugtracker/ID797721.html
- BrianWebAug 16, 2023Altostratus
Thank you for that, I had come across it before but didn't think it fit since my version isn't listed as an affected version, I'm running 16.1.3.3.
I do see TimeoutExceptions all over the restjavad.x.log, for everything I try to do. The POST to create the task, which is successful, the PUT, and the GET to check the status. So it seems that either the system is able to recover from that status sometimes, or sometimes it's just a meaningless message.
The bug lists icrd being busy as a requisite, but this is on 2 different pairs of lab devices. The ones I tested this morning are idle, like.. 0 connections for the last few days idle, and I am the only person sending any kind of API requests to them.
The bug also has no resolution, do you happen to know of any fix? We're currently generating ucs archives and downloading via central bash scripts that I'm seeing occasional issues with, and I'd like to move to using the API.
- PauliusAug 16, 2023MVP
BrianWeb If this keeps erroring you might use the following article instead which should allow you to automate the UCS creation as well as copying it off using SFTP.
https://community.f5.com/t5/codeshare/f5-iapp-automated-backup/ta-p/288311
- BrianWebAug 16, 2023Altostratus
Thank you for that suggestion,
This is not a direction I can go at this time. I need to be able to initiate from and pull to a central location for hundreds of devices. Installing and maintaining an iapp on each device is not sustainable for us right now.
- JRahmAug 16, 2023Admin
can you generate the UCS via iControl REST synchronously without the task? If so, I'd suggest opening a case to inquire.
- BrianWebAug 16, 2023Altostratus
Tried a non task ucs save, and it also failed after sitting a while waiting on a response. Looks like support is my only hope.
❯ curl -k -u apiadmin:<redacted> -H "Content-Type: \
application/json" -X POST -d \
'{
"command": "save",
"name": "myUcs"
}' \https://192.168.240.15/mgmt/tm/sys/ucs
{"code":400,"message":"remoteSender:192.168.17.87, method:POST ","referer":"192.168.17.87","restOperationId":16040255,"kind":":resterrorresponse"}%I can see it started, but didn't make it as far as the task request did. It didn't get zipped up
im.16590 # ls -la
total 376
drwxr-xr-x. 2 root root 4096 Aug 16 14:03 .
drwxrwxrwt. 24 root root 12288 Aug 16 14:03 ..
-rw-r--r--. 1 root root 90907 Aug 16 14:03 Files
-rw-r--r--. 1 root root 175954 Aug 16 14:03 SPEC-Files
-rw-r--r--. 1 root root 95809 Aug 16 14:03 SPEC-ManifestTried it from tmsh, just in case something was majorly broken :
(cfg-sync In Sync)(Active)(/Common)(tmos)# save sys ucs test_tmsh
Saving active configuration...
/var/local/ucs/test_tmsh.ucs is saved.# ls -lah /var/local/ucs
total 438M
drwxr-xr-x. 3 root root 4.0K Aug 16 14:08 .
drwxr-xr-x. 9 root root 4.0K May 4 13:31 ..
-r--r--r--. 1 root root 176 Dec 22 2022 cs_backup_rotate.conf
-rw-r--r--. 1 root webusers 438M Aug 16 14:07 test_tmsh.ucs
drwxr-xr-x. 2 root root 4.0K May 4 13:57 tmpSeeing the same TimeoutException errors from the non-task request as well
[WARNING][750][16 Aug 2023 19:03:53 UTC][8100/mgmt ForwarderPassThroughWorker] URI:http://localhost:8100/mgmt/tm/sys/ucs, Referrer:<redacted>, Method:POST, Exception:java.util.concu
rrent.TimeoutException: remoteSender:<redacted>, method:POST[WARNING][751][16 Aug 2023 19:03:53 UTC][8100/tm/auth/remote-role PublicWorker] URI:http://localhost:8100/tm/sys/ucs, Referrer:<redacted>, Method:POST, Exception:java.util.concurrent.TimeoutException: remoteSender:<redacted>, method:POST
Thank you for taking a look with me, I appreciate it.
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