2024-12-23 17:47:04,165 - INFO - Domain Default found not creating 2024-12-23 17:47:04,306 - INFO - Project ctest-TestBasicPolicy-88735127 not found, creating it 2024-12-23 17:47:04,810 - INFO - Created Project:ctest-TestBasicPolicy-88735127, ID : c0f724d2-5542-4df0-98c6-ec21ab639e23 2024-12-23 17:47:06,291 - INFO - ================================================================================ 2024-12-23 17:47:06,291 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-12-23 17:47:06,291 - 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-12-23 17:47:06,554 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.20.0.14': '0'}} with 2024-12-23 17:47:06,554 - INFO - Initial checks done. Running the testcase now 2024-12-23 17:47:06,554 - INFO - 2024-12-23 17:47:07,121 - DEBUG - Response for create_network : {'network': {'id': 'a4808b0c-5d10-4043-9d69-55e893a4e12e', 'name': 'ctest-vn-01911695', 'tenant_id': 'c0f724d255424df098c6ec21ab639e23', 'project_id': 'c0f724d255424df098c6ec21ab639e23', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88735127', 'ctest-vn-01911695'], 'port_security_enabled': True, 'description': ''}} 2024-12-23 17:47:07,354 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fd956f44-7e50-45e0-af43-d31d8ece7ccc', 'name': '', 'tenant_id': 'c0f724d255424df098c6ec21ab639e23', 'network_id': 'a4808b0c-5d10-4043-9d69-55e893a4e12e', 'ip_version': 4, 'cidr': '91.183.139.0/26', 'allocation_pools': [{'start': '91.183.139.2', 'end': '91.183.139.62'}], 'gateway_ip': '91.183.139.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '91.183.139.2', 'tags': [], 'project_id': 'c0f724d255424df098c6ec21ab639e23'}} 2024-12-23 17:47:07,377 - INFO - Created VN ctest-vn-01911695 2024-12-23 17:47:07,430 - DEBUG - VN ctest-vn-01911695 UUID is a4808b0c-5d10-4043-9d69-55e893a4e12e 2024-12-23 17:47:07,757 - DEBUG - Response for create_network : {'network': {'id': 'c138e4dd-3cd6-4250-b6a5-c4a2aa05bb46', 'name': 'ctest-vn-13943449', 'tenant_id': 'c0f724d255424df098c6ec21ab639e23', 'project_id': 'c0f724d255424df098c6ec21ab639e23', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88735127', 'ctest-vn-13943449'], 'port_security_enabled': True, 'description': ''}} 2024-12-23 17:47:07,940 - DEBUG - Response for create_subnet : {'subnet': {'id': '9b3d51bc-aa23-4f60-b8c7-077eeed8df24', 'name': '', 'tenant_id': 'c0f724d255424df098c6ec21ab639e23', 'network_id': 'c138e4dd-3cd6-4250-b6a5-c4a2aa05bb46', 'ip_version': 4, 'cidr': '47.117.229.192/26', 'allocation_pools': [{'start': '47.117.229.194', 'end': '47.117.229.254'}], 'gateway_ip': '47.117.229.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '47.117.229.194', 'tags': [], 'project_id': 'c0f724d255424df098c6ec21ab639e23'}} 2024-12-23 17:47:07,960 - INFO - Created VN ctest-vn-13943449 2024-12-23 17:47:08,014 - DEBUG - VN ctest-vn-13943449 UUID is c138e4dd-3cd6-4250-b6a5-c4a2aa05bb46 2024-12-23 17:47:08,136 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-88735127:ctest-vn-01911695, 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-88735127:ctest-vn-13943449, 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-12-23 17:47:08,454 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a4808b0c-5d10-4043-9d69-55e893a4e12e', 'name': 'ctest-vn-01911695', 'tenant_id': 'c0f724d255424df098c6ec21ab639e23', 'project_id': 'c0f724d255424df098c6ec21ab639e23', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fd956f44-7e50-45e0-af43-d31d8ece7ccc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88735127', 'ctest-vn-01911695'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-88735127', 'ctest-policy-allow-all-78029018']], 'subnet_ipam': [{'subnet_cidr': '91.183.139.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-12-23 17:47:08,711 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c138e4dd-3cd6-4250-b6a5-c4a2aa05bb46', 'name': 'ctest-vn-13943449', 'tenant_id': 'c0f724d255424df098c6ec21ab639e23', 'project_id': 'c0f724d255424df098c6ec21ab639e23', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9b3d51bc-aa23-4f60-b8c7-077eeed8df24'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88735127', 'ctest-vn-13943449'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-88735127', 'ctest-policy-allow-all-78029018']], 'subnet_ipam': [{'subnet_cidr': '47.117.229.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-12-23 17:47:08,863 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-12-23 17:47:09,159 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-12-23 17:47:09,192 - DEBUG - Requesting: http://10.0.0.12:8082/domain/fea3d696-356f-4f48-99fd-661fb95f2ea3 2024-12-23 17:47:09,206 - DEBUG - Requesting: http://10.0.0.12:8082/project/c0f724d2-5542-4df0-98c6-ec21ab639e23 2024-12-23 17:47:09,285 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/a4808b0c-5d10-4043-9d69-55e893a4e12e 2024-12-23 17:47:09,298 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/a4808b0c-5d10-4043-9d69-55e893a4e12e 2024-12-23 17:47:09,308 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/a0381dcb-562d-4d1f-ba13-01a912742f45 2024-12-23 17:47:09,316 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/a0381dcb-562d-4d1f-ba13-01a912742f45 2024-12-23 17:47:09,322 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/de997b11-4c1c-4e91-8e25-5718f84cda83 2024-12-23 17:47:09,330 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-12-23 17:47:09,330 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/a4808b0c-5d10-4043-9d69-55e893a4e12e 2024-12-23 17:47:09,340 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/a0381dcb-562d-4d1f-ba13-01a912742f45 2024-12-23 17:47:09,353 - INFO - Verified VN network id 8 for VN a4808b0c-5d10-4043-9d69-55e893a4e12e 2024-12-23 17:47:09,353 - INFO - Verifications in API Server for VN ctest-vn-01911695 passed 2024-12-23 17:47:09,353 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/a4808b0c-5d10-4043-9d69-55e893a4e12e 2024-12-23 17:47:09,363 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/a0381dcb-562d-4d1f-ba13-01a912742f45 2024-12-23 17:47:09,370 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/a0381dcb-562d-4d1f-ba13-01a912742f45 2024-12-23 17:47:09,379 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/de997b11-4c1c-4e91-8e25-5718f84cda83 2024-12-23 17:47:09,394 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-88735127:ctest-vn-01911695', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-88735127', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11853627104456360003', 'uuid-lslong': '11342691593907134766'}, 'enable': 'true', 'created': '2024-12-23T17:47:07', 'last-modified': '2024-12-23T17:47:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.963352'} 2024-12-23 17:47:09,402 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-12-23 17:47:09,402 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-01911695 passed 2024-12-23 17:47:09,402 - DEBUG - ====Verifying policy data for ctest-vn-01911695 in API_Server ====== 2024-12-23 17:47:09,402 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-12-23 17:47:09,409 - DEBUG - Requesting: http://10.0.0.12:8082/domain/fea3d696-356f-4f48-99fd-661fb95f2ea3 2024-12-23 17:47:09,420 - DEBUG - Requesting: http://10.0.0.12:8082/project/c0f724d2-5542-4df0-98c6-ec21ab639e23 2024-12-23 17:47:09,504 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/a4808b0c-5d10-4043-9d69-55e893a4e12e 2024-12-23 17:47:09,516 - DEBUG - ==>Verifying data for policy with id: 584dbc39-2178-4212-b2c9-c7f6ce28eb03, fqn: ['default-domain', 'ctest-TestBasicPolicy-88735127', 'ctest-policy-allow-all-78029018'] 2024-12-23 17:47:09,516 - INFO - VN ctest-vn-01911695 Policy verification: verify_vn_policy_in_api_server, status: True 2024-12-23 17:47:09,516 - DEBUG - Verifying the vn in opserver 2024-12-23 17:47:09,516 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-88735127:ctest-vn-01911695 virtual network link through opserver 10.0.0.12 2024-12-23 17:47:09,516 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2024-12-23 17:47:09,811 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2024-12-23 17:47:09,881 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-88735127:ctest-vn-01911695', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-88735127:ctest-vn-01911695?flat'} 2024-12-23 17:47:09,881 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-88735127:ctest-vn-01911695 is found in opserver 2024-12-23 17:47:09,894 - DEBUG - Do not have enough data to verify VN in agent 2024-12-23 17:47:09,900 - DEBUG - VRF ids for VN ctest-vn-01911695: {} 2024-12-23 17:47:09,901 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-12-23 17:47:09,909 - DEBUG - Requesting: http://10.0.0.12:8082/domain/fea3d696-356f-4f48-99fd-661fb95f2ea3 2024-12-23 17:47:09,923 - DEBUG - Requesting: http://10.0.0.12:8082/project/c0f724d2-5542-4df0-98c6-ec21ab639e23 2024-12-23 17:47:10,004 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/c138e4dd-3cd6-4250-b6a5-c4a2aa05bb46 2024-12-23 17:47:10,019 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/c138e4dd-3cd6-4250-b6a5-c4a2aa05bb46 2024-12-23 17:47:10,029 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/19bd25b2-4959-4eaf-bc56-68a16c23eed4 2024-12-23 17:47:10,038 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/19bd25b2-4959-4eaf-bc56-68a16c23eed4 2024-12-23 17:47:10,047 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/93a6e526-fee3-45d6-aac5-a7840898bd95 2024-12-23 17:47:10,055 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-12-23 17:47:10,055 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/c138e4dd-3cd6-4250-b6a5-c4a2aa05bb46 2024-12-23 17:47:10,067 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/19bd25b2-4959-4eaf-bc56-68a16c23eed4 2024-12-23 17:47:10,083 - INFO - Verified VN network id 9 for VN c138e4dd-3cd6-4250-b6a5-c4a2aa05bb46 2024-12-23 17:47:10,083 - INFO - Verifications in API Server for VN ctest-vn-13943449 passed 2024-12-23 17:47:10,084 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/c138e4dd-3cd6-4250-b6a5-c4a2aa05bb46 2024-12-23 17:47:10,095 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/19bd25b2-4959-4eaf-bc56-68a16c23eed4 2024-12-23 17:47:10,104 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/19bd25b2-4959-4eaf-bc56-68a16c23eed4 2024-12-23 17:47:10,112 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/93a6e526-fee3-45d6-aac5-a7840898bd95 2024-12-23 17:47:10,126 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-88735127:ctest-vn-13943449', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-88735127', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13923129886875468368', 'uuid-lslong': '13161141688976390982'}, 'enable': 'true', 'created': '2024-12-23T17:47:07', 'last-modified': '2024-12-23T17:47:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.447241'} 2024-12-23 17:47:10,133 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-12-23 17:47:10,133 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-13943449 passed 2024-12-23 17:47:10,133 - DEBUG - ====Verifying policy data for ctest-vn-13943449 in API_Server ====== 2024-12-23 17:47:10,133 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-12-23 17:47:10,141 - DEBUG - Requesting: http://10.0.0.12:8082/domain/fea3d696-356f-4f48-99fd-661fb95f2ea3 2024-12-23 17:47:10,155 - DEBUG - Requesting: http://10.0.0.12:8082/project/c0f724d2-5542-4df0-98c6-ec21ab639e23 2024-12-23 17:47:10,236 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/c138e4dd-3cd6-4250-b6a5-c4a2aa05bb46 2024-12-23 17:47:10,253 - DEBUG - ==>Verifying data for policy with id: 584dbc39-2178-4212-b2c9-c7f6ce28eb03, fqn: ['default-domain', 'ctest-TestBasicPolicy-88735127', 'ctest-policy-allow-all-78029018'] 2024-12-23 17:47:10,253 - INFO - VN ctest-vn-13943449 Policy verification: verify_vn_policy_in_api_server, status: True 2024-12-23 17:47:10,253 - DEBUG - Verifying the vn in opserver 2024-12-23 17:47:10,253 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-88735127:ctest-vn-13943449 virtual network link through opserver 10.0.0.12 2024-12-23 17:47:10,253 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2024-12-23 17:47:10,266 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-88735127:ctest-vn-13943449', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-88735127:ctest-vn-13943449?flat'} 2024-12-23 17:47:10,266 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-88735127:ctest-vn-13943449 is found in opserver 2024-12-23 17:47:10,277 - DEBUG - Do not have enough data to verify VN in agent 2024-12-23 17:47:10,283 - DEBUG - VRF ids for VN ctest-vn-13943449: {} 2024-12-23 17:47:10,350 - DEBUG - Services list from nova: [, , ] 2024-12-23 17:47:11,564 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2491-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2491-1) 2024-12-23 17:47:12,819 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2491-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2491-1) 2024-12-23 17:47:12,819 - INFO - Waiting for VM ctest-TestBasicPolicy-88735127-64477184 to be up.. 2024-12-23 17:47:12,914 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-12-23 17:47:18,005 - DEBUG - VM is in ACTIVE state now 2024-12-23 17:47:18,005 - INFO - VM name : ctest-TestBasicPolicy-88735127-64477184 2024-12-23 17:47:18,092 - DEBUG - VM ctest-TestBasicPolicy-88735127-64477184 ID is 2563dafb-4a0a-4088-98d2-a48e5efddb3f 2024-12-23 17:47:18,118 - DEBUG - VM ctest-TestBasicPolicy-88735127-64477184 launched on Node cn-jenkins-deploy-platform-ansible-os-2491-1 2024-12-23 17:47:18,215 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/2563dafb-4a0a-4088-98d2-a48e5efddb3f 2024-12-23 17:47:18,226 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/5d58f8b8-13a6-4158-bf25-81bb71e71e52 2024-12-23 17:47:21,466 - 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 1026ms') 2024-12-23 17:47:21,466 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-88735127-64477184 failed! 2024-12-23 17:47:21,522 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-88735127:ctest-vn-01911695 is 91.183.139.1 and allocation pool is NOT set 2024-12-23 17:47:23,583 - 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=9.80 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.886 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.886/5.344/9.803/4.458 ms') 2024-12-23 17:47:23,583 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-88735127-64477184 passed 2024-12-23 17:47:23,738 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-12-23 17:47:23,739 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-88735127-64477184, IP 91.183.139.3, Port 22 2024-12-23 17:47:23,910 - DEBUG - VM ctest-TestBasicPolicy-88735127-64477184 is ready for SSH connections 2024-12-23 17:47:23,910 - INFO - Waiting for VM ctest-TestBasicPolicy-88735127-31203478 to be up.. 2024-12-23 17:47:24,017 - DEBUG - VM is in ACTIVE state now 2024-12-23 17:47:24,017 - INFO - VM name : ctest-TestBasicPolicy-88735127-31203478 2024-12-23 17:47:24,111 - DEBUG - VM ctest-TestBasicPolicy-88735127-31203478 ID is 42bfbd1a-173a-47a8-b8a6-96cbdee0ec25 2024-12-23 17:47:24,111 - DEBUG - VM ctest-TestBasicPolicy-88735127-31203478 launched on Node cn-jenkins-deploy-platform-ansible-os-2491-1 2024-12-23 17:47:24,211 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/42bfbd1a-173a-47a8-b8a6-96cbdee0ec25 2024-12-23 17:47:24,231 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/e1904245-f0f6-44c7-b1d8-fd1a7cb490c0 2024-12-23 17:47:25,481 - 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.51 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.507 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.507/2.009/3.512/1.502 ms') 2024-12-23 17:47:25,481 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-88735127-31203478 passed 2024-12-23 17:47:25,635 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-12-23 17:47:25,635 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-88735127-31203478, IP 47.117.229.195, Port 22 2024-12-23 17:47:25,801 - DEBUG - VM ctest-TestBasicPolicy-88735127-31203478 is ready for SSH connections 2024-12-23 17:47:25,801 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-12-23 17:47:25,801 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 47.117.229.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.12, gateway password: c0ntrail123 2024-12-23 17:47:25,801 - DEBUG - ping -s 56 -c 3 -W 1 47.117.229.195 2024-12-23 17:47:29,883 - DEBUG - PING 47.117.229.195 (47.117.229.195): 56 data bytes 64 bytes from 47.117.229.195: seq=0 ttl=63 time=3.719 ms 64 bytes from 47.117.229.195: seq=1 ttl=63 time=1.023 ms 64 bytes from 47.117.229.195: seq=2 ttl=63 time=0.927 ms --- 47.117.229.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.927/1.889/3.719 ms 2024-12-23 17:47:29,883 - INFO - Ping to IP 47.117.229.195 from VM ctest-TestBasicPolicy-88735127-64477184 passed 2024-12-23 17:47:30,074 - DEBUG - Policy Update Response {"network-policy": {"uuid": "584dbc39-2178-4212-b2c9-c7f6ce28eb03", "href": "http://10.0.0.12:8082/network-policy/584dbc39-2178-4212-b2c9-c7f6ce28eb03"}} 2024-12-23 17:47:30,074 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-12-23 17:47:30,074 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 47.117.229.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.12, gateway password: c0ntrail123 2024-12-23 17:47:30,075 - DEBUG - ping -s 56 -c 3 -W 1 47.117.229.195 2024-12-23 17:47:33,298 - DEBUG - PING 47.117.229.195 (47.117.229.195): 56 data bytes 64 bytes from 47.117.229.195: seq=0 ttl=63 time=1.585 ms --- 47.117.229.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.585/1.585/1.585 ms 2024-12-23 17:47:33,298 - WARNING - Ping to IP 47.117.229.195 from VM ctest-TestBasicPolicy-88735127-64477184 failed 2024-12-23 17:47:33,299 - INFO - Deleting VM ctest-TestBasicPolicy-88735127-31203478 2024-12-23 17:47:33,373 - INFO - Deleting VM ctest-TestBasicPolicy-88735127-64477184 2024-12-23 17:47:33,795 - INFO - Deleted policy ctest-policy-allow-all-78029018 2024-12-23 17:47:33,795 - INFO - Deleting VN ctest-vn-13943449 2024-12-23 17:47:33,840 - DEBUG - VN c138e4dd-3cd6-4250-b6a5-c4a2aa05bb46 still in use: Unable to complete operation on network c138e4dd-3cd6-4250-b6a5-c4a2aa05bb46. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-42539b87-f166-4924-8aad-27345585da22'] 2024-12-23 17:47:33,840 - WARNING - Deleting VN ctest-vn-13943449 failed..Will retry 2024-12-23 17:47:35,975 - DEBUG - Response for deleting network () 2024-12-23 17:47:35,975 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/19bd25b2-4959-4eaf-bc56-68a16c23eed4 2024-12-23 17:47:35,980 - DEBUG - Response Code: 404 2024-12-23 17:47:35,981 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-12-23 17:47:35,991 - DEBUG - Requesting: http://10.0.0.12:8082/domain/fea3d696-356f-4f48-99fd-661fb95f2ea3 2024-12-23 17:47:36,050 - DEBUG - Requesting: http://10.0.0.12:8082/project/c0f724d2-5542-4df0-98c6-ec21ab639e23 2024-12-23 17:47:36,122 - INFO - Validated that VN ctest-vn-13943449 is not found in API Server 2024-12-23 17:47:36,135 - DEBUG - VN ctest-vn-13943449 is not present in Agent 10.0.0.12 2024-12-23 17:47:36,136 - INFO - Validated that VN ctest-vn-13943449 is not in any agent 2024-12-23 17:47:36,159 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-13943449 info 2024-12-23 17:47:36,159 - INFO - Deleting VN ctest-vn-01911695 2024-12-23 17:47:36,291 - DEBUG - Response for deleting network () 2024-12-23 17:47:36,292 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/a0381dcb-562d-4d1f-ba13-01a912742f45 2024-12-23 17:47:36,300 - DEBUG - Response Code: 404 2024-12-23 17:47:36,300 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-12-23 17:47:36,308 - DEBUG - Requesting: http://10.0.0.12:8082/domain/fea3d696-356f-4f48-99fd-661fb95f2ea3 2024-12-23 17:47:36,365 - DEBUG - Requesting: http://10.0.0.12:8082/project/c0f724d2-5542-4df0-98c6-ec21ab639e23 2024-12-23 17:47:36,445 - INFO - Validated that VN ctest-vn-01911695 is not found in API Server 2024-12-23 17:47:36,459 - DEBUG - VN ctest-vn-01911695 is not present in Agent 10.0.0.12 2024-12-23 17:47:36,459 - INFO - Validated that VN ctest-vn-01911695 is not in any agent 2024-12-23 17:47:36,483 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-01911695 info 2024-12-23 17:47:36,741 - DEBUG - No XMPP flaps were noticed during the test
2024-12-23 17:47:36,742 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2024-12-23 17:47:36,742 - INFO - -------------------------------------------------------------------------------- 2024-12-23 17:47:37,459 - INFO - Deleted project: ctest-TestBasicPolicy-88735127, ID : c0f724d2-5542-4df0-98c6-ec21ab639e23