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] HTTP Error 422: UNPROCESSABLE ENTITY in module ntnx_subnets #376

Closed
nx-sbourdeaud opened this issue Jun 12, 2023 · 2 comments
Closed
Assignees
Labels
1.9.1 Bug fixes & Improvements bug Something isn't working

Comments

@nx-sbourdeaud
Copy link

Describe the bug
When creating a VLAN subnet with an IPAM configuration in a PC with multiple PEs registered, the following error is shown:
fatal: [localhost]: FAILED! => {"ansible_facts": {"discovered_interpreter_python": "/Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10"}, "changed": false, "error": "HTTP Error 422: UNPROCESSABLE ENTITY", "msg": "Failed fetching URL: https://10.68.97.150:9440/api/nutanix/v3/subnets", "response": null, "status_code": 422}
To Reproduce
Steps to reproduce the behavior:
sample subnet section used:

- name: 'arthur_VLAN333'
      ntnx_subnets:
        state: present
        name: 'VLAN333'
        vlan_subnet:
          vlan_id: 333
          virtual_switch:
            uuid: '{{ virtual_switch_uuid }}'
          cluster:
            name: 'arthur'
          ipam:
            network_ip: '192.68.10.0'
            network_prefix: 24
            gateway_ip: '192.68.10.1'
            ip_pools:
              - start_ip: '192.68.10.20'
                end_ip: '192.68.10.25'
            dhcp:
              dns_servers: '{{ dns_servers }}'
              domain_search: '{{ domain_search }}'
              domain_name: '{{ domain_name }}'
              tftp_server_name: ''
              boot_file: ''
              dhcp_server_ip: ''
      register: result
      ignore_errors: true

Stack trace

Expected behavior
VLAN subnet with IPAM section gets created successfully.

Additional context
Add any other context about the problem here.

@nx-sbourdeaud nx-sbourdeaud added the bug Something isn't working label Jun 12, 2023
@bhati-pradeep bhati-pradeep added triage Tickets for triage and removed triage Tickets for triage labels Aug 18, 2023
@bhati-pradeep bhati-pradeep added the 1.9.1 Bug fixes & Improvements label Sep 25, 2023
@bhati-pradeep
Copy link
Collaborator

Hi @nx-sbourdeaud , with given script in description I am able to create subnets on multi PE setup. Is this issue still reproducible ?

@bhati-pradeep
Copy link
Collaborator

Closing the ticket as of now as its not reproducible in my setup. Please reopen when happens again. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.9.1 Bug fixes & Improvements bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants