2024-09-13 21:44:46,274 - INFO - Domain Default found not creating 2024-09-13 21:44:46,433 - INFO - Project ctest-TestBasicPolicy-98253417 not found, creating it 2024-09-13 21:44:46,936 - INFO - Created Project:ctest-TestBasicPolicy-98253417, ID : 2a6c1b10-14a1-44b6-b73c-98f01dac1636 2024-09-13 21:44:48,459 - INFO - ================================================================================ 2024-09-13 21:44:48,459 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-13 21:44:48,459 - 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 21:44:48,719 - DEBUG - Nothing to compare xmpp stats {'10.0.0.32': {'10.20.0.7': '0'}} with 2024-09-13 21:44:48,720 - INFO - Initial checks done. Running the testcase now 2024-09-13 21:44:48,720 - INFO - 2024-09-13 21:44:49,298 - DEBUG - Response for create_network : {'network': {'id': '2eee4e68-4cb6-4f44-a0af-86265eacc162', 'name': 'ctest-vn-84484465', 'tenant_id': '2a6c1b1014a144b6b73c98f01dac1636', 'project_id': '2a6c1b1014a144b6b73c98f01dac1636', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98253417', 'ctest-vn-84484465'], 'port_security_enabled': True, 'description': ''}} 2024-09-13 21:44:49,494 - DEBUG - Response for create_subnet : {'subnet': {'id': '861d94cc-60d8-4a1a-a216-6421bf5d92f0', 'name': '', 'tenant_id': '2a6c1b1014a144b6b73c98f01dac1636', 'network_id': '2eee4e68-4cb6-4f44-a0af-86265eacc162', 'ip_version': 4, 'cidr': '212.105.173.64/26', 'allocation_pools': [{'start': '212.105.173.66', 'end': '212.105.173.126'}], 'gateway_ip': '212.105.173.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '212.105.173.66', 'tags': [], 'project_id': '2a6c1b1014a144b6b73c98f01dac1636'}} 2024-09-13 21:44:49,513 - INFO - Created VN ctest-vn-84484465 2024-09-13 21:44:49,569 - DEBUG - VN ctest-vn-84484465 UUID is 2eee4e68-4cb6-4f44-a0af-86265eacc162 2024-09-13 21:44:49,892 - DEBUG - Response for create_network : {'network': {'id': '35e63a15-13ff-4adb-a7a2-1582ff5b810f', 'name': 'ctest-vn-91544888', 'tenant_id': '2a6c1b1014a144b6b73c98f01dac1636', 'project_id': '2a6c1b1014a144b6b73c98f01dac1636', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98253417', 'ctest-vn-91544888'], 'port_security_enabled': True, 'description': ''}} 2024-09-13 21:44:50,107 - DEBUG - Response for create_subnet : {'subnet': {'id': '82f3fd25-a7a9-4980-b256-be20fd9e8975', 'name': '', 'tenant_id': '2a6c1b1014a144b6b73c98f01dac1636', 'network_id': '35e63a15-13ff-4adb-a7a2-1582ff5b810f', 'ip_version': 4, 'cidr': '25.254.49.0/26', 'allocation_pools': [{'start': '25.254.49.2', 'end': '25.254.49.62'}], 'gateway_ip': '25.254.49.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '25.254.49.2', 'tags': [], 'project_id': '2a6c1b1014a144b6b73c98f01dac1636'}} 2024-09-13 21:44:50,126 - INFO - Created VN ctest-vn-91544888 2024-09-13 21:44:50,185 - DEBUG - VN ctest-vn-91544888 UUID is 35e63a15-13ff-4adb-a7a2-1582ff5b810f 2024-09-13 21:44:50,313 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-98253417:ctest-vn-84484465, 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-98253417:ctest-vn-91544888, 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 21:44:50,613 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2eee4e68-4cb6-4f44-a0af-86265eacc162', 'name': 'ctest-vn-84484465', 'tenant_id': '2a6c1b1014a144b6b73c98f01dac1636', 'project_id': '2a6c1b1014a144b6b73c98f01dac1636', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['861d94cc-60d8-4a1a-a216-6421bf5d92f0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98253417', 'ctest-vn-84484465'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98253417', 'ctest-policy-allow-all-16121220']], 'subnet_ipam': [{'subnet_cidr': '212.105.173.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-13 21:44:50,844 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '35e63a15-13ff-4adb-a7a2-1582ff5b810f', 'name': 'ctest-vn-91544888', 'tenant_id': '2a6c1b1014a144b6b73c98f01dac1636', 'project_id': '2a6c1b1014a144b6b73c98f01dac1636', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['82f3fd25-a7a9-4980-b256-be20fd9e8975'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98253417', 'ctest-vn-91544888'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98253417', 'ctest-policy-allow-all-16121220']], 'subnet_ipam': [{'subnet_cidr': '25.254.49.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-13 21:44:51,037 - DEBUG - Requesting: http://10.0.0.32:8082/domains 2024-09-13 21:44:51,334 - DEBUG - Requesting: http://10.0.0.32:8082/domains 2024-09-13 21:44:51,364 - DEBUG - Requesting: http://10.0.0.32:8082/domain/98c31e05-f158-44b0-8ab3-fffe933d5288 2024-09-13 21:44:51,379 - DEBUG - Requesting: http://10.0.0.32:8082/project/2a6c1b10-14a1-44b6-b73c-98f01dac1636 2024-09-13 21:44:51,458 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/2eee4e68-4cb6-4f44-a0af-86265eacc162 2024-09-13 21:44:51,476 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/2eee4e68-4cb6-4f44-a0af-86265eacc162 2024-09-13 21:44:51,491 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/53c65394-6dda-49d0-9dfd-5bc5c3e37f06 2024-09-13 21:44:51,499 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/53c65394-6dda-49d0-9dfd-5bc5c3e37f06 2024-09-13 21:44:51,509 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/b6b8c52c-e6c6-47f2-97d2-f468ff919132 2024-09-13 21:44:51,518 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-13 21:44:51,518 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/2eee4e68-4cb6-4f44-a0af-86265eacc162 2024-09-13 21:44:51,531 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/53c65394-6dda-49d0-9dfd-5bc5c3e37f06 2024-09-13 21:44:51,554 - INFO - Verified VN network id 8 for VN 2eee4e68-4cb6-4f44-a0af-86265eacc162 2024-09-13 21:44:51,554 - INFO - Verifications in API Server for VN ctest-vn-84484465 passed 2024-09-13 21:44:51,554 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/2eee4e68-4cb6-4f44-a0af-86265eacc162 2024-09-13 21:44:51,569 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/53c65394-6dda-49d0-9dfd-5bc5c3e37f06 2024-09-13 21:44:51,579 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/53c65394-6dda-49d0-9dfd-5bc5c3e37f06 2024-09-13 21:44:51,588 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/b6b8c52c-e6c6-47f2-97d2-f468ff919132 2024-09-13 21:44:51,603 - DEBUG - Control-node 10.0.0.32 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98253417:ctest-vn-84484465', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98253417', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3381726580072402756', 'uuid-lslong': '11578620666348093794'}, 'enable': 'true', 'created': '2024-09-13T21:44:49', 'last-modified': '2024-09-13T21:44:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.011670'} 2024-09-13 21:44:51,610 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-13 21:44:51,611 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-84484465 passed 2024-09-13 21:44:51,611 - DEBUG - ====Verifying policy data for ctest-vn-84484465 in API_Server ====== 2024-09-13 21:44:51,611 - DEBUG - Requesting: http://10.0.0.32:8082/domains 2024-09-13 21:44:51,617 - DEBUG - Requesting: http://10.0.0.32:8082/domain/98c31e05-f158-44b0-8ab3-fffe933d5288 2024-09-13 21:44:51,631 - DEBUG - Requesting: http://10.0.0.32:8082/project/2a6c1b10-14a1-44b6-b73c-98f01dac1636 2024-09-13 21:44:51,715 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/2eee4e68-4cb6-4f44-a0af-86265eacc162 2024-09-13 21:44:51,730 - DEBUG - ==>Verifying data for policy with id: a763dfbe-b578-430e-8f70-72beb0e50248, fqn: ['default-domain', 'ctest-TestBasicPolicy-98253417', 'ctest-policy-allow-all-16121220'] 2024-09-13 21:44:51,730 - INFO - VN ctest-vn-84484465 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-13 21:44:51,730 - DEBUG - Verifying the vn in opserver 2024-09-13 21:44:51,730 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98253417:ctest-vn-84484465 virtual network link through opserver 10.0.0.32 2024-09-13 21:44:51,731 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks 2024-09-13 21:44:52,026 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks 2024-09-13 21:44:52,089 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98253417:ctest-vn-84484465', 'href': 'http://10.0.0.32:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98253417:ctest-vn-84484465?flat'} 2024-09-13 21:44:52,089 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98253417:ctest-vn-84484465 is found in opserver 2024-09-13 21:44:52,100 - DEBUG - Do not have enough data to verify VN in agent 2024-09-13 21:44:52,105 - DEBUG - VRF ids for VN ctest-vn-84484465: {} 2024-09-13 21:44:52,105 - DEBUG - Requesting: http://10.0.0.32:8082/domains 2024-09-13 21:44:52,111 - DEBUG - Requesting: http://10.0.0.32:8082/domain/98c31e05-f158-44b0-8ab3-fffe933d5288 2024-09-13 21:44:52,124 - DEBUG - Requesting: http://10.0.0.32:8082/project/2a6c1b10-14a1-44b6-b73c-98f01dac1636 2024-09-13 21:44:52,210 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/35e63a15-13ff-4adb-a7a2-1582ff5b810f 2024-09-13 21:44:52,229 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/35e63a15-13ff-4adb-a7a2-1582ff5b810f 2024-09-13 21:44:52,244 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/1030a76f-e99f-4899-ae51-95be1f466476 2024-09-13 21:44:52,253 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/1030a76f-e99f-4899-ae51-95be1f466476 2024-09-13 21:44:52,263 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/2c1c45cb-1d64-408a-a21d-2681910a7b36 2024-09-13 21:44:52,272 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-13 21:44:52,272 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/35e63a15-13ff-4adb-a7a2-1582ff5b810f 2024-09-13 21:44:52,289 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/1030a76f-e99f-4899-ae51-95be1f466476 2024-09-13 21:44:52,314 - INFO - Verified VN network id 9 for VN 35e63a15-13ff-4adb-a7a2-1582ff5b810f 2024-09-13 21:44:52,314 - INFO - Verifications in API Server for VN ctest-vn-91544888 passed 2024-09-13 21:44:52,314 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/35e63a15-13ff-4adb-a7a2-1582ff5b810f 2024-09-13 21:44:52,331 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/1030a76f-e99f-4899-ae51-95be1f466476 2024-09-13 21:44:52,340 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/1030a76f-e99f-4899-ae51-95be1f466476 2024-09-13 21:44:52,349 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/2c1c45cb-1d64-408a-a21d-2681910a7b36 2024-09-13 21:44:52,365 - DEBUG - Control-node 10.0.0.32 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98253417:ctest-vn-91544888', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98253417', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3883855590857853659', 'uuid-lslong': '12079240802935210255'}, 'enable': 'true', 'created': '2024-09-13T21:44:49', 'last-modified': '2024-09-13T21:44:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.542124'} 2024-09-13 21:44:52,372 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-13 21:44:52,372 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91544888 passed 2024-09-13 21:44:52,372 - DEBUG - ====Verifying policy data for ctest-vn-91544888 in API_Server ====== 2024-09-13 21:44:52,372 - DEBUG - Requesting: http://10.0.0.32:8082/domains 2024-09-13 21:44:52,378 - DEBUG - Requesting: http://10.0.0.32:8082/domain/98c31e05-f158-44b0-8ab3-fffe933d5288 2024-09-13 21:44:52,393 - DEBUG - Requesting: http://10.0.0.32:8082/project/2a6c1b10-14a1-44b6-b73c-98f01dac1636 2024-09-13 21:44:52,475 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/35e63a15-13ff-4adb-a7a2-1582ff5b810f 2024-09-13 21:44:52,488 - DEBUG - ==>Verifying data for policy with id: a763dfbe-b578-430e-8f70-72beb0e50248, fqn: ['default-domain', 'ctest-TestBasicPolicy-98253417', 'ctest-policy-allow-all-16121220'] 2024-09-13 21:44:52,488 - INFO - VN ctest-vn-91544888 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-13 21:44:52,488 - DEBUG - Verifying the vn in opserver 2024-09-13 21:44:52,489 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98253417:ctest-vn-91544888 virtual network link through opserver 10.0.0.32 2024-09-13 21:44:52,489 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks 2024-09-13 21:44:52,500 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98253417:ctest-vn-91544888', 'href': 'http://10.0.0.32:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98253417:ctest-vn-91544888?flat'} 2024-09-13 21:44:52,500 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98253417:ctest-vn-91544888 is found in opserver 2024-09-13 21:44:52,510 - DEBUG - Do not have enough data to verify VN in agent 2024-09-13 21:44:52,516 - DEBUG - VRF ids for VN ctest-vn-91544888: {} 2024-09-13 21:44:52,566 - DEBUG - Services list from nova: [, , ] 2024-09-13 21:44:53,693 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1932-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1932-1) 2024-09-13 21:44:54,874 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1932-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1932-1) 2024-09-13 21:44:54,874 - INFO - Waiting for VM ctest-TestBasicPolicy-98253417-37466280 to be up.. 2024-09-13 21:44:54,966 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-13 21:45:00,087 - DEBUG - VM is in ACTIVE state now 2024-09-13 21:45:00,087 - INFO - VM name : ctest-TestBasicPolicy-98253417-37466280 2024-09-13 21:45:00,189 - DEBUG - VM ctest-TestBasicPolicy-98253417-37466280 ID is 11e376c0-a88f-4064-b379-2c01f23a010c 2024-09-13 21:45:00,211 - DEBUG - VM ctest-TestBasicPolicy-98253417-37466280 launched on Node cn-jenkins-deploy-platform-ansible-os-1932-1 2024-09-13 21:45:00,300 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine/11e376c0-a88f-4064-b379-2c01f23a010c 2024-09-13 21:45:00,314 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine-interface/223a8068-a0f9-4e98-8665-90d6ba92ff8e 2024-09-13 21:45:03,591 - 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 1006ms') 2024-09-13 21:45:03,591 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-98253417-37466280 failed! 2024-09-13 21:45:03,649 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-98253417:ctest-vn-84484465 is 212.105.173.65 and allocation pool is NOT set 2024-09-13 21:45:05,711 - 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=4.18 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.85 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 = 1.848/3.015/4.182/1.167 ms') 2024-09-13 21:45:05,711 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-98253417-37466280 passed 2024-09-13 21:45:05,873 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-13 21:45:05,873 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-98253417-37466280, IP 212.105.173.67, Port 22 2024-09-13 21:45:06,032 - DEBUG - VM ctest-TestBasicPolicy-98253417-37466280 is ready for SSH connections 2024-09-13 21:45:06,033 - INFO - Waiting for VM ctest-TestBasicPolicy-98253417-14025983 to be up.. 2024-09-13 21:45:06,114 - DEBUG - VM is in ACTIVE state now 2024-09-13 21:45:06,114 - INFO - VM name : ctest-TestBasicPolicy-98253417-14025983 2024-09-13 21:45:06,199 - DEBUG - VM ctest-TestBasicPolicy-98253417-14025983 ID is f2ba86e8-85de-493b-905e-671e808c6157 2024-09-13 21:45:06,200 - DEBUG - VM ctest-TestBasicPolicy-98253417-14025983 launched on Node cn-jenkins-deploy-platform-ansible-os-1932-1 2024-09-13 21:45:06,293 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine/f2ba86e8-85de-493b-905e-671e808c6157 2024-09-13 21:45:06,304 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine-interface/147da413-9c9c-46fe-a00a-9f483755c0fd 2024-09-13 21:45:07,562 - 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.90 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.88 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.878/3.390/4.903/1.512 ms') 2024-09-13 21:45:07,562 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-98253417-14025983 passed 2024-09-13 21:45:07,729 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-13 21:45:07,729 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-98253417-14025983, IP 25.254.49.3, Port 22 2024-09-13 21:45:07,889 - DEBUG - VM ctest-TestBasicPolicy-98253417-14025983 is ready for SSH connections 2024-09-13 21:45:07,889 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-13 21:45:07,889 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 25.254.49.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.32, gateway password: c0ntrail123 2024-09-13 21:45:07,889 - DEBUG - ping -s 56 -c 3 -W 1 25.254.49.3 2024-09-13 21:45:11,901 - DEBUG - PING 25.254.49.3 (25.254.49.3): 56 data bytes 64 bytes from 25.254.49.3: seq=0 ttl=63 time=4.450 ms 64 bytes from 25.254.49.3: seq=1 ttl=63 time=0.762 ms 64 bytes from 25.254.49.3: seq=2 ttl=63 time=0.906 ms --- 25.254.49.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.762/2.039/4.450 ms 2024-09-13 21:45:11,901 - INFO - Ping to IP 25.254.49.3 from VM ctest-TestBasicPolicy-98253417-37466280 passed 2024-09-13 21:45:12,089 - DEBUG - Policy Update Response {"network-policy": {"uuid": "a763dfbe-b578-430e-8f70-72beb0e50248", "href": "http://10.0.0.32:8082/network-policy/a763dfbe-b578-430e-8f70-72beb0e50248"}} 2024-09-13 21:45:12,089 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-13 21:45:12,089 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 25.254.49.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.32, gateway password: c0ntrail123 2024-09-13 21:45:12,089 - DEBUG - ping -s 56 -c 3 -W 1 25.254.49.3 2024-09-13 21:45:15,330 - DEBUG - PING 25.254.49.3 (25.254.49.3): 56 data bytes 64 bytes from 25.254.49.3: seq=0 ttl=63 time=1.706 ms --- 25.254.49.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.706/1.706/1.706 ms 2024-09-13 21:45:15,330 - WARNING - Ping to IP 25.254.49.3 from VM ctest-TestBasicPolicy-98253417-37466280 failed 2024-09-13 21:45:15,330 - INFO - Deleting VM ctest-TestBasicPolicy-98253417-14025983 2024-09-13 21:45:15,421 - INFO - Deleting VM ctest-TestBasicPolicy-98253417-37466280 2024-09-13 21:45:15,863 - INFO - Deleted policy ctest-policy-allow-all-16121220 2024-09-13 21:45:15,864 - INFO - Deleting VN ctest-vn-91544888 2024-09-13 21:45:15,908 - DEBUG - VN 35e63a15-13ff-4adb-a7a2-1582ff5b810f still in use: Unable to complete operation on network 35e63a15-13ff-4adb-a7a2-1582ff5b810f. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-e0da8014-bc30-401c-9869-5460d88b7e6d'] 2024-09-13 21:45:15,908 - WARNING - Deleting VN ctest-vn-91544888 failed..Will retry 2024-09-13 21:45:18,029 - DEBUG - Response for deleting network () 2024-09-13 21:45:18,029 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/1030a76f-e99f-4899-ae51-95be1f466476 2024-09-13 21:45:18,036 - DEBUG - Response Code: 404 2024-09-13 21:45:18,036 - DEBUG - Requesting: http://10.0.0.32:8082/domains 2024-09-13 21:45:18,042 - DEBUG - Requesting: http://10.0.0.32:8082/domain/98c31e05-f158-44b0-8ab3-fffe933d5288 2024-09-13 21:45:18,103 - DEBUG - Requesting: http://10.0.0.32:8082/project/2a6c1b10-14a1-44b6-b73c-98f01dac1636 2024-09-13 21:45:18,183 - INFO - Validated that VN ctest-vn-91544888 is not found in API Server 2024-09-13 21:45:18,194 - DEBUG - VN ctest-vn-91544888 is not present in Agent 10.0.0.32 2024-09-13 21:45:18,194 - INFO - Validated that VN ctest-vn-91544888 is not in any agent 2024-09-13 21:45:18,211 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-91544888 info 2024-09-13 21:45:18,211 - INFO - Deleting VN ctest-vn-84484465 2024-09-13 21:45:18,338 - DEBUG - Response for deleting network () 2024-09-13 21:45:18,338 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/53c65394-6dda-49d0-9dfd-5bc5c3e37f06 2024-09-13 21:45:18,345 - DEBUG - Response Code: 404 2024-09-13 21:45:18,345 - DEBUG - Requesting: http://10.0.0.32:8082/domains 2024-09-13 21:45:18,351 - DEBUG - Requesting: http://10.0.0.32:8082/domain/98c31e05-f158-44b0-8ab3-fffe933d5288 2024-09-13 21:45:18,408 - DEBUG - Requesting: http://10.0.0.32:8082/project/2a6c1b10-14a1-44b6-b73c-98f01dac1636 2024-09-13 21:45:18,486 - INFO - Validated that VN ctest-vn-84484465 is not found in API Server 2024-09-13 21:45:18,497 - DEBUG - VN ctest-vn-84484465 is not present in Agent 10.0.0.32 2024-09-13 21:45:18,497 - INFO - Validated that VN ctest-vn-84484465 is not in any agent 2024-09-13 21:45:18,513 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-84484465 info 2024-09-13 21:45:18,767 - DEBUG - No XMPP flaps were noticed during the test
2024-09-13 21:45:18,767 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2024-09-13 21:45:18,767 - INFO - -------------------------------------------------------------------------------- 2024-09-13 21:45:19,506 - INFO - Deleted project: ctest-TestBasicPolicy-98253417, ID : 2a6c1b10-14a1-44b6-b73c-98f01dac1636