2024-09-13 19:25:24,841 - INFO - Domain Default found not creating 2024-09-13 19:25:25,077 - INFO - Project ctest-TestBasicPolicy-08628671 not found, creating it 2024-09-13 19:25:25,615 - INFO - Created Project:ctest-TestBasicPolicy-08628671, ID : ee88b943-5da2-4da4-ad50-7a8d3023f6d6 2024-09-13 19:25:27,078 - INFO - ================================================================================ 2024-09-13 19:25:27,078 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-13 19:25:27,078 - 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 19:25:27,333 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.6': '0'}} with 2024-09-13 19:25:27,333 - INFO - Initial checks done. Running the testcase now 2024-09-13 19:25:27,333 - INFO - 2024-09-13 19:25:27,912 - DEBUG - Response for create_network : {'network': {'id': '2bc87139-33c6-4314-8e30-42f210d400bd', 'name': 'ctest-vn-00013918', 'tenant_id': 'ee88b9435da24da4ad507a8d3023f6d6', 'project_id': 'ee88b9435da24da4ad507a8d3023f6d6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08628671', 'ctest-vn-00013918'], 'port_security_enabled': True, 'description': ''}} 2024-09-13 19:25:28,149 - DEBUG - Response for create_subnet : {'subnet': {'id': '78db8f02-969f-4bce-b868-71cc704b4668', 'name': '', 'tenant_id': 'ee88b9435da24da4ad507a8d3023f6d6', 'network_id': '2bc87139-33c6-4314-8e30-42f210d400bd', 'ip_version': 4, 'cidr': '221.249.199.128/26', 'allocation_pools': [{'start': '221.249.199.130', 'end': '221.249.199.190'}], 'gateway_ip': '221.249.199.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '221.249.199.130', 'tags': [], 'project_id': 'ee88b9435da24da4ad507a8d3023f6d6'}} 2024-09-13 19:25:28,173 - INFO - Created VN ctest-vn-00013918 2024-09-13 19:25:28,231 - DEBUG - VN ctest-vn-00013918 UUID is 2bc87139-33c6-4314-8e30-42f210d400bd 2024-09-13 19:25:28,550 - DEBUG - Response for create_network : {'network': {'id': 'f44f0246-dae9-4199-a5d5-f05e25608688', 'name': 'ctest-vn-71964076', 'tenant_id': 'ee88b9435da24da4ad507a8d3023f6d6', 'project_id': 'ee88b9435da24da4ad507a8d3023f6d6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08628671', 'ctest-vn-71964076'], 'port_security_enabled': True, 'description': ''}} 2024-09-13 19:25:28,772 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f6c80d7b-c894-468d-9d7b-1d85b6d66ca2', 'name': '', 'tenant_id': 'ee88b9435da24da4ad507a8d3023f6d6', 'network_id': 'f44f0246-dae9-4199-a5d5-f05e25608688', 'ip_version': 4, 'cidr': '108.38.102.128/26', 'allocation_pools': [{'start': '108.38.102.130', 'end': '108.38.102.190'}], 'gateway_ip': '108.38.102.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '108.38.102.130', 'tags': [], 'project_id': 'ee88b9435da24da4ad507a8d3023f6d6'}} 2024-09-13 19:25:28,792 - INFO - Created VN ctest-vn-71964076 2024-09-13 19:25:28,851 - DEBUG - VN ctest-vn-71964076 UUID is f44f0246-dae9-4199-a5d5-f05e25608688 2024-09-13 19:25:28,973 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-08628671:ctest-vn-00013918, 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-08628671:ctest-vn-71964076, 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 19:25:29,296 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2bc87139-33c6-4314-8e30-42f210d400bd', 'name': 'ctest-vn-00013918', 'tenant_id': 'ee88b9435da24da4ad507a8d3023f6d6', 'project_id': 'ee88b9435da24da4ad507a8d3023f6d6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['78db8f02-969f-4bce-b868-71cc704b4668'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08628671', 'ctest-vn-00013918'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08628671', 'ctest-policy-allow-all-98402598']], 'subnet_ipam': [{'subnet_cidr': '221.249.199.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-13 19:25:29,598 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f44f0246-dae9-4199-a5d5-f05e25608688', 'name': 'ctest-vn-71964076', 'tenant_id': 'ee88b9435da24da4ad507a8d3023f6d6', 'project_id': 'ee88b9435da24da4ad507a8d3023f6d6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f6c80d7b-c894-468d-9d7b-1d85b6d66ca2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08628671', 'ctest-vn-71964076'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08628671', 'ctest-policy-allow-all-98402598']], 'subnet_ipam': [{'subnet_cidr': '108.38.102.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-13 19:25:29,743 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-09-13 19:25:30,040 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-09-13 19:25:30,074 - DEBUG - Requesting: http://10.0.0.33:8082/domain/d74b3ca9-fc8d-469e-90d1-287ef94e05bd 2024-09-13 19:25:30,091 - DEBUG - Requesting: http://10.0.0.33:8082/project/ee88b943-5da2-4da4-ad50-7a8d3023f6d6 2024-09-13 19:25:30,178 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/2bc87139-33c6-4314-8e30-42f210d400bd 2024-09-13 19:25:30,199 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/2bc87139-33c6-4314-8e30-42f210d400bd 2024-09-13 19:25:30,218 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/5dc74ca0-91ca-411e-b7e9-b25f88d8c6eb 2024-09-13 19:25:30,229 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/5dc74ca0-91ca-411e-b7e9-b25f88d8c6eb 2024-09-13 19:25:30,240 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/ffa67d58-5233-4bcc-9382-1fa2fc882d03 2024-09-13 19:25:30,249 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-13 19:25:30,249 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/2bc87139-33c6-4314-8e30-42f210d400bd 2024-09-13 19:25:30,268 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/5dc74ca0-91ca-411e-b7e9-b25f88d8c6eb 2024-09-13 19:25:30,293 - INFO - Verified VN network id 7 for VN 2bc87139-33c6-4314-8e30-42f210d400bd 2024-09-13 19:25:30,293 - INFO - Verifications in API Server for VN ctest-vn-00013918 passed 2024-09-13 19:25:30,293 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/2bc87139-33c6-4314-8e30-42f210d400bd 2024-09-13 19:25:30,307 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/5dc74ca0-91ca-411e-b7e9-b25f88d8c6eb 2024-09-13 19:25:30,317 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/5dc74ca0-91ca-411e-b7e9-b25f88d8c6eb 2024-09-13 19:25:30,327 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/ffa67d58-5233-4bcc-9382-1fa2fc882d03 2024-09-13 19:25:30,343 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08628671:ctest-vn-00013918', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08628671', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3154896029468738324', 'uuid-lslong': '10245762759699726525'}, 'enable': 'true', 'created': '2024-09-13T19:25:27', 'last-modified': '2024-09-13T19:25:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.073965'} 2024-09-13 19:25:30,350 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-13 19:25:30,350 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-00013918 passed 2024-09-13 19:25:30,350 - DEBUG - ====Verifying policy data for ctest-vn-00013918 in API_Server ====== 2024-09-13 19:25:30,350 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-09-13 19:25:30,356 - DEBUG - Requesting: http://10.0.0.33:8082/domain/d74b3ca9-fc8d-469e-90d1-287ef94e05bd 2024-09-13 19:25:30,369 - DEBUG - Requesting: http://10.0.0.33:8082/project/ee88b943-5da2-4da4-ad50-7a8d3023f6d6 2024-09-13 19:25:30,465 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/2bc87139-33c6-4314-8e30-42f210d400bd 2024-09-13 19:25:30,482 - DEBUG - ==>Verifying data for policy with id: a413e4b5-e2d8-4324-b5f3-c4f93ed78ce8, fqn: ['default-domain', 'ctest-TestBasicPolicy-08628671', 'ctest-policy-allow-all-98402598'] 2024-09-13 19:25:30,482 - INFO - VN ctest-vn-00013918 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-13 19:25:30,482 - DEBUG - Verifying the vn in opserver 2024-09-13 19:25:30,482 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08628671:ctest-vn-00013918 virtual network link through opserver 10.0.0.33 2024-09-13 19:25:30,482 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2024-09-13 19:25:30,777 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2024-09-13 19:25:30,841 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08628671:ctest-vn-00013918', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08628671:ctest-vn-00013918?flat'} 2024-09-13 19:25:30,841 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08628671:ctest-vn-00013918 is found in opserver 2024-09-13 19:25:30,851 - DEBUG - Do not have enough data to verify VN in agent 2024-09-13 19:25:30,856 - DEBUG - VRF ids for VN ctest-vn-00013918: {} 2024-09-13 19:25:30,856 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-09-13 19:25:30,862 - DEBUG - Requesting: http://10.0.0.33:8082/domain/d74b3ca9-fc8d-469e-90d1-287ef94e05bd 2024-09-13 19:25:30,875 - DEBUG - Requesting: http://10.0.0.33:8082/project/ee88b943-5da2-4da4-ad50-7a8d3023f6d6 2024-09-13 19:25:30,955 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f44f0246-dae9-4199-a5d5-f05e25608688 2024-09-13 19:25:30,972 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f44f0246-dae9-4199-a5d5-f05e25608688 2024-09-13 19:25:30,985 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/c60ebc4f-778a-42a4-8236-3e6b205a7b3f 2024-09-13 19:25:30,994 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/c60ebc4f-778a-42a4-8236-3e6b205a7b3f 2024-09-13 19:25:31,003 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/b1542b13-7b0e-474d-8129-8c1428ee2c7c 2024-09-13 19:25:31,012 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-13 19:25:31,012 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f44f0246-dae9-4199-a5d5-f05e25608688 2024-09-13 19:25:31,027 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/c60ebc4f-778a-42a4-8236-3e6b205a7b3f 2024-09-13 19:25:31,046 - INFO - Verified VN network id 8 for VN f44f0246-dae9-4199-a5d5-f05e25608688 2024-09-13 19:25:31,047 - INFO - Verifications in API Server for VN ctest-vn-71964076 passed 2024-09-13 19:25:31,047 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f44f0246-dae9-4199-a5d5-f05e25608688 2024-09-13 19:25:31,063 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/c60ebc4f-778a-42a4-8236-3e6b205a7b3f 2024-09-13 19:25:31,071 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/c60ebc4f-778a-42a4-8236-3e6b205a7b3f 2024-09-13 19:25:31,080 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/b1542b13-7b0e-474d-8129-8c1428ee2c7c 2024-09-13 19:25:31,093 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08628671:ctest-vn-71964076', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08628671', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17604291971758244249', 'uuid-lslong': '11949721473442154120'}, 'enable': 'true', 'created': '2024-09-13T19:25:28', 'last-modified': '2024-09-13T19:25:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.566165'} 2024-09-13 19:25:31,100 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-13 19:25:31,100 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-71964076 passed 2024-09-13 19:25:31,100 - DEBUG - ====Verifying policy data for ctest-vn-71964076 in API_Server ====== 2024-09-13 19:25:31,100 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-09-13 19:25:31,107 - DEBUG - Requesting: http://10.0.0.33:8082/domain/d74b3ca9-fc8d-469e-90d1-287ef94e05bd 2024-09-13 19:25:31,120 - DEBUG - Requesting: http://10.0.0.33:8082/project/ee88b943-5da2-4da4-ad50-7a8d3023f6d6 2024-09-13 19:25:31,194 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f44f0246-dae9-4199-a5d5-f05e25608688 2024-09-13 19:25:31,207 - DEBUG - ==>Verifying data for policy with id: a413e4b5-e2d8-4324-b5f3-c4f93ed78ce8, fqn: ['default-domain', 'ctest-TestBasicPolicy-08628671', 'ctest-policy-allow-all-98402598'] 2024-09-13 19:25:31,207 - INFO - VN ctest-vn-71964076 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-13 19:25:31,207 - DEBUG - Verifying the vn in opserver 2024-09-13 19:25:31,207 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08628671:ctest-vn-71964076 virtual network link through opserver 10.0.0.33 2024-09-13 19:25:31,207 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2024-09-13 19:25:31,218 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08628671:ctest-vn-71964076', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08628671:ctest-vn-71964076?flat'} 2024-09-13 19:25:31,218 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08628671:ctest-vn-71964076 is found in opserver 2024-09-13 19:25:31,229 - DEBUG - Do not have enough data to verify VN in agent 2024-09-13 19:25:31,234 - DEBUG - VRF ids for VN ctest-vn-71964076: {} 2024-09-13 19:25:31,286 - DEBUG - Services list from nova: [, , ] 2024-09-13 19:25:32,322 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1931-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1931-1) 2024-09-13 19:25:33,559 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1931-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1931-1) 2024-09-13 19:25:33,559 - INFO - Waiting for VM ctest-TestBasicPolicy-08628671-59244607 to be up.. 2024-09-13 19:25:33,640 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-13 19:25:38,722 - DEBUG - VM is in ACTIVE state now 2024-09-13 19:25:38,723 - INFO - VM name : ctest-TestBasicPolicy-08628671-59244607 2024-09-13 19:25:38,803 - DEBUG - VM ctest-TestBasicPolicy-08628671-59244607 ID is 2c6ecb8e-3265-41f8-9c82-4a80b30b445e 2024-09-13 19:25:38,822 - DEBUG - VM ctest-TestBasicPolicy-08628671-59244607 launched on Node cn-jenkins-deploy-platform-ansible-os-1931-1 2024-09-13 19:25:38,908 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/2c6ecb8e-3265-41f8-9c82-4a80b30b445e 2024-09-13 19:25:38,918 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/3490572e-3c8b-498e-881b-446576742037 2024-09-13 19:25:42,183 - 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 1023ms') 2024-09-13 19:25:42,183 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-08628671-59244607 failed! 2024-09-13 19:25:42,243 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-08628671:ctest-vn-00013918 is 221.249.199.129 and allocation pool is NOT set 2024-09-13 19:25:44,306 - 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=2.60 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.387 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.387/1.493/2.600/1.106 ms') 2024-09-13 19:25:44,306 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-08628671-59244607 passed 2024-09-13 19:25:44,475 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-13 19:25:44,475 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-08628671-59244607, IP 221.249.199.131, Port 22 2024-09-13 19:25:44,627 - DEBUG - VM ctest-TestBasicPolicy-08628671-59244607 is ready for SSH connections 2024-09-13 19:25:44,627 - INFO - Waiting for VM ctest-TestBasicPolicy-08628671-88267141 to be up.. 2024-09-13 19:25:44,698 - DEBUG - VM is in ACTIVE state now 2024-09-13 19:25:44,698 - INFO - VM name : ctest-TestBasicPolicy-08628671-88267141 2024-09-13 19:25:44,771 - DEBUG - VM ctest-TestBasicPolicy-08628671-88267141 ID is 79276ee0-19a2-477d-96fd-fb9751d3b5f2 2024-09-13 19:25:44,771 - DEBUG - VM ctest-TestBasicPolicy-08628671-88267141 launched on Node cn-jenkins-deploy-platform-ansible-os-1931-1 2024-09-13 19:25:44,841 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/79276ee0-19a2-477d-96fd-fb9751d3b5f2 2024-09-13 19:25:44,850 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/24800c4b-0277-4a2a-8b6b-80d610e79e74 2024-09-13 19:25:46,086 - 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.05 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.446 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.446/1.750/3.054/1.304 ms') 2024-09-13 19:25:46,086 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-08628671-88267141 passed 2024-09-13 19:25:46,239 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-13 19:25:46,239 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-08628671-88267141, IP 108.38.102.131, Port 22 2024-09-13 19:25:46,391 - DEBUG - VM ctest-TestBasicPolicy-08628671-88267141 is ready for SSH connections 2024-09-13 19:25:46,391 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-13 19:25:46,391 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 108.38.102.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2024-09-13 19:25:46,391 - DEBUG - ping -s 56 -c 3 -W 1 108.38.102.131 2024-09-13 19:25:50,385 - DEBUG - PING 108.38.102.131 (108.38.102.131): 56 data bytes 64 bytes from 108.38.102.131: seq=0 ttl=63 time=3.271 ms 64 bytes from 108.38.102.131: seq=1 ttl=63 time=0.779 ms 64 bytes from 108.38.102.131: seq=2 ttl=63 time=0.753 ms --- 108.38.102.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.753/1.601/3.271 ms 2024-09-13 19:25:50,385 - INFO - Ping to IP 108.38.102.131 from VM ctest-TestBasicPolicy-08628671-59244607 passed 2024-09-13 19:25:50,575 - DEBUG - Policy Update Response {"network-policy": {"uuid": "a413e4b5-e2d8-4324-b5f3-c4f93ed78ce8", "href": "http://10.0.0.33:8082/network-policy/a413e4b5-e2d8-4324-b5f3-c4f93ed78ce8"}} 2024-09-13 19:25:50,575 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-13 19:25:50,575 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 108.38.102.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2024-09-13 19:25:50,575 - DEBUG - ping -s 56 -c 3 -W 1 108.38.102.131 2024-09-13 19:25:53,771 - DEBUG - PING 108.38.102.131 (108.38.102.131): 56 data bytes 64 bytes from 108.38.102.131: seq=0 ttl=63 time=1.474 ms --- 108.38.102.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.474/1.474/1.474 ms 2024-09-13 19:25:53,772 - WARNING - Ping to IP 108.38.102.131 from VM ctest-TestBasicPolicy-08628671-59244607 failed 2024-09-13 19:25:53,772 - INFO - Deleting VM ctest-TestBasicPolicy-08628671-88267141 2024-09-13 19:25:53,836 - INFO - Deleting VM ctest-TestBasicPolicy-08628671-59244607 2024-09-13 19:25:54,253 - INFO - Deleted policy ctest-policy-allow-all-98402598 2024-09-13 19:25:54,254 - INFO - Deleting VN ctest-vn-71964076 2024-09-13 19:25:54,295 - DEBUG - VN f44f0246-dae9-4199-a5d5-f05e25608688 still in use: Unable to complete operation on network f44f0246-dae9-4199-a5d5-f05e25608688. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-9733cb26-f14a-4e9a-b2e1-73e9416de55a'] 2024-09-13 19:25:54,295 - WARNING - Deleting VN ctest-vn-71964076 failed..Will retry 2024-09-13 19:25:56,399 - DEBUG - Response for deleting network () 2024-09-13 19:25:56,399 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/c60ebc4f-778a-42a4-8236-3e6b205a7b3f 2024-09-13 19:25:56,407 - DEBUG - Response Code: 404 2024-09-13 19:25:56,407 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-09-13 19:25:56,413 - DEBUG - Requesting: http://10.0.0.33:8082/domain/d74b3ca9-fc8d-469e-90d1-287ef94e05bd 2024-09-13 19:25:56,471 - DEBUG - Requesting: http://10.0.0.33:8082/project/ee88b943-5da2-4da4-ad50-7a8d3023f6d6 2024-09-13 19:25:56,553 - INFO - Validated that VN ctest-vn-71964076 is not found in API Server 2024-09-13 19:25:56,563 - DEBUG - VN ctest-vn-71964076 is not present in Agent 10.0.0.33 2024-09-13 19:25:56,563 - INFO - Validated that VN ctest-vn-71964076 is not in any agent 2024-09-13 19:25:56,578 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-71964076 info 2024-09-13 19:25:56,578 - INFO - Deleting VN ctest-vn-00013918 2024-09-13 19:25:56,677 - DEBUG - Response for deleting network () 2024-09-13 19:25:56,677 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/5dc74ca0-91ca-411e-b7e9-b25f88d8c6eb 2024-09-13 19:25:56,682 - DEBUG - Response Code: 404 2024-09-13 19:25:56,682 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-09-13 19:25:56,696 - DEBUG - Requesting: http://10.0.0.33:8082/domain/d74b3ca9-fc8d-469e-90d1-287ef94e05bd 2024-09-13 19:25:56,754 - DEBUG - Requesting: http://10.0.0.33:8082/project/ee88b943-5da2-4da4-ad50-7a8d3023f6d6 2024-09-13 19:25:56,839 - INFO - Validated that VN ctest-vn-00013918 is not found in API Server 2024-09-13 19:25:56,854 - DEBUG - VN ctest-vn-00013918 is not present in Agent 10.0.0.33 2024-09-13 19:25:56,854 - INFO - Validated that VN ctest-vn-00013918 is not in any agent 2024-09-13 19:25:56,871 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-00013918 info 2024-09-13 19:25:57,128 - DEBUG - No XMPP flaps were noticed during the test
2024-09-13 19:25:57,129 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2024-09-13 19:25:57,129 - INFO - -------------------------------------------------------------------------------- 2024-09-13 19:25:57,838 - INFO - Deleted project: ctest-TestBasicPolicy-08628671, ID : ee88b943-5da2-4da4-ad50-7a8d3023f6d6