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

Connection type 'network_cli' is not valid for 'junos_facts' module. #68034

Closed
marzdgzmn opened this issue Mar 5, 2020 · 7 comments
Closed
Labels
affects_2.9 This issue/PR affects Ansible v2.9 bug This issue/PR relates to a bug. module This issue/PR relates to a module. networking Network category python3 support:network This issue/PR relates to code supported by the Ansible Network Team.

Comments

@marzdgzmn
Copy link

#67957 ### SUMMARY
Running junos_facts module via the network_cli connection/provider is giving me an error:
"Connection type 'network_cli' is not valid for 'junos_facts' module"

ISSUE TYPE
  • Bug Report
COMPONENT NAME

Module: junos_facts

ANSIBLE VERSION
ansible 2.9.5
python version = 3.8.1 (default, Jan 22 2020, 06:38:00) [GCC 9.2.0]
OS / ENVIRONMENT

5.4.23-1-MANJARO

STEPS TO REPRODUCE

ansible all -i IP_Address, -c network_cli -u user -k -m junos_facts -e ansible_network_os=junos

It should be retrieving the facts from the Junos Device.

ACTUAL RESULTS

setting up inventory plugins
Parsed 10.129.3.31, inventory source with host_list plugin
Loading callback plugin minimal of type stdout, v2.0 from /usr/lib/python3.8/site-packages/ansible/plugins/callback/minimal.py
META: ran handlers
<10.129.3.31> attempting to start connection
<10.129.3.31> using connection plugin network_cli
<10.129.3.31> local domain socket does not exist, starting it
<10.129.3.31> control socket path is /home/marz/.ansible/pc/1e1a7b9fd7
<10.129.3.31> local domain socket listeners started successfully
<10.129.3.31> loaded cliconf plugin junos from path /usr/lib/python3.8/site-packages/ansible/plugins/cliconf/junos.py for network_os junos
<10.129.3.31>
<10.129.3.31> local domain socket path is /home/marz/.ansible/pc/1e1a7b9fd7
10.129.3.31 | FAILED! => {
"changed": false,
"msg": "Connection type 'network_cli' is not valid for 'junos_facts' module. Please see https://docs.ansible.com/ansible/latest/network/user_guide/platform_junos.html"
}

ansible all -i 10.129.3.31, -c network_cli  -u marz -k -m junos_facts -e ansible_network_os=junos -vvvv
@ansibot
Copy link
Contributor

ansibot commented Mar 5, 2020

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 Mar 5, 2020

@ansibot
Copy link
Contributor

ansibot commented Mar 5, 2020

@marzdgzmn, 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 affects_2.9 This issue/PR affects Ansible v2.9 bug This issue/PR relates to a bug. module This issue/PR relates to a module. needs_triage Needs a first human triage before being processed. networking Network category python3 support:network This issue/PR relates to code supported by the Ansible Network Team. labels Mar 5, 2020
@ganeshrn
Copy link
Member

ganeshrn commented Mar 5, 2020

This is expected. junos_facts module work with connection=netconf only for more details refer https://docs.ansible.com/ansible/latest/network/user_guide/platform_junos.html

@ganeshrn ganeshrn closed this as completed Mar 5, 2020
@marzdgzmn
Copy link
Author

This is expected. junos_facts module work with connection=netconf only for more details refer https://docs.ansible.com/ansible/latest/network/user_guide/platform_junos.html

Ah, so https://docs.ansible.com/ansible/latest/modules/junos_facts_module.html should be updated then.

@ganeshrn
Copy link
Member

ganeshrn commented Mar 5, 2020

What is the issue in module documentation. I can't see anywhere it is mentioned that module works with network_cli connection

@marzdgzmn
Copy link
Author

marzdgzmn commented Mar 5, 2020 via email

@sivel sivel removed the needs_triage Needs a first human triage before being processed. label Mar 6, 2020
@ansible ansible locked and limited conversation to collaborators Apr 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.9 This issue/PR affects Ansible v2.9 bug This issue/PR relates to a bug. module This issue/PR relates to a module. networking Network category python3 support:network This issue/PR relates to code supported by the Ansible Network Team.
Projects
None yet
Development

No branches or pull requests

4 participants