Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bigip_common_license_manage_bigiq Error: onPatch Not implemented #1034

Open
jkwok018 opened this issue Nov 30, 2024 · 1 comment
Open

bigip_common_license_manage_bigiq Error: onPatch Not implemented #1034

jkwok018 opened this issue Nov 30, 2024 · 1 comment
Labels
Backlog issue will be tracked by JIRA in backlog bug

Comments

@jkwok018
Copy link

Environment
TMOS/Bigip Version: 17.1.1.4
BIGIQ Version: 8.3.0
Terraform Version: 1.10.0
Terraform bigip provider Version: bigip v1.22.5
Summary
Attempting to apply a license to an unmanaged, reachable bigip device fails when issue terraform apply. The error message is: Error: onPatch Not implemented

Steps To Reproduce
Steps to reproduce the behavior:

Provide terraform resource config which you are facing trouble along with the output of it.
resource "bigip_common_license_manage_bigiq" "bigip_install_license" {
bigiq_address = var.bigiq
bigiq_user = var.bigiq_un
bigiq_password = var.bigiq_pw
license_poolname = "reg_pool1"
bigiq_token_auth = true
assignment_type = "UNMANAGED"
}

Output:
Error: onPatch Not implemented

│ with bigip_common_license_manage_bigiq.bigip_install_license,
│ on license.tf line 1, in resource "bigip_common_license_manage_bigiq" "bigip_install_license":
│ 1: resource "bigip_common_license_manage_bigiq" "bigip_install_license" {

To get to know more about the issue, provide terraform debug logs

To capture debug logs, export TF_LOG variable with debug ( export TF_LOG= DEBUG ) before
runnning terraform apply/plan

bigip_common_license_manage_bigiq.bigip_install_license: Creating...
2024-11-30T13:25:02.662Z [INFO] Starting apply for bigip_common_license_manage_bigiq.bigip_install_license
2024-11-30T13:25:02.662Z [DEBUG] bigip_common_license_manage_bigiq.bigip_install_license: applying the planned Create change
2024-11-30T13:25:02.663Z [INFO] provider.terraform-provider-bigip_v1.22.5: Start License assignment for :https://10.171.119.135: timestamp=2024-11-30T13:25:02.663Z
2024-11-30T13:25:02.664Z [INFO] provider.terraform-provider-bigip_v1.22.5: Initializing BigIP connection: timestamp=2024-11-30T13:25:02.663Z
2024-11-30T13:25:02.751Z [ERROR] provider.terraform-provider-bigip_v1.22.5: Error creating New Token Session onPatch Not implemented: timestamp=2024-11-30T13:25:02.751Z
2024-11-30T13:25:02.751Z [INFO] provider.terraform-provider-bigip_v1.22.5: Connection to BIGIQ Failed with :onPatch Not implemented: timestamp=2024-11-30T13:25:02.751Z
2024-11-30T13:25:02.751Z [ERROR] provider.terraform-provider-bigip_v1.22.5: Response contains error diagnostic: tf_provider_addr=provider tf_req_id=ef586490-f81c-00a6-7c44-f60788f304c4 @module=sdk.proto diagnostic_severity=ERROR diagnostic_summary="onPatch Not implemented" tf_proto_version=5.3 tf_resource_type=bigip_common_license_manage_bigiq tf_rpc=ApplyResourceChange @caller=github.com/hashicorp/[email protected]/tfprotov5/internal/diag/diagnostics.go:55 diagnostic_detail="" timestamp=2024-11-30T13:25:02.751Z
2024-11-30T13:25:02.756Z [DEBUG] State storage *statemgr.Filesystem declined to persist a state snapshot
2024-11-30T13:25:02.756Z [ERROR] vertex "bigip_common_license_manage_bigiq.bigip_install_license" error: onPatch Not implemented

│ Error: onPatch Not implemented

│ with bigip_common_license_manage_bigiq.bigip_install_license,
│ on license.tf line 1, in resource "bigip_common_license_manage_bigiq" "bigip_install_license":
│ 1: resource "bigip_common_license_manage_bigiq" "bigip_install_license" {


2024-11-30T13:25:02.759Z [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2024-11-30T13:25:02.764Z [INFO] provider: plugin process exited: plugin=.terraform/providers/registry.terraform.io/f5networks/bigip/1.22.5/linux_amd64/terraform-provider-bigip_v1.22.5 id=12981
2024-11-30T13:25:02.764Z [DEBUG] provider: plugin exited

Expected Behavior
License assigned to Big-IP device in the same way it is done with a Reg Key Pool or Utility Pool.

Actual Behavior
Error when performing 'terraform apply'

In the BIGIQ /var/log/restjavad-audit.0.log, the log shows status "400" response back to terraform host.

[INFO][30 Nov 2024 05:17:26 PST][ForwarderPassThroughWorker] {"user":"None","method":"POST","uri":"http://local host:8100/mgmt/shared/authn/login","status":200,"from":"10.171.119.132"}
[INFO][30 Nov 2024 05:17:26 PST][ForwarderPassThroughWorker] {"user":"local/admin","method":"PATCH","uri":"http ://localhost:8100/mgmt/shared/authz/tokens/eyJraWQiOiI4MWE2ZTEzZi05NTNkLTQxMjUtODRhZi03MTgxYjhiZDUyMTciLCJhbGci OiJSUzM4NCJ9.eyJpc3MiOiJCSUctSVEiLCJqdGkiOiI1MWhZVEFOUFpWdkFHUnNVb1podFpRIiwic3ViIjoiYWRtaW4iLCJhdWQiOiIxMC4xNz EuMTE5LjEzMiIsImlhdCI6MTczMjk3MjY0NiwiZXhwIjoxNzMyOTcyOTQ2LCJ1c2VyTmFtZSI6ImFkbWluIiwiYXV0aFByb3ZpZGVyTmFtZSI6I mxvY2FsIiwidXNlciI6Imh0dHBzOi8vbG9jYWxob3N0L21nbXQvc2hhcmVkL2F1dGh6L3VzZXJzL2FkbWluIiwidHlwZSI6IkFDQ0VTUyIsInRp bWVvdXQiOjMwMCwiZ3JvdXBSZWZlcmVuY2VzIjpbXX0.SdhZhZHdZaQ561QxNFqUok1_mUtUIkVm6wSCuYAl4wogdbsLoYNUivVjkFwEq8nNMaM wI_69bhTnnlU_Erd6kx7ukY4xaaQ1a9sJ06sgcaTkZK60nDyr9wa2SB-Fp403q39T4mjPtWjbMr4hG_mmupGuVtJle6DGzo00zhYj-cbbmn88w7 6Krow51whDVywqyBonFUSwHFQu4YZ8X84ad_3Y6svDINSvzOY66LbxyBSWNAXcxN-0f_RyWDZzwb8lMIfzpkuQlEX4_9g0A-Cr_vyYlHr0Qy-Db FHYMG6kL24iLABPkg_PASNX5jqplErHhPk4WE-FPgXJz8QaBu8qI2f3Hl7gAiKOEktFwn08qZ3JQT8FFdqAGXA4c31otL4m5W7JV-BcULigzeR- mIeW_PQ08qCU18SQFJroGvqvvANtV5kaAtc85j54TqewuT1vf-6ePg_jxQO-jIeUpYNaClVgQ_zI6hhm6xB3lOoT7-bhyGiVeucmpZ6-S5C-_vA E","status":400,"from":"10.171.119.132"}

I have tried use a shell script using curl which can sucessfully assign license via BIGIQ. So I am not sure if the operation is not supported with latest version of BIGIQ?

@jkwok018 jkwok018 added the bug label Nov 30, 2024
@pgouband
Copy link
Collaborator

pgouband commented Dec 2, 2024

Hi,

Thanks for reporting. Added to the backlog and internal tracking ID for this request is: INFRAANO-1713.

@pgouband pgouband added the Backlog issue will be tracked by JIRA in backlog label Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backlog issue will be tracked by JIRA in backlog bug
Projects
None yet
Development

No branches or pull requests

2 participants