aruba / aoscx-ansible-dcn-workflows

repository to hold Ansible workflows for AOS-CX Data Centers
Apache License 2.0
13 stars 10 forks source link

Python error when running playbook #2

Closed highmountainwoody closed 1 year ago

highmountainwoody commented 1 year ago

Encountering a python error and failure of the playbook when running

ansible-playbook deploy_ebgp_evpn_vxlan.yml -i inventory_spine_leaf.yml

TASK [Create BGP Neighbors and EVPN Address Family on Spine for Racks] ***** [DEPRECATION WARNING]: "include" is deprecated, use include_tasks/import_tasks/import_playbook instead. This feature will be removed in version 2.16. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. included: /Users/michaelkennedy/Documents/Coding Projects/Automation/aoscx-ansible-dcn-workflows-master/tasks/aoscx/add_list_of_bgp_neighbors.yml for Zone1-Spine1, Zone1-Spine2 => (item={'vsx_pair_asn': 65001, 'loopback_ips': ['192.168.1.1', '192.168.1.2']}) included: /Users/michaelkennedy/Documents/Coding Projects/Automation/aoscx-ansible-dcn-workflows-master/tasks/aoscx/add_list_of_bgp_neighbors.yml for Zone1-Spine1, Zone1-Spine2 => (item={'vsx_pair_asn': 65003, 'loopback_ips': ['192.168.1.5', '192.168.1.6']})

TASK [include] ***** included: /Users/michaelkennedy/Documents/Coding Projects/Automation/aoscx-ansible-dcn-workflows-master/tasks/aoscx/bgp_neighbor.yml for Zone1-Spine1, Zone1-Spine2 => (item=192.168.1.1) included: /Users/michaelkennedy/Documents/Coding Projects/Automation/aoscx-ansible-dcn-workflows-master/tasks/aoscx/bgp_neighbor.yml for Zone1-Spine1, Zone1-Spine2 => (item=192.168.1.2)

TASK [Login to AOS-CX Switch] ** objc[53194]: +[NSCFConstantString initialize] may have been in progress in another thread when fork() was called. objc[53194]: +[NSCFConstantString initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug. objc[53195]: +[NSCFConstantString initialize] may have been in progress in another thread when fork() was called. objc[53195]: +[NSCFConstantString initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug. ERROR! A worker was found in a dead state

highmountainwoody commented 1 year ago

This issue was experienced on macOS, I was able to resolve it by adding

export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES

to my .zshrc file