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

parameter for leaf_port_blk for "aci_access_port_block_to_access_port:" module #65824

Closed
ewchuah opened this issue Dec 13, 2019 · 7 comments
Closed
Labels
aci Cisco ACI community affects_2.9 This issue/PR affects Ansible v2.9 bug This issue/PR relates to a bug. cisco Cisco technologies module This issue/PR relates to a module. networking Network category python3 support:certified This issue/PR relates to certified code.

Comments

@ewchuah
Copy link

ewchuah commented Dec 13, 2019

SUMMARY

There seem to be issue with aci_access_port_block_to_access_port: module. What is the parameter for "leaf_port_blk:" ?
using aci_rest the dn is
dn: "uni/infra/accportprof-{{item.name}}/hports-{{item.intSel}}-typ-range/portblk-block2"
but if i use leaf_port_blk: block2, the dn shown is correct, but i there is error.

ISSUE TYPE
  • Bug Report
COMPONENT NAME

aci_access_port_block_to_access_port:

ANSIBLE VERSION
ansible 2.9.2
  config file = /home/chuahew/ansible_aci/ansible.cfg
  configured module search path = ['/home/chuahew/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /home/chuahew/environments/venv_toolkit_py36/lib64/python3.6/site-packages/ansible
  executable location = /home/chuahew/environments/venv_toolkit_py36/bin/ansible
  python version = 3.6.8 (default, Aug  7 2019, 17:28:10) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]
CONFIGURATION
DEFAULT_STDOUT_CALLBACK(/home/chuahew/ansible_aci/ansible.cfg) = skippy
RETRY_FILES_ENABLED(/home/chuahew/ansible_aci/ansible.cfg) = False

OS / ENVIRONMENT

Linux dev-centos.localdomain 3.10.0-1062.1.1.el7.x86_64 #1 SMP Fri Sep 13 22:55:44 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
centos-release-7-7.1908.0.el7.centos.x86_64

STEPS TO REPRODUCE
- name: Create Interface Profile (conntype = acc)
        aci_access_port_block_to_access_port:
        <<: *aci_login
        leaf_interface_profile: "{{item.name}}"
        access_port_selector: "{{item.intSel}}"
        leaf_port_blk: block2
        from_port: 1
        to_port: 1
        state: present
        delegate_to: localhost
        with_items:
          - "{{IntProf}}"
        when: item.conntype == 'acc'
EXPECTED RESULTS

should be able to provision interface profile. Using aci_rest works fine.

ACTUAL RESULTS
failed: [10.68.1.21 -> localhost] (item={'conntype': 'acc', 'name': 'IPF_SS301', 'desc': '', 'intPolGrp': 'IPG_ACC_SVR_Auto', 'intSel': 'IST_E1:01', 'fromPort': '1', 'toPort': '1'}) => {
    "ansible_loop_var": "item",
    "changed": false,
    "error": {
        "code": "102",
        "text": "configured object ((Dn0)) not found Dn0=uni/infra/accportprof-IPF_SS301/hports-IST_E1:01-typ-range/portblk-block2, "
    },
    "invocation": {
        "module_args": {
            "access_port_selector": "IST_E1:01",
            "certificate_name": null,
            "from_card": null,
            "from_port": "1",
            "host": "10.68.1.21",
            "hostname": "10.68.1.21",
            "leaf_interface_profile": "IPF_SS301",
            "leaf_port_blk": "block2",
            "leaf_port_blk_description": null,
            "output_level": "normal",
            "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
            "port": null,
            "private_key": null,
            "protocol": "https",
            "state": "present",
            "timeout": 30,
            "to_card": null,
            "to_port": "1",
            "use_proxy": true,
            "use_ssl": true,
            "username": "admin",
            "validate_certs": false
        }
    },
    "item": {
        "conntype": "acc",
        "desc": "",
        "fromPort": "1",
        "intPolGrp": "IPG_ACC_SVR_Auto",
        "intSel": "IST_E1:01",
        "name": "IPF_SS301",
        "toPort": "1"
    },
    "msg": "APIC Error 102: configured object ((Dn0)) not found Dn0=uni/infra/accportprof-IPF_SS301/hports-IST_E1:01-typ-range/portblk-block2, "
}
@ansibot
Copy link
Contributor

ansibot commented Dec 13, 2019

Files identified in the description:

If these files are inaccurate, please update the component name section of the description or use the !component bot command.

click here for bot help

@ansibot
Copy link
Contributor

ansibot commented Dec 13, 2019

@ewchuah, just so you are aware we have a dedicated Working Group for network.
You can find other people interested in this in #ansible-network on Freenode IRC
For more information about communities, meetings and agendas see https://github.com/ansible/community

click here for bot help

@ansibot ansibot added aci Cisco ACI community affects_2.9 This issue/PR affects Ansible v2.9 bug This issue/PR relates to a bug. cisco Cisco technologies module This issue/PR relates to a module. needs_triage Needs a first human triage before being processed. networking Network category python3 support:certified This issue/PR relates to certified code. labels Dec 13, 2019
@dkrijgsman1979
Copy link

@ewchuah I'm experiencing the same behavior, not sure what i'm missing.
usage of "aci_access_port_to_interface_policy_leaf_profile" seems to provide the same results without any issues......

@ansibot
Copy link
Contributor

ansibot commented Feb 14, 2020

@aciguru
Copy link
Contributor

aciguru commented Apr 9, 2020

Issue moved to

CiscoDevNet/ansible-aci#9

@ansibot ansibot removed the needs_triage Needs a first human triage before being processed. label Apr 9, 2020
@dagwieers
Copy link
Contributor

@gundalow Can you close this ticket? Thanks!

@ansible ansible locked and limited conversation to collaborators May 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
aci Cisco ACI community affects_2.9 This issue/PR affects Ansible v2.9 bug This issue/PR relates to a bug. cisco Cisco technologies module This issue/PR relates to a module. networking Network category python3 support:certified This issue/PR relates to certified code.
Projects
None yet
Development

No branches or pull requests

6 participants