Closed asrivastav-aag closed 4 months ago
I tried using "fortios_vpn_ipsec_phase1_interface" module as well with "vpn_ipsec_phase1_interface" parameter, received the same error. ConnectionError: Method not found
What ansible.netcommon release do you are using?
Manifest says version 5.0.0.
Here:
Manifest says version 5.0.0.
Here:
You need to use ansible.netcommon 4.x.x, there is an issue with 5.0.0 (See https://github.com/fortinet-ansible-dev/ansible-galaxy-fortios-collection/issues/237)
Manifest says version 5.0.0. Here:
You need to use ansible.netcommon 4.x.x, there is an issue with 5.0.0 (See #237)
Thanks for the information. I will try 4.1.0 and will update here.
4.1.0 is also not working. Failing with the same error & output - ConnectionError: Method not found.
Hi guys,
I'll proceed to close this ticket as it hasn't required further discussion for some time. Feel free to reopen it if you still have any questions.
Thanks, Jie
Playbook:
(005_fgt_cert_update) SEAVVMASRIVA:005_fgt_cert_update sri$ ansible --version ansible 2.9.1 config file = /Users/sri/Documents/002CaseStudies/001ReposGIT/001AlaskaAirlines/005_fgt_cert_update/ansible.cfg configured module search path = ['/Users/sri/Documents/002CaseStudies/001ReposGIT/001AlaskaAirlines/005_fgt_cert_update/lib/python3.8/site-packages/napalm_ansible/modules'] ansible python module location = /Users/sri/Documents/002CaseStudies/001ReposGIT/001AlaskaAirlines/005_fgt_cert_update/lib/python3.8/site-packages/ansible executable location = /Users/sri/Documents/002CaseStudies/001ReposGIT/001AlaskaAirlines/005_fgt_cert_update/bin/ansible python version = 3.8.6 (v3.8.6:db455296be, Sep 23 2020, 13:31:39) [Clang 6.0 (clang-600.0.57)] (005_fgt_cert_update) SEAVVMASRIVA:005_fgt_cert_update sri$
(005_fgt_cert_update) SEAVVMASRIVA:005_fgt_cert_update sri$ cat ansible.cfg [defaults]
inventory = ./nauto_inven.yaml
inventory = ./inventory.yaml
NETWORK_CLI_SSH_TYPE = paramiko
NAPALM Library & Modules
library = $VIRTUAL_ENV/lib/python3.8/site-packages/napalm_ansible/modules action_plugins = $VIRTUAL_ENV/lib/python3.8/site-packages/napalm_ansible/plugins/action
Defines "collections" folder
collections_paths=./collections/ansible_collections/
collections_scan_sys_path=False
Defines the Installed Roles folder
roles_path=./roles/
gathering = explicit retry_files_enabled = False
transport = network_cli
use to navigate ansible to look for python based custom filters
filter_plugins = ./plugins/filters/
uncomment this to disable SSH key host checking
host_key_checking = False
Hardware & Software based facts collection timeout
gather_timeout = 30
Enable logging for ansible, consider logrotate
log_path = ./ansible.log
[paramiko_connection]
uncomment this line to cause the paramiko connection plugin to not record new host
keys encountered. Increases performance on new host additions. Setting works independently of the
host key checking setting above.
record_host_keys=False
paramiko will default to looking for SSH keys initially when trying to
authenticate to remote devices. This is a problem for some network devices
that close the connection after a key failure. Uncomment this line to
disable the Paramiko look for keys function
look_for_keys = False
When using persistent connections with Paramiko, the connection runs in a
background process. If the host doesn't already have a valid SSH key, by
default Ansible will prompt to add the host key. This will cause connections
running in background processes to fail. Uncomment this line to have
Paramiko automatically add host keys.
host_key_auto_add = True (005_fgt_cert_update) SEAVVMASRIVA:005_fgt_cert_update sri$
(005_fgt_cert_update) SEAVVMASRIVA:005_fgt_cert_update sri$ ansible-playbook 006_fgt_add_cert_to_tunnels.yaml -vvvvv ansible-playbook 2.9.1 config file = /Users/sri/Documents/002CaseStudies/001ReposGIT/001AlaskaAirlines/005_fgt_cert_update/ansible.cfg configured module search path = ['/Users/sri/Documents/002CaseStudies/001ReposGIT/001AlaskaAirlines/005_fgt_cert_update/lib/python3.8/site-packages/napalm_ansible/modules'] ansible python module location = /Users/sri/Documents/002CaseStudies/001ReposGIT/001AlaskaAirlines/005_fgt_cert_update/lib/python3.8/site-packages/ansible executable location = /Users/sri/Documents/002CaseStudies/001ReposGIT/001AlaskaAirlines/005_fgt_cert_update/bin/ansible-playbook python version = 3.8.6 (v3.8.6:db455296be, Sep 23 2020, 13:31:39) [Clang 6.0 (clang-600.0.57)] Using /Users/sri/Documents/002CaseStudies/001ReposGIT/001AlaskaAirlines/005_fgt_cert_update/ansible.cfg as config file setting up inventory plugins host_list declined parsing /Users/sri/Documents/002CaseStudies/001ReposGIT/001AlaskaAirlines/005_fgt_cert_update/inventory.yaml as it did not pass its verify_file() method script declined parsing /Users/sri/Documents/002CaseStudies/001ReposGIT/001AlaskaAirlines/005_fgt_cert_update/inventory.yaml as it did not pass its verify_file() method Parsed /Users/sri/Documents/002CaseStudies/001ReposGIT/001AlaskaAirlines/005_fgt_cert_update/inventory.yaml inventory source with ini plugin Loading callback plugin default of type stdout, v2.0 from /Users/sri/Documents/002CaseStudies/001ReposGIT/001AlaskaAirlines/005_fgt_cert_update/lib/python3.8/site-packages/ansible/plugins/callback/default.py
PLAYBOOK: 006_fgt_add_cert_to_tunnels.yaml ** Positional arguments: 006_fgt_add_cert_to_tunnels.yaml verbosity: 5 connection: smart timeout: 10 become_method: sudo tags: ('all',) inventory: ('/Users/sri/Documents/002CaseStudies/001ReposGIT/001AlaskaAirlines/005_fgt_cert_update/inventory.yaml',) forks: 5 1 plays in 006_fgt_add_cert_to_tunnels.yaml
PLAY [seajn-lab-fw-1] *** META: ran handlers
TASK [Add the New Cert to the Tunnels] ** task path: /Users/sri/Documents/002CaseStudies/001ReposGIT/001AlaskaAirlines/005_fgt_cert_update/006_fgt_add_cert_to_tunnels.yaml:9 [WARNING]: Skipping plugin (/Users/sri/Documents/002CaseStudies/001ReposGIT/001AlaskaAirlines/005_fgt_cert_update/plugins/filters/ios_config_stats.py) as it seems to be invalid: No module named 'jmespath'