F5Networks / f5-openstack-image-prep

Contains scripts to prepare an F5® BIG-IP® VE image file to boot in OpenStack.
Apache License 2.0
0 stars 13 forks source link

No support for license pools for unmanaged devices in BigIQ 5.0 #33

Open torzillo opened 8 years ago

torzillo commented 8 years ago

We would like to be able to pass in the IP address of the BIGIQ server and the license pool UUID, and have the system make a call to the BIGIQ to license the system for unmanaged devices.

alonsocamaro commented 8 years ago

I have modified the onboarding scripts that support the functionality that you mentioned but for versions prior to 5.0. You can find my fork here: https://github.com/alonsocamaro/f5-openstack-image-prep

Not sure about the "unmanged" part of your comment. At least in BIG-IQ prior to 5.0 it is required to register to the BIG-IQ in order to get a license assigned.

Kyle Oliver has mentioned that the URIs have changed slightly for BIG-IQ CM 5.0 and mentioned the following example https://devcentral.f5.com/articles/big-iq-central-management-api-automation-and-programmability-bulk-discovery-import-and-licensing-perl-20846

torzillo commented 8 years ago

This is how I have gotten it to work in BigIQ 5.0:

cat license-bigip

!/usr/bin/perl

use JSON; use Data::Dumper; use Getopt::Long;

$bigiq="172.20.50.58"; $poolid="4790de2b-eef5-4428-9357-99ac893a2bc3 "; $bigip="172.20.50.231"; $bigipuser="admin"; $bigippass="abc123"; $bigiquser="admin"; $bigiqpass="abc123";

$result = curl 'https://$bigiq/mgmt/cm/shared/licensing/pools/$poolid/members' -H 'Content-Type: application/json;charset=UTF-8' -H 'Accept: application/json, text/plain, */*' --data-binary '{"deviceAddress":"$bigip","username":"$bigipuser","password":"$bigippass"}' --compressed --insecure -u $bigiquser:$bigiqpass | python -m json.tool;

$jsonresult = decode_json $result;

print "Result = $result\n";

print Dumper ($jsonresult);

On Jul 22, 2016, at 6:54 AM, alonsocamaro notifications@github.com<mailto:notifications@github.com> wrote:

I have modified the onboarding scripts that support the functionality that you mentioned but for versions prior to 5.0. Kyle Oliver has mentioned that the URIs have changed slightly and mentioned the following example https://devcentral.f5.com/articles/big-iq-central-management-api-automation-and-programmability-bulk-discovery-import-and-licensing-perl-20846

You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/F5Networks/f5-openstack-image-prep/issues/33#issuecomment-234550055, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ATogDnysw4bsSGtKcAQ2Hf6Y-MQ9Jnr3ks5qYMuwgaJpZM4JSPAy.

alonsocamaro commented 8 years ago

Thanks Tony

I'm going to give it a go now.