2024-11-07 02:31:44,089 - INFO - Domain Default found not creating 2024-11-07 02:31:44,299 - INFO - Project ctest-TestBasicPolicy-44235913 not found, creating it 2024-11-07 02:31:44,814 - INFO - Created Project:ctest-TestBasicPolicy-44235913, ID : 7be251b7-af8e-47c1-843c-1eb0ea0db444 2024-11-07 02:31:46,325 - INFO - ================================================================================ 2024-11-07 02:31:46,325 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-11-07 02:31:46,325 - 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-11-07 02:31:46,581 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.29': '0'}} with 2024-11-07 02:31:46,581 - INFO - Initial checks done. Running the testcase now 2024-11-07 02:31:46,581 - INFO - 2024-11-07 02:31:47,164 - DEBUG - Response for create_network : {'network': {'id': '434457b7-f98a-4015-9cab-537ec4bccf79', 'name': 'ctest-vn-64338799', 'tenant_id': '7be251b7af8e47c1843c1eb0ea0db444', 'project_id': '7be251b7af8e47c1843c1eb0ea0db444', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44235913', 'ctest-vn-64338799'], 'port_security_enabled': True, 'description': ''}} 2024-11-07 02:31:47,409 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c9f2a4b1-48e2-482e-90f3-b2ec97e7a886', 'name': '', 'tenant_id': '7be251b7af8e47c1843c1eb0ea0db444', 'network_id': '434457b7-f98a-4015-9cab-537ec4bccf79', 'ip_version': 4, 'cidr': '58.133.186.64/26', 'allocation_pools': [{'start': '58.133.186.66', 'end': '58.133.186.126'}], 'gateway_ip': '58.133.186.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '58.133.186.66', 'tags': [], 'project_id': '7be251b7af8e47c1843c1eb0ea0db444'}} 2024-11-07 02:31:47,430 - INFO - Created VN ctest-vn-64338799 2024-11-07 02:31:47,487 - DEBUG - VN ctest-vn-64338799 UUID is 434457b7-f98a-4015-9cab-537ec4bccf79 2024-11-07 02:31:47,785 - DEBUG - Response for create_network : {'network': {'id': '518a28d7-ad0a-4522-a769-64aae3940293', 'name': 'ctest-vn-61466209', 'tenant_id': '7be251b7af8e47c1843c1eb0ea0db444', 'project_id': '7be251b7af8e47c1843c1eb0ea0db444', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44235913', 'ctest-vn-61466209'], 'port_security_enabled': True, 'description': ''}} 2024-11-07 02:31:47,948 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f59529de-a1f9-40f9-8287-2e1ccd6c084b', 'name': '', 'tenant_id': '7be251b7af8e47c1843c1eb0ea0db444', 'network_id': '518a28d7-ad0a-4522-a769-64aae3940293', 'ip_version': 4, 'cidr': '106.167.231.128/26', 'allocation_pools': [{'start': '106.167.231.130', 'end': '106.167.231.190'}], 'gateway_ip': '106.167.231.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '106.167.231.130', 'tags': [], 'project_id': '7be251b7af8e47c1843c1eb0ea0db444'}} 2024-11-07 02:31:47,967 - INFO - Created VN ctest-vn-61466209 2024-11-07 02:31:48,023 - DEBUG - VN ctest-vn-61466209 UUID is 518a28d7-ad0a-4522-a769-64aae3940293 2024-11-07 02:31:48,145 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-44235913:ctest-vn-64338799, 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-44235913:ctest-vn-61466209, 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-11-07 02:31:48,460 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '434457b7-f98a-4015-9cab-537ec4bccf79', 'name': 'ctest-vn-64338799', 'tenant_id': '7be251b7af8e47c1843c1eb0ea0db444', 'project_id': '7be251b7af8e47c1843c1eb0ea0db444', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c9f2a4b1-48e2-482e-90f3-b2ec97e7a886'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44235913', 'ctest-vn-64338799'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-44235913', 'ctest-policy-allow-all-97261490']], 'subnet_ipam': [{'subnet_cidr': '58.133.186.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-07 02:31:48,703 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '518a28d7-ad0a-4522-a769-64aae3940293', 'name': 'ctest-vn-61466209', 'tenant_id': '7be251b7af8e47c1843c1eb0ea0db444', 'project_id': '7be251b7af8e47c1843c1eb0ea0db444', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f59529de-a1f9-40f9-8287-2e1ccd6c084b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44235913', 'ctest-vn-61466209'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-44235913', 'ctest-policy-allow-all-97261490']], 'subnet_ipam': [{'subnet_cidr': '106.167.231.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-07 02:31:48,871 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-11-07 02:31:49,170 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-11-07 02:31:49,503 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4a2badd5-69e6-4461-91ed-b1461c10a756 2024-11-07 02:31:49,517 - DEBUG - Requesting: http://10.0.0.22:8082/project/7be251b7-af8e-47c1-843c-1eb0ea0db444 2024-11-07 02:31:49,613 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/434457b7-f98a-4015-9cab-537ec4bccf79 2024-11-07 02:31:49,629 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/434457b7-f98a-4015-9cab-537ec4bccf79 2024-11-07 02:31:49,644 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8ce822c5-baaf-4dbd-afa4-98fe0f2327d4 2024-11-07 02:31:49,654 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8ce822c5-baaf-4dbd-afa4-98fe0f2327d4 2024-11-07 02:31:49,665 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/ab3ae0fd-05ba-4306-b9ed-c5ffa1afdc27 2024-11-07 02:31:49,674 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-07 02:31:49,674 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/434457b7-f98a-4015-9cab-537ec4bccf79 2024-11-07 02:31:49,691 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8ce822c5-baaf-4dbd-afa4-98fe0f2327d4 2024-11-07 02:31:49,710 - INFO - Verified VN network id 8 for VN 434457b7-f98a-4015-9cab-537ec4bccf79 2024-11-07 02:31:49,710 - INFO - Verifications in API Server for VN ctest-vn-64338799 passed 2024-11-07 02:31:49,710 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/434457b7-f98a-4015-9cab-537ec4bccf79 2024-11-07 02:31:49,726 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8ce822c5-baaf-4dbd-afa4-98fe0f2327d4 2024-11-07 02:31:49,734 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8ce822c5-baaf-4dbd-afa4-98fe0f2327d4 2024-11-07 02:31:49,745 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/ab3ae0fd-05ba-4306-b9ed-c5ffa1afdc27 2024-11-07 02:31:49,759 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-44235913:ctest-vn-64338799', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-44235913', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4847095546634715157', 'uuid-lslong': '11289208694865973113'}, 'enable': 'true', 'created': '2024-11-07T02:31:47', 'last-modified': '2024-11-07T02:31:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.326502'} 2024-11-07 02:31:49,765 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-07 02:31:49,765 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-64338799 passed 2024-11-07 02:31:49,766 - DEBUG - ====Verifying policy data for ctest-vn-64338799 in API_Server ====== 2024-11-07 02:31:49,766 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-11-07 02:31:49,774 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4a2badd5-69e6-4461-91ed-b1461c10a756 2024-11-07 02:31:49,793 - DEBUG - Requesting: http://10.0.0.22:8082/project/7be251b7-af8e-47c1-843c-1eb0ea0db444 2024-11-07 02:31:49,881 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/434457b7-f98a-4015-9cab-537ec4bccf79 2024-11-07 02:31:49,895 - DEBUG - ==>Verifying data for policy with id: e07c32c2-9a34-4e57-b90b-d60c37b8553e, fqn: ['default-domain', 'ctest-TestBasicPolicy-44235913', 'ctest-policy-allow-all-97261490'] 2024-11-07 02:31:49,895 - INFO - VN ctest-vn-64338799 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-07 02:31:49,895 - DEBUG - Verifying the vn in opserver 2024-11-07 02:31:49,896 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-44235913:ctest-vn-64338799 virtual network link through opserver 10.0.0.22 2024-11-07 02:31:49,896 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2024-11-07 02:31:50,204 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2024-11-07 02:31:50,277 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-44235913:ctest-vn-64338799', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-44235913:ctest-vn-64338799?flat'} 2024-11-07 02:31:50,277 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-44235913:ctest-vn-64338799 is found in opserver 2024-11-07 02:31:50,288 - DEBUG - Do not have enough data to verify VN in agent 2024-11-07 02:31:50,293 - DEBUG - VRF ids for VN ctest-vn-64338799: {} 2024-11-07 02:31:50,293 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-11-07 02:31:50,299 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4a2badd5-69e6-4461-91ed-b1461c10a756 2024-11-07 02:31:50,311 - DEBUG - Requesting: http://10.0.0.22:8082/project/7be251b7-af8e-47c1-843c-1eb0ea0db444 2024-11-07 02:31:50,394 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/518a28d7-ad0a-4522-a769-64aae3940293 2024-11-07 02:31:50,410 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/518a28d7-ad0a-4522-a769-64aae3940293 2024-11-07 02:31:50,424 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f1053609-cf2a-452b-a625-0379e466ce00 2024-11-07 02:31:50,432 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f1053609-cf2a-452b-a625-0379e466ce00 2024-11-07 02:31:50,440 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/5ceabae5-06a7-41a2-b961-f540b4b175bf 2024-11-07 02:31:50,447 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-07 02:31:50,447 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/518a28d7-ad0a-4522-a769-64aae3940293 2024-11-07 02:31:50,460 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f1053609-cf2a-452b-a625-0379e466ce00 2024-11-07 02:31:50,481 - INFO - Verified VN network id 9 for VN 518a28d7-ad0a-4522-a769-64aae3940293 2024-11-07 02:31:50,481 - INFO - Verifications in API Server for VN ctest-vn-61466209 passed 2024-11-07 02:31:50,481 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/518a28d7-ad0a-4522-a769-64aae3940293 2024-11-07 02:31:50,496 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f1053609-cf2a-452b-a625-0379e466ce00 2024-11-07 02:31:50,505 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f1053609-cf2a-452b-a625-0379e466ce00 2024-11-07 02:31:50,514 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/5ceabae5-06a7-41a2-b961-f540b4b175bf 2024-11-07 02:31:50,526 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-44235913:ctest-vn-61466209', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-44235913', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5875553570644444450', 'uuid-lslong': '12063283762013930131'}, 'enable': 'true', 'created': '2024-11-07T02:31:47', 'last-modified': '2024-11-07T02:31:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.845228'} 2024-11-07 02:31:50,533 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-07 02:31:50,533 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-61466209 passed 2024-11-07 02:31:50,533 - DEBUG - ====Verifying policy data for ctest-vn-61466209 in API_Server ====== 2024-11-07 02:31:50,533 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-11-07 02:31:50,539 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4a2badd5-69e6-4461-91ed-b1461c10a756 2024-11-07 02:31:50,552 - DEBUG - Requesting: http://10.0.0.22:8082/project/7be251b7-af8e-47c1-843c-1eb0ea0db444 2024-11-07 02:31:50,633 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/518a28d7-ad0a-4522-a769-64aae3940293 2024-11-07 02:31:50,649 - DEBUG - ==>Verifying data for policy with id: e07c32c2-9a34-4e57-b90b-d60c37b8553e, fqn: ['default-domain', 'ctest-TestBasicPolicy-44235913', 'ctest-policy-allow-all-97261490'] 2024-11-07 02:31:50,649 - INFO - VN ctest-vn-61466209 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-07 02:31:50,649 - DEBUG - Verifying the vn in opserver 2024-11-07 02:31:50,649 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-44235913:ctest-vn-61466209 virtual network link through opserver 10.0.0.22 2024-11-07 02:31:50,649 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2024-11-07 02:31:50,660 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-44235913:ctest-vn-61466209', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-44235913:ctest-vn-61466209?flat'} 2024-11-07 02:31:50,660 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-44235913:ctest-vn-61466209 is found in opserver 2024-11-07 02:31:50,670 - DEBUG - Do not have enough data to verify VN in agent 2024-11-07 02:31:50,675 - DEBUG - VRF ids for VN ctest-vn-61466209: {} 2024-11-07 02:31:50,732 - DEBUG - Services list from nova: [, , ] 2024-11-07 02:31:51,748 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2208-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2208-1) 2024-11-07 02:31:53,050 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2208-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2208-1) 2024-11-07 02:31:53,050 - INFO - Waiting for VM ctest-TestBasicPolicy-44235913-44723499 to be up.. 2024-11-07 02:31:53,139 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-07 02:31:58,215 - DEBUG - VM is in ACTIVE state now 2024-11-07 02:31:58,216 - INFO - VM name : ctest-TestBasicPolicy-44235913-44723499 2024-11-07 02:31:58,291 - DEBUG - VM ctest-TestBasicPolicy-44235913-44723499 ID is 7828369e-3929-4cde-928e-390caf59f771 2024-11-07 02:31:58,310 - DEBUG - VM ctest-TestBasicPolicy-44235913-44723499 launched on Node cn-jenkins-deploy-platform-ansible-os-2208-1 2024-11-07 02:31:58,403 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/7828369e-3929-4cde-928e-390caf59f771 2024-11-07 02:31:58,412 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/99b20c2f-fea5-484e-b32e-1e8451f4bdf3 2024-11-07 02:32:01,672 - 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 1024ms') 2024-11-07 02:32:01,672 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-44235913-44723499 failed! 2024-11-07 02:32:01,731 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-44235913:ctest-vn-64338799 is 58.133.186.65 and allocation pool is NOT set 2024-11-07 02:32:03,794 - 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=3.50 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.790 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.790/2.143/3.497/1.353 ms') 2024-11-07 02:32:03,794 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-44235913-44723499 passed 2024-11-07 02:32:03,951 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 02:32:03,951 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-44235913-44723499, IP 58.133.186.67, Port 22 2024-11-07 02:32:04,111 - DEBUG - VM ctest-TestBasicPolicy-44235913-44723499 is ready for SSH connections 2024-11-07 02:32:04,111 - INFO - Waiting for VM ctest-TestBasicPolicy-44235913-27718481 to be up.. 2024-11-07 02:32:04,190 - DEBUG - VM is in ACTIVE state now 2024-11-07 02:32:04,190 - INFO - VM name : ctest-TestBasicPolicy-44235913-27718481 2024-11-07 02:32:04,271 - DEBUG - VM ctest-TestBasicPolicy-44235913-27718481 ID is c2b18b14-fc65-43f1-a230-da2d4b5b04d2 2024-11-07 02:32:04,271 - DEBUG - VM ctest-TestBasicPolicy-44235913-27718481 launched on Node cn-jenkins-deploy-platform-ansible-os-2208-1 2024-11-07 02:32:04,348 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/c2b18b14-fc65-43f1-a230-da2d4b5b04d2 2024-11-07 02:32:04,359 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/3be85f64-0209-4ce0-a660-d2d6407a758d 2024-11-07 02:32:05,622 - 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.04 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.370 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.370/1.704/3.038/1.334 ms') 2024-11-07 02:32:05,623 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-44235913-27718481 passed 2024-11-07 02:32:05,775 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 02:32:05,775 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-44235913-27718481, IP 106.167.231.131, Port 22 2024-11-07 02:32:05,927 - DEBUG - VM ctest-TestBasicPolicy-44235913-27718481 is ready for SSH connections 2024-11-07 02:32:05,927 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 02:32:05,927 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 106.167.231.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2024-11-07 02:32:05,927 - DEBUG - ping -s 56 -c 3 -W 1 106.167.231.131 2024-11-07 02:32:09,614 - DEBUG - PING 106.167.231.131 (106.167.231.131): 56 data bytes 64 bytes from 106.167.231.131: seq=0 ttl=63 time=4.620 ms 64 bytes from 106.167.231.131: seq=1 ttl=63 time=0.735 ms 64 bytes from 106.167.231.131: seq=2 ttl=63 time=0.754 ms --- 106.167.231.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.735/2.036/4.620 ms 2024-11-07 02:32:09,614 - INFO - Ping to IP 106.167.231.131 from VM ctest-TestBasicPolicy-44235913-44723499 passed 2024-11-07 02:32:09,799 - DEBUG - Policy Update Response {"network-policy": {"uuid": "e07c32c2-9a34-4e57-b90b-d60c37b8553e", "href": "http://10.0.0.22:8082/network-policy/e07c32c2-9a34-4e57-b90b-d60c37b8553e"}} 2024-11-07 02:32:09,799 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 02:32:09,799 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 106.167.231.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2024-11-07 02:32:09,799 - DEBUG - ping -s 56 -c 3 -W 1 106.167.231.131 2024-11-07 02:32:13,005 - DEBUG - PING 106.167.231.131 (106.167.231.131): 56 data bytes 64 bytes from 106.167.231.131: seq=0 ttl=63 time=1.183 ms --- 106.167.231.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.183/1.183/1.183 ms 2024-11-07 02:32:13,005 - WARNING - Ping to IP 106.167.231.131 from VM ctest-TestBasicPolicy-44235913-44723499 failed 2024-11-07 02:32:13,005 - INFO - Deleting VM ctest-TestBasicPolicy-44235913-27718481 2024-11-07 02:32:13,071 - INFO - Deleting VM ctest-TestBasicPolicy-44235913-44723499 2024-11-07 02:32:13,488 - INFO - Deleted policy ctest-policy-allow-all-97261490 2024-11-07 02:32:13,488 - INFO - Deleting VN ctest-vn-61466209 2024-11-07 02:32:13,526 - DEBUG - VN 518a28d7-ad0a-4522-a769-64aae3940293 still in use: Unable to complete operation on network 518a28d7-ad0a-4522-a769-64aae3940293. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-e8cd6ab8-721a-4ef5-bc1e-083372e0aa69'] 2024-11-07 02:32:13,526 - WARNING - Deleting VN ctest-vn-61466209 failed..Will retry 2024-11-07 02:32:15,636 - DEBUG - Response for deleting network () 2024-11-07 02:32:15,636 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f1053609-cf2a-452b-a625-0379e466ce00 2024-11-07 02:32:15,641 - DEBUG - Response Code: 404 2024-11-07 02:32:15,642 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-11-07 02:32:15,648 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4a2badd5-69e6-4461-91ed-b1461c10a756 2024-11-07 02:32:15,709 - DEBUG - Requesting: http://10.0.0.22:8082/project/7be251b7-af8e-47c1-843c-1eb0ea0db444 2024-11-07 02:32:15,791 - INFO - Validated that VN ctest-vn-61466209 is not found in API Server 2024-11-07 02:32:15,801 - DEBUG - VN ctest-vn-61466209 is not present in Agent 10.0.0.22 2024-11-07 02:32:15,801 - INFO - Validated that VN ctest-vn-61466209 is not in any agent 2024-11-07 02:32:15,815 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-61466209 info 2024-11-07 02:32:15,815 - INFO - Deleting VN ctest-vn-64338799 2024-11-07 02:32:15,919 - DEBUG - Response for deleting network () 2024-11-07 02:32:15,919 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8ce822c5-baaf-4dbd-afa4-98fe0f2327d4 2024-11-07 02:32:15,924 - DEBUG - Response Code: 404 2024-11-07 02:32:15,924 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-11-07 02:32:15,929 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4a2badd5-69e6-4461-91ed-b1461c10a756 2024-11-07 02:32:15,985 - DEBUG - Requesting: http://10.0.0.22:8082/project/7be251b7-af8e-47c1-843c-1eb0ea0db444 2024-11-07 02:32:16,063 - INFO - Validated that VN ctest-vn-64338799 is not found in API Server 2024-11-07 02:32:16,074 - DEBUG - VN ctest-vn-64338799 is not present in Agent 10.0.0.22 2024-11-07 02:32:16,074 - INFO - Validated that VN ctest-vn-64338799 is not in any agent 2024-11-07 02:32:16,088 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-64338799 info 2024-11-07 02:32:16,341 - DEBUG - No XMPP flaps were noticed during the test 2024-11-07 02:32:16,341 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30] 2024-11-07 02:32:16,341 - INFO - -------------------------------------------------------------------------------- 2024-11-07 02:32:17,046 - INFO - Deleted project: ctest-TestBasicPolicy-44235913, ID : 7be251b7-af8e-47c1-843c-1eb0ea0db444