Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2016-09-09 12:24:53,638 - ODL_SFC - INFO - Executing script to get ip_server: 'sshpass -p r00tme ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no root@10.20.0.2 'fuel node'|grep controller|awk '{print $10}''
- 2016-09-09 12:24:54,770 - ODL_SFC - INFO - Executing script to get ip_compute: 'sshpass -p r00tme ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no root@10.20.0.2 'fuel node'|grep compute|awk '{print $10}''
- 2016-09-09 12:24:56,290 - ODL_SFC - INFO - Changing firewall policy in controller: 'sshpass -p r00tme ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no root@10.20.0.2 ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no 10.20.0.5 iptables -P INPUT ACCEPT '
- 2016-09-09 12:24:56,732 - ODL_SFC - INFO - Changing firewall policy in controller: 'sshpass -p r00tme ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no root@10.20.0.2 ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no 10.20.0.5 iptables -t nat -P INPUT ACCEPT '
- 2016-09-09 12:24:57,143 - ODL_SFC - INFO - Changing firewall policy in controller: 'sshpass -p r00tme ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no root@10.20.0.2 ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no 10.20.0.5 iptables -A INPUT -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT'
- 2016-09-09 12:24:58,079 - ODL_SFC - INFO - Using old image
- 2016-09-09 12:24:58,202 - openstack_utils - INFO - Image sf_nsh_colorado already exists.
- 2016-09-09 12:24:58,504 - openstack_utils - INFO - A network with name 'example-net' already exists...
- 2016-09-09 12:24:58,542 - openstack_utils - INFO - Using existing security group 'example-sg'...
- 2016-09-09 12:24:58,542 - ODL_SFC - INFO - Creating instance 'client'...
- 2016-09-09 12:24:58,543 - ODL_SFC - DEBUG - Configuration:
- name=client
- flavor=m1.small
- image=39c7fb8c-a6e4-4b6a-97bf-41217e640d72
- network=10214296-8098-4402-b19b-1455510b3e16
- 2016-09-09 12:25:06,131 - ODL_SFC - DEBUG - Instance 'client' got private ip '11.0.0.7'.
- 2016-09-09 12:25:06,131 - ODL_SFC - INFO - Adding 'client' to security group 'example-sg'...
- 2016-09-09 12:25:06,735 - ODL_SFC - INFO - Creating floating IP for VM 'client'...
- 2016-09-09 12:25:07,056 - ODL_SFC - INFO - Floating IP created: '172.16.0.134'
- 2016-09-09 12:25:07,057 - ODL_SFC - INFO - Associating floating ip: '172.16.0.134' to VM 'client'
- 2016-09-09 12:25:07,929 - ODL_SFC - INFO - Creating instance 'client'...
- 2016-09-09 12:25:07,930 - ODL_SFC - DEBUG - Configuration:
- name=client
- flavor=m1.small
- image=39c7fb8c-a6e4-4b6a-97bf-41217e640d72
- network=10214296-8098-4402-b19b-1455510b3e16
- 2016-09-09 12:25:15,857 - ODL_SFC - DEBUG - Instance 'server' got private ip '11.0.0.8'.
- 2016-09-09 12:25:15,857 - ODL_SFC - INFO - Adding 'server' to security group 'example-sg'...
- 2016-09-09 12:25:16,371 - ODL_SFC - INFO - Creating floating IP for VM 'server'...
- 2016-09-09 12:25:16,756 - ODL_SFC - INFO - Floating IP created: '172.16.0.135'
- 2016-09-09 12:25:16,756 - ODL_SFC - INFO - Associating floating ip: '172.16.0.135' to VM 'server'
- 2016-09-09 12:25:17,494 - ODL_SFC - INFO - Executing tacker script: '/home/opnfv/repos/functest//testcases/features/sfc/sfc_tacker.bash'
- Created a new vnfd:
- +---------------+-----------------------------------------------------------------------------+
- | Field | Value |
- +---------------+-----------------------------------------------------------------------------+
- | description | firewall1-example |
- | id | 846492e8-0af5-4a94-98e7-d4423a4f36be |
- | infra_driver | heat |
- | mgmt_driver | noop |
- | name | test-vnfd1 |
- | service_types | {"service_type": "vnfd", "id": "3040b141-5a49-45d0-8d6a-2ef3108dbcb5"} |
- | | {"service_type": "firewall1", "id": "776a03ff-4e1b-4d42-9e0b-a5b4f6b34982"} |
- | tenant_id | 45e0641a13a24ba29c1975899912d84d |
- +---------------+-----------------------------------------------------------------------------+
- Created a new vnfd:
- +---------------+-----------------------------------------------------------------------------+
- | Field | Value |
- +---------------+-----------------------------------------------------------------------------+
- | description | firewall2-example |
- | id | 4a3ff489-1308-45d5-837e-e0d88d70cde0 |
- | infra_driver | heat |
- | mgmt_driver | noop |
- | name | test-vnfd2 |
- | service_types | {"service_type": "firewall2", "id": "34b85eb2-33bb-4451-a382-f776138913a2"} |
- | | {"service_type": "vnfd", "id": "bd10449b-6ef4-4ef7-8cb7-d35a8af1ed7e"} |
- | tenant_id | 45e0641a13a24ba29c1975899912d84d |
- +---------------+-----------------------------------------------------------------------------+
- Created a new vnf:
- +-------------+--------------------------------------+
- | Field | Value |
- +-------------+--------------------------------------+
- | description | firewall1-example |
- | id | 69bc33ac-6504-4d1b-a9b9-054607104ec0 |
- | instance_id | 415d1564-4afc-472e-88a2-1608b9865858 |
- | mgmt_url | |
- | name | testVNF1 |
- | status | PENDING_CREATE |
- | tenant_id | 45e0641a13a24ba29c1975899912d84d |
- | vnfd_id | 846492e8-0af5-4a94-98e7-d4423a4f36be |
- +-------------+--------------------------------------+
- Created a new vnf:
- +-------------+--------------------------------------+
- | Field | Value |
- +-------------+--------------------------------------+
- | description | firewall2-example |
- | id | 2258e063-3d24-4f24-8058-464d3b10e0a3 |
- | instance_id | 2d4e9e17-c67d-4923-8250-8746e5225adb |
- | mgmt_url | |
- | name | testVNF2 |
- | status | PENDING_CREATE |
- | tenant_id | 45e0641a13a24ba29c1975899912d84d |
- | vnfd_id | 4a3ff489-1308-45d5-837e-e0d88d70cde0 |
- +-------------+--------------------------------------+
- checking if SFs are up: +--------------------------------------+----------+-------------------+----------+----------------+ | id | name | description | mgmt_url | status | +--------------------------------------+----------+-------------------+----------+----------------+ | 2258e063-3d24-4f24-8058-464d3b10e0a3 | testVNF2 | firewall2-example | | PENDING_CREATE | | 69bc33ac-6504-4d1b-a9b9-054607104ec0 | testVNF1 | firewall1-example | | PENDING_CREATE | +--------------------------------------+----------+-------------------+----------+----------------+
- checking if SFs are up: +--------------------------------------+----------+-------------------+----------+----------------+ | id | name | description | mgmt_url | status | +--------------------------------------+----------+-------------------+----------+----------------+ | 2258e063-3d24-4f24-8058-464d3b10e0a3 | testVNF2 | firewall2-example | | PENDING_CREATE | | 69bc33ac-6504-4d1b-a9b9-054607104ec0 | testVNF1 | firewall1-example | | PENDING_CREATE | +--------------------------------------+----------+-------------------+----------+----------------+
- checking if SFs are up: +--------------------------------------+----------+-------------------+----------+----------------+ | id | name | description | mgmt_url | status | +--------------------------------------+----------+-------------------+----------+----------------+ | 2258e063-3d24-4f24-8058-464d3b10e0a3 | testVNF2 | firewall2-example | | PENDING_CREATE | | 69bc33ac-6504-4d1b-a9b9-054607104ec0 | testVNF1 | firewall1-example | | PENDING_CREATE | +--------------------------------------+----------+-------------------+----------+----------------+
- checking if SFs are up: +--------------------------------------+----------+-------------------+----------+----------------+ | id | name | description | mgmt_url | status | +--------------------------------------+----------+-------------------+----------+----------------+ | 2258e063-3d24-4f24-8058-464d3b10e0a3 | testVNF2 | firewall2-example | | PENDING_CREATE | | 69bc33ac-6504-4d1b-a9b9-054607104ec0 | testVNF1 | firewall1-example | | PENDING_CREATE | +--------------------------------------+----------+-------------------+----------+----------------+
- checking if SFs are up: +--------------------------------------+----------+-------------------+----------+----------------+ | id | name | description | mgmt_url | status | +--------------------------------------+----------+-------------------+----------+----------------+ | 2258e063-3d24-4f24-8058-464d3b10e0a3 | testVNF2 | firewall2-example | | PENDING_CREATE | | 69bc33ac-6504-4d1b-a9b9-054607104ec0 | testVNF1 | firewall1-example | | PENDING_CREATE | +--------------------------------------+----------+-------------------+----------+----------------+
- checking if SFs are up: +--------------------------------------+----------+-------------------+----------+----------------+ | id | name | description | mgmt_url | status | +--------------------------------------+----------+-------------------+----------+----------------+ | 2258e063-3d24-4f24-8058-464d3b10e0a3 | testVNF2 | firewall2-example | | PENDING_CREATE | | 69bc33ac-6504-4d1b-a9b9-054607104ec0 | testVNF1 | firewall1-example | | PENDING_CREATE | +--------------------------------------+----------+-------------------+----------+----------------+
- checking if SFs are up: +--------------------------------------+----------+-------------------+----------+----------------+ | id | name | description | mgmt_url | status | +--------------------------------------+----------+-------------------+----------+----------------+ | 2258e063-3d24-4f24-8058-464d3b10e0a3 | testVNF2 | firewall2-example | | PENDING_CREATE | | 69bc33ac-6504-4d1b-a9b9-054607104ec0 | testVNF1 | firewall1-example | | PENDING_CREATE | +--------------------------------------+----------+-------------------+----------+----------------+
- checking if SFs are up:
- CREATED
- Sleeping for 30 seconds
- Created a new sfc:
- +--------------+--------------------------------------+
- | Field | Value |
- +--------------+--------------------------------------+
- | attributes | {} |
- | chain | 69bc33ac-6504-4d1b-a9b9-054607104ec0 |
- | description | |
- | id | f3b5074a-2be7-4e4c-a298-cd672eeaaab0 |
- | infra_driver | opendaylight |
- | instance_id | Path-red-Path-21 |
- | name | red |
- | status | PENDING_CREATE |
- | symmetrical | False |
- | tenant_id | 45e0641a13a24ba29c1975899912d84d |
- +--------------+--------------------------------------+
- Created a new sfc:
- +--------------+--------------------------------------+
- | Field | Value |
- +--------------+--------------------------------------+
- | attributes | {} |
- | chain | 2258e063-3d24-4f24-8058-464d3b10e0a3 |
- | description | |
- | id | 3fc7e282-4bcb-467d-8c50-b39c352a409d |
- | infra_driver | opendaylight |
- | instance_id | Path-blue-Path-65 |
- | name | blue |
- | status | PENDING_CREATE |
- | symmetrical | False |
- | tenant_id | 45e0641a13a24ba29c1975899912d84d |
- +--------------+--------------------------------------+
- Created a new sfc_classifier:
- +--------------------+----------------------------------------------------+
- | Field | Value |
- +--------------------+----------------------------------------------------+
- | acl_match_criteria | {"source_port": 0, "protocol": 6, "dest_port": 80} |
- | attributes | {} |
- | chain | f3b5074a-2be7-4e4c-a298-cd672eeaaab0 |
- | description | |
- | id | f9a93d39-744c-4743-9d75-cdb4b2040aec |
- | infra_driver | netvirtsfc |
- | instance_id | red_http |
- | name | red_http |
- | status | PENDING_CREATE |
- | tenant_id | 45e0641a13a24ba29c1975899912d84d |
- +--------------------+----------------------------------------------------+
- Created a new sfc_classifier:
- +--------------------+----------------------------------------------------+
- | Field | Value |
- +--------------------+----------------------------------------------------+
- | acl_match_criteria | {"source_port": 0, "protocol": 6, "dest_port": 22} |
- | attributes | {} |
- | chain | f3b5074a-2be7-4e4c-a298-cd672eeaaab0 |
- | description | |
- | id | 5dcc0eb6-af51-4ea5-8d85-51081ef2300c |
- | infra_driver | netvirtsfc |
- | instance_id | red_ssh |
- | name | red_ssh |
- | status | PENDING_CREATE |
- | tenant_id | 45e0641a13a24ba29c1975899912d84d |
- +--------------------+----------------------------------------------------+
- +--------------------------------------+------+-------------+--------------+-------------+--------+
- | id | name | description | infra_driver | symmetrical | status |
- +--------------------------------------+------+-------------+--------------+-------------+--------+
- | 3fc7e282-4bcb-467d-8c50-b39c352a409d | blue | | opendaylight | False | ACTIVE |
- | f3b5074a-2be7-4e4c-a298-cd672eeaaab0 | red | | opendaylight | False | ACTIVE |
- +--------------------------------------+------+-------------+--------------+-------------+--------+
- +--------------------------------------+----------+-------------+-------------------------------------------------------+--------+
- | id | name | description | acl_match_criteria | status |
- +--------------------------------------+----------+-------------+-------------------------------------------------------+--------+
- | 5dcc0eb6-af51-4ea5-8d85-51081ef2300c | red_ssh | | {u'source_port': 0, u'protocol': 6, u'dest_port': 22} | ACTIVE |
- | f9a93d39-744c-4743-9d75-cdb4b2040aec | red_http | | {u'source_port': 0, u'protocol': 6, u'dest_port': 80} | ACTIVE |
- +--------------------------------------+----------+-------------+-------------------------------------------------------+--------+
- Sleeping for 60 seconds
- 2016-09-09 12:27:34,332 - ODL_SFC - INFO - Starting HTTP server
- 2016-09-09 12:27:34,856 - ODL_SFC - DEBUG - This is the instance name: ta-e063-3d24-4f24-8058-464d3b10e0a3-vdu1-jwc6rkmfqtes
- 2016-09-09 12:27:36,240 - ODL_SFC - DEBUG - This is the instance name: ta-33ac-6504-4d1b-a9b9-054607104ec0-vdu1-qmaqgxn5fjul
- 2016-09-09 12:27:37,847 - ODL_SFC - DEBUG - Floating IPs for SFs: [u'172.16.0.136', u'172.16.0.137']...
- 2016-09-09 12:27:37,847 - ODL_SFC - INFO - Configuring the SFs
- 2016-09-09 12:27:37,847 - ODL_SFC - DEBUG - sshpass -p opnfv ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no 172.16.0.136 nohup python vxlan_tool.py -i eth0 -d forward -v off -b 80 > /dev/null 2>&1 &
- 2016-09-09 12:27:47,854 - ODL_SFC - ERROR - vxlan_tool not started in SF1
- Traceback (most recent call last):
- File "sfc.py", line 280, in main
- ssh.connect(ips[0], username="root", password="opnfv", timeout=10)
- File "/usr/local/lib/python2.7/dist-packages/paramiko/client.py", line 305, in connect
- retry_on_signal(lambda: sock.connect(addr))
- File "/usr/local/lib/python2.7/dist-packages/paramiko/util.py", line 269, in retry_on_signal
- return function()
- File "/usr/local/lib/python2.7/dist-packages/paramiko/client.py", line 305, in <lambda>
- retry_on_signal(lambda: sock.connect(addr))
- File "/usr/lib/python2.7/socket.py", line 224, in meth
- return getattr(self._sock,name)(*args)
- timeout: timed out
- 2016-09-09 12:27:47,868 - ODL_SFC - DEBUG - sshpass -p opnfv ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no 172.16.0.137 nohup python vxlan_tool.py -i eth0 -d forward -v off -b 22 > /dev/null 2>&1 &
- 2016-09-09 12:27:58,130 - ODL_SFC - DEBUG - SSH firewall started
- 2016-09-09 12:27:58,131 - ODL_SFC - INFO - Executing script to modify the classi: 'sshpass -p r00tme ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no root@10.20.0.2 'ssh 10.20.0.4 'bash correct_classifier.bash'''
- 2016-09-09 12:27:58,136 - ODL_SFC - INFO - Waiting for 60 seconds before TEST
- 2016-09-09 12:27:58,137 - ODL_SFC - INFO - Test starting in 60 seconds
- Warning: Permanently added '10.20.0.2' (ECDSA) to the list of known hosts.
- Warning: Permanently added '10.20.0.4' (ECDSA) to the list of known hosts.
- 2016-09-09 12:28:08,143 - ODL_SFC - INFO - Test starting in 50 seconds
- 2016-09-09 12:28:18,147 - ODL_SFC - INFO - Test starting in 40 seconds
- 2016-09-09 12:28:28,149 - ODL_SFC - INFO - Test starting in 30 seconds
- 2016-09-09 12:28:38,160 - ODL_SFC - INFO - Test starting in 20 seconds
- 2016-09-09 12:28:48,161 - ODL_SFC - INFO - Test starting in 10 seconds
- 2016-09-09 12:28:58,171 - ODL_SFC - INFO - TEST STARTED
- 2016-09-09 12:29:03,711 - ODL_SFC - INFO - TEST 1 [PASSED] ==> SSH BLOCKED
- 2016-09-09 12:29:09,076 - ODL_SFC - ERROR - TEST 2 [FAILED] ==> HTTP BLOCKED
- 2016-09-09 12:29:09,076 - ODL_SFC - INFO - Changing the classification
- Deleted sfc_classifier: red_http
- Deleted sfc_classifier: red_ssh
- Created a new sfc_classifier:
- +--------------------+----------------------------------------------------+
- | Field | Value |
- +--------------------+----------------------------------------------------+
- | acl_match_criteria | {"source_port": 0, "protocol": 6, "dest_port": 80} |
- | attributes | {} |
- | chain | 3fc7e282-4bcb-467d-8c50-b39c352a409d |
- | description | |
- | id | 733553c7-5535-4e80-a891-654196ad9246 |
- | infra_driver | netvirtsfc |
- | instance_id | blue_http |
- | name | blue_http |
- | status | PENDING_CREATE |
- | tenant_id | 45e0641a13a24ba29c1975899912d84d |
- +--------------------+----------------------------------------------------+
- Created a new sfc_classifier:
- +--------------------+----------------------------------------------------+
- | Field | Value |
- +--------------------+----------------------------------------------------+
- | acl_match_criteria | {"source_port": 0, "protocol": 6, "dest_port": 22} |
- | attributes | {} |
- | chain | 3fc7e282-4bcb-467d-8c50-b39c352a409d |
- | description | |
- | id | 79449cc6-8e69-432e-8878-334e96ea00a4 |
- | infra_driver | netvirtsfc |
- | instance_id | blue_ssh |
- | name | blue_ssh |
- | status | PENDING_CREATE |
- | tenant_id | 45e0641a13a24ba29c1975899912d84d |
- +--------------------+----------------------------------------------------+
- +--------------------------------------+-----------+-------------+-------------------------------------------------------+--------+
- | id | name | description | acl_match_criteria | status |
- +--------------------------------------+-----------+-------------+-------------------------------------------------------+--------+
- | 733553c7-5535-4e80-a891-654196ad9246 | blue_http | | {u'source_port': 0, u'protocol': 6, u'dest_port': 80} | ACTIVE |
- | 79449cc6-8e69-432e-8878-334e96ea00a4 | blue_ssh | | {u'source_port': 0, u'protocol': 6, u'dest_port': 22} | ACTIVE |
- +--------------------------------------+-----------+-------------+-------------------------------------------------------+--------+
- 2016-09-09 12:29:14,427 - ODL_SFC - INFO - Wait for ODL to update the classification rules in OVS
- 2016-09-09 12:29:24,437 - ODL_SFC - INFO - Executing script to modify the classi: 'sshpass -p r00tme ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no root@10.20.0.2 'ssh 10.20.0.4 'bash correct_classifier.bash'''
- Warning: Permanently added '10.20.0.2' (ECDSA) to the list of known hosts.
- Warning: Permanently added '10.20.0.4' (ECDSA) to the list of known hosts.
- 2016-09-09 12:29:29,773 - ODL_SFC - INFO - TEST 3 [WORKS] ==> HTTP BLOCKED
- 2016-09-09 12:29:35,147 - ODL_SFC - ERROR - TEST 4 [FAILED] ==> SSH BLOCKED
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement