Advertisement
Guest User

Untitled

a guest
Sep 5th, 2018
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 47.44 KB | None | 0 0
  1.  
  2. . ____ _ __ _ _
  3. /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
  4. ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
  5. \\/ ___)| |_)| | | | | || (_| | ) ) ) )
  6. ' |____| .__|_| |_|_| |_\__, | / / / /
  7. =========|_|==============|___/=/_/_/_/
  8. :: Spring Boot :: (v1.4.1.RELEASE)
  9.  
  10. 07:41:59.635 [main] INFO com.b4n.vnfm.Application - Starting Application v2.3-FEATURE.magnit on vnfm with PID 1 (/opt/b4n/vnfm/vnfm.jar started by root in /opt/b4n/vnfm)
  11. 07:41:59.637 [main] INFO com.b4n.vnfm.Application - The following profiles are active: dev
  12. 07:42:01.711 [main] INFO com.b4n.vnfm.Application - Running with Spring profile(s) : [dev]
  13. 07:42:02.609 [main] INFO com.b4n.vnfm.Application - Started Application in 3.609 seconds (JVM running for 4.449)
  14. 07:42:02.609 [main] INFO com.b4n.vnfm.Application - Access URLs:
  15. ----------------------------------------------------------
  16. Local: http://127.0.0.1:8081
  17. External: http://10.11.11.101:8081
  18. ----------------------------------------------------------
  19. 07:47:16.516 [pool-2-thread-1] WARN com.b4n.vnfm.configuration.execution.ScriptExecutor - Execution configuration task: com.b4n.vnfm.configuration.tasks.impl.CheckAvailabilityTask without timeout!
  20. 07:47:16.516 [pool-2-thread-1] INFO com.b4n.vnfm.configuration.execution.ScriptExecutor - Called configuration task: com.b4n.vnfm.configuration.tasks.impl.CheckAvailabilityTask without timeout! Attempt No: 1
  21. 07:47:16.516 [pool-2-thread-2] WARN com.b4n.vnfm.configuration.execution.ScriptExecutor - Execution configuration task: com.b4n.vnfm.configuration.tasks.impl.CheckAvailabilityTask without timeout!
  22. 07:47:16.516 [pool-2-thread-2] INFO com.b4n.vnfm.configuration.execution.ScriptExecutor - Called configuration task: com.b4n.vnfm.configuration.tasks.impl.CheckAvailabilityTask without timeout! Attempt No: 1
  23. 07:47:16.518 [pool-2-thread-4] INFO com.b4n.vnfm.ssh - Authenticating by password
  24. 07:47:16.518 [pool-2-thread-3] INFO com.b4n.vnfm.ssh - Authenticating by password
  25. 07:47:20.355 [pool-2-thread-2] INFO com.b4n.vnfm.configuration.execution.ScriptExecutor - Attempt is not successful. Reason: java.util.concurrent.ExecutionException, message: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sshScriptConfigurationExecutor' defined in URL [jar:file:/opt/b4n/vnfm/vnfm.jar!/BOOT-INF/classes!/com/b4n/vnfm/configuration/executors/SshScriptConfigurationExecutor.class]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.b4n.vnfm.configuration.executors.SshScriptConfigurationExecutor]: Constructor threw exception; nested exception is java.net.SocketTimeoutException: connect timed out
  26. 07:47:20.355 [pool-2-thread-1] INFO com.b4n.vnfm.configuration.execution.ScriptExecutor - Attempt is not successful. Reason: java.util.concurrent.ExecutionException, message: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sshScriptConfigurationExecutor' defined in URL [jar:file:/opt/b4n/vnfm/vnfm.jar!/BOOT-INF/classes!/com/b4n/vnfm/configuration/executors/SshScriptConfigurationExecutor.class]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.b4n.vnfm.configuration.executors.SshScriptConfigurationExecutor]: Constructor threw exception; nested exception is java.net.SocketTimeoutException: connect timed out
  27. 07:47:23.580 [pool-2-thread-4] WARN com.b4n.vnfm.configuration.execution.ScriptExecutor - Execution configuration task: com.b4n.vnfm.configuration.tasks.impl.CheckAvailabilityTask without timeout!
  28. 07:47:23.580 [pool-2-thread-4] INFO com.b4n.vnfm.configuration.execution.ScriptExecutor - Called configuration task: com.b4n.vnfm.configuration.tasks.impl.CheckAvailabilityTask without timeout! Attempt No: 1
  29. 07:47:23.580 [pool-2-thread-3] INFO com.b4n.vnfm.ssh - Authenticating by password
  30. 07:47:26.590 [pool-2-thread-4] INFO com.b4n.vnfm.configuration.execution.ScriptExecutor - Attempt is not successful. Reason: java.util.concurrent.ExecutionException, message: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sshScriptConfigurationExecutor' defined in URL [jar:file:/opt/b4n/vnfm/vnfm.jar!/BOOT-INF/classes!/com/b4n/vnfm/configuration/executors/SshScriptConfigurationExecutor.class]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.b4n.vnfm.configuration.executors.SshScriptConfigurationExecutor]: Constructor threw exception; nested exception is java.net.SocketTimeoutException: connect timed out
  31. 07:47:46.517 [pool-2-thread-1] WARN com.b4n.vnfm.configuration.execution.ScriptExecutor - Execution configuration task: com.b4n.vnfm.configuration.tasks.impl.CheckAvailabilityTask without timeout!
  32. 07:47:46.517 [pool-2-thread-1] INFO com.b4n.vnfm.configuration.execution.ScriptExecutor - Called configuration task: com.b4n.vnfm.configuration.tasks.impl.CheckAvailabilityTask without timeout! Attempt No: 2
  33. 07:47:46.518 [pool-2-thread-7] INFO com.b4n.vnfm.ssh - Authenticating by password
  34. 07:47:46.518 [pool-2-thread-2] WARN com.b4n.vnfm.configuration.execution.ScriptExecutor - Execution configuration task: com.b4n.vnfm.configuration.tasks.impl.CheckAvailabilityTask without timeout!
  35. 07:47:46.518 [pool-2-thread-2] INFO com.b4n.vnfm.configuration.execution.ScriptExecutor - Called configuration task: com.b4n.vnfm.configuration.tasks.impl.CheckAvailabilityTask without timeout! Attempt No: 2
  36. 07:47:46.519 [pool-2-thread-5] INFO com.b4n.vnfm.ssh - Authenticating by password
  37. 07:47:48.637 [pool-2-thread-7] INFO com.b4n.vnfm.ssh - Authentication by password successful
  38. 07:47:49.529 [pool-2-thread-1] INFO com.b4n.vnfm.configuration.execution.ScriptExecutor - Attempt is not successful. Reason: java.util.concurrent.ExecutionException, message: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sshScriptConfigurationExecutor' defined in URL [jar:file:/opt/b4n/vnfm/vnfm.jar!/BOOT-INF/classes!/com/b4n/vnfm/configuration/executors/SshScriptConfigurationExecutor.class]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.b4n.vnfm.configuration.executors.SshScriptConfigurationExecutor]: Constructor threw exception; nested exception is java.net.SocketTimeoutException: connect timed out
  39. 07:47:50.742 [http-nio-8081-exec-4] INFO com.b4n.vnfm.rest.VnfmApi - Configuring VNF...
  40. 07:47:50.765 [pool-2-thread-3] WARN com.b4n.vnfm.configuration.execution.ScriptExecutor - Execution configuration task: com.b4n.vnfm.configuration.tasks.impl.CustomScriptTask without timeout!
  41. 07:47:50.765 [pool-2-thread-3] INFO com.b4n.vnfm.configuration.execution.ScriptExecutor - Called configuration task: com.b4n.vnfm.configuration.tasks.impl.CustomScriptTask without timeout! Attempt No: 1
  42. 07:47:50.774 [pool-2-thread-10] INFO com.b4n.vnfm.configuration.executors.AnsibleConfigurationExecutor - Content: ---
  43. - hosts: vdu
  44. tasks:
  45. - name: setting up ssh key
  46. authorized_key:
  47. user: root
  48. key: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCYmUNiXz3fNQfxOdRqH2YGPAbUDewduE2DtrLDPOdzn6MOo2hFP9R0AtlkvwJcWyKKdruWS1WRy22TO++9DcUmlD8VbUbNoKMbpkPiMKMCLTkhwBumRO02z0QVncdUMA+BHVWnJdv/jaBisfzGUaqq9EfCOkRteW6w3V1Jc5zfqufD3rwumRMcPR9qdnVJTMhFB58RIsTi13by6bcLVIIQWAIxWo6x7alqxes46OCQ7CHx3aNNOET5EB3A25SRFa6cFRHbZw8hU9Zan6qOJDbfWkFHhXGfbPxAbnwoX02ZwkbLaFE/JZWr529hyRwAk/4CcKrzurph8ggrqJoLy/GR brain4net@vnfm"
  49. state: present
  50. path: /etc/dropbear/authorized_keys
  51. manage_dir: yes
  52. - name: changing password
  53. user:
  54. name: root
  55. update_password: always
  56. password: "{{ '6jcVndGf' | password_hash('md5') }}"
  57. - name: changing hostname
  58. lineinfile:
  59. path: /etc/config/system
  60. regexp: "option hostname"
  61. line: "\toption hostname 'VDU1536133612425'"
  62. - name: setup network
  63. blockinfile:
  64. path: /etc/config/network
  65. block: |
  66. config interface 'lan'
  67. option ifname 'eth1'
  68. option type 'bridge'
  69. option proto 'static'
  70. option ipaddr '192.168.50.1'
  71. option netmask '255.255.255.0'
  72. config interface 'wan'
  73. option ifname 'eth2'
  74. option proto 'dhcp'
  75. option proto 'static'
  76. option ipaddr '192.168.51.1'
  77. option netmask '255.255.255.0'
  78. marker: ''
  79. - name: restarting network
  80. openwrt_init:
  81. name: network
  82. state: restarted
  83. enabled: yes
  84. - name: changing /etc/hosts for zabbix
  85. lineinfile:
  86. path: /etc/hosts
  87. line: '10.11.12.154 VDU1536133612425'
  88. - name: changing zabbix agent config
  89. lineinfile:
  90. path: /etc/zabbix_agentd.conf
  91. regexp: "{{ item.regexp }}"
  92. line: "{{ item.line }}"
  93. with_items:
  94. - { regexp: '^Server=', line: 'Server=10.11.12.3' }
  95. - { regexp: '^ServerActive=', line: 'ServerActive=10.11.12.3' }
  96. - { regexp: '^Hostname=', line: 'Hostname=VDU1536133612425' }
  97. - name: restarting system service
  98. openwrt_init:
  99. name: system
  100. state: restarted
  101. enabled: yes
  102. - name: restarting zabbix_agentd service
  103. openwrt_init:
  104. name: zabbix_agentd
  105. state: restarted
  106. enabled: yes
  107.  
  108. 07:47:50.779 [pool-2-thread-10] INFO com.b4n.vnfm.configuration.executors.AnsibleConfigurationExecutor - Executing: ansible-playbook -i /tmp/d294323f-1207-4f00-b6f7-30147943df772358976794945426470.tmp /tmp/1536133670771-0/f7124051-af5a-40c6-8296-c0a0b4891ca4
  109. 07:47:53.581 [pool-2-thread-4] WARN com.b4n.vnfm.configuration.execution.ScriptExecutor - Execution configuration task: com.b4n.vnfm.configuration.tasks.impl.CheckAvailabilityTask without timeout!
  110. 07:47:53.581 [pool-2-thread-4] INFO com.b4n.vnfm.configuration.execution.ScriptExecutor - Called configuration task: com.b4n.vnfm.configuration.tasks.impl.CheckAvailabilityTask without timeout! Attempt No: 2
  111. 07:47:53.581 [pool-2-thread-6] INFO com.b4n.vnfm.ssh - Authenticating by password
  112. 07:47:56.591 [pool-2-thread-4] INFO com.b4n.vnfm.configuration.execution.ScriptExecutor - Attempt is not successful. Reason: java.util.concurrent.ExecutionException, message: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sshScriptConfigurationExecutor' defined in URL [jar:file:/opt/b4n/vnfm/vnfm.jar!/BOOT-INF/classes!/com/b4n/vnfm/configuration/executors/SshScriptConfigurationExecutor.class]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.b4n.vnfm.configuration.executors.SshScriptConfigurationExecutor]: Constructor threw exception; nested exception is java.net.SocketTimeoutException: connect timed out
  113. 07:48:01.555 [pool-2-thread-10] INFO com.b4n.vnfm.configuration.executors.AnsibleConfigurationExecutor - Exit code: 0
  114. 07:48:01.557 [pool-2-thread-10] DEBUG com.b4n.vnfm.configuration.executors.SystemProcessExecutor - Response:
  115. PLAY [vdu] *********************************************************************
  116.  
  117. TASK [Gathering Facts] *********************************************************
  118. ok: [10.11.12.154]
  119.  
  120. TASK [setting up ssh key] ******************************************************
  121. changed: [10.11.12.154]
  122.  
  123. TASK [changing password] *******************************************************
  124. changed: [10.11.12.154]
  125.  
  126. TASK [changing hostname] *******************************************************
  127. changed: [10.11.12.154]
  128.  
  129. TASK [setup network] ***********************************************************
  130. changed: [10.11.12.154]
  131.  
  132. TASK [restarting network] ******************************************************
  133. changed: [10.11.12.154]
  134.  
  135. TASK [changing /etc/hosts for zabbix] ******************************************
  136. changed: [10.11.12.154]
  137.  
  138. TASK [changing zabbix agent config] ********************************************
  139. changed: [10.11.12.154] => (item={u'regexp': u'^Server=', u'line': u'Server=10.11.12.3'})
  140. changed: [10.11.12.154] => (item={u'regexp': u'^ServerActive=', u'line': u'ServerActive=10.11.12.3'})
  141. changed: [10.11.12.154] => (item={u'regexp': u'^Hostname=', u'line': u'Hostname=VDU1536133612425'})
  142.  
  143. TASK [restarting system service] ***********************************************
  144. changed: [10.11.12.154]
  145.  
  146. TASK [restarting zabbix_agentd service] ****************************************
  147. changed: [10.11.12.154]
  148.  
  149. PLAY RECAP *********************************************************************
  150. 10.11.12.154 : ok=10 changed=9 unreachable=0 failed=0
  151.  
  152.  
  153. 07:48:01.557 [http-nio-8081-exec-4] INFO com.b4n.vnfm.rest.VnfmApi - VNF has been configured successful
  154. 07:48:01.592 [http-nio-8081-exec-5] INFO com.b4n.vnfm.rest.VnfmApi - Configuring VNF...
  155. 07:48:01.593 [pool-2-thread-7] WARN com.b4n.vnfm.configuration.execution.ScriptExecutor - Execution configuration task: com.b4n.vnfm.configuration.tasks.impl.CustomScriptTask without timeout!
  156. 07:48:01.593 [pool-2-thread-7] INFO com.b4n.vnfm.configuration.execution.ScriptExecutor - Called configuration task: com.b4n.vnfm.configuration.tasks.impl.CustomScriptTask without timeout! Attempt No: 1
  157. 07:48:01.620 [pool-2-thread-12] INFO com.b4n.vnfm.configuration.executors.AnsibleConfigurationExecutor - Content: ---
  158. - hosts: vdu
  159. tasks:
  160. - name: sleep for 60 seconds and continue with play
  161. wait_for: timeout=60
  162. delegate_to: localhost
  163. - name: copy iptables ruleset
  164. copy:
  165. src: ./files/dnsmasq.conf
  166. dest: /etc/dnsmasq.conf
  167. force: yes
  168. - name: sleep for 60 seconds and continue with play
  169. wait_for: timeout=60
  170. delegate_to: localhost
  171. - name: restarting dnsmasq service
  172. openwrt_init:
  173. name: dnsmasq
  174. state: restarted
  175. enabled: yes
  176. any_errors_fatal: true
  177.  
  178.  
  179. 07:48:01.620 [pool-2-thread-12] INFO com.b4n.vnfm.configuration.executors.AnsibleConfigurationExecutor - Executing: ansible-playbook -i /tmp/5d991f58-7dc6-41b0-8b94-9ea6fa2992ad6786887340426797592.tmp /tmp/1536133681593-0/0ce1f831-0c42-4761-93c9-7d0f76ed303d
  180. 07:48:16.518 [pool-2-thread-1] WARN com.b4n.vnfm.configuration.execution.ScriptExecutor - Execution configuration task: com.b4n.vnfm.configuration.tasks.impl.CheckAvailabilityTask without timeout!
  181. 07:48:16.518 [pool-2-thread-1] INFO com.b4n.vnfm.configuration.execution.ScriptExecutor - Called configuration task: com.b4n.vnfm.configuration.tasks.impl.CheckAvailabilityTask without timeout! Attempt No: 3
  182. 07:48:16.518 [pool-2-thread-5] INFO com.b4n.vnfm.ssh - Authenticating by password
  183. 07:48:16.647 [pool-2-thread-5] INFO com.b4n.vnfm.ssh - Authentication by password successful
  184. 07:48:16.657 [http-nio-8081-exec-6] INFO com.b4n.vnfm.rest.VnfmApi - Configuring VNF...
  185. 07:48:16.659 [pool-2-thread-9] WARN com.b4n.vnfm.configuration.execution.ScriptExecutor - Execution configuration task: com.b4n.vnfm.configuration.tasks.impl.CustomScriptTask without timeout!
  186. 07:48:16.659 [pool-2-thread-9] INFO com.b4n.vnfm.configuration.execution.ScriptExecutor - Called configuration task: com.b4n.vnfm.configuration.tasks.impl.CustomScriptTask without timeout! Attempt No: 1
  187. 07:48:16.659 [pool-2-thread-8] INFO com.b4n.vnfm.configuration.executors.AnsibleConfigurationExecutor - Content: ---
  188. - hosts: vdu
  189. tasks:
  190. - name: setting up ssh key
  191. authorized_key:
  192. user: root
  193. key: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCYmUNiXz3fNQfxOdRqH2YGPAbUDewduE2DtrLDPOdzn6MOo2hFP9R0AtlkvwJcWyKKdruWS1WRy22TO++9DcUmlD8VbUbNoKMbpkPiMKMCLTkhwBumRO02z0QVncdUMA+BHVWnJdv/jaBisfzGUaqq9EfCOkRteW6w3V1Jc5zfqufD3rwumRMcPR9qdnVJTMhFB58RIsTi13by6bcLVIIQWAIxWo6x7alqxes46OCQ7CHx3aNNOET5EB3A25SRFa6cFRHbZw8hU9Zan6qOJDbfWkFHhXGfbPxAbnwoX02ZwkbLaFE/JZWr529hyRwAk/4CcKrzurph8ggrqJoLy/GR brain4net@vnfm"
  194. state: present
  195. path: /etc/dropbear/authorized_keys
  196. manage_dir: yes
  197. - name: changing password
  198. user:
  199. name: root
  200. update_password: always
  201. password: "{{ '47gInii2' | password_hash('md5') }}"
  202. - name: changing hostname
  203. lineinfile:
  204. path: /etc/config/system
  205. regexp: "option hostname"
  206. line: "\toption hostname 'VDU1536133611054'"
  207. - name: remove old wan record
  208. replace:
  209. path: /etc/config/network
  210. regexp: "(?s)(config interface 'wan'.+?)\nconfig"
  211. replace: config
  212. - name: write new wan config
  213. blockinfile:
  214. path: /etc/config/network
  215. block: |
  216. config interface 'wan'
  217. option ifname 'eth1'
  218. option proto 'static'
  219. option ipaddr '10.0.3.158'
  220. option netmask '255.255.255.0'
  221. option gateway '10.0.3.254'
  222. option defaultroute '1'
  223. marker: ''
  224. - name: write ctl config
  225. blockinfile:
  226. path: /root/config/controller
  227. block: |
  228. ctl_ip="195.151.47.229"
  229. ctl_port="6653"
  230. marker: ''
  231. - name: write interfaces config
  232. blockinfile:
  233. path: /root/config/interfaces
  234. block: |
  235. port1=4793
  236. port2=4794
  237. marker: ''
  238. - name: restarting network
  239. openwrt_init:
  240. name: network
  241. state: restarted
  242. enabled: yes
  243. - name: changing /etc/hosts for zabbix
  244. lineinfile:
  245. path: /etc/hosts
  246. line: '10.11.12.111 VDU1536133611054'
  247. - name: changing zabbix agent config
  248. lineinfile:
  249. path: /etc/zabbix_agentd.conf
  250. regexp: "{{ item.regexp }}"
  251. line: "{{ item.line }}"
  252. with_items:
  253. - { regexp: '^Server=', line: 'Server=10.11.12.3' }
  254. - { regexp: '^ServerActive=', line: 'ServerActive=10.11.12.3' }
  255. - { regexp: '^Hostname=', line: 'Hostname=VDU1536133611054' }
  256. - name: restarting system service
  257. openwrt_init:
  258. name: system
  259. state: restarted
  260. enabled: yes
  261. - name: restarting zabbix_agentd service
  262. openwrt_init:
  263. name: zabbix_agentd
  264. state: restarted
  265. enabled: yes
  266. - name: waiting for orchestrator API
  267. wait_for:
  268. host: 10.0.3.150
  269. port: 81
  270. - name: register vtep
  271. uri:
  272. url: http://10.0.3.150:81/api/nfv/sdwan/registry/vdu/gateway
  273. method: POST
  274. body: '{ "alias": "GW2", "ip": "195.151.47.229", "hostname": "VDU1536133611054", "port": "4793" }'
  275. body_format: json
  276. headers:
  277. Content-Type: "application/json"
  278. - name: reboot vtep
  279. command: reboot
  280.  
  281. 07:48:16.660 [pool-2-thread-8] INFO com.b4n.vnfm.configuration.executors.AnsibleConfigurationExecutor - Executing: ansible-playbook -i /tmp/76c759d7-8c8a-493a-b8a7-bff8781e30222169502543654634573.tmp /tmp/1536133696659-0/19afc19d-b298-48aa-9073-e40e6109b531
  282. 07:48:23.582 [pool-2-thread-4] WARN com.b4n.vnfm.configuration.execution.ScriptExecutor - Execution configuration task: com.b4n.vnfm.configuration.tasks.impl.CheckAvailabilityTask without timeout!
  283. 07:48:23.582 [pool-2-thread-11] INFO com.b4n.vnfm.ssh - Authenticating by password
  284. 07:48:23.582 [pool-2-thread-4] INFO com.b4n.vnfm.configuration.execution.ScriptExecutor - Called configuration task: com.b4n.vnfm.configuration.tasks.impl.CheckAvailabilityTask without timeout! Attempt No: 3
  285. 07:48:23.722 [pool-2-thread-11] INFO com.b4n.vnfm.ssh - Authentication by password successful
  286. 07:48:23.732 [http-nio-8081-exec-7] INFO com.b4n.vnfm.rest.VnfmApi - Configuring VNF...
  287. 07:48:23.734 [pool-2-thread-10] INFO com.b4n.vnfm.configuration.executors.AnsibleConfigurationExecutor - Content: ---
  288. - hosts: vdu
  289. tasks:
  290. - name: setting up ssh key
  291. authorized_key:
  292. user: root
  293. key: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCYmUNiXz3fNQfxOdRqH2YGPAbUDewduE2DtrLDPOdzn6MOo2hFP9R0AtlkvwJcWyKKdruWS1WRy22TO++9DcUmlD8VbUbNoKMbpkPiMKMCLTkhwBumRO02z0QVncdUMA+BHVWnJdv/jaBisfzGUaqq9EfCOkRteW6w3V1Jc5zfqufD3rwumRMcPR9qdnVJTMhFB58RIsTi13by6bcLVIIQWAIxWo6x7alqxes46OCQ7CHx3aNNOET5EB3A25SRFa6cFRHbZw8hU9Zan6qOJDbfWkFHhXGfbPxAbnwoX02ZwkbLaFE/JZWr529hyRwAk/4CcKrzurph8ggrqJoLy/GR brain4net@vnfm"
  294. state: present
  295. path: /etc/dropbear/authorized_keys
  296. manage_dir: yes
  297. - name: changing password
  298. user:
  299. name: root
  300. update_password: always
  301. password: "{{ 'pIbF5NqN' | password_hash('md5') }}"
  302. - name: changing hostname
  303. lineinfile:
  304. path: /etc/config/system
  305. regexp: "option hostname"
  306. line: "\toption hostname 'VDU1536133610343'"
  307. - name: remove old wan record
  308. replace:
  309. path: /etc/config/network
  310. regexp: "(?s)(config interface 'wan'.+?)\nconfig"
  311. replace: config
  312. - name: write new wan config
  313. blockinfile:
  314. path: /etc/config/network
  315. block: |
  316. config interface 'wan'
  317. option ifname 'eth1'
  318. option proto 'static'
  319. option ipaddr '10.0.3.157'
  320. option netmask '255.255.255.0'
  321. option gateway '10.0.3.254'
  322. option defaultroute '1'
  323. marker: ''
  324. - name: write ctl config
  325. blockinfile:
  326. path: /root/config/controller
  327. block: |
  328. ctl_ip="195.151.47.229"
  329. ctl_port="6653"
  330. marker: ''
  331. - name: write interfaces config
  332. blockinfile:
  333. path: /root/config/interfaces
  334. block: |
  335. port1=4791
  336. port2=4792
  337. marker: ''
  338. - name: restarting network
  339. openwrt_init:
  340. name: network
  341. state: restarted
  342. enabled: yes
  343. - name: changing /etc/hosts for zabbix
  344. lineinfile:
  345. path: /etc/hosts
  346. line: '10.11.12.151 VDU1536133610343'
  347. - name: changing zabbix agent config
  348. lineinfile:
  349. path: /etc/zabbix_agentd.conf
  350. regexp: "{{ item.regexp }}"
  351. line: "{{ item.line }}"
  352. with_items:
  353. - { regexp: '^Server=', line: 'Server=10.11.12.3' }
  354. - { regexp: '^ServerActive=', line: 'ServerActive=10.11.12.3' }
  355. - { regexp: '^Hostname=', line: 'Hostname=VDU1536133610343' }
  356. - name: restarting system service
  357. openwrt_init:
  358. name: system
  359. state: restarted
  360. enabled: yes
  361. - name: restarting zabbix_agentd service
  362. openwrt_init:
  363. name: zabbix_agentd
  364. state: restarted
  365. enabled: yes
  366. - name: waiting for orchestrator API
  367. wait_for:
  368. host: 10.0.3.150
  369. port: 81
  370. - name: register vtep
  371. uri:
  372. url: http://10.0.3.150:81/api/nfv/sdwan/registry/vdu/gateway
  373. method: POST
  374. body: '{ "alias": "GW1", "ip": "195.151.47.229", "hostname": "VDU1536133610343", "port": "4791" }'
  375. body_format: json
  376. headers:
  377. Content-Type: "application/json"
  378. - name: reboot vtep
  379. command: reboot
  380.  
  381. 07:48:23.734 [pool-2-thread-10] INFO com.b4n.vnfm.configuration.executors.AnsibleConfigurationExecutor - Executing: ansible-playbook -i /tmp/011a5e27-8756-418a-8c0c-f66d2494549d1791149639777647592.tmp /tmp/1536133703734-0/04490705-1592-424f-b9c0-90877d548bf5
  382. 07:48:23.735 [pool-2-thread-6] WARN com.b4n.vnfm.configuration.execution.ScriptExecutor - Execution configuration task: com.b4n.vnfm.configuration.tasks.impl.CustomScriptTask without timeout!
  383. 07:48:23.735 [pool-2-thread-6] INFO com.b4n.vnfm.configuration.execution.ScriptExecutor - Called configuration task: com.b4n.vnfm.configuration.tasks.impl.CustomScriptTask without timeout! Attempt No: 1
  384. 07:48:35.908 [pool-2-thread-8] INFO com.b4n.vnfm.configuration.executors.AnsibleConfigurationExecutor - Exit code: 0
  385. 07:48:35.909 [pool-2-thread-8] DEBUG com.b4n.vnfm.configuration.executors.SystemProcessExecutor - Response:
  386. PLAY [vdu] *********************************************************************
  387.  
  388. TASK [Gathering Facts] *********************************************************
  389. ok: [10.11.12.111]
  390.  
  391. TASK [setting up ssh key] ******************************************************
  392. changed: [10.11.12.111]
  393.  
  394. TASK [changing password] *******************************************************
  395. changed: [10.11.12.111]
  396.  
  397. TASK [changing hostname] *******************************************************
  398. changed: [10.11.12.111]
  399.  
  400. TASK [remove old wan record] ***************************************************
  401. changed: [10.11.12.111]
  402.  
  403. TASK [write new wan config] ****************************************************
  404. changed: [10.11.12.111]
  405.  
  406. TASK [write ctl config] ********************************************************
  407. changed: [10.11.12.111]
  408.  
  409. TASK [write interfaces config] *************************************************
  410. changed: [10.11.12.111]
  411.  
  412. TASK [restarting network] ******************************************************
  413. changed: [10.11.12.111]
  414.  
  415. TASK [changing /etc/hosts for zabbix] ******************************************
  416. changed: [10.11.12.111]
  417.  
  418. TASK [changing zabbix agent config] ********************************************
  419. changed: [10.11.12.111] => (item={u'regexp': u'^Server=', u'line': u'Server=10.11.12.3'})
  420. changed: [10.11.12.111] => (item={u'regexp': u'^ServerActive=', u'line': u'ServerActive=10.11.12.3'})
  421. changed: [10.11.12.111] => (item={u'regexp': u'^Hostname=', u'line': u'Hostname=VDU1536133611054'})
  422.  
  423. TASK [restarting system service] ***********************************************
  424. changed: [10.11.12.111]
  425.  
  426. TASK [restarting zabbix_agentd service] ****************************************
  427. changed: [10.11.12.111]
  428.  
  429. TASK [waiting for orchestrator API] ********************************************
  430. ok: [10.11.12.111]
  431.  
  432. TASK [register vtep] ***********************************************************
  433. ok: [10.11.12.111]
  434.  
  435. TASK [reboot vtep] *************************************************************
  436. changed: [10.11.12.111]
  437.  
  438. PLAY RECAP *********************************************************************
  439. 10.11.12.111 : ok=16 changed=13 unreachable=0 failed=0
  440.  
  441.  
  442. 07:48:35.909 [http-nio-8081-exec-6] INFO com.b4n.vnfm.rest.VnfmApi - VNF has been configured successful
  443. 07:48:42.922 [pool-2-thread-10] INFO com.b4n.vnfm.configuration.executors.AnsibleConfigurationExecutor - Exit code: 0
  444. 07:48:42.923 [pool-2-thread-10] DEBUG com.b4n.vnfm.configuration.executors.SystemProcessExecutor - Response:
  445. PLAY [vdu] *********************************************************************
  446.  
  447. TASK [Gathering Facts] *********************************************************
  448. ok: [10.11.12.151]
  449.  
  450. TASK [setting up ssh key] ******************************************************
  451. changed: [10.11.12.151]
  452.  
  453. TASK [changing password] *******************************************************
  454. changed: [10.11.12.151]
  455.  
  456. TASK [changing hostname] *******************************************************
  457. changed: [10.11.12.151]
  458.  
  459. TASK [remove old wan record] ***************************************************
  460. changed: [10.11.12.151]
  461.  
  462. TASK [write new wan config] ****************************************************
  463. changed: [10.11.12.151]
  464.  
  465. TASK [write ctl config] ********************************************************
  466. changed: [10.11.12.151]
  467.  
  468. TASK [write interfaces config] *************************************************
  469. changed: [10.11.12.151]
  470.  
  471. TASK [restarting network] ******************************************************
  472. changed: [10.11.12.151]
  473.  
  474. TASK [changing /etc/hosts for zabbix] ******************************************
  475. changed: [10.11.12.151]
  476.  
  477. TASK [changing zabbix agent config] ********************************************
  478. changed: [10.11.12.151] => (item={u'regexp': u'^Server=', u'line': u'Server=10.11.12.3'})
  479. changed: [10.11.12.151] => (item={u'regexp': u'^ServerActive=', u'line': u'ServerActive=10.11.12.3'})
  480. changed: [10.11.12.151] => (item={u'regexp': u'^Hostname=', u'line': u'Hostname=VDU1536133610343'})
  481.  
  482. TASK [restarting system service] ***********************************************
  483. changed: [10.11.12.151]
  484.  
  485. TASK [restarting zabbix_agentd service] ****************************************
  486. changed: [10.11.12.151]
  487.  
  488. TASK [waiting for orchestrator API] ********************************************
  489. ok: [10.11.12.151]
  490.  
  491. TASK [register vtep] ***********************************************************
  492. ok: [10.11.12.151]
  493.  
  494. TASK [reboot vtep] *************************************************************
  495. changed: [10.11.12.151]
  496.  
  497. PLAY RECAP *********************************************************************
  498. 10.11.12.151 : ok=16 changed=13 unreachable=0 failed=0
  499.  
  500.  
  501. 07:48:42.923 [http-nio-8081-exec-7] INFO com.b4n.vnfm.rest.VnfmApi - VNF has been configured successful
  502. 07:49:09.075 [pool-2-thread-20] INFO com.b4n.vnfm.ssh - Authenticating by password
  503. 07:49:09.075 [pool-2-thread-3] WARN com.b4n.vnfm.configuration.execution.ScriptExecutor - Execution configuration task: com.b4n.vnfm.configuration.tasks.impl.CheckAvailabilityTask without timeout!
  504. 07:49:09.075 [pool-2-thread-3] INFO com.b4n.vnfm.configuration.execution.ScriptExecutor - Called configuration task: com.b4n.vnfm.configuration.tasks.impl.CheckAvailabilityTask without timeout! Attempt No: 1
  505. 07:49:12.080 [pool-2-thread-3] INFO com.b4n.vnfm.configuration.execution.ScriptExecutor - Attempt is not successful. Reason: java.util.concurrent.ExecutionException, message: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sshScriptConfigurationExecutor' defined in URL [jar:file:/opt/b4n/vnfm/vnfm.jar!/BOOT-INF/classes!/com/b4n/vnfm/configuration/executors/SshScriptConfigurationExecutor.class]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.b4n.vnfm.configuration.executors.SshScriptConfigurationExecutor]: Constructor threw exception; nested exception is java.net.SocketTimeoutException: connect timed out
  506. 07:49:39.076 [pool-2-thread-13] INFO com.b4n.vnfm.ssh - Authenticating by password
  507. 07:49:39.076 [pool-2-thread-3] WARN com.b4n.vnfm.configuration.execution.ScriptExecutor - Execution configuration task: com.b4n.vnfm.configuration.tasks.impl.CheckAvailabilityTask without timeout!
  508. 07:49:39.076 [pool-2-thread-3] INFO com.b4n.vnfm.configuration.execution.ScriptExecutor - Called configuration task: com.b4n.vnfm.configuration.tasks.impl.CheckAvailabilityTask without timeout! Attempt No: 2
  509. 07:49:42.082 [pool-2-thread-3] INFO com.b4n.vnfm.configuration.execution.ScriptExecutor - Attempt is not successful. Reason: java.util.concurrent.ExecutionException, message: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sshScriptConfigurationExecutor' defined in URL [jar:file:/opt/b4n/vnfm/vnfm.jar!/BOOT-INF/classes!/com/b4n/vnfm/configuration/executors/SshScriptConfigurationExecutor.class]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.b4n.vnfm.configuration.executors.SshScriptConfigurationExecutor]: Constructor threw exception; nested exception is java.net.SocketTimeoutException: connect timed out
  510. 07:50:06.632 [pool-2-thread-12] INFO com.b4n.vnfm.configuration.executors.AnsibleConfigurationExecutor - Exit code: 0
  511. 07:50:06.633 [pool-2-thread-12] DEBUG com.b4n.vnfm.configuration.executors.SystemProcessExecutor - Response:
  512. PLAY [vdu] *********************************************************************
  513.  
  514. TASK [Gathering Facts] *********************************************************
  515. ok: [10.11.12.154]
  516.  
  517. TASK [sleep for 60 seconds and continue with play] *****************************
  518. ok: [10.11.12.154 -> localhost]
  519.  
  520. TASK [copy iptables ruleset] ***************************************************
  521. changed: [10.11.12.154]
  522.  
  523. TASK [sleep for 60 seconds and continue with play] *****************************
  524. ok: [10.11.12.154 -> localhost]
  525.  
  526. TASK [restarting dnsmasq service] **********************************************
  527. changed: [10.11.12.154]
  528.  
  529. PLAY RECAP *********************************************************************
  530. 10.11.12.154 : ok=5 changed=2 unreachable=0 failed=0
  531.  
  532.  
  533. 07:50:06.633 [http-nio-8081-exec-5] INFO com.b4n.vnfm.rest.VnfmApi - VNF has been configured successful
  534. 07:50:09.076 [pool-2-thread-14] INFO com.b4n.vnfm.ssh - Authenticating by password
  535. 07:50:09.078 [pool-2-thread-3] WARN com.b4n.vnfm.configuration.execution.ScriptExecutor - Execution configuration task: com.b4n.vnfm.configuration.tasks.impl.CheckAvailabilityTask without timeout!
  536. 07:50:09.078 [pool-2-thread-3] INFO com.b4n.vnfm.configuration.execution.ScriptExecutor - Called configuration task: com.b4n.vnfm.configuration.tasks.impl.CheckAvailabilityTask without timeout! Attempt No: 3
  537. 07:50:09.381 [pool-2-thread-14] INFO com.b4n.vnfm.ssh - Authentication by password successful
  538. 07:50:09.391 [http-nio-8081-exec-1] INFO com.b4n.vnfm.rest.VnfmApi - Configuring VNF...
  539. 07:50:09.392 [pool-2-thread-5] WARN com.b4n.vnfm.configuration.execution.ScriptExecutor - Execution configuration task: com.b4n.vnfm.configuration.tasks.impl.CustomScriptTask without timeout!
  540. 07:50:09.392 [pool-2-thread-5] INFO com.b4n.vnfm.configuration.execution.ScriptExecutor - Called configuration task: com.b4n.vnfm.configuration.tasks.impl.CustomScriptTask without timeout! Attempt No: 1
  541. 07:50:09.392 [pool-2-thread-24] INFO com.b4n.vnfm.configuration.executors.AnsibleConfigurationExecutor - Content: ---
  542. - hosts: vdu
  543. tasks:
  544. - name: setting up the ssh key
  545. authorized_key:
  546. user: root
  547. key: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCYmUNiXz3fNQfxOdRqH2YGPAbUDewduE2DtrLDPOdzn6MOo2hFP9R0AtlkvwJcWyKKdruWS1WRy22TO++9DcUmlD8VbUbNoKMbpkPiMKMCLTkhwBumRO02z0QVncdUMA+BHVWnJdv/jaBisfzGUaqq9EfCOkRteW6w3V1Jc5zfqufD3rwumRMcPR9qdnVJTMhFB58RIsTi13by6bcLVIIQWAIxWo6x7alqxes46OCQ7CHx3aNNOET5EB3A25SRFa6cFRHbZw8hU9Zan6qOJDbfWkFHhXGfbPxAbnwoX02ZwkbLaFE/JZWr529hyRwAk/4CcKrzurph8ggrqJoLy/GR brain4net@vnfm"
  548. state: present
  549. manage_dir: yes
  550. - name:
  551. user:
  552. name: root
  553. update_password: always
  554. password: "{{ 'fEgTLC2o' | password_hash('sha512') }}"
  555. - name: changing hostname
  556. hostname:
  557. name: VDU1536133611741
  558. - name: hosts for marvel lab
  559. lineinfile:
  560. path: /etc/hosts
  561. line: "10.0.3.5 registry.brain4net.com"
  562. - name: editing /etc/zabbix/zabbix_agentd.conf
  563. lineinfile:
  564. path: /etc/zabbix/zabbix_agentd.conf
  565. regexp: "{{ item.regexp }}"
  566. line: "{{ item.line }}"
  567. with_items:
  568. - { regexp: '^Server=', line: 'Server=10.11.12.3' }
  569. - { regexp: '^ServerActive=', line: 'ServerActive=10.11.12.3' }
  570. - { regexp: '^Hostname=', line: 'Hostname=VDU1536133611741' }
  571. - name: restarting zabbix-agent service
  572. service:
  573. name: zabbix-agent
  574. state: restarted
  575. enabled: yes
  576. - name: configure eth1
  577. command: 'nmcli connection modify "Wired connection 1" con-name eth1 ipv4.method manual ip4 10.0.3.156/24 ipv4.gateway 10.0.3.254 ipv6.method ignore ipv4.dns 8.8.8.8'
  578. - name: modifying /etc/hosts for mongo replicaset resolving
  579. lineinfile:
  580. path: /etc/hosts
  581. line: '10.0.3.156 VDU1536133611741'
  582. - name: restart network
  583. service:
  584. name: network
  585. state: restarted
  586.  
  587. 07:50:09.392 [pool-2-thread-24] INFO com.b4n.vnfm.configuration.executors.AnsibleConfigurationExecutor - Executing: ansible-playbook -i /tmp/d83a733e-1bcc-4970-94a5-db56209602ad406589819910030110.tmp /tmp/1536133809392-0/e2096114-116a-45d4-bc35-e425da70152d
  588. 07:50:17.890 [pool-2-thread-24] INFO com.b4n.vnfm.configuration.executors.AnsibleConfigurationExecutor - Exit code: 0
  589. 07:50:17.890 [pool-2-thread-24] DEBUG com.b4n.vnfm.configuration.executors.SystemProcessExecutor - Response:
  590. PLAY [vdu] *********************************************************************
  591.  
  592. TASK [Gathering Facts] *********************************************************
  593. ok: [10.11.12.152]
  594.  
  595. TASK [setting up the ssh key] **************************************************
  596. changed: [10.11.12.152]
  597.  
  598. TASK [user] ********************************************************************
  599. changed: [10.11.12.152]
  600.  
  601. TASK [changing hostname] *******************************************************
  602. changed: [10.11.12.152]
  603.  
  604. TASK [hosts for marvel lab] ****************************************************
  605. changed: [10.11.12.152]
  606.  
  607. TASK [editing /etc/zabbix/zabbix_agentd.conf] **********************************
  608. changed: [10.11.12.152] => (item={u'regexp': u'^Server=', u'line': u'Server=10.11.12.3'})
  609. changed: [10.11.12.152] => (item={u'regexp': u'^ServerActive=', u'line': u'ServerActive=10.11.12.3'})
  610. changed: [10.11.12.152] => (item={u'regexp': u'^Hostname=', u'line': u'Hostname=VDU1536133611741'})
  611.  
  612. TASK [restarting zabbix-agent service] *****************************************
  613. changed: [10.11.12.152]
  614.  
  615. TASK [configure eth1] **********************************************************
  616. changed: [10.11.12.152]
  617.  
  618. TASK [modifying /etc/hosts for mongo replicaset resolving] *********************
  619. changed: [10.11.12.152]
  620.  
  621. TASK [restart network] *********************************************************
  622. changed: [10.11.12.152]
  623.  
  624. PLAY RECAP *********************************************************************
  625. 10.11.12.152 : ok=10 changed=9 unreachable=0 failed=0
  626.  
  627.  
  628. 07:50:17.890 [http-nio-8081-exec-1] INFO com.b4n.vnfm.rest.VnfmApi - VNF has been configured successful
  629. 07:50:17.903 [http-nio-8081-exec-2] INFO com.b4n.vnfm.rest.VnfmApi - Configuring VNF...
  630. 07:50:17.904 [pool-2-thread-15] INFO com.b4n.vnfm.configuration.execution.ScriptExecutor - Called configuration task: com.b4n.vnfm.configuration.tasks.impl.CustomScriptTask, with timeout 600000 mills. Attempt No: 1
  631. 07:50:17.904 [pool-2-thread-26] INFO com.b4n.vnfm.ssh - Authenticating by key
  632. 07:50:22.994 [pool-2-thread-26] INFO com.b4n.vnfm.ssh - Authentication by key successful
  633. 07:50:22.998 [pool-2-thread-26] INFO com.b4n.vnfm.configuration.executors.SshScriptConfigurationExecutor - Script: #!/usr/bin/env bash
  634.  
  635. cd playbooks
  636.  
  637. ansible-playbook -e 'target=localhost state=preserve_db' deploy_ctl.yml
  638.  
  639. ansible-playbook -e '{"pull":true,"state":"present","ctl_tag":"FEATURE.magnit","ctl_version":"ctl-v2","registry_pass":"R1;;toolsT","ctl_env":"JAVA_OPTS=\"-Djgroups.bind_addr={{ ansible_eth1.ipv4.address }} -Xmx3g -Dcore.link.liveness.interval=1000 -Ddampening.link.enabled=false -Dcore.link.liveness.timeout=15000 -Dqos.classifier.dscp.modify.enabled=true -Dswitch.overload.auto=true -Dcore.switch.liveness.timeout=15000 -Dcore.link.bonding.enable=true -Dcore.link.bonding.equal.cost=false -Dmongo.host=127.0.0.1 -Dmongo.port=27016 -Deth.t.type=0x8100\"","target":"localhost"}' deploy_ctl.yml
  640.  
  641. wait=0
  642.  
  643. until docker logs ctl | grep -q -i 'joining on startup in a disabled cluster policy'
  644. do
  645. sleep 1
  646. if [ $(( wait++ )) -eq 60 ]
  647. then
  648. echo 'Timeout reached.'
  649. exit 1
  650. fi
  651. echo 'Waiting for the controller to start...'
  652. done
  653.  
  654. curl -d '{ "alias":"Controller1", "ip":"195.151.47.229", "managementIp":"10.0.3.156", "hostname":"VDU1536133611741", "port":"6653" }' -H "Content-Type:application/json" -X POST http://10.0.3.150:81/api/nfv/sdwan/registry/vdu/controller
  655.  
  656. echo "vnfm:exit"
  657.  
  658. 07:50:28.010 [pool-2-thread-26] INFO com.b4n.vnfm.configuration.executors.SshScriptConfigurationExecutor - Copying by scp
  659. 07:50:28.385 [pool-2-thread-26] INFO com.b4n.vnfm.configuration.executors.SshScriptConfigurationExecutor - Executing command: /bin/bash b605a27f-9a63-42de-822a-f24506a58075
  660. 07:51:25.873 [http-nio-8081-exec-2] INFO com.b4n.vnfm.rest.VnfmApi - VNF has been configured successful
  661. 07:57:15.669 [http-nio-8081-exec-6] INFO com.b4n.vnfm.rest.VnfmApi - Configuring VNF...
  662. 07:57:15.670 [pool-2-thread-17] INFO com.b4n.vnfm.configuration.execution.ScriptExecutor - Called configuration task: com.b4n.vnfm.configuration.tasks.impl.CustomScriptTask, with timeout 360000 mills. Attempt No: 1
  663. 07:57:15.682 [pool-2-thread-11] INFO com.b4n.vnfm.configuration.executors.AnsibleConfigurationExecutor - Content: - hosts: vdu
  664. gather_facts: no
  665. tasks:
  666. - name: Set an IP br-lan
  667. command: ip route add 192.168.51.0/24 dev lan
  668. any_errors_fatal: false
  669. - debug:
  670. msg: "All config have been applied successfully."
  671. 07:57:15.682 [pool-2-thread-11] INFO com.b4n.vnfm.configuration.executors.AnsibleConfigurationExecutor - Executing: ansible-playbook --private-key=/tmp/a2542b2b-250a-490c-86eb-2c0ef3c845856963237254290490486 -i /tmp/97c3eba8-0b0c-4b73-bb91-1c35a9d813a51686125323892443344.tmp /tmp/1536134235670-0/3399640a-95ba-4d5f-8f19-a62321767f37
  672. 07:57:19.943 [pool-2-thread-11] INFO com.b4n.vnfm.configuration.executors.AnsibleConfigurationExecutor - Exit code: 4
  673. 07:57:19.944 [pool-2-thread-11] DEBUG com.b4n.vnfm.configuration.executors.SystemProcessExecutor - Response:
  674. PLAY [vdu] *********************************************************************
  675.  
  676. TASK [Set an IP br-lan] ********************************************************
  677. fatal: [10.11.12.145]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: ssh: connect to host 10.11.12.145 port 22: Host is unreachable\r\n", "unreachable": true}
  678. to retry, use: --limit @/tmp/1536134235670-0/3399640a-95ba-4d5f-8f19-a62321767f37.retry
  679.  
  680. PLAY RECAP *********************************************************************
  681. 10.11.12.145 : ok=0 changed=0 unreachable=1 failed=0
  682.  
  683.  
  684. 07:57:19.944 [pool-2-thread-11] ERROR com.b4n.vnfm.configuration.executors.SystemProcessExecutor - Unable to execute:
  685. 07:57:19.945 [pool-2-thread-17] INFO com.b4n.vnfm.configuration.execution.ScriptExecutor - Attempt is not successful. Reason: java.util.concurrent.ExecutionException, message: java.lang.RuntimeException: Unable to execute
  686. 07:57:45.670 [pool-2-thread-17] INFO com.b4n.vnfm.configuration.execution.ScriptExecutor - Called configuration task: com.b4n.vnfm.configuration.tasks.impl.CustomScriptTask, with timeout 360000 mills. Attempt No: 2
  687. 07:57:45.673 [pool-2-thread-4] INFO com.b4n.vnfm.configuration.executors.AnsibleConfigurationExecutor - Content: - hosts: vdu
  688. gather_facts: no
  689. tasks:
  690. - name: Set an IP br-lan
  691. command: ip route add 192.168.51.0/24 dev lan
  692. any_errors_fatal: false
  693. - debug:
  694. msg: "All config have been applied successfully."
  695. 07:57:45.674 [pool-2-thread-4] INFO com.b4n.vnfm.configuration.executors.AnsibleConfigurationExecutor - Executing: ansible-playbook --private-key=/tmp/0e851d64-19dd-4245-bc92-3a866f9a44f42676829398460923285 -i /tmp/030e937d-7727-42e0-b2d3-21c57bae064f2297172964390864802.tmp /tmp/1536134265670-0/2bd754bb-b785-445e-bb1e-1c88814a06bb
  696. 07:57:48.588 [pool-2-thread-4] INFO com.b4n.vnfm.configuration.executors.AnsibleConfigurationExecutor - Exit code: 0
  697. 07:57:48.588 [pool-2-thread-4] DEBUG com.b4n.vnfm.configuration.executors.SystemProcessExecutor - Response:
  698. PLAY [vdu] *********************************************************************
  699.  
  700. TASK [Set an IP br-lan] ********************************************************
  701. changed: [10.11.12.145]
  702.  
  703. TASK [debug] *******************************************************************
  704. ok: [10.11.12.145] => {
  705. "msg": "All config have been applied successfully."
  706. }
  707.  
  708. PLAY RECAP *********************************************************************
  709. 10.11.12.145 : ok=2 changed=1 unreachable=0 failed=0
  710.  
  711.  
  712. 07:57:48.589 [http-nio-8081-exec-6] INFO com.b4n.vnfm.rest.VnfmApi - VNF has been configured successful
  713. 07:57:48.598 [http-nio-8081-exec-7] INFO com.b4n.vnfm.rest.VnfmApi - Configuring VNF...
  714. 08:03:07.499 [http-nio-8081-exec-8] INFO com.b4n.vnfm.rest.VnfmApi - Configuring VNF...
  715. 08:03:07.500 [pool-2-thread-18] INFO com.b4n.vnfm.configuration.execution.ScriptExecutor - Called configuration task: com.b4n.vnfm.configuration.tasks.impl.CustomScriptTask, with timeout 360000 mills. Attempt No: 1
  716. 08:03:07.503 [pool-2-thread-19] INFO com.b4n.vnfm.configuration.executors.AnsibleConfigurationExecutor - Content: - hosts: vdu
  717. gather_facts: no
  718. tasks:
  719. - name: Set an IP br-lan
  720. command: ip route add 192.168.51.0/24 dev lan
  721. any_errors_fatal: false
  722. - debug:
  723. msg: "All config have been applied successfully."
  724. 08:03:07.503 [pool-2-thread-19] INFO com.b4n.vnfm.configuration.executors.AnsibleConfigurationExecutor - Executing: ansible-playbook --private-key=/tmp/a116fae0-5096-4395-a425-4b17cc842ae82077699278480816584 -i /tmp/f1e095f0-db57-47d4-ae5b-9675fab39e6d9014292885657591162.tmp /tmp/1536134587500-0/cb16b903-da1b-483a-b832-08b7e333882b
  725. 08:03:11.763 [pool-2-thread-19] INFO com.b4n.vnfm.configuration.executors.AnsibleConfigurationExecutor - Exit code: 4
  726. 08:03:11.764 [pool-2-thread-19] DEBUG com.b4n.vnfm.configuration.executors.SystemProcessExecutor - Response:
  727. PLAY [vdu] *********************************************************************
  728.  
  729. TASK [Set an IP br-lan] ********************************************************
  730. fatal: [10.11.12.128]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: ssh: connect to host 10.11.12.128 port 22: Host is unreachable\r\n", "unreachable": true}
  731. to retry, use: --limit @/tmp/1536134587500-0/cb16b903-da1b-483a-b832-08b7e333882b.retry
  732.  
  733. PLAY RECAP *********************************************************************
  734. 10.11.12.128 : ok=0 changed=0 unreachable=1 failed=0
  735.  
  736.  
  737. 08:03:11.765 [pool-2-thread-19] ERROR com.b4n.vnfm.configuration.executors.SystemProcessExecutor - Unable to execute:
  738. 08:03:11.765 [pool-2-thread-18] INFO com.b4n.vnfm.configuration.execution.ScriptExecutor - Attempt is not successful. Reason: java.util.concurrent.ExecutionException, message: java.lang.RuntimeException: Unable to execute
  739. 08:03:37.501 [pool-2-thread-18] INFO com.b4n.vnfm.configuration.execution.ScriptExecutor - Called configuration task: com.b4n.vnfm.configuration.tasks.impl.CustomScriptTask, with timeout 360000 mills. Attempt No: 2
  740. 08:03:37.504 [pool-2-thread-8] INFO com.b4n.vnfm.configuration.executors.AnsibleConfigurationExecutor - Content: - hosts: vdu
  741. gather_facts: no
  742. tasks:
  743. - name: Set an IP br-lan
  744. command: ip route add 192.168.51.0/24 dev lan
  745. any_errors_fatal: false
  746. - debug:
  747. msg: "All config have been applied successfully."
  748. 08:03:37.504 [pool-2-thread-8] INFO com.b4n.vnfm.configuration.executors.AnsibleConfigurationExecutor - Executing: ansible-playbook --private-key=/tmp/48e46d4f-d6c5-4a54-a7b6-c54a4e86a9f13876356344582106079 -i /tmp/43b9dea8-bc6a-4382-93f7-59f50553b11c5940316925018963411.tmp /tmp/1536134617501-0/7c781235-bbee-41c4-ae5a-127ecb496e0f
  749. 08:03:40.684 [pool-2-thread-8] INFO com.b4n.vnfm.configuration.executors.AnsibleConfigurationExecutor - Exit code: 0
  750. 08:03:40.684 [pool-2-thread-8] DEBUG com.b4n.vnfm.configuration.executors.SystemProcessExecutor - Response:
  751. PLAY [vdu] *********************************************************************
  752.  
  753. TASK [Set an IP br-lan] ********************************************************
  754. changed: [10.11.12.128]
  755.  
  756. TASK [debug] *******************************************************************
  757. ok: [10.11.12.128] => {
  758. "msg": "All config have been applied successfully."
  759. }
  760.  
  761. PLAY RECAP *********************************************************************
  762. 10.11.12.128 : ok=2 changed=1 unreachable=0 failed=0
  763.  
  764.  
  765. 08:03:40.685 [http-nio-8081-exec-8] INFO com.b4n.vnfm.rest.VnfmApi - VNF has been configured successful
  766. 08:03:40.693 [http-nio-8081-exec-9] INFO com.b4n.vnfm.rest.VnfmApi - Configuring VNF...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement