API Patch/Delete operation on the stringgroup endpoint with the "type" parameter in the Ansible module results in the modification of the stringgroup type
book
Article ID: 388919
calendar_today
Updated On:
Products
VMware Avi Load Balancer
Issue/Introduction
When the stringgroup is of type SG_TYPE_KV and a PATCH/DELETE operation is performed to remove a record, the type is changed to SG_TYPE_STRING, even though the type is specified in the body as SG_TYPE_KV. The key/value record specified is removed, and all other records remain, however they are not viewable in the AVI Console and changing the type back to SG_TYPE_KV in console deletes all records. However performing a PATCH/ADD on the string group setting the type to SG_TYPE_KV returns the type back correctly and all original records are recovered.
This may cause an issue with datascripts as datascripts use the string groups for host to pool mappings. When the string group type changed to SG_TYPE_STRING, the datascript could not find matches and therefore could not redirect properly.
Resolution
We have fixed this issue with Ansible module, fix will be included in the next release version 31.2.x.