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

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

Open
armogit opened this issue Aug 20, 2024 · 0 comments
Labels

Comments

@armogit
Copy link

armogit commented Aug 20, 2024

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

@armogit armogit added the bug label Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant