F5Networks / f5-cloud-libs

Node.js libraries to assist in cloud deployments.
Apache License 2.0
29 stars 14 forks source link

When using Declarative Onboarding to license BIG-IP, f5-cloud-libs/public/module-bigIqLicenseProviderFactory.html is not working #11

Open landers73 opened 5 years ago

landers73 commented 5 years ago

Using Declarative Onboarding to license an AWS BIG-IP v 14.1.x with known good licenses via BIG-IQ 6.1: BIG-IQ returns the following (actual registration key replaced for security):

Tue, 25 Jun 2019 13:09:45 GMT - fine: [f5-declarative-onboarding: systemHandler.js] Getting reg keys in pool Tue, 25 Jun 2019 13:09:45 GMT - fine: [f5-declarative-onboarding: systemHandler.js] xxx.xxx.xxx is not active

These are the request logs from BIG-IQ: "GET /mgmt/cm/device/licensing/pool/regkey/licenses/a57bbe24-89cf-4edf-a698-b45c86effad4/offerings?$select=licenseState HTTP/1.1" 200 76533 "-" "-" "-"

They should read: GET /mgmt/cm/device/licensing/pool/regkey/licenses/a57bbe24-89cf-4edf-a698-b45c86effad4/offerings/XXXXXX?$select=licenseState

Issue is with the

bigIqLicenseProviderFactory.js

changing the licesnseProvider to BigIq54LicenseProvider on the following line (line 73) fixes the problem.

getLicenseProviderByType(type, bigIp, options) { switch (type) { case sharedConstants.LICENSE_API_TYPES.REG_KEY:

        return new BigIq52LicenseProvider(bigIp, options); <------ change to BigIQ54LicenseProvider

case sharedConstants.LICENSE_API_TYPES.UTILITY: return new BigIq53LicenseProvider(bigIp, options); case sharedConstants.LICENSE_API_TYPES.UTILITY_UNREACHABLE: return new BigIq54LicenseProvider(bigIp, options); default: throw new Error(Unknown type ${type});

BigIq52 has const LICENSE_PATH = '/cm/device/licensing/pool/regkey/licenses/'; BigIq54 has const LICENSE_PATH = '/cm/device/tasks/licensing/pool/member-management/';

landers73 commented 5 years ago

Is there an estimated date when this fix will be pushed?

focrensh commented 5 years ago

We are currently reviewing the proposed changes. Updates coming within the SR.