Open RavinderReddyF5 opened 4 years ago
Comment by dhawal55 Monday Sep 23, 2019 at 16:48 GMT
I figured out the issue. I'm running F5 version v12.1.3.6 and as per documentation I need admin role to access API:
In BIG-IP 11.5.x to 13.0.x, by default, only users with the Administrator role are granted access to the iControl REST API. In BIG-IP 13.1.x and later, any user you create regardless of role is automatically given access to the iControl REST API, but are limited by their role to what objects they can view and edit.
I will try after upgrading to v14.1.x.
Comment by dhawal55 Saturday Oct 05, 2019 at 21:43 GMT
It failed in BigIP v14.1.x too. As per this issue, it looks like a BigIP bug: https://github.com/F5Networks/f5-ansible/issues/1175
One workaround suggested in the above post is to not set any metadata but I can't find any option to disable metadata in terraform provider
I ran into the same issue when using F5Networks/bigip provider, The version is BIG-IP 13.1.5.1.
│
│ │ │ This server could not verify that you are authorized to access │ the URL "/mgmt/tm/net/self". │ You either supplied the wrong credentials (e.g., bad password), or your │ browser doesn't understand how to supply the credentials required. │ │
││ │ │ In case you are allowed to request the document, please │ check your user-id and password and try again. │ │
│ │Any suggestion? The user is administrator and the password does not contain special characters or spaces.
It works fine with external token
terraform { required_providers { bigip = { source = "F5Networks/bigip" version = "1.18.0" } } } provider "bigip" { address = var.f5_hostname username = var.f5_username token_auth = "true" token_value = var.f5_token }
Issue by dhawal55 Friday Sep 20, 2019 at 23:15 GMT Originally opened as https://github.com/terraform-providers/terraform-provider-bigip/issues/160
I'm using a BigIP F5 user with
manager
role in a single partition to create abigip_ltm_virtual_server
,bigip_ltm_pool
andbigip_ltm_pool_attachment
resources in that partition.I get the following error:
What am I missing?