2025-03-10 02:23:45,029 - INFO - Domain Default found not creating 2025-03-10 02:23:45,177 - INFO - Project ctest-TestBasicPolicy-61638679 not found, creating it 2025-03-10 02:23:45,608 - INFO - Created Project:ctest-TestBasicPolicy-61638679, ID : 4c93aeb0-b8cb-4ba9-95a2-fb1babce814d 2025-03-10 02:23:46,977 - INFO - ================================================================================ 2025-03-10 02:23:46,977 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-03-10 02:23:46,977 - 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 2025-03-10 02:23:47,236 - DEBUG - Nothing to compare xmpp stats {'10.0.0.60': {'10.20.0.14': '0'}} with 2025-03-10 02:23:47,236 - INFO - Initial checks done. Running the testcase now 2025-03-10 02:23:47,236 - INFO - 2025-03-10 02:23:47,771 - DEBUG - Response for create_network : {'network': {'id': 'f96c2166-93cd-4169-bc54-bd1113b20f06', 'name': 'ctest-vn-36245950', 'tenant_id': '4c93aeb0b8cb4ba995a2fb1babce814d', 'project_id': '4c93aeb0b8cb4ba995a2fb1babce814d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61638679', 'ctest-vn-36245950'], 'port_security_enabled': True, 'description': ''}} 2025-03-10 02:23:47,994 - DEBUG - Response for create_subnet : {'subnet': {'id': '540b87f4-5552-4595-ac4e-d2eafb0e933c', 'name': '', 'tenant_id': '4c93aeb0b8cb4ba995a2fb1babce814d', 'network_id': 'f96c2166-93cd-4169-bc54-bd1113b20f06', 'ip_version': 4, 'cidr': '220.102.127.0/26', 'allocation_pools': [{'start': '220.102.127.2', 'end': '220.102.127.62'}], 'gateway_ip': '220.102.127.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '220.102.127.2', 'tags': [], 'project_id': '4c93aeb0b8cb4ba995a2fb1babce814d'}} 2025-03-10 02:23:48,010 - INFO - Created VN ctest-vn-36245950 2025-03-10 02:23:48,063 - DEBUG - VN ctest-vn-36245950 UUID is f96c2166-93cd-4169-bc54-bd1113b20f06 2025-03-10 02:23:48,371 - DEBUG - Response for create_network : {'network': {'id': 'd9d7fa31-63e1-4912-9a1b-80766394dc09', 'name': 'ctest-vn-11679039', 'tenant_id': '4c93aeb0b8cb4ba995a2fb1babce814d', 'project_id': '4c93aeb0b8cb4ba995a2fb1babce814d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61638679', 'ctest-vn-11679039'], 'port_security_enabled': True, 'description': ''}} 2025-03-10 02:23:48,543 - DEBUG - Response for create_subnet : {'subnet': {'id': '6a066f14-b2d0-40ba-9631-061e5b4018db', 'name': '', 'tenant_id': '4c93aeb0b8cb4ba995a2fb1babce814d', 'network_id': 'd9d7fa31-63e1-4912-9a1b-80766394dc09', 'ip_version': 4, 'cidr': '221.174.115.192/26', 'allocation_pools': [{'start': '221.174.115.194', 'end': '221.174.115.254'}], 'gateway_ip': '221.174.115.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '221.174.115.194', 'tags': [], 'project_id': '4c93aeb0b8cb4ba995a2fb1babce814d'}} 2025-03-10 02:23:48,563 - INFO - Created VN ctest-vn-11679039 2025-03-10 02:23:48,610 - DEBUG - VN ctest-vn-11679039 UUID is d9d7fa31-63e1-4912-9a1b-80766394dc09 2025-03-10 02:23:48,754 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-61638679:ctest-vn-36245950, 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-61638679:ctest-vn-11679039, 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] 2025-03-10 02:23:49,033 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f96c2166-93cd-4169-bc54-bd1113b20f06', 'name': 'ctest-vn-36245950', 'tenant_id': '4c93aeb0b8cb4ba995a2fb1babce814d', 'project_id': '4c93aeb0b8cb4ba995a2fb1babce814d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['540b87f4-5552-4595-ac4e-d2eafb0e933c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61638679', 'ctest-vn-36245950'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61638679', 'ctest-policy-allow-all-93377289']], 'subnet_ipam': [{'subnet_cidr': '220.102.127.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-10 02:23:49,308 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd9d7fa31-63e1-4912-9a1b-80766394dc09', 'name': 'ctest-vn-11679039', 'tenant_id': '4c93aeb0b8cb4ba995a2fb1babce814d', 'project_id': '4c93aeb0b8cb4ba995a2fb1babce814d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6a066f14-b2d0-40ba-9631-061e5b4018db'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61638679', 'ctest-vn-11679039'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61638679', 'ctest-policy-allow-all-93377289']], 'subnet_ipam': [{'subnet_cidr': '221.174.115.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-10 02:23:49,427 - DEBUG - Requesting: http://10.0.0.60:8082/domains 2025-03-10 02:23:49,723 - DEBUG - Requesting: http://10.0.0.60:8082/domains 2025-03-10 02:23:49,749 - DEBUG - Requesting: http://10.0.0.60:8082/domain/7b12b1ca-5674-413d-9eed-230c5cde7567 2025-03-10 02:23:49,762 - DEBUG - Requesting: http://10.0.0.60:8082/project/4c93aeb0-b8cb-4ba9-95a2-fb1babce814d 2025-03-10 02:23:49,829 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-network/f96c2166-93cd-4169-bc54-bd1113b20f06 2025-03-10 02:23:49,839 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-network/f96c2166-93cd-4169-bc54-bd1113b20f06 2025-03-10 02:23:49,846 - DEBUG - Requesting: http://10.0.0.60:8082/routing-instance/acd27a5b-b329-42fe-8ae3-92a4098841d8 2025-03-10 02:23:49,852 - DEBUG - Requesting: http://10.0.0.60:8082/routing-instance/acd27a5b-b329-42fe-8ae3-92a4098841d8 2025-03-10 02:23:49,859 - DEBUG - Requesting: http://10.0.0.60:8082/route-target/9b418271-bc03-4e3f-aba6-e36936bb77f0 2025-03-10 02:23:49,865 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-10 02:23:49,865 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-network/f96c2166-93cd-4169-bc54-bd1113b20f06 2025-03-10 02:23:49,872 - DEBUG - Requesting: http://10.0.0.60:8082/routing-instance/acd27a5b-b329-42fe-8ae3-92a4098841d8 2025-03-10 02:23:49,883 - INFO - Verified VN network id 9 for VN f96c2166-93cd-4169-bc54-bd1113b20f06 2025-03-10 02:23:49,883 - INFO - Verifications in API Server for VN ctest-vn-36245950 passed 2025-03-10 02:23:49,883 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-network/f96c2166-93cd-4169-bc54-bd1113b20f06 2025-03-10 02:23:49,892 - DEBUG - Requesting: http://10.0.0.60:8082/routing-instance/acd27a5b-b329-42fe-8ae3-92a4098841d8 2025-03-10 02:23:49,898 - DEBUG - Requesting: http://10.0.0.60:8082/routing-instance/acd27a5b-b329-42fe-8ae3-92a4098841d8 2025-03-10 02:23:49,905 - DEBUG - Requesting: http://10.0.0.60:8082/route-target/9b418271-bc03-4e3f-aba6-e36936bb77f0 2025-03-10 02:23:49,916 - DEBUG - Control-node 10.0.0.60 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61638679:ctest-vn-36245950', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61638679', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17972776937378890089', 'uuid-lslong': '13570679458216677126'}, 'enable': 'true', 'created': '2025-03-10T02:23:47', 'last-modified': '2025-03-10T02:23:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.903239'} 2025-03-10 02:23:49,924 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-10 02:23:49,924 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-36245950 passed 2025-03-10 02:23:49,924 - DEBUG - ====Verifying policy data for ctest-vn-36245950 in API_Server ====== 2025-03-10 02:23:49,924 - DEBUG - Requesting: http://10.0.0.60:8082/domains 2025-03-10 02:23:49,930 - DEBUG - Requesting: http://10.0.0.60:8082/domain/7b12b1ca-5674-413d-9eed-230c5cde7567 2025-03-10 02:23:49,941 - DEBUG - Requesting: http://10.0.0.60:8082/project/4c93aeb0-b8cb-4ba9-95a2-fb1babce814d 2025-03-10 02:23:50,008 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-network/f96c2166-93cd-4169-bc54-bd1113b20f06 2025-03-10 02:23:50,018 - DEBUG - ==>Verifying data for policy with id: fcc0b67b-099a-44ae-ac25-0a3efe2e5c7c, fqn: ['default-domain', 'ctest-TestBasicPolicy-61638679', 'ctest-policy-allow-all-93377289'] 2025-03-10 02:23:50,018 - INFO - VN ctest-vn-36245950 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-10 02:23:50,018 - DEBUG - Verifying the vn in opserver 2025-03-10 02:23:50,018 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61638679:ctest-vn-36245950 virtual network link through opserver 10.0.0.60 2025-03-10 02:23:50,018 - DEBUG - Requesting: http://10.0.0.60:8081/analytics/uves/virtual-networks 2025-03-10 02:23:50,319 - DEBUG - Requesting: http://10.0.0.60:8081/analytics/uves/virtual-networks 2025-03-10 02:23:50,373 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61638679:ctest-vn-36245950', 'href': 'http://10.0.0.60:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61638679:ctest-vn-36245950?flat'} 2025-03-10 02:23:50,373 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61638679:ctest-vn-36245950 is found in opserver 2025-03-10 02:23:50,384 - DEBUG - Do not have enough data to verify VN in agent 2025-03-10 02:23:50,390 - DEBUG - VRF ids for VN ctest-vn-36245950: {} 2025-03-10 02:23:50,390 - DEBUG - Requesting: http://10.0.0.60:8082/domains 2025-03-10 02:23:50,398 - DEBUG - Requesting: http://10.0.0.60:8082/domain/7b12b1ca-5674-413d-9eed-230c5cde7567 2025-03-10 02:23:50,410 - DEBUG - Requesting: http://10.0.0.60:8082/project/4c93aeb0-b8cb-4ba9-95a2-fb1babce814d 2025-03-10 02:23:50,480 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-network/d9d7fa31-63e1-4912-9a1b-80766394dc09 2025-03-10 02:23:50,490 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-network/d9d7fa31-63e1-4912-9a1b-80766394dc09 2025-03-10 02:23:50,496 - DEBUG - Requesting: http://10.0.0.60:8082/routing-instance/161441ea-de2b-493d-9c19-907bd33849f7 2025-03-10 02:23:50,503 - DEBUG - Requesting: http://10.0.0.60:8082/routing-instance/161441ea-de2b-493d-9c19-907bd33849f7 2025-03-10 02:23:50,508 - DEBUG - Requesting: http://10.0.0.60:8082/route-target/229d4664-dacf-418e-aaef-e58d943b609b 2025-03-10 02:23:50,514 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-03-10 02:23:50,514 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-network/d9d7fa31-63e1-4912-9a1b-80766394dc09 2025-03-10 02:23:50,521 - DEBUG - Requesting: http://10.0.0.60:8082/routing-instance/161441ea-de2b-493d-9c19-907bd33849f7 2025-03-10 02:23:50,531 - INFO - Verified VN network id 10 for VN d9d7fa31-63e1-4912-9a1b-80766394dc09 2025-03-10 02:23:50,531 - INFO - Verifications in API Server for VN ctest-vn-11679039 passed 2025-03-10 02:23:50,531 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-network/d9d7fa31-63e1-4912-9a1b-80766394dc09 2025-03-10 02:23:50,539 - DEBUG - Requesting: http://10.0.0.60:8082/routing-instance/161441ea-de2b-493d-9c19-907bd33849f7 2025-03-10 02:23:50,544 - DEBUG - Requesting: http://10.0.0.60:8082/routing-instance/161441ea-de2b-493d-9c19-907bd33849f7 2025-03-10 02:23:50,550 - DEBUG - Requesting: http://10.0.0.60:8082/route-target/229d4664-dacf-418e-aaef-e58d943b609b 2025-03-10 02:23:50,561 - DEBUG - Control-node 10.0.0.60 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61638679:ctest-vn-11679039', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61638679', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15697290116259203346', 'uuid-lslong': '11104610552177286153'}, 'enable': 'true', 'created': '2025-03-10T02:23:48', 'last-modified': '2025-03-10T02:23:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.314752'} 2025-03-10 02:23:50,567 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-03-10 02:23:50,567 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-11679039 passed 2025-03-10 02:23:50,567 - DEBUG - ====Verifying policy data for ctest-vn-11679039 in API_Server ====== 2025-03-10 02:23:50,567 - DEBUG - Requesting: http://10.0.0.60:8082/domains 2025-03-10 02:23:50,572 - DEBUG - Requesting: http://10.0.0.60:8082/domain/7b12b1ca-5674-413d-9eed-230c5cde7567 2025-03-10 02:23:50,582 - DEBUG - Requesting: http://10.0.0.60:8082/project/4c93aeb0-b8cb-4ba9-95a2-fb1babce814d 2025-03-10 02:23:50,648 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-network/d9d7fa31-63e1-4912-9a1b-80766394dc09 2025-03-10 02:23:50,655 - DEBUG - ==>Verifying data for policy with id: fcc0b67b-099a-44ae-ac25-0a3efe2e5c7c, fqn: ['default-domain', 'ctest-TestBasicPolicy-61638679', 'ctest-policy-allow-all-93377289'] 2025-03-10 02:23:50,655 - INFO - VN ctest-vn-11679039 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-10 02:23:50,655 - DEBUG - Verifying the vn in opserver 2025-03-10 02:23:50,655 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61638679:ctest-vn-11679039 virtual network link through opserver 10.0.0.60 2025-03-10 02:23:50,655 - DEBUG - Requesting: http://10.0.0.60:8081/analytics/uves/virtual-networks 2025-03-10 02:23:50,665 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61638679:ctest-vn-11679039', 'href': 'http://10.0.0.60:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61638679:ctest-vn-11679039?flat'} 2025-03-10 02:23:50,665 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61638679:ctest-vn-11679039 is found in opserver 2025-03-10 02:23:50,676 - DEBUG - Do not have enough data to verify VN in agent 2025-03-10 02:23:50,681 - DEBUG - VRF ids for VN ctest-vn-11679039: {} 2025-03-10 02:23:50,740 - DEBUG - Services list from nova: [, , ] 2025-03-10 02:23:51,723 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2827-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2827-1) 2025-03-10 02:23:52,919 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2827-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2827-1) 2025-03-10 02:23:52,920 - INFO - Waiting for VM ctest-TestBasicPolicy-61638679-94757694 to be up.. 2025-03-10 02:23:52,995 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-10 02:23:58,138 - DEBUG - VM is in ACTIVE state now 2025-03-10 02:23:58,139 - INFO - VM name : ctest-TestBasicPolicy-61638679-94757694 2025-03-10 02:23:58,288 - DEBUG - VM ctest-TestBasicPolicy-61638679-94757694 ID is af11b357-44d4-4d9f-93a1-052f15c8a6a8 2025-03-10 02:23:58,340 - DEBUG - VM ctest-TestBasicPolicy-61638679-94757694 launched on Node cn-jenkins-deploy-platform-ansible-os-2827-1 2025-03-10 02:23:58,471 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-machine/af11b357-44d4-4d9f-93a1-052f15c8a6a8 2025-03-10 02:23:58,482 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-machine-interface/7d2e64bd-cd51-4db8-8fbe-cde315980000 2025-03-10 02:24:01,737 - 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 1019ms') 2025-03-10 02:24:01,737 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-61638679-94757694 failed! 2025-03-10 02:24:01,791 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-61638679:ctest-vn-36245950 is 220.102.127.1 and allocation pool is NOT set 2025-03-10 02:24:03,854 - 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.81 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.772 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.772/2.288/3.805/1.516 ms') 2025-03-10 02:24:03,854 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-61638679-94757694 passed 2025-03-10 02:24:04,003 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-10 02:24:04,004 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-61638679-94757694, IP 220.102.127.3, Port 22 2025-03-10 02:24:04,158 - DEBUG - VM ctest-TestBasicPolicy-61638679-94757694 is ready for SSH connections 2025-03-10 02:24:04,158 - INFO - Waiting for VM ctest-TestBasicPolicy-61638679-46993592 to be up.. 2025-03-10 02:24:04,228 - DEBUG - VM is in ACTIVE state now 2025-03-10 02:24:04,228 - INFO - VM name : ctest-TestBasicPolicy-61638679-46993592 2025-03-10 02:24:04,302 - DEBUG - VM ctest-TestBasicPolicy-61638679-46993592 ID is c552098d-0197-4b3b-81be-a2114ef2d935 2025-03-10 02:24:04,303 - DEBUG - VM ctest-TestBasicPolicy-61638679-46993592 launched on Node cn-jenkins-deploy-platform-ansible-os-2827-1 2025-03-10 02:24:04,374 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-machine/c552098d-0197-4b3b-81be-a2114ef2d935 2025-03-10 02:24:04,382 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-machine-interface/07e1b000-715e-4c52-b8c2-b443560124ed 2025-03-10 02:24:05,618 - 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=2.67 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 1002ms\r\nrtt min/avg/max/mdev = 0.370/1.519/2.669/1.149 ms') 2025-03-10 02:24:05,619 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-61638679-46993592 passed 2025-03-10 02:24:05,767 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-10 02:24:05,767 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-61638679-46993592, IP 221.174.115.195, Port 22 2025-03-10 02:24:05,918 - DEBUG - VM ctest-TestBasicPolicy-61638679-46993592 is ready for SSH connections 2025-03-10 02:24:05,918 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-10 02:24:05,919 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 221.174.115.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.60, gateway password: c0ntrail123 2025-03-10 02:24:05,919 - DEBUG - ping -s 56 -c 3 -W 1 221.174.115.195 2025-03-10 02:24:09,585 - DEBUG - PING 221.174.115.195 (221.174.115.195): 56 data bytes 64 bytes from 221.174.115.195: seq=0 ttl=63 time=3.394 ms 64 bytes from 221.174.115.195: seq=1 ttl=63 time=0.788 ms 64 bytes from 221.174.115.195: seq=2 ttl=63 time=0.958 ms --- 221.174.115.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.788/1.713/3.394 ms 2025-03-10 02:24:09,585 - INFO - Ping to IP 221.174.115.195 from VM ctest-TestBasicPolicy-61638679-94757694 passed 2025-03-10 02:24:09,762 - DEBUG - Policy Update Response {"network-policy": {"uuid": "fcc0b67b-099a-44ae-ac25-0a3efe2e5c7c", "href": "http://10.0.0.60:8082/network-policy/fcc0b67b-099a-44ae-ac25-0a3efe2e5c7c"}} 2025-03-10 02:24:09,763 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-10 02:24:09,763 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 221.174.115.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.60, gateway password: c0ntrail123 2025-03-10 02:24:09,763 - DEBUG - ping -s 56 -c 3 -W 1 221.174.115.195 2025-03-10 02:24:12,959 - DEBUG - PING 221.174.115.195 (221.174.115.195): 56 data bytes --- 221.174.115.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-03-10 02:24:12,959 - WARNING - Ping to IP 221.174.115.195 from VM ctest-TestBasicPolicy-61638679-94757694 failed 2025-03-10 02:24:12,959 - INFO - Deleting VM ctest-TestBasicPolicy-61638679-46993592 2025-03-10 02:24:13,021 - INFO - Deleting VM ctest-TestBasicPolicy-61638679-94757694 2025-03-10 02:24:13,330 - INFO - Deleted policy ctest-policy-allow-all-93377289 2025-03-10 02:24:13,330 - INFO - Deleting VN ctest-vn-11679039 2025-03-10 02:24:13,369 - DEBUG - VN d9d7fa31-63e1-4912-9a1b-80766394dc09 still in use: Unable to complete operation on network d9d7fa31-63e1-4912-9a1b-80766394dc09. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-061e3094-e041-4469-b413-0cbe851b94d4'] 2025-03-10 02:24:13,370 - WARNING - Deleting VN ctest-vn-11679039 failed..Will retry 2025-03-10 02:24:15,457 - DEBUG - Response for deleting network () 2025-03-10 02:24:15,457 - DEBUG - Requesting: http://10.0.0.60:8082/routing-instance/161441ea-de2b-493d-9c19-907bd33849f7 2025-03-10 02:24:15,464 - DEBUG - Response Code: 404 2025-03-10 02:24:15,464 - DEBUG - Requesting: http://10.0.0.60:8082/domains 2025-03-10 02:24:15,469 - DEBUG - Requesting: http://10.0.0.60:8082/domain/7b12b1ca-5674-413d-9eed-230c5cde7567 2025-03-10 02:24:15,524 - DEBUG - Requesting: http://10.0.0.60:8082/project/4c93aeb0-b8cb-4ba9-95a2-fb1babce814d 2025-03-10 02:24:15,593 - INFO - Validated that VN ctest-vn-11679039 is not found in API Server 2025-03-10 02:24:15,604 - DEBUG - VN ctest-vn-11679039 is not present in Agent 10.0.0.60 2025-03-10 02:24:15,604 - INFO - Validated that VN ctest-vn-11679039 is not in any agent 2025-03-10 02:24:15,619 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-11679039 info 2025-03-10 02:24:15,619 - INFO - Deleting VN ctest-vn-36245950 2025-03-10 02:24:15,712 - DEBUG - Response for deleting network () 2025-03-10 02:24:15,712 - DEBUG - Requesting: http://10.0.0.60:8082/routing-instance/acd27a5b-b329-42fe-8ae3-92a4098841d8 2025-03-10 02:24:15,718 - DEBUG - Response Code: 404 2025-03-10 02:24:15,718 - DEBUG - Requesting: http://10.0.0.60:8082/domains 2025-03-10 02:24:15,723 - DEBUG - Requesting: http://10.0.0.60:8082/domain/7b12b1ca-5674-413d-9eed-230c5cde7567 2025-03-10 02:24:15,775 - DEBUG - Requesting: http://10.0.0.60:8082/project/4c93aeb0-b8cb-4ba9-95a2-fb1babce814d 2025-03-10 02:24:15,843 - INFO - Validated that VN ctest-vn-36245950 is not found in API Server 2025-03-10 02:24:15,853 - DEBUG - VN ctest-vn-36245950 is not present in Agent 10.0.0.60 2025-03-10 02:24:15,853 - INFO - Validated that VN ctest-vn-36245950 is not in any agent 2025-03-10 02:24:15,868 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-36245950 info 2025-03-10 02:24:16,124 - DEBUG - No XMPP flaps were noticed during the test
2025-03-10 02:24:16,124 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2025-03-10 02:24:16,124 - INFO - -------------------------------------------------------------------------------- 2025-03-10 02:24:16,758 - INFO - Deleted project: ctest-TestBasicPolicy-61638679, ID : 4c93aeb0-b8cb-4ba9-95a2-fb1babce814d