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

aci_epg_to_contract module does not work for associating contracts to Node mgmt EPGs (DCNE-87) #654

Open
Ziaf007 opened this issue May 13, 2024 · 2 comments · May be fixed by #658
Open
Labels
enhancement New feature or request jira-sync Sync this issue to Jira

Comments

@Ziaf007
Copy link

Ziaf007 commented May 13, 2024

Community Note

  • 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

Description

  • The cisco.aci.aci_epg_to_contract module requires the user to specify the Application Profile (AP) under which, the EPG(fvAEPg) is configured. However, the node Mgmt EPGs(mgmtInb, mgmtOob) are not classified under any AP, and neither is there any exclusive module for associating contracts to node Mgmt EPGs. The MOs considered in binding the contract are same (fvRsCons, fvRsProv) irrespective of the EPG, so it misleads to the module aci_epg_to_contract which is said to be configuring the MOs fvRsCons and fvRsProv
  • Here is the task in my playbook for reference:
   - name: Add a new contract to EPG binding
      cisco.aci.aci_epg_to_contract:
        host:  "{{ ansible_host }}"
        username: "{{ username }}"
        password: "{{ password }}"
        tenant: "mgmt"
        epg: "Inb_EPG"
        contract: "ND_to_inb"
        contract_type: "provider"
        state: present
        validate_certs: false

Affected Module Name(s):

cisco.aci.aci_epg_to_contract

APIC version and APIC Platform

  • V 6.0(3e) and on-prem

Collection versions

  • cisco.aci 2.9.0

Output/ Error message

TASK [Add a new contract to EPG binding] *****************************************************************************************************************
fatal: [bgl-aci13-apic1.cisco.com]: FAILED! => {"changed": false, "msg": "state is present but all of the following are missing: ap"}

Expected Behavior

  • The AP parameter should not be mandatory

Actual Behavior

  • The AP parameter is mandatory and node mgmt EPGs do not have an AP

Playbook tasks to Reproduce

  • -) cisco.aci.aci_node_mgmt_epg to create the node mgmt EPG
  • -) cisco.aci.aci_contract to create a contract
  • -) cisco.aci.aci_epg_to_contract to bind the contract to the EPG (fvRsCons, fvRsProv) >>>>>> FAILING

Important Factoids

-) The task runs on multiple different ACI versions.
-) validated_certs is set to False
-) playbook runs on remote APIC, instead of delegating to localhost(running MAC OS)
-) Multiple hosts sitting in 2 different /24 subnets
-) akinross has informed that this behaviour has not been brought up before

References

  • #0000
@Ziaf007 Ziaf007 added the bug Something isn't working label May 13, 2024
@shrsr
Copy link
Collaborator

shrsr commented May 13, 2024

@Ziaf007 Thank you for opening the issue. Our team will look into this and get back to you.

@Ziaf007
Copy link
Author

Ziaf007 commented May 13, 2024

I'd like to work on this issue.

@akinross akinross added enhancement New feature or request and removed bug Something isn't working labels May 13, 2024
@akinross akinross linked a pull request May 21, 2024 that will close this issue
@samiib samiib added the jira-sync Sync this issue to Jira label Aug 14, 2024
@github-actions github-actions bot changed the title aci_epg_to_contract module does not work for associating contracts to Node mgmt EPGs aci_epg_to_contract module does not work for associating contracts to Node mgmt EPGs (DCNE-87) Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request jira-sync Sync this issue to Jira
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants