Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- . ____ _ __ _ _
- /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
- ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
- \\/ ___)| |_)| | | | | || (_| | ) ) ) )
- ' |____| .__|_| |_|_| |_\__, | / / / /
- =========|_|==============|___/=/_/_/_/
- :: Spring Boot :: (v1.4.1.RELEASE)
- 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)
- 07:41:59.637 [main] INFO com.b4n.vnfm.Application - The following profiles are active: dev
- 07:42:01.711 [main] INFO com.b4n.vnfm.Application - Running with Spring profile(s) : [dev]
- 07:42:02.609 [main] INFO com.b4n.vnfm.Application - Started Application in 3.609 seconds (JVM running for 4.449)
- 07:42:02.609 [main] INFO com.b4n.vnfm.Application - Access URLs:
- ----------------------------------------------------------
- Local: http://127.0.0.1:8081
- External: http://10.11.11.101:8081
- ----------------------------------------------------------
- 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!
- 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
- 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!
- 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
- 07:47:16.518 [pool-2-thread-4] INFO com.b4n.vnfm.ssh - Authenticating by password
- 07:47:16.518 [pool-2-thread-3] INFO com.b4n.vnfm.ssh - Authenticating by password
- 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
- 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
- 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!
- 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
- 07:47:23.580 [pool-2-thread-3] INFO com.b4n.vnfm.ssh - Authenticating by password
- 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
- 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!
- 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
- 07:47:46.518 [pool-2-thread-7] INFO com.b4n.vnfm.ssh - Authenticating by password
- 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!
- 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
- 07:47:46.519 [pool-2-thread-5] INFO com.b4n.vnfm.ssh - Authenticating by password
- 07:47:48.637 [pool-2-thread-7] INFO com.b4n.vnfm.ssh - Authentication by password successful
- 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
- 07:47:50.742 [http-nio-8081-exec-4] INFO com.b4n.vnfm.rest.VnfmApi - Configuring VNF...
- 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!
- 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
- 07:47:50.774 [pool-2-thread-10] INFO com.b4n.vnfm.configuration.executors.AnsibleConfigurationExecutor - Content: ---
- - hosts: vdu
- tasks:
- - name: setting up ssh key
- authorized_key:
- user: root
- key: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCYmUNiXz3fNQfxOdRqH2YGPAbUDewduE2DtrLDPOdzn6MOo2hFP9R0AtlkvwJcWyKKdruWS1WRy22TO++9DcUmlD8VbUbNoKMbpkPiMKMCLTkhwBumRO02z0QVncdUMA+BHVWnJdv/jaBisfzGUaqq9EfCOkRteW6w3V1Jc5zfqufD3rwumRMcPR9qdnVJTMhFB58RIsTi13by6bcLVIIQWAIxWo6x7alqxes46OCQ7CHx3aNNOET5EB3A25SRFa6cFRHbZw8hU9Zan6qOJDbfWkFHhXGfbPxAbnwoX02ZwkbLaFE/JZWr529hyRwAk/4CcKrzurph8ggrqJoLy/GR brain4net@vnfm"
- state: present
- path: /etc/dropbear/authorized_keys
- manage_dir: yes
- - name: changing password
- user:
- name: root
- update_password: always
- password: "{{ '6jcVndGf' | password_hash('md5') }}"
- - name: changing hostname
- lineinfile:
- path: /etc/config/system
- regexp: "option hostname"
- line: "\toption hostname 'VDU1536133612425'"
- - name: setup network
- blockinfile:
- path: /etc/config/network
- block: |
- config interface 'lan'
- option ifname 'eth1'
- option type 'bridge'
- option proto 'static'
- option ipaddr '192.168.50.1'
- option netmask '255.255.255.0'
- config interface 'wan'
- option ifname 'eth2'
- option proto 'dhcp'
- option proto 'static'
- option ipaddr '192.168.51.1'
- option netmask '255.255.255.0'
- marker: ''
- - name: restarting network
- openwrt_init:
- name: network
- state: restarted
- enabled: yes
- - name: changing /etc/hosts for zabbix
- lineinfile:
- path: /etc/hosts
- line: '10.11.12.154 VDU1536133612425'
- - name: changing zabbix agent config
- lineinfile:
- path: /etc/zabbix_agentd.conf
- regexp: "{{ item.regexp }}"
- line: "{{ item.line }}"
- with_items:
- - { regexp: '^Server=', line: 'Server=10.11.12.3' }
- - { regexp: '^ServerActive=', line: 'ServerActive=10.11.12.3' }
- - { regexp: '^Hostname=', line: 'Hostname=VDU1536133612425' }
- - name: restarting system service
- openwrt_init:
- name: system
- state: restarted
- enabled: yes
- - name: restarting zabbix_agentd service
- openwrt_init:
- name: zabbix_agentd
- state: restarted
- enabled: yes
- 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
- 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!
- 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
- 07:47:53.581 [pool-2-thread-6] INFO com.b4n.vnfm.ssh - Authenticating by password
- 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
- 07:48:01.555 [pool-2-thread-10] INFO com.b4n.vnfm.configuration.executors.AnsibleConfigurationExecutor - Exit code: 0
- 07:48:01.557 [pool-2-thread-10] DEBUG com.b4n.vnfm.configuration.executors.SystemProcessExecutor - Response:
- PLAY [vdu] *********************************************************************
- TASK [Gathering Facts] *********************************************************
- ok: [10.11.12.154]
- TASK [setting up ssh key] ******************************************************
- changed: [10.11.12.154]
- TASK [changing password] *******************************************************
- changed: [10.11.12.154]
- TASK [changing hostname] *******************************************************
- changed: [10.11.12.154]
- TASK [setup network] ***********************************************************
- changed: [10.11.12.154]
- TASK [restarting network] ******************************************************
- changed: [10.11.12.154]
- TASK [changing /etc/hosts for zabbix] ******************************************
- changed: [10.11.12.154]
- TASK [changing zabbix agent config] ********************************************
- changed: [10.11.12.154] => (item={u'regexp': u'^Server=', u'line': u'Server=10.11.12.3'})
- changed: [10.11.12.154] => (item={u'regexp': u'^ServerActive=', u'line': u'ServerActive=10.11.12.3'})
- changed: [10.11.12.154] => (item={u'regexp': u'^Hostname=', u'line': u'Hostname=VDU1536133612425'})
- TASK [restarting system service] ***********************************************
- changed: [10.11.12.154]
- TASK [restarting zabbix_agentd service] ****************************************
- changed: [10.11.12.154]
- PLAY RECAP *********************************************************************
- 10.11.12.154 : ok=10 changed=9 unreachable=0 failed=0
- 07:48:01.557 [http-nio-8081-exec-4] INFO com.b4n.vnfm.rest.VnfmApi - VNF has been configured successful
- 07:48:01.592 [http-nio-8081-exec-5] INFO com.b4n.vnfm.rest.VnfmApi - Configuring VNF...
- 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!
- 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
- 07:48:01.620 [pool-2-thread-12] INFO com.b4n.vnfm.configuration.executors.AnsibleConfigurationExecutor - Content: ---
- - hosts: vdu
- tasks:
- - name: sleep for 60 seconds and continue with play
- wait_for: timeout=60
- delegate_to: localhost
- - name: copy iptables ruleset
- copy:
- src: ./files/dnsmasq.conf
- dest: /etc/dnsmasq.conf
- force: yes
- - name: sleep for 60 seconds and continue with play
- wait_for: timeout=60
- delegate_to: localhost
- - name: restarting dnsmasq service
- openwrt_init:
- name: dnsmasq
- state: restarted
- enabled: yes
- any_errors_fatal: true
- 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
- 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!
- 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
- 07:48:16.518 [pool-2-thread-5] INFO com.b4n.vnfm.ssh - Authenticating by password
- 07:48:16.647 [pool-2-thread-5] INFO com.b4n.vnfm.ssh - Authentication by password successful
- 07:48:16.657 [http-nio-8081-exec-6] INFO com.b4n.vnfm.rest.VnfmApi - Configuring VNF...
- 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!
- 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
- 07:48:16.659 [pool-2-thread-8] INFO com.b4n.vnfm.configuration.executors.AnsibleConfigurationExecutor - Content: ---
- - hosts: vdu
- tasks:
- - name: setting up ssh key
- authorized_key:
- user: root
- key: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCYmUNiXz3fNQfxOdRqH2YGPAbUDewduE2DtrLDPOdzn6MOo2hFP9R0AtlkvwJcWyKKdruWS1WRy22TO++9DcUmlD8VbUbNoKMbpkPiMKMCLTkhwBumRO02z0QVncdUMA+BHVWnJdv/jaBisfzGUaqq9EfCOkRteW6w3V1Jc5zfqufD3rwumRMcPR9qdnVJTMhFB58RIsTi13by6bcLVIIQWAIxWo6x7alqxes46OCQ7CHx3aNNOET5EB3A25SRFa6cFRHbZw8hU9Zan6qOJDbfWkFHhXGfbPxAbnwoX02ZwkbLaFE/JZWr529hyRwAk/4CcKrzurph8ggrqJoLy/GR brain4net@vnfm"
- state: present
- path: /etc/dropbear/authorized_keys
- manage_dir: yes
- - name: changing password
- user:
- name: root
- update_password: always
- password: "{{ '47gInii2' | password_hash('md5') }}"
- - name: changing hostname
- lineinfile:
- path: /etc/config/system
- regexp: "option hostname"
- line: "\toption hostname 'VDU1536133611054'"
- - name: remove old wan record
- replace:
- path: /etc/config/network
- regexp: "(?s)(config interface 'wan'.+?)\nconfig"
- replace: config
- - name: write new wan config
- blockinfile:
- path: /etc/config/network
- block: |
- config interface 'wan'
- option ifname 'eth1'
- option proto 'static'
- option ipaddr '10.0.3.158'
- option netmask '255.255.255.0'
- option gateway '10.0.3.254'
- option defaultroute '1'
- marker: ''
- - name: write ctl config
- blockinfile:
- path: /root/config/controller
- block: |
- ctl_ip="195.151.47.229"
- ctl_port="6653"
- marker: ''
- - name: write interfaces config
- blockinfile:
- path: /root/config/interfaces
- block: |
- port1=4793
- port2=4794
- marker: ''
- - name: restarting network
- openwrt_init:
- name: network
- state: restarted
- enabled: yes
- - name: changing /etc/hosts for zabbix
- lineinfile:
- path: /etc/hosts
- line: '10.11.12.111 VDU1536133611054'
- - name: changing zabbix agent config
- lineinfile:
- path: /etc/zabbix_agentd.conf
- regexp: "{{ item.regexp }}"
- line: "{{ item.line }}"
- with_items:
- - { regexp: '^Server=', line: 'Server=10.11.12.3' }
- - { regexp: '^ServerActive=', line: 'ServerActive=10.11.12.3' }
- - { regexp: '^Hostname=', line: 'Hostname=VDU1536133611054' }
- - name: restarting system service
- openwrt_init:
- name: system
- state: restarted
- enabled: yes
- - name: restarting zabbix_agentd service
- openwrt_init:
- name: zabbix_agentd
- state: restarted
- enabled: yes
- - name: waiting for orchestrator API
- wait_for:
- host: 10.0.3.150
- port: 81
- - name: register vtep
- uri:
- url: http://10.0.3.150:81/api/nfv/sdwan/registry/vdu/gateway
- method: POST
- body: '{ "alias": "GW2", "ip": "195.151.47.229", "hostname": "VDU1536133611054", "port": "4793" }'
- body_format: json
- headers:
- Content-Type: "application/json"
- - name: reboot vtep
- command: reboot
- 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
- 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!
- 07:48:23.582 [pool-2-thread-11] INFO com.b4n.vnfm.ssh - Authenticating by password
- 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
- 07:48:23.722 [pool-2-thread-11] INFO com.b4n.vnfm.ssh - Authentication by password successful
- 07:48:23.732 [http-nio-8081-exec-7] INFO com.b4n.vnfm.rest.VnfmApi - Configuring VNF...
- 07:48:23.734 [pool-2-thread-10] INFO com.b4n.vnfm.configuration.executors.AnsibleConfigurationExecutor - Content: ---
- - hosts: vdu
- tasks:
- - name: setting up ssh key
- authorized_key:
- user: root
- key: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCYmUNiXz3fNQfxOdRqH2YGPAbUDewduE2DtrLDPOdzn6MOo2hFP9R0AtlkvwJcWyKKdruWS1WRy22TO++9DcUmlD8VbUbNoKMbpkPiMKMCLTkhwBumRO02z0QVncdUMA+BHVWnJdv/jaBisfzGUaqq9EfCOkRteW6w3V1Jc5zfqufD3rwumRMcPR9qdnVJTMhFB58RIsTi13by6bcLVIIQWAIxWo6x7alqxes46OCQ7CHx3aNNOET5EB3A25SRFa6cFRHbZw8hU9Zan6qOJDbfWkFHhXGfbPxAbnwoX02ZwkbLaFE/JZWr529hyRwAk/4CcKrzurph8ggrqJoLy/GR brain4net@vnfm"
- state: present
- path: /etc/dropbear/authorized_keys
- manage_dir: yes
- - name: changing password
- user:
- name: root
- update_password: always
- password: "{{ 'pIbF5NqN' | password_hash('md5') }}"
- - name: changing hostname
- lineinfile:
- path: /etc/config/system
- regexp: "option hostname"
- line: "\toption hostname 'VDU1536133610343'"
- - name: remove old wan record
- replace:
- path: /etc/config/network
- regexp: "(?s)(config interface 'wan'.+?)\nconfig"
- replace: config
- - name: write new wan config
- blockinfile:
- path: /etc/config/network
- block: |
- config interface 'wan'
- option ifname 'eth1'
- option proto 'static'
- option ipaddr '10.0.3.157'
- option netmask '255.255.255.0'
- option gateway '10.0.3.254'
- option defaultroute '1'
- marker: ''
- - name: write ctl config
- blockinfile:
- path: /root/config/controller
- block: |
- ctl_ip="195.151.47.229"
- ctl_port="6653"
- marker: ''
- - name: write interfaces config
- blockinfile:
- path: /root/config/interfaces
- block: |
- port1=4791
- port2=4792
- marker: ''
- - name: restarting network
- openwrt_init:
- name: network
- state: restarted
- enabled: yes
- - name: changing /etc/hosts for zabbix
- lineinfile:
- path: /etc/hosts
- line: '10.11.12.151 VDU1536133610343'
- - name: changing zabbix agent config
- lineinfile:
- path: /etc/zabbix_agentd.conf
- regexp: "{{ item.regexp }}"
- line: "{{ item.line }}"
- with_items:
- - { regexp: '^Server=', line: 'Server=10.11.12.3' }
- - { regexp: '^ServerActive=', line: 'ServerActive=10.11.12.3' }
- - { regexp: '^Hostname=', line: 'Hostname=VDU1536133610343' }
- - name: restarting system service
- openwrt_init:
- name: system
- state: restarted
- enabled: yes
- - name: restarting zabbix_agentd service
- openwrt_init:
- name: zabbix_agentd
- state: restarted
- enabled: yes
- - name: waiting for orchestrator API
- wait_for:
- host: 10.0.3.150
- port: 81
- - name: register vtep
- uri:
- url: http://10.0.3.150:81/api/nfv/sdwan/registry/vdu/gateway
- method: POST
- body: '{ "alias": "GW1", "ip": "195.151.47.229", "hostname": "VDU1536133610343", "port": "4791" }'
- body_format: json
- headers:
- Content-Type: "application/json"
- - name: reboot vtep
- command: reboot
- 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
- 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!
- 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
- 07:48:35.908 [pool-2-thread-8] INFO com.b4n.vnfm.configuration.executors.AnsibleConfigurationExecutor - Exit code: 0
- 07:48:35.909 [pool-2-thread-8] DEBUG com.b4n.vnfm.configuration.executors.SystemProcessExecutor - Response:
- PLAY [vdu] *********************************************************************
- TASK [Gathering Facts] *********************************************************
- ok: [10.11.12.111]
- TASK [setting up ssh key] ******************************************************
- changed: [10.11.12.111]
- TASK [changing password] *******************************************************
- changed: [10.11.12.111]
- TASK [changing hostname] *******************************************************
- changed: [10.11.12.111]
- TASK [remove old wan record] ***************************************************
- changed: [10.11.12.111]
- TASK [write new wan config] ****************************************************
- changed: [10.11.12.111]
- TASK [write ctl config] ********************************************************
- changed: [10.11.12.111]
- TASK [write interfaces config] *************************************************
- changed: [10.11.12.111]
- TASK [restarting network] ******************************************************
- changed: [10.11.12.111]
- TASK [changing /etc/hosts for zabbix] ******************************************
- changed: [10.11.12.111]
- TASK [changing zabbix agent config] ********************************************
- changed: [10.11.12.111] => (item={u'regexp': u'^Server=', u'line': u'Server=10.11.12.3'})
- changed: [10.11.12.111] => (item={u'regexp': u'^ServerActive=', u'line': u'ServerActive=10.11.12.3'})
- changed: [10.11.12.111] => (item={u'regexp': u'^Hostname=', u'line': u'Hostname=VDU1536133611054'})
- TASK [restarting system service] ***********************************************
- changed: [10.11.12.111]
- TASK [restarting zabbix_agentd service] ****************************************
- changed: [10.11.12.111]
- TASK [waiting for orchestrator API] ********************************************
- ok: [10.11.12.111]
- TASK [register vtep] ***********************************************************
- ok: [10.11.12.111]
- TASK [reboot vtep] *************************************************************
- changed: [10.11.12.111]
- PLAY RECAP *********************************************************************
- 10.11.12.111 : ok=16 changed=13 unreachable=0 failed=0
- 07:48:35.909 [http-nio-8081-exec-6] INFO com.b4n.vnfm.rest.VnfmApi - VNF has been configured successful
- 07:48:42.922 [pool-2-thread-10] INFO com.b4n.vnfm.configuration.executors.AnsibleConfigurationExecutor - Exit code: 0
- 07:48:42.923 [pool-2-thread-10] DEBUG com.b4n.vnfm.configuration.executors.SystemProcessExecutor - Response:
- PLAY [vdu] *********************************************************************
- TASK [Gathering Facts] *********************************************************
- ok: [10.11.12.151]
- TASK [setting up ssh key] ******************************************************
- changed: [10.11.12.151]
- TASK [changing password] *******************************************************
- changed: [10.11.12.151]
- TASK [changing hostname] *******************************************************
- changed: [10.11.12.151]
- TASK [remove old wan record] ***************************************************
- changed: [10.11.12.151]
- TASK [write new wan config] ****************************************************
- changed: [10.11.12.151]
- TASK [write ctl config] ********************************************************
- changed: [10.11.12.151]
- TASK [write interfaces config] *************************************************
- changed: [10.11.12.151]
- TASK [restarting network] ******************************************************
- changed: [10.11.12.151]
- TASK [changing /etc/hosts for zabbix] ******************************************
- changed: [10.11.12.151]
- TASK [changing zabbix agent config] ********************************************
- changed: [10.11.12.151] => (item={u'regexp': u'^Server=', u'line': u'Server=10.11.12.3'})
- changed: [10.11.12.151] => (item={u'regexp': u'^ServerActive=', u'line': u'ServerActive=10.11.12.3'})
- changed: [10.11.12.151] => (item={u'regexp': u'^Hostname=', u'line': u'Hostname=VDU1536133610343'})
- TASK [restarting system service] ***********************************************
- changed: [10.11.12.151]
- TASK [restarting zabbix_agentd service] ****************************************
- changed: [10.11.12.151]
- TASK [waiting for orchestrator API] ********************************************
- ok: [10.11.12.151]
- TASK [register vtep] ***********************************************************
- ok: [10.11.12.151]
- TASK [reboot vtep] *************************************************************
- changed: [10.11.12.151]
- PLAY RECAP *********************************************************************
- 10.11.12.151 : ok=16 changed=13 unreachable=0 failed=0
- 07:48:42.923 [http-nio-8081-exec-7] INFO com.b4n.vnfm.rest.VnfmApi - VNF has been configured successful
- 07:49:09.075 [pool-2-thread-20] INFO com.b4n.vnfm.ssh - Authenticating by password
- 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!
- 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
- 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
- 07:49:39.076 [pool-2-thread-13] INFO com.b4n.vnfm.ssh - Authenticating by password
- 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!
- 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
- 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
- 07:50:06.632 [pool-2-thread-12] INFO com.b4n.vnfm.configuration.executors.AnsibleConfigurationExecutor - Exit code: 0
- 07:50:06.633 [pool-2-thread-12] DEBUG com.b4n.vnfm.configuration.executors.SystemProcessExecutor - Response:
- PLAY [vdu] *********************************************************************
- TASK [Gathering Facts] *********************************************************
- ok: [10.11.12.154]
- TASK [sleep for 60 seconds and continue with play] *****************************
- ok: [10.11.12.154 -> localhost]
- TASK [copy iptables ruleset] ***************************************************
- changed: [10.11.12.154]
- TASK [sleep for 60 seconds and continue with play] *****************************
- ok: [10.11.12.154 -> localhost]
- TASK [restarting dnsmasq service] **********************************************
- changed: [10.11.12.154]
- PLAY RECAP *********************************************************************
- 10.11.12.154 : ok=5 changed=2 unreachable=0 failed=0
- 07:50:06.633 [http-nio-8081-exec-5] INFO com.b4n.vnfm.rest.VnfmApi - VNF has been configured successful
- 07:50:09.076 [pool-2-thread-14] INFO com.b4n.vnfm.ssh - Authenticating by password
- 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!
- 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
- 07:50:09.381 [pool-2-thread-14] INFO com.b4n.vnfm.ssh - Authentication by password successful
- 07:50:09.391 [http-nio-8081-exec-1] INFO com.b4n.vnfm.rest.VnfmApi - Configuring VNF...
- 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!
- 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
- 07:50:09.392 [pool-2-thread-24] INFO com.b4n.vnfm.configuration.executors.AnsibleConfigurationExecutor - Content: ---
- - hosts: vdu
- tasks:
- - name: setting up the ssh key
- authorized_key:
- user: root
- key: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCYmUNiXz3fNQfxOdRqH2YGPAbUDewduE2DtrLDPOdzn6MOo2hFP9R0AtlkvwJcWyKKdruWS1WRy22TO++9DcUmlD8VbUbNoKMbpkPiMKMCLTkhwBumRO02z0QVncdUMA+BHVWnJdv/jaBisfzGUaqq9EfCOkRteW6w3V1Jc5zfqufD3rwumRMcPR9qdnVJTMhFB58RIsTi13by6bcLVIIQWAIxWo6x7alqxes46OCQ7CHx3aNNOET5EB3A25SRFa6cFRHbZw8hU9Zan6qOJDbfWkFHhXGfbPxAbnwoX02ZwkbLaFE/JZWr529hyRwAk/4CcKrzurph8ggrqJoLy/GR brain4net@vnfm"
- state: present
- manage_dir: yes
- - name:
- user:
- name: root
- update_password: always
- password: "{{ 'fEgTLC2o' | password_hash('sha512') }}"
- - name: changing hostname
- hostname:
- name: VDU1536133611741
- - name: hosts for marvel lab
- lineinfile:
- path: /etc/hosts
- line: "10.0.3.5 registry.brain4net.com"
- - name: editing /etc/zabbix/zabbix_agentd.conf
- lineinfile:
- path: /etc/zabbix/zabbix_agentd.conf
- regexp: "{{ item.regexp }}"
- line: "{{ item.line }}"
- with_items:
- - { regexp: '^Server=', line: 'Server=10.11.12.3' }
- - { regexp: '^ServerActive=', line: 'ServerActive=10.11.12.3' }
- - { regexp: '^Hostname=', line: 'Hostname=VDU1536133611741' }
- - name: restarting zabbix-agent service
- service:
- name: zabbix-agent
- state: restarted
- enabled: yes
- - name: configure eth1
- 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'
- - name: modifying /etc/hosts for mongo replicaset resolving
- lineinfile:
- path: /etc/hosts
- line: '10.0.3.156 VDU1536133611741'
- - name: restart network
- service:
- name: network
- state: restarted
- 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
- 07:50:17.890 [pool-2-thread-24] INFO com.b4n.vnfm.configuration.executors.AnsibleConfigurationExecutor - Exit code: 0
- 07:50:17.890 [pool-2-thread-24] DEBUG com.b4n.vnfm.configuration.executors.SystemProcessExecutor - Response:
- PLAY [vdu] *********************************************************************
- TASK [Gathering Facts] *********************************************************
- ok: [10.11.12.152]
- TASK [setting up the ssh key] **************************************************
- changed: [10.11.12.152]
- TASK [user] ********************************************************************
- changed: [10.11.12.152]
- TASK [changing hostname] *******************************************************
- changed: [10.11.12.152]
- TASK [hosts for marvel lab] ****************************************************
- changed: [10.11.12.152]
- TASK [editing /etc/zabbix/zabbix_agentd.conf] **********************************
- changed: [10.11.12.152] => (item={u'regexp': u'^Server=', u'line': u'Server=10.11.12.3'})
- changed: [10.11.12.152] => (item={u'regexp': u'^ServerActive=', u'line': u'ServerActive=10.11.12.3'})
- changed: [10.11.12.152] => (item={u'regexp': u'^Hostname=', u'line': u'Hostname=VDU1536133611741'})
- TASK [restarting zabbix-agent service] *****************************************
- changed: [10.11.12.152]
- TASK [configure eth1] **********************************************************
- changed: [10.11.12.152]
- TASK [modifying /etc/hosts for mongo replicaset resolving] *********************
- changed: [10.11.12.152]
- TASK [restart network] *********************************************************
- changed: [10.11.12.152]
- PLAY RECAP *********************************************************************
- 10.11.12.152 : ok=10 changed=9 unreachable=0 failed=0
- 07:50:17.890 [http-nio-8081-exec-1] INFO com.b4n.vnfm.rest.VnfmApi - VNF has been configured successful
- 07:50:17.903 [http-nio-8081-exec-2] INFO com.b4n.vnfm.rest.VnfmApi - Configuring VNF...
- 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
- 07:50:17.904 [pool-2-thread-26] INFO com.b4n.vnfm.ssh - Authenticating by key
- 07:50:22.994 [pool-2-thread-26] INFO com.b4n.vnfm.ssh - Authentication by key successful
- 07:50:22.998 [pool-2-thread-26] INFO com.b4n.vnfm.configuration.executors.SshScriptConfigurationExecutor - Script: #!/usr/bin/env bash
- cd playbooks
- ansible-playbook -e 'target=localhost state=preserve_db' deploy_ctl.yml
- 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
- wait=0
- until docker logs ctl | grep -q -i 'joining on startup in a disabled cluster policy'
- do
- sleep 1
- if [ $(( wait++ )) -eq 60 ]
- then
- echo 'Timeout reached.'
- exit 1
- fi
- echo 'Waiting for the controller to start...'
- done
- 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
- echo "vnfm:exit"
- 07:50:28.010 [pool-2-thread-26] INFO com.b4n.vnfm.configuration.executors.SshScriptConfigurationExecutor - Copying by scp
- 07:50:28.385 [pool-2-thread-26] INFO com.b4n.vnfm.configuration.executors.SshScriptConfigurationExecutor - Executing command: /bin/bash b605a27f-9a63-42de-822a-f24506a58075
- 07:51:25.873 [http-nio-8081-exec-2] INFO com.b4n.vnfm.rest.VnfmApi - VNF has been configured successful
- 07:57:15.669 [http-nio-8081-exec-6] INFO com.b4n.vnfm.rest.VnfmApi - Configuring VNF...
- 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
- 07:57:15.682 [pool-2-thread-11] INFO com.b4n.vnfm.configuration.executors.AnsibleConfigurationExecutor - Content: - hosts: vdu
- gather_facts: no
- tasks:
- - name: Set an IP br-lan
- command: ip route add 192.168.51.0/24 dev lan
- any_errors_fatal: false
- - debug:
- msg: "All config have been applied successfully."
- 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
- 07:57:19.943 [pool-2-thread-11] INFO com.b4n.vnfm.configuration.executors.AnsibleConfigurationExecutor - Exit code: 4
- 07:57:19.944 [pool-2-thread-11] DEBUG com.b4n.vnfm.configuration.executors.SystemProcessExecutor - Response:
- PLAY [vdu] *********************************************************************
- TASK [Set an IP br-lan] ********************************************************
- 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}
- to retry, use: --limit @/tmp/1536134235670-0/3399640a-95ba-4d5f-8f19-a62321767f37.retry
- PLAY RECAP *********************************************************************
- 10.11.12.145 : ok=0 changed=0 unreachable=1 failed=0
- 07:57:19.944 [pool-2-thread-11] ERROR com.b4n.vnfm.configuration.executors.SystemProcessExecutor - Unable to execute:
- 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
- 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
- 07:57:45.673 [pool-2-thread-4] INFO com.b4n.vnfm.configuration.executors.AnsibleConfigurationExecutor - Content: - hosts: vdu
- gather_facts: no
- tasks:
- - name: Set an IP br-lan
- command: ip route add 192.168.51.0/24 dev lan
- any_errors_fatal: false
- - debug:
- msg: "All config have been applied successfully."
- 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
- 07:57:48.588 [pool-2-thread-4] INFO com.b4n.vnfm.configuration.executors.AnsibleConfigurationExecutor - Exit code: 0
- 07:57:48.588 [pool-2-thread-4] DEBUG com.b4n.vnfm.configuration.executors.SystemProcessExecutor - Response:
- PLAY [vdu] *********************************************************************
- TASK [Set an IP br-lan] ********************************************************
- changed: [10.11.12.145]
- TASK [debug] *******************************************************************
- ok: [10.11.12.145] => {
- "msg": "All config have been applied successfully."
- }
- PLAY RECAP *********************************************************************
- 10.11.12.145 : ok=2 changed=1 unreachable=0 failed=0
- 07:57:48.589 [http-nio-8081-exec-6] INFO com.b4n.vnfm.rest.VnfmApi - VNF has been configured successful
- 07:57:48.598 [http-nio-8081-exec-7] INFO com.b4n.vnfm.rest.VnfmApi - Configuring VNF...
- 08:03:07.499 [http-nio-8081-exec-8] INFO com.b4n.vnfm.rest.VnfmApi - Configuring VNF...
- 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
- 08:03:07.503 [pool-2-thread-19] INFO com.b4n.vnfm.configuration.executors.AnsibleConfigurationExecutor - Content: - hosts: vdu
- gather_facts: no
- tasks:
- - name: Set an IP br-lan
- command: ip route add 192.168.51.0/24 dev lan
- any_errors_fatal: false
- - debug:
- msg: "All config have been applied successfully."
- 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
- 08:03:11.763 [pool-2-thread-19] INFO com.b4n.vnfm.configuration.executors.AnsibleConfigurationExecutor - Exit code: 4
- 08:03:11.764 [pool-2-thread-19] DEBUG com.b4n.vnfm.configuration.executors.SystemProcessExecutor - Response:
- PLAY [vdu] *********************************************************************
- TASK [Set an IP br-lan] ********************************************************
- 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}
- to retry, use: --limit @/tmp/1536134587500-0/cb16b903-da1b-483a-b832-08b7e333882b.retry
- PLAY RECAP *********************************************************************
- 10.11.12.128 : ok=0 changed=0 unreachable=1 failed=0
- 08:03:11.765 [pool-2-thread-19] ERROR com.b4n.vnfm.configuration.executors.SystemProcessExecutor - Unable to execute:
- 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
- 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
- 08:03:37.504 [pool-2-thread-8] INFO com.b4n.vnfm.configuration.executors.AnsibleConfigurationExecutor - Content: - hosts: vdu
- gather_facts: no
- tasks:
- - name: Set an IP br-lan
- command: ip route add 192.168.51.0/24 dev lan
- any_errors_fatal: false
- - debug:
- msg: "All config have been applied successfully."
- 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
- 08:03:40.684 [pool-2-thread-8] INFO com.b4n.vnfm.configuration.executors.AnsibleConfigurationExecutor - Exit code: 0
- 08:03:40.684 [pool-2-thread-8] DEBUG com.b4n.vnfm.configuration.executors.SystemProcessExecutor - Response:
- PLAY [vdu] *********************************************************************
- TASK [Set an IP br-lan] ********************************************************
- changed: [10.11.12.128]
- TASK [debug] *******************************************************************
- ok: [10.11.12.128] => {
- "msg": "All config have been applied successfully."
- }
- PLAY RECAP *********************************************************************
- 10.11.12.128 : ok=2 changed=1 unreachable=0 failed=0
- 08:03:40.685 [http-nio-8081-exec-8] INFO com.b4n.vnfm.rest.VnfmApi - VNF has been configured successful
- 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