f5-appsvcs-extension icon indicating copy to clipboard operation
f5-appsvcs-extension copied to clipboard

3.49 regression, cannot have empty remark on pool member

Open lm-sig opened this issue 1 year ago • 3 comments

Environment

  • Application Services Version: 3.49.0-6
  • BIG-IP Version: 15.1.10.2

Summary

With version 3.48 and older you could have a pool member with "remark" set to an empty string. Starting with version 3.49.0 the same JSON payload results in an error returned from BIG-IP.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Submit the following declaration:
{"class": "AS3", "action": "deploy", "persist": true, "declaration": {"class": "ADC", "schemaVersion": "3.16.0", "id": "test-declaration-0", "label": "Test Declaration 0", "remark": "Test Declaration for F5 Support Case Apps", "F5_Support_Case_Acpt": {"class": "Tenant", "case_NEW": {"class": "Application", "template": "generic", "vs_case_NEW-acpt-llb.example.com": {"class": "Service_HTTP", "remark": "F5 Support Ticket NEW", "virtualAddresses": ["10.127.0.99"], "virtualPort": 80, "persistenceMethods": [{"bigip": "/Common/cookie_encrypt"}], "fallbackPersistenceMethod": {"bigip": "/Common/source_addr"}, "pool": "case_NEW_acpt_pool", "iRules": []}, "case_NEW_acpt_pool": {"class": "Pool", "monitors": ["tcp"], "members": [{"remark": "", "servicePort": 443, "serverAddresses": ["10.0.0.99"], "priorityGroup": 0, "shareNodes": true, "adminState": "enable"}]}}}}}

You will see a successful application of the declaration.

  1. Submit the same declaration a second time.

  2. Observe the following error response:

{
    "code": 422,
    "message": "declaration failed",
    "response": "01020066:3: The requested Pool Member (/F5_Support_Case_Acpt/case_NEW/case_NEW_acpt_pool /Common/10.0.0.99 443) already exists in partition F5_Support_Case_Acpt.",
    "host": "localhost",
    "tenant": "F5_Support_Case_Acpt",
    "runTime": 7819
}

Expected Behavior

The JSON payload should either be accepted as it was before or a different type of error message should be generated.

Actual Behavior

The pool is not updated. Error is returned.

lm-sig avatar Feb 14 '24 18:02 lm-sig