2024-09-17 15:04:27,670 - INFO - Domain Default found not creating 2024-09-17 15:04:27,899 - INFO - Project ctest-TestBasicPolicy-58127057 not found, creating it 2024-09-17 15:04:28,459 - INFO - Created Project:ctest-TestBasicPolicy-58127057, ID : fb2d630a-1fff-46bd-afa8-4e58803b0585 2024-09-17 15:04:30,167 - INFO - ================================================================================ 2024-09-17 15:04:30,167 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-17 15:04:30,167 - 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-17 15:04:30,427 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.6': '0'}} with 2024-09-17 15:04:30,427 - INFO - Initial checks done. Running the testcase now 2024-09-17 15:04:30,427 - INFO - 2024-09-17 15:04:31,088 - DEBUG - Response for create_network : {'network': {'id': '842a66d3-b353-47ce-a53e-51288068b7dd', 'name': 'ctest-vn-87107849', 'tenant_id': 'fb2d630a1fff46bdafa84e58803b0585', 'project_id': 'fb2d630a1fff46bdafa84e58803b0585', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58127057', 'ctest-vn-87107849'], 'port_security_enabled': True, 'description': ''}} 2024-09-17 15:04:31,350 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cefd9dbd-2400-4f83-b2d4-c427f05864cb', 'name': '', 'tenant_id': 'fb2d630a1fff46bdafa84e58803b0585', 'network_id': '842a66d3-b353-47ce-a53e-51288068b7dd', 'ip_version': 4, 'cidr': '168.171.243.64/26', 'allocation_pools': [{'start': '168.171.243.66', 'end': '168.171.243.126'}], 'gateway_ip': '168.171.243.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '168.171.243.66', 'tags': [], 'project_id': 'fb2d630a1fff46bdafa84e58803b0585'}} 2024-09-17 15:04:31,374 - INFO - Created VN ctest-vn-87107849 2024-09-17 15:04:31,434 - DEBUG - VN ctest-vn-87107849 UUID is 842a66d3-b353-47ce-a53e-51288068b7dd 2024-09-17 15:04:31,828 - DEBUG - Response for create_network : {'network': {'id': 'dd1285b8-ec83-4869-9d86-e86033c1249c', 'name': 'ctest-vn-35594855', 'tenant_id': 'fb2d630a1fff46bdafa84e58803b0585', 'project_id': 'fb2d630a1fff46bdafa84e58803b0585', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58127057', 'ctest-vn-35594855'], 'port_security_enabled': True, 'description': ''}} 2024-09-17 15:04:32,066 - DEBUG - Response for create_subnet : {'subnet': {'id': '5ab63c71-38ae-474b-9024-754961481907', 'name': '', 'tenant_id': 'fb2d630a1fff46bdafa84e58803b0585', 'network_id': 'dd1285b8-ec83-4869-9d86-e86033c1249c', 'ip_version': 4, 'cidr': '120.77.206.192/26', 'allocation_pools': [{'start': '120.77.206.194', 'end': '120.77.206.254'}], 'gateway_ip': '120.77.206.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '120.77.206.194', 'tags': [], 'project_id': 'fb2d630a1fff46bdafa84e58803b0585'}} 2024-09-17 15:04:32,086 - INFO - Created VN ctest-vn-35594855 2024-09-17 15:04:32,146 - DEBUG - VN ctest-vn-35594855 UUID is dd1285b8-ec83-4869-9d86-e86033c1249c 2024-09-17 15:04:32,278 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-58127057:ctest-vn-87107849, 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-58127057:ctest-vn-35594855, 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-17 15:04:32,606 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '842a66d3-b353-47ce-a53e-51288068b7dd', 'name': 'ctest-vn-87107849', 'tenant_id': 'fb2d630a1fff46bdafa84e58803b0585', 'project_id': 'fb2d630a1fff46bdafa84e58803b0585', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cefd9dbd-2400-4f83-b2d4-c427f05864cb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58127057', 'ctest-vn-87107849'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-58127057', 'ctest-policy-allow-all-57029558']], 'subnet_ipam': [{'subnet_cidr': '168.171.243.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-17 15:04:32,856 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dd1285b8-ec83-4869-9d86-e86033c1249c', 'name': 'ctest-vn-35594855', 'tenant_id': 'fb2d630a1fff46bdafa84e58803b0585', 'project_id': 'fb2d630a1fff46bdafa84e58803b0585', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5ab63c71-38ae-474b-9024-754961481907'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58127057', 'ctest-vn-35594855'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-58127057', 'ctest-policy-allow-all-57029558']], 'subnet_ipam': [{'subnet_cidr': '120.77.206.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-17 15:04:33,022 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2024-09-17 15:04:33,325 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2024-09-17 15:04:33,360 - DEBUG - Requesting: http://10.0.0.41:8082/domain/c7da23f2-2d22-486d-a3cd-fc48f5040d21 2024-09-17 15:04:33,375 - DEBUG - Requesting: http://10.0.0.41:8082/project/fb2d630a-1fff-46bd-afa8-4e58803b0585 2024-09-17 15:04:33,459 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/842a66d3-b353-47ce-a53e-51288068b7dd 2024-09-17 15:04:33,475 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/842a66d3-b353-47ce-a53e-51288068b7dd 2024-09-17 15:04:33,490 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/fdf532e9-0186-4005-b647-9874ba9e3e55 2024-09-17 15:04:33,501 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/fdf532e9-0186-4005-b647-9874ba9e3e55 2024-09-17 15:04:33,512 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/8fb5f1a6-d4c0-499a-b4ff-3f45acc2bf54 2024-09-17 15:04:33,520 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-17 15:04:33,520 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/842a66d3-b353-47ce-a53e-51288068b7dd 2024-09-17 15:04:33,539 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/fdf532e9-0186-4005-b647-9874ba9e3e55 2024-09-17 15:04:33,563 - INFO - Verified VN network id 8 for VN 842a66d3-b353-47ce-a53e-51288068b7dd 2024-09-17 15:04:33,563 - INFO - Verifications in API Server for VN ctest-vn-87107849 passed 2024-09-17 15:04:33,564 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/842a66d3-b353-47ce-a53e-51288068b7dd 2024-09-17 15:04:33,583 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/fdf532e9-0186-4005-b647-9874ba9e3e55 2024-09-17 15:04:33,593 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/fdf532e9-0186-4005-b647-9874ba9e3e55 2024-09-17 15:04:33,601 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/8fb5f1a6-d4c0-499a-b4ff-3f45acc2bf54 2024-09-17 15:04:33,615 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58127057:ctest-vn-87107849', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58127057', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9523537421461047246', 'uuid-lslong': '11907043699209058269'}, 'enable': 'true', 'created': '2024-09-17T15:04:31', 'last-modified': '2024-09-17T15:04:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.035380'} 2024-09-17 15:04:33,623 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-17 15:04:33,623 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-87107849 passed 2024-09-17 15:04:33,623 - DEBUG - ====Verifying policy data for ctest-vn-87107849 in API_Server ====== 2024-09-17 15:04:33,624 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2024-09-17 15:04:33,630 - DEBUG - Requesting: http://10.0.0.41:8082/domain/c7da23f2-2d22-486d-a3cd-fc48f5040d21 2024-09-17 15:04:33,644 - DEBUG - Requesting: http://10.0.0.41:8082/project/fb2d630a-1fff-46bd-afa8-4e58803b0585 2024-09-17 15:04:33,731 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/842a66d3-b353-47ce-a53e-51288068b7dd 2024-09-17 15:04:33,746 - DEBUG - ==>Verifying data for policy with id: 8401cd9d-16bc-46f2-9c34-a4123767b81c, fqn: ['default-domain', 'ctest-TestBasicPolicy-58127057', 'ctest-policy-allow-all-57029558'] 2024-09-17 15:04:33,746 - INFO - VN ctest-vn-87107849 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-17 15:04:33,746 - DEBUG - Verifying the vn in opserver 2024-09-17 15:04:33,746 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58127057:ctest-vn-87107849 virtual network link through opserver 10.0.0.41 2024-09-17 15:04:33,746 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2024-09-17 15:04:34,045 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2024-09-17 15:04:34,113 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58127057:ctest-vn-87107849', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58127057:ctest-vn-87107849?flat'} 2024-09-17 15:04:34,114 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-58127057:ctest-vn-87107849 is found in opserver 2024-09-17 15:04:34,125 - DEBUG - Do not have enough data to verify VN in agent 2024-09-17 15:04:34,130 - DEBUG - VRF ids for VN ctest-vn-87107849: {} 2024-09-17 15:04:34,130 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2024-09-17 15:04:34,136 - DEBUG - Requesting: http://10.0.0.41:8082/domain/c7da23f2-2d22-486d-a3cd-fc48f5040d21 2024-09-17 15:04:34,151 - DEBUG - Requesting: http://10.0.0.41:8082/project/fb2d630a-1fff-46bd-afa8-4e58803b0585 2024-09-17 15:04:34,251 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/dd1285b8-ec83-4869-9d86-e86033c1249c 2024-09-17 15:04:34,269 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/dd1285b8-ec83-4869-9d86-e86033c1249c 2024-09-17 15:04:34,283 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/3838756d-8804-4bf3-968b-79d03a237288 2024-09-17 15:04:34,293 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/3838756d-8804-4bf3-968b-79d03a237288 2024-09-17 15:04:34,304 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/c8dab2ef-f1a8-4d2a-97d9-bb91d6d014ef 2024-09-17 15:04:34,314 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-17 15:04:34,314 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/dd1285b8-ec83-4869-9d86-e86033c1249c 2024-09-17 15:04:34,330 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/3838756d-8804-4bf3-968b-79d03a237288 2024-09-17 15:04:34,356 - INFO - Verified VN network id 9 for VN dd1285b8-ec83-4869-9d86-e86033c1249c 2024-09-17 15:04:34,356 - INFO - Verifications in API Server for VN ctest-vn-35594855 passed 2024-09-17 15:04:34,356 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/dd1285b8-ec83-4869-9d86-e86033c1249c 2024-09-17 15:04:34,371 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/3838756d-8804-4bf3-968b-79d03a237288 2024-09-17 15:04:34,381 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/3838756d-8804-4bf3-968b-79d03a237288 2024-09-17 15:04:34,391 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/c8dab2ef-f1a8-4d2a-97d9-bb91d6d014ef 2024-09-17 15:04:34,407 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58127057:ctest-vn-35594855', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58127057', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15929941861251369065', 'uuid-lslong': '11351015410716714140'}, 'enable': 'true', 'created': '2024-09-17T15:04:31', 'last-modified': '2024-09-17T15:04:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.576384'} 2024-09-17 15:04:34,414 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-17 15:04:34,414 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35594855 passed 2024-09-17 15:04:34,414 - DEBUG - ====Verifying policy data for ctest-vn-35594855 in API_Server ====== 2024-09-17 15:04:34,414 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2024-09-17 15:04:34,421 - DEBUG - Requesting: http://10.0.0.41:8082/domain/c7da23f2-2d22-486d-a3cd-fc48f5040d21 2024-09-17 15:04:34,434 - DEBUG - Requesting: http://10.0.0.41:8082/project/fb2d630a-1fff-46bd-afa8-4e58803b0585 2024-09-17 15:04:34,514 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/dd1285b8-ec83-4869-9d86-e86033c1249c 2024-09-17 15:04:34,528 - DEBUG - ==>Verifying data for policy with id: 8401cd9d-16bc-46f2-9c34-a4123767b81c, fqn: ['default-domain', 'ctest-TestBasicPolicy-58127057', 'ctest-policy-allow-all-57029558'] 2024-09-17 15:04:34,528 - INFO - VN ctest-vn-35594855 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-17 15:04:34,528 - DEBUG - Verifying the vn in opserver 2024-09-17 15:04:34,528 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58127057:ctest-vn-35594855 virtual network link through opserver 10.0.0.41 2024-09-17 15:04:34,528 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2024-09-17 15:04:34,540 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58127057:ctest-vn-35594855', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58127057:ctest-vn-35594855?flat'} 2024-09-17 15:04:34,540 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-58127057:ctest-vn-35594855 is found in opserver 2024-09-17 15:04:34,552 - DEBUG - Do not have enough data to verify VN in agent 2024-09-17 15:04:34,559 - DEBUG - VRF ids for VN ctest-vn-35594855: {} 2024-09-17 15:04:34,627 - DEBUG - Services list from nova: [, , ] 2024-09-17 15:04:35,713 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1963-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1963-1) 2024-09-17 15:04:37,061 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1963-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1963-1) 2024-09-17 15:04:37,061 - INFO - Waiting for VM ctest-TestBasicPolicy-58127057-75170021 to be up.. 2024-09-17 15:04:37,161 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-17 15:04:42,260 - DEBUG - VM is in ACTIVE state now 2024-09-17 15:04:42,260 - INFO - VM name : ctest-TestBasicPolicy-58127057-75170021 2024-09-17 15:04:42,352 - DEBUG - VM ctest-TestBasicPolicy-58127057-75170021 ID is 347a2c7f-8143-4863-a7c8-c837075bb6d1 2024-09-17 15:04:42,373 - DEBUG - VM ctest-TestBasicPolicy-58127057-75170021 launched on Node cn-jenkins-deploy-platform-ansible-os-1963-1 2024-09-17 15:04:42,460 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/347a2c7f-8143-4863-a7c8-c837075bb6d1 2024-09-17 15:04:42,472 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine-interface/c6364dce-12b1-4f87-9e74-93e5294553fd 2024-09-17 15:04:45,749 - 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 1022ms') 2024-09-17 15:04:45,749 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-58127057-75170021 failed! 2024-09-17 15:04:45,810 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-58127057:ctest-vn-87107849 is 168.171.243.65 and allocation pool is NOT set 2024-09-17 15:04:47,871 - 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=5.38 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.429 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.429/2.903/5.377/2.474 ms') 2024-09-17 15:04:47,871 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-58127057-75170021 passed 2024-09-17 15:04:48,034 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 15:04:48,034 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-58127057-75170021, IP 168.171.243.67, Port 22 2024-09-17 15:04:48,204 - DEBUG - VM ctest-TestBasicPolicy-58127057-75170021 is ready for SSH connections 2024-09-17 15:04:48,204 - INFO - Waiting for VM ctest-TestBasicPolicy-58127057-34665209 to be up.. 2024-09-17 15:04:48,289 - DEBUG - VM is in ACTIVE state now 2024-09-17 15:04:48,289 - INFO - VM name : ctest-TestBasicPolicy-58127057-34665209 2024-09-17 15:04:48,374 - DEBUG - VM ctest-TestBasicPolicy-58127057-34665209 ID is 47e89f38-5781-4053-9c6d-55ca42658978 2024-09-17 15:04:48,375 - DEBUG - VM ctest-TestBasicPolicy-58127057-34665209 launched on Node cn-jenkins-deploy-platform-ansible-os-1963-1 2024-09-17 15:04:48,465 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/47e89f38-5781-4053-9c6d-55ca42658978 2024-09-17 15:04:48,476 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine-interface/f2c91e7e-37ba-4524-a504-22707c86945a 2024-09-17 15:04:49,742 - 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=3.11 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.498 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.498/1.806/3.114/1.308 ms') 2024-09-17 15:04:49,742 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-58127057-34665209 passed 2024-09-17 15:04:49,938 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 15:04:49,938 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-58127057-34665209, IP 120.77.206.195, Port 22 2024-09-17 15:04:50,108 - DEBUG - VM ctest-TestBasicPolicy-58127057-34665209 is ready for SSH connections 2024-09-17 15:04:50,109 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 15:04:50,109 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 120.77.206.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.41, gateway password: c0ntrail123 2024-09-17 15:04:50,109 - DEBUG - ping -s 56 -c 3 -W 1 120.77.206.195 2024-09-17 15:04:54,218 - DEBUG - PING 120.77.206.195 (120.77.206.195): 56 data bytes 64 bytes from 120.77.206.195: seq=0 ttl=63 time=4.545 ms 64 bytes from 120.77.206.195: seq=1 ttl=63 time=1.212 ms 64 bytes from 120.77.206.195: seq=2 ttl=63 time=1.242 ms --- 120.77.206.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.212/2.333/4.545 ms 2024-09-17 15:04:54,218 - INFO - Ping to IP 120.77.206.195 from VM ctest-TestBasicPolicy-58127057-75170021 passed 2024-09-17 15:04:54,422 - DEBUG - Policy Update Response {"network-policy": {"uuid": "8401cd9d-16bc-46f2-9c34-a4123767b81c", "href": "http://10.0.0.41:8082/network-policy/8401cd9d-16bc-46f2-9c34-a4123767b81c"}} 2024-09-17 15:04:54,422 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 15:04:54,422 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 120.77.206.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.41, gateway password: c0ntrail123 2024-09-17 15:04:54,422 - DEBUG - ping -s 56 -c 3 -W 1 120.77.206.195 2024-09-17 15:04:57,627 - DEBUG - PING 120.77.206.195 (120.77.206.195): 56 data bytes 64 bytes from 120.77.206.195: seq=0 ttl=63 time=1.668 ms --- 120.77.206.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.668/1.668/1.668 ms 2024-09-17 15:04:57,627 - WARNING - Ping to IP 120.77.206.195 from VM ctest-TestBasicPolicy-58127057-75170021 failed 2024-09-17 15:04:57,627 - INFO - Deleting VM ctest-TestBasicPolicy-58127057-34665209 2024-09-17 15:04:57,697 - INFO - Deleting VM ctest-TestBasicPolicy-58127057-75170021 2024-09-17 15:04:58,116 - INFO - Deleted policy ctest-policy-allow-all-57029558 2024-09-17 15:04:58,116 - INFO - Deleting VN ctest-vn-35594855 2024-09-17 15:04:58,154 - DEBUG - VN dd1285b8-ec83-4869-9d86-e86033c1249c still in use: Unable to complete operation on network dd1285b8-ec83-4869-9d86-e86033c1249c. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-d6c12875-a4fd-4cd0-b098-db65989f5faf'] 2024-09-17 15:04:58,154 - WARNING - Deleting VN ctest-vn-35594855 failed..Will retry 2024-09-17 15:05:00,314 - DEBUG - Response for deleting network () 2024-09-17 15:05:00,314 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/3838756d-8804-4bf3-968b-79d03a237288 2024-09-17 15:05:00,321 - DEBUG - Response Code: 404 2024-09-17 15:05:00,321 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2024-09-17 15:05:00,328 - DEBUG - Requesting: http://10.0.0.41:8082/domain/c7da23f2-2d22-486d-a3cd-fc48f5040d21 2024-09-17 15:05:00,390 - DEBUG - Requesting: http://10.0.0.41:8082/project/fb2d630a-1fff-46bd-afa8-4e58803b0585 2024-09-17 15:05:00,482 - INFO - Validated that VN ctest-vn-35594855 is not found in API Server 2024-09-17 15:05:00,494 - DEBUG - VN ctest-vn-35594855 is not present in Agent 10.0.0.41 2024-09-17 15:05:00,494 - INFO - Validated that VN ctest-vn-35594855 is not in any agent 2024-09-17 15:05:00,512 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-35594855 info 2024-09-17 15:05:00,512 - INFO - Deleting VN ctest-vn-87107849 2024-09-17 15:05:00,642 - DEBUG - Response for deleting network () 2024-09-17 15:05:00,642 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/fdf532e9-0186-4005-b647-9874ba9e3e55 2024-09-17 15:05:00,648 - DEBUG - Response Code: 404 2024-09-17 15:05:00,648 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2024-09-17 15:05:00,657 - DEBUG - Requesting: http://10.0.0.41:8082/domain/c7da23f2-2d22-486d-a3cd-fc48f5040d21 2024-09-17 15:05:00,718 - DEBUG - Requesting: http://10.0.0.41:8082/project/fb2d630a-1fff-46bd-afa8-4e58803b0585 2024-09-17 15:05:00,812 - INFO - Validated that VN ctest-vn-87107849 is not found in API Server 2024-09-17 15:05:00,826 - DEBUG - VN ctest-vn-87107849 is not present in Agent 10.0.0.41 2024-09-17 15:05:00,827 - INFO - Validated that VN ctest-vn-87107849 is not in any agent 2024-09-17 15:05:00,847 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-87107849 info 2024-09-17 15:05:01,112 - DEBUG - No XMPP flaps were noticed during the test
2024-09-17 15:05:01,112 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31]
2024-09-17 15:05:01,112 - INFO - -------------------------------------------------------------------------------- 2024-09-17 15:05:01,853 - INFO - Deleted project: ctest-TestBasicPolicy-58127057, ID : fb2d630a-1fff-46bd-afa8-4e58803b0585