Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (venv) ykretov@MacBook-Pro-641:/Users/ykretov/github/ops-ansible $ deactivate
- ykretov@MacBook-Pro-641:/Users/ykretov/github/ops-ansible $ virtualenv --no-site-packages venv25
- ykretov@MacBook-Pro-641:/Users/ykretov/github/ops-ansible $ source venv25/bin/activate
- (venv25) ykretov@MacBook-Pro-641:/Users/ykretov/github/ops-ansible $ cat requirements.txt | awk -F= '{ print $1 }' > req25.txt
- (venv25) ykretov@MacBook-Pro-641:/Users/ykretov/github/ops-ansible $ vi req25.txt
- (venv25) ykretov@MacBook-Pro-641:/Users/ykretov/github/ops-ansible $ pip install -r req25.txt
- (venv25) ykretov@MacBook-Pro-641:/Users/ykretov/github/ops-ansible $ ansible-playbook playbooks/netops/build_config.yaml -l sflab-lan-1 -vvvv
- ansible-playbook 2.5.2
- config file = /Users/ykretov/github/ops-ansible/ansible.cfg
- configured module search path = [u'/Users/ykretov/github/ops-ansible/roles']
- ansible python module location = /Users/ykretov/github/ops-ansible/venv25/lib/python2.7/site-packages/ansible
- executable location = /Users/ykretov/github/ops-ansible/venv25/bin/ansible-playbook
- python version = 2.7.10 (default, Oct 6 2017, 22:29:07) [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.31)]
- Using /Users/ykretov/github/ops-ansible/ansible.cfg as config file
- [DEPRECATION WARNING]: DEFAULT_SUDO_EXE option, In favor of Ansible Become, which is a generic framework. See become_exe. , use become instead. This feature will be removed in version
- 2.8. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
- [DEPRECATION WARNING]: DEFAULT_MODULE_LANG option, Modules are coded to set their own locale if needed for screenscraping . This feature will be removed in version 2.9. Deprecation
- warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
- [DEPRECATION WARNING]: DEFAULT_SUDO_USER option, In favor of Ansible Become, which is a generic framework. See become_user. , use become instead. This feature will be removed in version
- 2.8. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
- setting up inventory plugins
- [ERROR]:
- Parsed /Users/ykretov/github/ops-ansible/inventory/dynamic_inventory.rb inventory source with script plugin
- Parsed /Users/ykretov/github/ops-ansible/inventory/static_inventory.yaml inventory source with ini plugin
- statically imported: /Users/ykretov/github/ops-ansible/playbooks/netops/roles/build_fragments/tasks/set_nxos_facts.yaml
- statically imported: /Users/ykretov/github/ops-ansible/playbooks/netops/roles/build_fragments/tasks/template_requested_fragments.yaml
- statically imported: /Users/ykretov/github/ops-ansible/playbooks/netops/roles/deploy_nxos_config/tasks/checkpoint.yaml
- statically imported: /Users/ykretov/github/ops-ansible/playbooks/netops/roles/deploy_nxos_config/tasks/rollback_cancel.yaml
- statically imported: /Users/ykretov/github/ops-ansible/playbooks/netops/roles/deploy_nxos_config/tasks/rollback_schedule.yaml
- statically imported: /Users/ykretov/github/ops-ansible/playbooks/netops/roles/deploy_nxos_config/tasks/last_resort.yaml
- statically imported: /Users/ykretov/github/ops-ansible/playbooks/netops/roles/deploy_nxos_config/tasks/rollback_cancel.yaml
- statically imported: /Users/ykretov/github/ops-ansible/playbooks/netops/roles/deploy_nxos_config/tasks/write_mem.yaml
- Loading callback plugin default of type stdout, v2.0 from /Users/ykretov/github/ops-ansible/venv25/lib/python2.7/site-packages/ansible/plugins/callback/default.pyc
- Loading callback plugin jsnapy of type aggregate, v2.0 from /Users/ykretov/github/ops-ansible/roles/Juniper.junos/callback_plugins/jsnapy.pyc
- PLAYBOOK: build_config.yaml ****************************************************************************************************************************************************************
- 1 plays in playbooks/netops/build_config.yaml
- [WARNING]: Skipping plugin (/Users/ykretov/github/ops-ansible/filter_plugins/utils/get_in.py) as it seems to be invalid: 'NoneType' object has no attribute 'FilterModule'
- which fragments? (frag1|frag2...); type 'help' for list; default= [all]:
- ^C
- rm /Users/ykretov/github/ops-ansible/filter_plugins/utils/get_in.py
- rm /Users/ykretov/github/ops-ansible/filter_plugins/get_tun_ip.py
- rm /Users/ykretov/github/ops-ansible/filter_plugins/utils/slice_dict.py
- (venv25) ykretov@MacBook-Pro-641:/Users/ykretov/github/ops-ansible $ git status
- On branch master
- Your branch is up to date with 'ot/master'.
- Changes not staged for commit:
- (use "git add/rm <file>..." to update what will be committed)
- (use "git checkout -- <file>..." to discard changes in working directory)
- deleted: filter_plugins/get_tun_ip.py
- deleted: filter_plugins/utils/get_in.py
- deleted: filter_plugins/utils/slice_dict.py
- Untracked files:
- (use "git add <file>..." to include in what will be committed)
- req25.txt
- venv25/
- no changes added to commit (use "git add" and/or "git commit -a")
- (venv25) ykretov@MacBook-Pro-641:/Users/ykretov/github/ops-ansible $ ansible-playbook playbooks/netops/build_config.yaml -l sflab-lan-1 -vvvv
- ansible-playbook 2.5.2
- config file = /Users/ykretov/github/ops-ansible/ansible.cfg
- configured module search path = [u'/Users/ykretov/github/ops-ansible/roles']
- ansible python module location = /Users/ykretov/github/ops-ansible/venv25/lib/python2.7/site-packages/ansible
- executable location = /Users/ykretov/github/ops-ansible/venv25/bin/ansible-playbook
- python version = 2.7.10 (default, Oct 6 2017, 22:29:07) [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.31)]
- Using /Users/ykretov/github/ops-ansible/ansible.cfg as config file
- [DEPRECATION WARNING]: DEFAULT_SUDO_EXE option, In favor of Ansible Become, which is a generic framework. See become_exe. , use become instead. This feature will be removed in version
- 2.8. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
- [DEPRECATION WARNING]: DEFAULT_MODULE_LANG option, Modules are coded to set their own locale if needed for screenscraping . This feature will be removed in version 2.9. Deprecation
- warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
- [DEPRECATION WARNING]: DEFAULT_SUDO_USER option, In favor of Ansible Become, which is a generic framework. See become_user. , use become instead. This feature will be removed in version
- 2.8. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
- setting up inventory plugins
- [ERROR]:
- Parsed /Users/ykretov/github/ops-ansible/inventory/dynamic_inventory.rb inventory source with script plugin
- Parsed /Users/ykretov/github/ops-ansible/inventory/static_inventory.yaml inventory source with ini plugin
- statically imported: /Users/ykretov/github/ops-ansible/playbooks/netops/roles/build_fragments/tasks/set_nxos_facts.yaml
- statically imported: /Users/ykretov/github/ops-ansible/playbooks/netops/roles/build_fragments/tasks/template_requested_fragments.yaml
- statically imported: /Users/ykretov/github/ops-ansible/playbooks/netops/roles/deploy_nxos_config/tasks/checkpoint.yaml
- statically imported: /Users/ykretov/github/ops-ansible/playbooks/netops/roles/deploy_nxos_config/tasks/rollback_cancel.yaml
- statically imported: /Users/ykretov/github/ops-ansible/playbooks/netops/roles/deploy_nxos_config/tasks/rollback_schedule.yaml
- statically imported: /Users/ykretov/github/ops-ansible/playbooks/netops/roles/deploy_nxos_config/tasks/last_resort.yaml
- statically imported: /Users/ykretov/github/ops-ansible/playbooks/netops/roles/deploy_nxos_config/tasks/rollback_cancel.yaml
- statically imported: /Users/ykretov/github/ops-ansible/playbooks/netops/roles/deploy_nxos_config/tasks/write_mem.yaml
- Loading callback plugin default of type stdout, v2.0 from /Users/ykretov/github/ops-ansible/venv25/lib/python2.7/site-packages/ansible/plugins/callback/default.pyc
- Loading callback plugin jsnapy of type aggregate, v2.0 from /Users/ykretov/github/ops-ansible/roles/Juniper.junos/callback_plugins/jsnapy.pyc
- PLAYBOOK: build_config.yaml ****************************************************************************************************************************************************************
- 1 plays in playbooks/netops/build_config.yaml
- which fragments? (frag1|frag2...); type 'help' for list; default= [all]: hostname
- Username:
- Password (press return to use SSH key, or blank password):
- PLAY [Build entire network config] *********************************************************************************************************************************************************
- TASK [include_vars] ************************************************************************************************************************************************************************
- task path: /Users/ykretov/github/ops-ansible/playbooks/netops/build_config.yaml:38
- ok: [sflab-lan-1] => {
- "ansible_facts": {
- "ansible_box": "{{ lookup('pipe','hostname') }}",
- "build_dir": "/var/tmp/build/netops/{{ inventory_hostname }}",
- "cleanup_flag": "{{ ((cleanup |default(True)) | bool) or (frag_list != 'all') }}",
- "config_file": "{{ build_dir }}/generated_config.txt",
- "console_server": "{{ 'lnhq-console-01.otcorp.opentable.com' if ('lnhq-' in deploy_target) or ('ln-' in deploy_target) else 'sc-rancid-01.otsql.opentable.com' }}",
- "console_ssl_port": 3109,
- "current_time": "{{ lookup('pipe','date \"+%Y-%m-%d_%H_%M_%S\"') }}",
- "debug_flag": "{{ (debug |default(False)) | bool }}",
- "deploy_target": "{{ inventory_hostname if (deploy is not defined) or (deploy|upper in ['TRUE', 'FALSE']) or (deploy[0] in '0123456789') or (dev_os not in ['ios', 'nxos']) or ('sflab-' not in deploy) else deploy }}",
- "dev_os": "{{ platform.os }}",
- "diff_file": "{{ build_dir }}/generated_config.diff",
- "getconf_base": "{{ build_dir }}/running_config.",
- "log_file": "{{ build_dir }}/generated_config.log",
- "napalm_supported": [
- "eos",
- "junos",
- "iosxr",
- "fortios",
- "ibm",
- "ios",
- "panos"
- ],
- "target_common_console_fragments": "{{ target_common_console_fragments_all + ['interfaces'] if dev_os in ['asa'] else target_common_console_fragments_all }}",
- "target_common_console_fragments_all": [
- "vrf",
- "static",
- "options",
- "protocols",
- "hostname",
- "users",
- "ssh"
- ],
- "target_specific_console_fragments": [
- "mgmt",
- "dns",
- "secrets",
- "tacacs",
- "aaa"
- ],
- "tcl_params": "{{ console_server }} {{ console_ssl_port }} {{ dev_os }} {{ deploy_target }}",
- "tcl_script": "{{ playbook_dir }}/scripts/expect-cmd",
- "verbose_flag": "{{ (verbose |default(True)) | bool }}"
- },
- "ansible_included_var_files": [
- "/Users/ykretov/github/ops-ansible/playbooks/netops/vars/common.yaml"
- ],
- "changed": false
- }
- TASK [Freeze the name of a NXOS checkpoint file] *******************************************************************************************************************************************
- task path: /Users/ykretov/github/ops-ansible/playbooks/netops/build_config.yaml:40
- ok: [sflab-lan-1] => {
- "ansible_facts": {
- "cp_file_name": "backups/ansible_cp_2018-05-17_16_02_23",
- "currenttime": "2018-05-17_16_02_23"
- },
- "changed": false
- }
- TASK [Build LAN & WAN subnets fact] ********************************************************************************************************************************************************
- task path: /Users/ykretov/github/ops-ansible/playbooks/netops/build_config.yaml:45
- objc[73114]: +[__NSPlaceholderDate initialize] may have been in progress in another thread when fork() was called.
- objc[73114]: +[__NSPlaceholderDate 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.
- ^C [ERROR]: User interrupted execution
Add Comment
Please, Sign In to add comment