You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
Ansible Version and collection version
DCNM version
V 3.6.0
Affected module(s)
dcnm_fabric
Ansible Playbook
- name: REPLACED - SETUP - Delete fabric_1cisco.dcnm.dcnm_fabric:
state: deletedconfig:
- FABRIC_NAME: VXLAN_EVPN_Fabricregister: result
- debug:
var: result
- name: REPLACED - TEST - Create fabric_name_1 with non-default config + SITE_IDcisco.dcnm.dcnm_fabric:
state: mergedconfig:
- FABRIC_NAME: VXLAN_EVPN_FabricFABRIC_TYPE: VXLAN_EVPNADVERTISE_PIP_BGP: trueANYCAST_GW_MAC: 00:aa:bb:cc:dd:eeBGP_AS: 65535REPLICATION_MODE: IngressSITE_ID: 65000UNDERLAY_IS_V6: falseDEPLOY: falseregister: result
- debug:
var: result
- name: REPLACED - TEST - Replace config for fabric_1 with default configcisco.dcnm.dcnm_fabric: &replace_fabric_1state: replacedconfig:
- FABRIC_NAME: VXLAN_EVPN_FabricFABRIC_TYPE: VXLAN_EVPNBGP_AS: 65535DEPLOY: falseregister: result
- debug:
var: result
Debug Output
See also Initial Analysis at the bottom of this issue.
TASK [dcnm_fabric : REPLACED - TEST - Replace config for fabric_1 with default config] *****************************************************************************
fatal: [172.22.150.244]: FAILED! => {"changed": false, "metadata": [{"action": "fabric_replace", "check_mode": false, "sequence_number": 1, "state": "replaced"}], "msg": "Module failed.", "response": [{"DATA": "Invalid JSON response: Error in validating provided name value pair: [ANYCAST_RP_IP_RANGE, MULTICAST_GROUP_SUBNET, RP_LB_ID]", "MESSAGE": "Internal Server Error", "METHOD": "PUT", "REQUEST_PATH": "https://172.22.150.244:443/appcenter/cisco/ndfc/api/v1/lan-fabric/rest/control/fabrics/VXLAN_EVPN_Fabric/Easy_Fabric", "RETURN_CODE": 500, "sequence_number": 1}], "result": [{"changed": false, "sequence_number": 1, "success": false}]}
Expected Behavior
The playbook should succeed when run against ND 4.0.
Actual Behavior
The playbook fails with the error above with ND 4.0 (the playbook succeeds with ND 3.2.1e).
Steps to Reproduce
Install ND 4.0 (v4.0.0.86)
Run the provided playbook.
References
Initial Analysis
The playbook initially sets the fabric REPLICATION_MODE to Ingress.
The playbook then attempts to replace the fabric config with a default config (by not specifying any parameters).
The module creates the replaced-state payload based on the Easy_Fabric template retrieved from the controller. This changes the fabric REPLICATION_MODE to Multicast.
Below are debugs for the three parameters mentioned in the error.
The error is due to the payload not containing required parameters for Multicast replication mode.
Since the payload is based on the Easy_Fabric template parameter descriptions, and this is passing for ND 3.2.1e, we need to investigate what has changed in the template.
Community Note
Ansible Version and collection version
DCNM version
Affected module(s)
Ansible Playbook
Debug Output
See also
Initial Analysis
at the bottom of this issue.Expected Behavior
The playbook should succeed when run against ND 4.0.
Actual Behavior
The playbook fails with the error above with ND 4.0 (the playbook succeeds with ND 3.2.1e).
Steps to Reproduce
References
Initial Analysis
The playbook initially sets the fabric
REPLICATION_MODE
to Ingress.The playbook then attempts to replace the fabric config with a default config (by not specifying any parameters).
The module creates the replaced-state payload based on the
Easy_Fabric
template retrieved from the controller. This changes the fabricREPLICATION_MODE
to Multicast.This results in the 500 error.
Below are debugs for the three parameters mentioned in the error.
The error is due to the payload not containing required parameters for Multicast replication mode.
Since the payload is based on the Easy_Fabric template parameter descriptions, and this is passing for ND 3.2.1e, we need to investigate what has changed in the template.
ANYCAST_RP_IP_RANGE
MULTICAST_GROUP_SUBNET
RP_LB_ID
TODO: Compare the above with a log from ND 3.2.1e.
The text was updated successfully, but these errors were encountered: