a10networks / acos-client

ACOS API Client
Apache License 2.0
35 stars 61 forks source link

Getting AXAPI driver error on json "destination" field #252

Closed jak3kaj closed 5 years ago

jak3kaj commented 5 years ago

Getting the following error on all calls to vThunder running ACOS 4.1.4-P2

Driver error: 1023590414 Failed to handle json field "destination". Incorrect string value. Only strings defined by schema are allowed.
Neutron server returns request_ids: ['req-79dbb06a-5d31-491f-b274-059dd6498ab0']

Somehow PR #240 is causing this issue. Reverting the PR changes resolves the issue in my test environment. I don't see why this PR is causing the issue since the default values of the optional arguments are identical to the hard coded value in the original code.

Whatever is calling write_memory must be passing different values for those arguments.

jak3kaj commented 5 years ago

The issue was caused by the order of the optional arguments to the write_memory and activate_and write functions. There is existing code in a10-neutron-lbaas that calls activate_and_write using only the partition optional argument, so the decision was made to switch the order they are defined in acos-client/v30/action.py. Resolved in PR #253