Guest User

Untitled

a guest
May 23rd, 2018
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.98 KB | None | 0 0
  1. (venv) ykretov@MacBook-Pro-641:/Users/ykretov/github/ops-ansible $ deactivate
  2. ykretov@MacBook-Pro-641:/Users/ykretov/github/ops-ansible $ virtualenv --no-site-packages venv25
  3. ykretov@MacBook-Pro-641:/Users/ykretov/github/ops-ansible $ source venv25/bin/activate
  4.  
  5. (venv25) ykretov@MacBook-Pro-641:/Users/ykretov/github/ops-ansible $ cat requirements.txt | awk -F= '{ print $1 }' > req25.txt
  6. (venv25) ykretov@MacBook-Pro-641:/Users/ykretov/github/ops-ansible $ vi req25.txt
  7.  
  8. (venv25) ykretov@MacBook-Pro-641:/Users/ykretov/github/ops-ansible $ pip install -r req25.txt
  9.  
  10. (venv25) ykretov@MacBook-Pro-641:/Users/ykretov/github/ops-ansible $ ansible-playbook playbooks/netops/build_config.yaml -l sflab-lan-1 -vvvv
  11. ansible-playbook 2.5.2
  12. config file = /Users/ykretov/github/ops-ansible/ansible.cfg
  13. configured module search path = [u'/Users/ykretov/github/ops-ansible/roles']
  14. ansible python module location = /Users/ykretov/github/ops-ansible/venv25/lib/python2.7/site-packages/ansible
  15. executable location = /Users/ykretov/github/ops-ansible/venv25/bin/ansible-playbook
  16. 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)]
  17. Using /Users/ykretov/github/ops-ansible/ansible.cfg as config file
  18. [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
  19. 2.8. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
  20. [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
  21. warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
  22. [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
  23. 2.8. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
  24. setting up inventory plugins
  25. [ERROR]:
  26.  
  27. Parsed /Users/ykretov/github/ops-ansible/inventory/dynamic_inventory.rb inventory source with script plugin
  28. Parsed /Users/ykretov/github/ops-ansible/inventory/static_inventory.yaml inventory source with ini plugin
  29. statically imported: /Users/ykretov/github/ops-ansible/playbooks/netops/roles/build_fragments/tasks/set_nxos_facts.yaml
  30. statically imported: /Users/ykretov/github/ops-ansible/playbooks/netops/roles/build_fragments/tasks/template_requested_fragments.yaml
  31. statically imported: /Users/ykretov/github/ops-ansible/playbooks/netops/roles/deploy_nxos_config/tasks/checkpoint.yaml
  32. statically imported: /Users/ykretov/github/ops-ansible/playbooks/netops/roles/deploy_nxos_config/tasks/rollback_cancel.yaml
  33. statically imported: /Users/ykretov/github/ops-ansible/playbooks/netops/roles/deploy_nxos_config/tasks/rollback_schedule.yaml
  34. statically imported: /Users/ykretov/github/ops-ansible/playbooks/netops/roles/deploy_nxos_config/tasks/last_resort.yaml
  35. statically imported: /Users/ykretov/github/ops-ansible/playbooks/netops/roles/deploy_nxos_config/tasks/rollback_cancel.yaml
  36. statically imported: /Users/ykretov/github/ops-ansible/playbooks/netops/roles/deploy_nxos_config/tasks/write_mem.yaml
  37. 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
  38. Loading callback plugin jsnapy of type aggregate, v2.0 from /Users/ykretov/github/ops-ansible/roles/Juniper.junos/callback_plugins/jsnapy.pyc
  39.  
  40. PLAYBOOK: build_config.yaml ****************************************************************************************************************************************************************
  41. 1 plays in playbooks/netops/build_config.yaml
  42. [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'
  43.  
  44. which fragments? (frag1|frag2...); type 'help' for list; default= [all]:
  45.  
  46. ^C
  47. rm /Users/ykretov/github/ops-ansible/filter_plugins/utils/get_in.py
  48. rm /Users/ykretov/github/ops-ansible/filter_plugins/get_tun_ip.py
  49. rm /Users/ykretov/github/ops-ansible/filter_plugins/utils/slice_dict.py
  50.  
  51. (venv25) ykretov@MacBook-Pro-641:/Users/ykretov/github/ops-ansible $ git status
  52. On branch master
  53. Your branch is up to date with 'ot/master'.
  54.  
  55. Changes not staged for commit:
  56. (use "git add/rm <file>..." to update what will be committed)
  57. (use "git checkout -- <file>..." to discard changes in working directory)
  58.  
  59. deleted: filter_plugins/get_tun_ip.py
  60. deleted: filter_plugins/utils/get_in.py
  61. deleted: filter_plugins/utils/slice_dict.py
  62.  
  63. Untracked files:
  64. (use "git add <file>..." to include in what will be committed)
  65.  
  66. req25.txt
  67. venv25/
  68.  
  69. no changes added to commit (use "git add" and/or "git commit -a")
  70.  
  71.  
  72. (venv25) ykretov@MacBook-Pro-641:/Users/ykretov/github/ops-ansible $ ansible-playbook playbooks/netops/build_config.yaml -l sflab-lan-1 -vvvv
  73. ansible-playbook 2.5.2
  74. config file = /Users/ykretov/github/ops-ansible/ansible.cfg
  75. configured module search path = [u'/Users/ykretov/github/ops-ansible/roles']
  76. ansible python module location = /Users/ykretov/github/ops-ansible/venv25/lib/python2.7/site-packages/ansible
  77. executable location = /Users/ykretov/github/ops-ansible/venv25/bin/ansible-playbook
  78. 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)]
  79. Using /Users/ykretov/github/ops-ansible/ansible.cfg as config file
  80. [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
  81. 2.8. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
  82. [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
  83. warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
  84. [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
  85. 2.8. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
  86. setting up inventory plugins
  87. [ERROR]:
  88.  
  89. Parsed /Users/ykretov/github/ops-ansible/inventory/dynamic_inventory.rb inventory source with script plugin
  90. Parsed /Users/ykretov/github/ops-ansible/inventory/static_inventory.yaml inventory source with ini plugin
  91. statically imported: /Users/ykretov/github/ops-ansible/playbooks/netops/roles/build_fragments/tasks/set_nxos_facts.yaml
  92. statically imported: /Users/ykretov/github/ops-ansible/playbooks/netops/roles/build_fragments/tasks/template_requested_fragments.yaml
  93. statically imported: /Users/ykretov/github/ops-ansible/playbooks/netops/roles/deploy_nxos_config/tasks/checkpoint.yaml
  94. statically imported: /Users/ykretov/github/ops-ansible/playbooks/netops/roles/deploy_nxos_config/tasks/rollback_cancel.yaml
  95. statically imported: /Users/ykretov/github/ops-ansible/playbooks/netops/roles/deploy_nxos_config/tasks/rollback_schedule.yaml
  96. statically imported: /Users/ykretov/github/ops-ansible/playbooks/netops/roles/deploy_nxos_config/tasks/last_resort.yaml
  97. statically imported: /Users/ykretov/github/ops-ansible/playbooks/netops/roles/deploy_nxos_config/tasks/rollback_cancel.yaml
  98. statically imported: /Users/ykretov/github/ops-ansible/playbooks/netops/roles/deploy_nxos_config/tasks/write_mem.yaml
  99. 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
  100. Loading callback plugin jsnapy of type aggregate, v2.0 from /Users/ykretov/github/ops-ansible/roles/Juniper.junos/callback_plugins/jsnapy.pyc
  101.  
  102. PLAYBOOK: build_config.yaml ****************************************************************************************************************************************************************
  103. 1 plays in playbooks/netops/build_config.yaml
  104. which fragments? (frag1|frag2...); type 'help' for list; default= [all]: hostname
  105. Username:
  106. Password (press return to use SSH key, or blank password):
  107.  
  108. PLAY [Build entire network config] *********************************************************************************************************************************************************
  109.  
  110. TASK [include_vars] ************************************************************************************************************************************************************************
  111. task path: /Users/ykretov/github/ops-ansible/playbooks/netops/build_config.yaml:38
  112. ok: [sflab-lan-1] => {
  113. "ansible_facts": {
  114. "ansible_box": "{{ lookup('pipe','hostname') }}",
  115. "build_dir": "/var/tmp/build/netops/{{ inventory_hostname }}",
  116. "cleanup_flag": "{{ ((cleanup |default(True)) | bool) or (frag_list != 'all') }}",
  117. "config_file": "{{ build_dir }}/generated_config.txt",
  118. "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' }}",
  119. "console_ssl_port": 3109,
  120. "current_time": "{{ lookup('pipe','date \"+%Y-%m-%d_%H_%M_%S\"') }}",
  121. "debug_flag": "{{ (debug |default(False)) | bool }}",
  122. "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 }}",
  123. "dev_os": "{{ platform.os }}",
  124. "diff_file": "{{ build_dir }}/generated_config.diff",
  125. "getconf_base": "{{ build_dir }}/running_config.",
  126. "log_file": "{{ build_dir }}/generated_config.log",
  127. "napalm_supported": [
  128. "eos",
  129. "junos",
  130. "iosxr",
  131. "fortios",
  132. "ibm",
  133. "ios",
  134. "panos"
  135. ],
  136. "target_common_console_fragments": "{{ target_common_console_fragments_all + ['interfaces'] if dev_os in ['asa'] else target_common_console_fragments_all }}",
  137. "target_common_console_fragments_all": [
  138. "vrf",
  139. "static",
  140. "options",
  141. "protocols",
  142. "hostname",
  143. "users",
  144. "ssh"
  145. ],
  146. "target_specific_console_fragments": [
  147. "mgmt",
  148. "dns",
  149. "secrets",
  150. "tacacs",
  151. "aaa"
  152. ],
  153. "tcl_params": "{{ console_server }} {{ console_ssl_port }} {{ dev_os }} {{ deploy_target }}",
  154. "tcl_script": "{{ playbook_dir }}/scripts/expect-cmd",
  155. "verbose_flag": "{{ (verbose |default(True)) | bool }}"
  156. },
  157. "ansible_included_var_files": [
  158. "/Users/ykretov/github/ops-ansible/playbooks/netops/vars/common.yaml"
  159. ],
  160. "changed": false
  161. }
  162.  
  163. TASK [Freeze the name of a NXOS checkpoint file] *******************************************************************************************************************************************
  164. task path: /Users/ykretov/github/ops-ansible/playbooks/netops/build_config.yaml:40
  165. ok: [sflab-lan-1] => {
  166. "ansible_facts": {
  167. "cp_file_name": "backups/ansible_cp_2018-05-17_16_02_23",
  168. "currenttime": "2018-05-17_16_02_23"
  169. },
  170. "changed": false
  171. }
  172.  
  173. TASK [Build LAN & WAN subnets fact] ********************************************************************************************************************************************************
  174. task path: /Users/ykretov/github/ops-ansible/playbooks/netops/build_config.yaml:45
  175. objc[73114]: +[__NSPlaceholderDate initialize] may have been in progress in another thread when fork() was called.
  176. 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.
  177.  
  178. ^C [ERROR]: User interrupted execution
Add Comment
Please, Sign In to add comment