Skip to content

[Bug]: netscaler.adc.sslvserver_sslcertkey_binding cannot unbind certificate using absent state #454

Open
@armogit

Description

@armogit

Summary

When trying to unbind a certificate after binding it, the DELETE API call which is made has a syntax error which results in the delete to fail.

the error I get is:
"msg": "ERROR: delete_resource FAILED; status_code: 400; Reason:{'errorcode': 1097, 'message': 'Invalid argument value [snicert]', 'severity': 'ERROR'}"

The query it tries which fails is:
DELETE: {'url': 'https://lbaip/nitro/v1/config/sslvserver_sslcertkey_binding/vserver?args=certkeyname:certname,snicert:True'

I have troubleshooted this and when doing a manual call to the NITRO API with a lower capital t in "true" it works but when I do it with a cappitalized letter T "Test" it doesn't work and I get the same error.

Is it possible to fix this issue?

Issue Type

Bug Report

Component Name

netscaler.adc.sslvserver_sslcertkey_binding

Python Version

Python 3.9.18

Ansible Version

ansible [core 2.15.12]
config file = /mnt/c/repos/projectname/ansible.cfg
configured module search path = ['/home/username/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/username/.local/lib/python3.9/site-packages/ansible
ansible collection location = /home/username/.ansible/collections:/usr/share/ansible/collections
executable location = /home/username/.local/bin/ansible
python version = 3.9.18 (main, Jul 3 2024, 00:00:00) [GCC 11.4.1 20231218 (Red Hat 11.4.1-3.0.1)] (/usr/bin/python3)
jinja version = 3.1.4
libyaml = True

Ansible Configuration

$ ansible-config dump --only-changed

netscaler.adc Collection Version

Collection Version


netscaler.adc 2.5.0

Target NetScaler Version

NetScaler NS13.1: Build 53.24.nc, Date: Jul 4 2024, 07:57:01 (64-bit)

Equivalent NetScaler CLI Command

Steps to Reproduce

  • name: UnBind cert to csvserver SSL
    netscaler.adc.sslvserver_sslcertkey_binding:
    nitro_auth_token: "{{ login_result.sessionid }}"
    state: absent
    certkeyname: "cername"
    vservername: "vservername"
    snicert: true

Expected Results

I expected the certificate to be unbinded when executed with the absent state

Actual Results

I get the error message:
"msg": "ERROR: delete_resource FAILED; status_code: 400; Reason:{'errorcode': 1097, 'message': 'Invalid argument value [snicert]', 'severity': 'ERROR'}"

Additional Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions