2024-09-13 13:57:55,050 - INFO - Domain Default found not creating 2024-09-13 13:57:55,246 - INFO - Project ctest-TestBasicPolicy-71939553 not found, creating it 2024-09-13 13:57:55,747 - INFO - Created Project:ctest-TestBasicPolicy-71939553, ID : 7adb7e24-65be-44ee-a5ca-7d880d5949e1 2024-09-13 13:57:57,521 - INFO - ================================================================================ 2024-09-13 13:57:57,522 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-13 13:57:57,522 - INFO - TEST DESCRIPTION : Create 2 Vns and allow icmp traffic between them and validate with pings Update the policy to deny the same traffic Check that pings fail 2024-09-13 13:57:57,779 - DEBUG - Nothing to compare xmpp stats {'10.0.0.29': {'10.20.0.17': '0'}} with 2024-09-13 13:57:57,779 - INFO - Initial checks done. Running the testcase now 2024-09-13 13:57:57,779 - INFO - 2024-09-13 13:57:58,469 - DEBUG - Response for create_network : {'network': {'id': 'c9346b01-d9c6-4438-8c59-3337fecbe98a', 'name': 'ctest-vn-45997169', 'tenant_id': '7adb7e2465be44eea5ca7d880d5949e1', 'project_id': '7adb7e2465be44eea5ca7d880d5949e1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71939553', 'ctest-vn-45997169'], 'port_security_enabled': True, 'description': ''}} 2024-09-13 13:57:58,678 - DEBUG - Response for create_subnet : {'subnet': {'id': '4a145a83-983c-4b9d-a96c-d7bbb0b24d2d', 'name': '', 'tenant_id': '7adb7e2465be44eea5ca7d880d5949e1', 'network_id': 'c9346b01-d9c6-4438-8c59-3337fecbe98a', 'ip_version': 4, 'cidr': '21.44.66.0/26', 'allocation_pools': [{'start': '21.44.66.2', 'end': '21.44.66.62'}], 'gateway_ip': '21.44.66.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '21.44.66.2', 'tags': [], 'project_id': '7adb7e2465be44eea5ca7d880d5949e1'}} 2024-09-13 13:57:58,704 - INFO - Created VN ctest-vn-45997169 2024-09-13 13:57:58,767 - DEBUG - VN ctest-vn-45997169 UUID is c9346b01-d9c6-4438-8c59-3337fecbe98a 2024-09-13 13:57:59,128 - DEBUG - Response for create_network : {'network': {'id': 'ffe3cd73-d987-4945-895f-a7d134970ea4', 'name': 'ctest-vn-58540198', 'tenant_id': '7adb7e2465be44eea5ca7d880d5949e1', 'project_id': '7adb7e2465be44eea5ca7d880d5949e1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71939553', 'ctest-vn-58540198'], 'port_security_enabled': True, 'description': ''}} 2024-09-13 13:57:59,389 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cbb1024d-564f-4c5c-a151-23efb9014b98', 'name': '', 'tenant_id': '7adb7e2465be44eea5ca7d880d5949e1', 'network_id': 'ffe3cd73-d987-4945-895f-a7d134970ea4', 'ip_version': 4, 'cidr': '198.29.197.0/26', 'allocation_pools': [{'start': '198.29.197.2', 'end': '198.29.197.62'}], 'gateway_ip': '198.29.197.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '198.29.197.2', 'tags': [], 'project_id': '7adb7e2465be44eea5ca7d880d5949e1'}} 2024-09-13 13:57:59,413 - INFO - Created VN ctest-vn-58540198 2024-09-13 13:57:59,471 - DEBUG - VN ctest-vn-58540198 UUID is ffe3cd73-d987-4945-895f-a7d134970ea4 2024-09-13 13:57:59,610 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-71939553:ctest-vn-45997169, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-71939553:ctest-vn-58540198, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None] 2024-09-13 13:57:59,960 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c9346b01-d9c6-4438-8c59-3337fecbe98a', 'name': 'ctest-vn-45997169', 'tenant_id': '7adb7e2465be44eea5ca7d880d5949e1', 'project_id': '7adb7e2465be44eea5ca7d880d5949e1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4a145a83-983c-4b9d-a96c-d7bbb0b24d2d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71939553', 'ctest-vn-45997169'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-71939553', 'ctest-policy-allow-all-52362209']], 'subnet_ipam': [{'subnet_cidr': '21.44.66.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-13 13:58:00,220 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ffe3cd73-d987-4945-895f-a7d134970ea4', 'name': 'ctest-vn-58540198', 'tenant_id': '7adb7e2465be44eea5ca7d880d5949e1', 'project_id': '7adb7e2465be44eea5ca7d880d5949e1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cbb1024d-564f-4c5c-a151-23efb9014b98'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71939553', 'ctest-vn-58540198'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-71939553', 'ctest-policy-allow-all-52362209']], 'subnet_ipam': [{'subnet_cidr': '198.29.197.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-13 13:58:00,415 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-09-13 13:58:00,766 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-09-13 13:58:00,815 - DEBUG - Requesting: http://10.0.0.29:8082/domain/8200055e-d9da-4c53-a090-2aadd3fa6642 2024-09-13 13:58:00,833 - DEBUG - Requesting: http://10.0.0.29:8082/project/7adb7e24-65be-44ee-a5ca-7d880d5949e1 2024-09-13 13:58:00,973 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/c9346b01-d9c6-4438-8c59-3337fecbe98a 2024-09-13 13:58:01,040 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/c9346b01-d9c6-4438-8c59-3337fecbe98a 2024-09-13 13:58:01,068 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/4811e5dc-197c-42dc-9ee0-59d2e16fe4f1 2024-09-13 13:58:01,092 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/4811e5dc-197c-42dc-9ee0-59d2e16fe4f1 2024-09-13 13:58:01,125 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/de081cc8-9252-4981-a350-ca06d185f5c6 2024-09-13 13:58:01,138 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-13 13:58:01,138 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/c9346b01-d9c6-4438-8c59-3337fecbe98a 2024-09-13 13:58:01,158 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/4811e5dc-197c-42dc-9ee0-59d2e16fe4f1 2024-09-13 13:58:01,238 - INFO - Verified VN network id 9 for VN c9346b01-d9c6-4438-8c59-3337fecbe98a 2024-09-13 13:58:01,239 - INFO - Verifications in API Server for VN ctest-vn-45997169 passed 2024-09-13 13:58:01,239 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/c9346b01-d9c6-4438-8c59-3337fecbe98a 2024-09-13 13:58:01,264 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/4811e5dc-197c-42dc-9ee0-59d2e16fe4f1 2024-09-13 13:58:01,297 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/4811e5dc-197c-42dc-9ee0-59d2e16fe4f1 2024-09-13 13:58:01,311 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/de081cc8-9252-4981-a350-ca06d185f5c6 2024-09-13 13:58:01,340 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-71939553:ctest-vn-45997169', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-71939553', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14498330756105258040', 'uuid-lslong': '10113170753828153738'}, 'enable': 'true', 'created': '2024-09-13T13:57:58', 'last-modified': '2024-09-13T13:57:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.420870'} 2024-09-13 13:58:01,348 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-13 13:58:01,348 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-45997169 passed 2024-09-13 13:58:01,349 - DEBUG - ====Verifying policy data for ctest-vn-45997169 in API_Server ====== 2024-09-13 13:58:01,349 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-09-13 13:58:01,371 - DEBUG - Requesting: http://10.0.0.29:8082/domain/8200055e-d9da-4c53-a090-2aadd3fa6642 2024-09-13 13:58:01,410 - DEBUG - Requesting: http://10.0.0.29:8082/project/7adb7e24-65be-44ee-a5ca-7d880d5949e1 2024-09-13 13:58:01,549 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/c9346b01-d9c6-4438-8c59-3337fecbe98a 2024-09-13 13:58:01,570 - DEBUG - ==>Verifying data for policy with id: aa1e21be-9cdf-46b6-85e2-7e6856a7da0c, fqn: ['default-domain', 'ctest-TestBasicPolicy-71939553', 'ctest-policy-allow-all-52362209'] 2024-09-13 13:58:01,570 - INFO - VN ctest-vn-45997169 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-13 13:58:01,570 - DEBUG - Verifying the vn in opserver 2024-09-13 13:58:01,570 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-71939553:ctest-vn-45997169 virtual network link through opserver 10.0.0.29 2024-09-13 13:58:01,570 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks 2024-09-13 13:58:01,925 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks 2024-09-13 13:58:02,034 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-71939553:ctest-vn-45997169', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-71939553:ctest-vn-45997169?flat'} 2024-09-13 13:58:02,034 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-71939553:ctest-vn-45997169 is found in opserver 2024-09-13 13:58:02,050 - DEBUG - Do not have enough data to verify VN in agent 2024-09-13 13:58:02,058 - DEBUG - VRF ids for VN ctest-vn-45997169: {} 2024-09-13 13:58:02,058 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-09-13 13:58:02,067 - DEBUG - Requesting: http://10.0.0.29:8082/domain/8200055e-d9da-4c53-a090-2aadd3fa6642 2024-09-13 13:58:02,084 - DEBUG - Requesting: http://10.0.0.29:8082/project/7adb7e24-65be-44ee-a5ca-7d880d5949e1 2024-09-13 13:58:02,179 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/ffe3cd73-d987-4945-895f-a7d134970ea4 2024-09-13 13:58:02,210 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/ffe3cd73-d987-4945-895f-a7d134970ea4 2024-09-13 13:58:02,230 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/7a29c025-e70a-4128-9f67-d15e4a9cc21a 2024-09-13 13:58:02,248 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/7a29c025-e70a-4128-9f67-d15e4a9cc21a 2024-09-13 13:58:02,262 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/18e02fe5-c66d-4a39-83c2-8c3cffc552b9 2024-09-13 13:58:02,273 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-13 13:58:02,273 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/ffe3cd73-d987-4945-895f-a7d134970ea4 2024-09-13 13:58:02,292 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/7a29c025-e70a-4128-9f67-d15e4a9cc21a 2024-09-13 13:58:02,317 - INFO - Verified VN network id 10 for VN ffe3cd73-d987-4945-895f-a7d134970ea4 2024-09-13 13:58:02,318 - INFO - Verifications in API Server for VN ctest-vn-58540198 passed 2024-09-13 13:58:02,318 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/ffe3cd73-d987-4945-895f-a7d134970ea4 2024-09-13 13:58:02,336 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/7a29c025-e70a-4128-9f67-d15e4a9cc21a 2024-09-13 13:58:02,348 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/7a29c025-e70a-4128-9f67-d15e4a9cc21a 2024-09-13 13:58:02,362 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/18e02fe5-c66d-4a39-83c2-8c3cffc552b9 2024-09-13 13:58:02,380 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-71939553:ctest-vn-58540198', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-71939553', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18438807196839397701', 'uuid-lslong': '9898815022955957924'}, 'enable': 'true', 'created': '2024-09-13T13:57:59', 'last-modified': '2024-09-13T13:58:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.192446'} 2024-09-13 13:58:02,387 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-13 13:58:02,387 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-58540198 passed 2024-09-13 13:58:02,387 - DEBUG - ====Verifying policy data for ctest-vn-58540198 in API_Server ====== 2024-09-13 13:58:02,387 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-09-13 13:58:02,396 - DEBUG - Requesting: http://10.0.0.29:8082/domain/8200055e-d9da-4c53-a090-2aadd3fa6642 2024-09-13 13:58:02,418 - DEBUG - Requesting: http://10.0.0.29:8082/project/7adb7e24-65be-44ee-a5ca-7d880d5949e1 2024-09-13 13:58:02,522 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/ffe3cd73-d987-4945-895f-a7d134970ea4 2024-09-13 13:58:02,540 - DEBUG - ==>Verifying data for policy with id: aa1e21be-9cdf-46b6-85e2-7e6856a7da0c, fqn: ['default-domain', 'ctest-TestBasicPolicy-71939553', 'ctest-policy-allow-all-52362209'] 2024-09-13 13:58:02,540 - INFO - VN ctest-vn-58540198 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-13 13:58:02,541 - DEBUG - Verifying the vn in opserver 2024-09-13 13:58:02,541 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-71939553:ctest-vn-58540198 virtual network link through opserver 10.0.0.29 2024-09-13 13:58:02,541 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks 2024-09-13 13:58:02,554 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-71939553:ctest-vn-58540198', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-71939553:ctest-vn-58540198?flat'} 2024-09-13 13:58:02,554 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-71939553:ctest-vn-58540198 is found in opserver 2024-09-13 13:58:02,569 - DEBUG - Do not have enough data to verify VN in agent 2024-09-13 13:58:02,575 - DEBUG - VRF ids for VN ctest-vn-58540198: {} 2024-09-13 13:58:02,640 - DEBUG - Services list from nova: [, , ] 2024-09-13 13:58:03,833 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1920-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1920-1) 2024-09-13 13:58:05,336 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1920-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1920-1) 2024-09-13 13:58:05,336 - INFO - Waiting for VM ctest-TestBasicPolicy-71939553-85866188 to be up.. 2024-09-13 13:58:05,451 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-13 13:58:10,553 - DEBUG - VM is in ACTIVE state now 2024-09-13 13:58:10,553 - INFO - VM name : ctest-TestBasicPolicy-71939553-85866188 2024-09-13 13:58:10,645 - DEBUG - VM ctest-TestBasicPolicy-71939553-85866188 ID is 5778183f-87ab-4f01-b520-a11d53dbc3cd 2024-09-13 13:58:10,665 - DEBUG - VM ctest-TestBasicPolicy-71939553-85866188 launched on Node cn-jenkins-deploy-platform-ansible-os-1920-1 2024-09-13 13:58:10,759 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/5778183f-87ab-4f01-b520-a11d53dbc3cd 2024-09-13 13:58:10,772 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine-interface/48de0737-e34f-467d-9a79-78ec1a502a9c 2024-09-13 13:58:14,076 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1021ms') 2024-09-13 13:58:14,076 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-71939553-85866188 failed! 2024-09-13 13:58:14,143 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-71939553:ctest-vn-45997169 is 21.44.66.1 and allocation pool is NOT set 2024-09-13 13:58:16,206 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=7.92 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.07 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 1.071/4.497/7.923/3.426 ms') 2024-09-13 13:58:16,206 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-71939553-85866188 passed 2024-09-13 13:58:16,379 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-13 13:58:16,379 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-71939553-85866188, IP 21.44.66.3, Port 22 2024-09-13 13:58:16,549 - DEBUG - VM ctest-TestBasicPolicy-71939553-85866188 is ready for SSH connections 2024-09-13 13:58:16,549 - INFO - Waiting for VM ctest-TestBasicPolicy-71939553-46732902 to be up.. 2024-09-13 13:58:16,649 - DEBUG - VM is in ACTIVE state now 2024-09-13 13:58:16,650 - INFO - VM name : ctest-TestBasicPolicy-71939553-46732902 2024-09-13 13:58:16,753 - DEBUG - VM ctest-TestBasicPolicy-71939553-46732902 ID is dfbee277-8532-4d26-a091-f9cf9828927b 2024-09-13 13:58:16,753 - DEBUG - VM ctest-TestBasicPolicy-71939553-46732902 launched on Node cn-jenkins-deploy-platform-ansible-os-1920-1 2024-09-13 13:58:16,870 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/dfbee277-8532-4d26-a091-f9cf9828927b 2024-09-13 13:58:16,881 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine-interface/ef5a0310-9bbb-4f9a-a37d-259796e4f82c 2024-09-13 13:58:18,143 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n64 bytes from 169.254.0.4: icmp_seq=1 ttl=63 time=4.76 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.14 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 1.139/2.951/4.763/1.812 ms') 2024-09-13 13:58:18,143 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-71939553-46732902 passed 2024-09-13 13:58:18,307 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-13 13:58:18,307 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-71939553-46732902, IP 198.29.197.3, Port 22 2024-09-13 13:58:18,373 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2024-09-13 13:58:18,480 - DEBUG - VM ctest-TestBasicPolicy-71939553-46732902 is NOT ready for SSH connections, VM status: ACTIVE 2024-09-13 13:58:23,481 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-13 13:58:23,481 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-71939553-46732902, IP 198.29.197.3, Port 22 2024-09-13 13:58:23,648 - DEBUG - VM ctest-TestBasicPolicy-71939553-46732902 is ready for SSH connections 2024-09-13 13:58:23,649 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-13 13:58:23,649 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 198.29.197.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.29, gateway password: c0ntrail123 2024-09-13 13:58:23,649 - DEBUG - ping -s 56 -c 3 -W 1 198.29.197.3 2024-09-13 13:58:27,768 - DEBUG - PING 198.29.197.3 (198.29.197.3): 56 data bytes 64 bytes from 198.29.197.3: seq=0 ttl=63 time=4.015 ms 64 bytes from 198.29.197.3: seq=1 ttl=63 time=0.992 ms 64 bytes from 198.29.197.3: seq=2 ttl=63 time=0.903 ms --- 198.29.197.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.903/1.970/4.015 ms 2024-09-13 13:58:27,769 - INFO - Ping to IP 198.29.197.3 from VM ctest-TestBasicPolicy-71939553-85866188 passed 2024-09-13 13:58:27,966 - DEBUG - Policy Update Response {"network-policy": {"uuid": "aa1e21be-9cdf-46b6-85e2-7e6856a7da0c", "href": "http://10.0.0.29:8082/network-policy/aa1e21be-9cdf-46b6-85e2-7e6856a7da0c"}} 2024-09-13 13:58:27,966 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-13 13:58:27,967 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 198.29.197.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.29, gateway password: c0ntrail123 2024-09-13 13:58:27,967 - DEBUG - ping -s 56 -c 3 -W 1 198.29.197.3 2024-09-13 13:58:31,193 - DEBUG - PING 198.29.197.3 (198.29.197.3): 56 data bytes 64 bytes from 198.29.197.3: seq=0 ttl=63 time=1.495 ms --- 198.29.197.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.495/1.495/1.495 ms 2024-09-13 13:58:31,193 - WARNING - Ping to IP 198.29.197.3 from VM ctest-TestBasicPolicy-71939553-85866188 failed 2024-09-13 13:58:31,193 - INFO - Deleting VM ctest-TestBasicPolicy-71939553-46732902 2024-09-13 13:58:31,268 - INFO - Deleting VM ctest-TestBasicPolicy-71939553-85866188 2024-09-13 13:58:31,747 - INFO - Deleted policy ctest-policy-allow-all-52362209 2024-09-13 13:58:31,747 - INFO - Deleting VN ctest-vn-58540198 2024-09-13 13:58:31,798 - DEBUG - VN ffe3cd73-d987-4945-895f-a7d134970ea4 still in use: Unable to complete operation on network ffe3cd73-d987-4945-895f-a7d134970ea4. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-9165276c-077e-4562-9727-b3d8d6539a0b'] 2024-09-13 13:58:31,798 - WARNING - Deleting VN ctest-vn-58540198 failed..Will retry 2024-09-13 13:58:33,918 - DEBUG - Response for deleting network () 2024-09-13 13:58:33,918 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/7a29c025-e70a-4128-9f67-d15e4a9cc21a 2024-09-13 13:58:33,924 - DEBUG - Response Code: 404 2024-09-13 13:58:33,925 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-09-13 13:58:33,933 - DEBUG - Requesting: http://10.0.0.29:8082/domain/8200055e-d9da-4c53-a090-2aadd3fa6642 2024-09-13 13:58:33,990 - DEBUG - Requesting: http://10.0.0.29:8082/project/7adb7e24-65be-44ee-a5ca-7d880d5949e1 2024-09-13 13:58:34,074 - INFO - Validated that VN ctest-vn-58540198 is not found in API Server 2024-09-13 13:58:34,089 - DEBUG - VN ctest-vn-58540198 is not present in Agent 10.0.0.29 2024-09-13 13:58:34,089 - INFO - Validated that VN ctest-vn-58540198 is not in any agent 2024-09-13 13:58:34,108 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-58540198 info 2024-09-13 13:58:34,108 - INFO - Deleting VN ctest-vn-45997169 2024-09-13 13:58:34,250 - DEBUG - Response for deleting network () 2024-09-13 13:58:34,250 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/4811e5dc-197c-42dc-9ee0-59d2e16fe4f1 2024-09-13 13:58:34,260 - DEBUG - Response Code: 404 2024-09-13 13:58:34,260 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-09-13 13:58:34,266 - DEBUG - Requesting: http://10.0.0.29:8082/domain/8200055e-d9da-4c53-a090-2aadd3fa6642 2024-09-13 13:58:34,326 - DEBUG - Requesting: http://10.0.0.29:8082/project/7adb7e24-65be-44ee-a5ca-7d880d5949e1 2024-09-13 13:58:34,409 - INFO - Validated that VN ctest-vn-45997169 is not found in API Server 2024-09-13 13:58:34,421 - DEBUG - VN ctest-vn-45997169 is not present in Agent 10.0.0.29 2024-09-13 13:58:34,421 - INFO - Validated that VN ctest-vn-45997169 is not in any agent 2024-09-13 13:58:34,440 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-45997169 info 2024-09-13 13:58:34,704 - DEBUG - No XMPP flaps were noticed during the test 2024-09-13 13:58:34,704 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:37] 2024-09-13 13:58:34,704 - INFO - -------------------------------------------------------------------------------- 2024-09-13 13:58:35,475 - INFO - Deleted project: ctest-TestBasicPolicy-71939553, ID : 7adb7e24-65be-44ee-a5ca-7d880d5949e1