Bug ID 1047369: Activation of License via REST API (automatic method) does not work

Last Modified: Nov 14, 2022

Affected Product(s):
BIG-IP LTM(all modules)

Known Affected Versions:
13.1.0, 13.1.0.1, 13.1.0.2, 13.1.0.3, 13.1.0.4, 13.1.0.5, 13.1.0.6, 13.1.0.7, 13.1.0.8, 13.1.1, 13.1.1.2, 13.1.1.3, 13.1.1.4, 13.1.1.5, 13.1.3, 13.1.3.1, 13.1.3.2, 13.1.3.3, 13.1.3.4, 13.1.3.5, 13.1.3.6, 13.1.4, 13.1.4.1, 13.1.5, 13.1.5.1

Opened: Sep 16, 2021

Severity: 3-Major

Symptoms

After attempting activation, when you check status via a GET API command, the status won't move past "DOSSIER_GENERATED"

Impact

The activation process for a BIG-IP license cannot be performed via the REST API using the 'automatic' method.

Conditions

This occurs when you activate the license on a BIG-IP system using 'automatic' method as described in https://support.f5.com/csp/article/K45305307 using below POST API # curl -sk -u admin:xxxxxx -H "Content-Type: application/json" -XPOST https://x.x.x.x/mgmt/tm/shared/licensing/activation -d '{"baseRegKey":"xxxxxxxxx","automaticActivation":"true","activationMethod":"AUTOMATIC"}'

Workaround

Use the following endpoint to activate the license via the 'automatic' method - For single key: # curl -sk -u admin:xxxxx -H "Content-Type: application/json" -d '{"command": "install", "registrationKey": "<reg_key>"}' -X POST https://<IP>:<port>/mgmt/tm/sys/license “ OR for multiple keys: # curl -v -k -s -u admin:xxxxx -H "Content-Type: application/json" -d '{"command": "install", "registrationKey": "<reg_key>", "addOnKeys":["<addon_reg_key1>", ..., "<addon_reg_keyN>"]}' -X POST https://<IP>:<port>/mgmt/tm/sys/license” Here is a sample output: # curl -sk -u admin:xxxxx -H "Content-Type: application/json" -d '{"command": "install", "registrationKey": "12345-12345-12345-12345-1234567"}' -X POST https://1.2.3.4/mgmt/tm/sys/license | jq . { "kind": "tm:sys:license:installstate", "command": "install", "registrationKey": "12345-12345-12345-12345-1234567", "commandResult": "New license installed\n" <============== SUCCESS MESSAGE }

Fix Information

None

Behavior Change

Guides & references

K10134038: F5 Bug Tracker Filter Names and Tips