Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
mbouri
Explorer

Ansible Connection Error when playbook with large group member

Hello

I have an issue when I try to create or update group with large member (>3000 member), the playbook work fine with small group, is there any option to enable on ansible config settings or checkpoint SMS side ?

my playbook :

---
- name: Deploy Grp
hosts: check_point
connection: httpapi


tasks:

- name: include
include_vars: 'var.yaml'

- name: add-group
cp_mgmt_group:
name: "gp-name"
ignore_warnings: yes
members: "{{name}}"
- name: publish
cp_mgmt_publish:

 

var file : 

name:

- h-name1

- h-name2

....

hosts.ini file :

[check_point]
IP_SMS
[check_point:vars]
ansible_httpapi_use_ssl=True
ansible_httpapi_validate_certs=False
ansible_user=admin
ansible_password=password
ansible_network_os=checkpoint

 

the error message :

An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ansible.module_utils.connection.ConnectionError: The read operation timed out
fatal: [10.1.1.100]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n File \"/var/lib/jenkins/.ansible/tmp/ansible-local-37897pe768pwq/ansible-tmp-1590687244.472336-2766174878375/AnsiballZ_cp_mgmt_group.py\", line 102, in <module>\n _ansiballz_main()\n File \"/var/lib/jenkins/.ansible/tmp/ansible-local-37897pe768pwq/ansible-tmp-1590687244.472336-2766174878375/AnsiballZ_cp_mgmt_group.py\", line 94, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/var/lib/jenkins/.ansible/tmp/ansible-local-37897pe768pwq/ansible-tmp-1590687244.472336-2766174878375/AnsiballZ_cp_mgmt_group.py\", line 40, in invoke_module\n runpy.run_module(mod_name='ansible.modules.network.checkpoint.cp_mgmt_group', init_globals=None, run_name='__main__', alter_sys=True)\n File \"/usr/lib64/python2.7/runpy.py\", line 176, in run_module\n fname, loader, pkg_name)\n File \"/usr/lib64/python2.7/runpy.py\", line 82, in _run_module_code\n mod_name, mod_fname, mod_loader, pkg_name)\n File \"/usr/lib64/python2.7/runpy.py\", line 72, in _run_code\n exec code in run_globals\n File \"/tmp/ansible_cp_mgmt_group_payload_wCTvQX/ansible_cp_mgmt_group_payload.zip/ansible/modules/network/checkpoint/cp_mgmt_group.py\", line 140, in <module>\n File \"/tmp/ansible_cp_mgmt_group_payload_wCTvQX/ansible_cp_mgmt_group_payload.zip/ansible/modules/network/checkpoint/cp_mgmt_group.py\", line 135, in main\n File \"/tmp/ansible_cp_mgmt_group_payload_wCTvQX/ansible_cp_mgmt_group_payload.zip/ansible_collections/check_point/mgmt/plugins/module_utils/checkpoint.py\", line 256, in api_call\n File \"/tmp/ansible_cp_mgmt_group_payload_wCTvQX/ansible_cp_mgmt_group_payload.zip/ansible_collections/check_point/mgmt/plugins/module_utils/checkpoint.py\", line 63, in send_request\n File \"/tmp/ansible_cp_mgmt_group_payload_wCTvQX/ansible_cp_mgmt_group_payload.zip/ansible/module_utils/connection.py\", line 185, in __rpc__\nansible.module_utils.connection.ConnectionError: The read operation timed out\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}

0 Kudos
3 Replies
PhoneBoy
Admin
Admin

I imagine the API is timing out with this request.
Recommend getting the TAC involved.
Also tagging @Omer_Kleinstern 

0 Kudos
Or_Soffer
Employee
Employee

Hey @mbouri ,

 

let's continue this conversation on mail.
Please contact me by mail - orso@checkpoint.com


Thanks,

Or

0 Kudos
PhoneBoy
Admin
Admin

I'll provide out of band
0 Kudos