2025-04-11 14:57:58,524 - INFO - Domain Default found not creating 2025-04-11 14:57:58,670 - INFO - Project ctest-TestBasicPolicy-94525524 not found, creating it 2025-04-11 14:57:59,121 - INFO - Created Project:ctest-TestBasicPolicy-94525524, ID : 5e7a24b6-60b1-485f-857f-b6f65ac1776a 2025-04-11 14:58:00,591 - INFO - ================================================================================ 2025-04-11 14:58:00,591 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-04-11 14:58:00,591 - 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-04-11 14:58:00,845 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2025-04-11 14:58:00,845 - INFO - Initial checks done. Running the testcase now 2025-04-11 14:58:00,845 - INFO - 2025-04-11 14:58:01,396 - DEBUG - Response for create_network : {'network': {'id': '463a846d-7a8e-4113-b406-bf5455425b3f', 'name': 'ctest-vn-46382693', 'tenant_id': '5e7a24b660b1485f857fb6f65ac1776a', 'project_id': '5e7a24b660b1485f857fb6f65ac1776a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94525524', 'ctest-vn-46382693'], 'port_security_enabled': True, 'description': ''}} 2025-04-11 14:58:01,603 - DEBUG - Response for create_subnet : {'subnet': {'id': '2b7bd3a7-7b26-4103-b223-99c8dd55feb2', 'name': '', 'tenant_id': '5e7a24b660b1485f857fb6f65ac1776a', 'network_id': '463a846d-7a8e-4113-b406-bf5455425b3f', 'ip_version': 4, 'cidr': '202.67.62.128/26', 'allocation_pools': [{'start': '202.67.62.130', 'end': '202.67.62.190'}], 'gateway_ip': '202.67.62.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '202.67.62.130', 'tags': [], 'project_id': '5e7a24b660b1485f857fb6f65ac1776a'}} 2025-04-11 14:58:01,622 - INFO - Created VN ctest-vn-46382693 2025-04-11 14:58:01,674 - DEBUG - VN ctest-vn-46382693 UUID is 463a846d-7a8e-4113-b406-bf5455425b3f 2025-04-11 14:58:01,980 - DEBUG - Response for create_network : {'network': {'id': '2f0c31d2-f859-4cd0-8bcf-d34e1ab5b056', 'name': 'ctest-vn-34322545', 'tenant_id': '5e7a24b660b1485f857fb6f65ac1776a', 'project_id': '5e7a24b660b1485f857fb6f65ac1776a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94525524', 'ctest-vn-34322545'], 'port_security_enabled': True, 'description': ''}} 2025-04-11 14:58:02,140 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ba1d274d-0c14-48fe-b325-10a407bbe5a4', 'name': '', 'tenant_id': '5e7a24b660b1485f857fb6f65ac1776a', 'network_id': '2f0c31d2-f859-4cd0-8bcf-d34e1ab5b056', 'ip_version': 4, 'cidr': '163.172.106.192/26', 'allocation_pools': [{'start': '163.172.106.194', 'end': '163.172.106.254'}], 'gateway_ip': '163.172.106.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '163.172.106.194', 'tags': [], 'project_id': '5e7a24b660b1485f857fb6f65ac1776a'}} 2025-04-11 14:58:02,160 - INFO - Created VN ctest-vn-34322545 2025-04-11 14:58:02,214 - DEBUG - VN ctest-vn-34322545 UUID is 2f0c31d2-f859-4cd0-8bcf-d34e1ab5b056 2025-04-11 14:58:02,332 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-94525524:ctest-vn-46382693, 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-94525524:ctest-vn-34322545, 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-04-11 14:58:02,641 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '463a846d-7a8e-4113-b406-bf5455425b3f', 'name': 'ctest-vn-46382693', 'tenant_id': '5e7a24b660b1485f857fb6f65ac1776a', 'project_id': '5e7a24b660b1485f857fb6f65ac1776a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2b7bd3a7-7b26-4103-b223-99c8dd55feb2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94525524', 'ctest-vn-46382693'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-94525524', 'ctest-policy-allow-all-58463723']], 'subnet_ipam': [{'subnet_cidr': '202.67.62.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-11 14:58:02,920 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2f0c31d2-f859-4cd0-8bcf-d34e1ab5b056', 'name': 'ctest-vn-34322545', 'tenant_id': '5e7a24b660b1485f857fb6f65ac1776a', 'project_id': '5e7a24b660b1485f857fb6f65ac1776a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ba1d274d-0c14-48fe-b325-10a407bbe5a4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94525524', 'ctest-vn-34322545'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-94525524', 'ctest-policy-allow-all-58463723']], 'subnet_ipam': [{'subnet_cidr': '163.172.106.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-11 14:58:03,082 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-04-11 14:58:03,383 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-04-11 14:58:03,422 - DEBUG - Requesting: http://10.0.0.50:8082/domain/daa3ff62-ef4f-444e-b7a2-1cffe3d6539f 2025-04-11 14:58:03,438 - DEBUG - Requesting: http://10.0.0.50:8082/project/5e7a24b6-60b1-485f-857f-b6f65ac1776a 2025-04-11 14:58:03,524 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/463a846d-7a8e-4113-b406-bf5455425b3f 2025-04-11 14:58:03,539 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/463a846d-7a8e-4113-b406-bf5455425b3f 2025-04-11 14:58:03,549 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/91b17072-7ed4-413f-8d31-0d0051fdf95b 2025-04-11 14:58:03,558 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/91b17072-7ed4-413f-8d31-0d0051fdf95b 2025-04-11 14:58:03,566 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/7d08c89c-ba58-48d3-baf3-e01bb99ec951 2025-04-11 14:58:03,574 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-11 14:58:03,574 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/463a846d-7a8e-4113-b406-bf5455425b3f 2025-04-11 14:58:03,585 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/91b17072-7ed4-413f-8d31-0d0051fdf95b 2025-04-11 14:58:03,603 - INFO - Verified VN network id 8 for VN 463a846d-7a8e-4113-b406-bf5455425b3f 2025-04-11 14:58:03,603 - INFO - Verifications in API Server for VN ctest-vn-46382693 passed 2025-04-11 14:58:03,603 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/463a846d-7a8e-4113-b406-bf5455425b3f 2025-04-11 14:58:03,615 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/91b17072-7ed4-413f-8d31-0d0051fdf95b 2025-04-11 14:58:03,626 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/91b17072-7ed4-413f-8d31-0d0051fdf95b 2025-04-11 14:58:03,636 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/7d08c89c-ba58-48d3-baf3-e01bb99ec951 2025-04-11 14:58:03,650 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94525524:ctest-vn-46382693', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94525524', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5060502737046618387', 'uuid-lslong': '12972266145615862591'}, 'enable': 'true', 'created': '2025-04-11T14:58:01', 'last-modified': '2025-04-11T14:58:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.035508'} 2025-04-11 14:58:03,657 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-11 14:58:03,657 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46382693 passed 2025-04-11 14:58:03,657 - DEBUG - ====Verifying policy data for ctest-vn-46382693 in API_Server ====== 2025-04-11 14:58:03,657 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-04-11 14:58:03,664 - DEBUG - Requesting: http://10.0.0.50:8082/domain/daa3ff62-ef4f-444e-b7a2-1cffe3d6539f 2025-04-11 14:58:03,676 - DEBUG - Requesting: http://10.0.0.50:8082/project/5e7a24b6-60b1-485f-857f-b6f65ac1776a 2025-04-11 14:58:03,755 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/463a846d-7a8e-4113-b406-bf5455425b3f 2025-04-11 14:58:03,766 - DEBUG - ==>Verifying data for policy with id: 45e352f7-9b40-4824-9f34-2ac405ba5ecd, fqn: ['default-domain', 'ctest-TestBasicPolicy-94525524', 'ctest-policy-allow-all-58463723'] 2025-04-11 14:58:03,767 - INFO - VN ctest-vn-46382693 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-11 14:58:03,767 - DEBUG - Verifying the vn in opserver 2025-04-11 14:58:03,767 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94525524:ctest-vn-46382693 virtual network link through opserver 10.0.0.50 2025-04-11 14:58:03,767 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-04-11 14:58:04,060 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-04-11 14:58:04,119 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94525524:ctest-vn-46382693', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94525524:ctest-vn-46382693?flat'} 2025-04-11 14:58:04,119 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-94525524:ctest-vn-46382693 is found in opserver 2025-04-11 14:58:04,130 - DEBUG - Do not have enough data to verify VN in agent 2025-04-11 14:58:04,136 - DEBUG - VRF ids for VN ctest-vn-46382693: {} 2025-04-11 14:58:04,136 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-04-11 14:58:04,143 - DEBUG - Requesting: http://10.0.0.50:8082/domain/daa3ff62-ef4f-444e-b7a2-1cffe3d6539f 2025-04-11 14:58:04,155 - DEBUG - Requesting: http://10.0.0.50:8082/project/5e7a24b6-60b1-485f-857f-b6f65ac1776a 2025-04-11 14:58:04,232 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2f0c31d2-f859-4cd0-8bcf-d34e1ab5b056 2025-04-11 14:58:04,245 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2f0c31d2-f859-4cd0-8bcf-d34e1ab5b056 2025-04-11 14:58:04,256 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8dde3193-8211-4e69-b628-d63982c2fafe 2025-04-11 14:58:04,265 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8dde3193-8211-4e69-b628-d63982c2fafe 2025-04-11 14:58:04,273 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/29014d54-56d1-41e9-bf2d-369b26188698 2025-04-11 14:58:04,280 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-11 14:58:04,281 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2f0c31d2-f859-4cd0-8bcf-d34e1ab5b056 2025-04-11 14:58:04,291 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8dde3193-8211-4e69-b628-d63982c2fafe 2025-04-11 14:58:04,306 - INFO - Verified VN network id 9 for VN 2f0c31d2-f859-4cd0-8bcf-d34e1ab5b056 2025-04-11 14:58:04,306 - INFO - Verifications in API Server for VN ctest-vn-34322545 passed 2025-04-11 14:58:04,306 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2f0c31d2-f859-4cd0-8bcf-d34e1ab5b056 2025-04-11 14:58:04,318 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8dde3193-8211-4e69-b628-d63982c2fafe 2025-04-11 14:58:04,326 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8dde3193-8211-4e69-b628-d63982c2fafe 2025-04-11 14:58:04,336 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/29014d54-56d1-41e9-bf2d-369b26188698 2025-04-11 14:58:04,351 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94525524:ctest-vn-34322545', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94525524', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3390139401682635984', 'uuid-lslong': '10074503223860113494'}, 'enable': 'true', 'created': '2025-04-11T14:58:01', 'last-modified': '2025-04-11T14:58:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.487560'} 2025-04-11 14:58:04,358 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-11 14:58:04,358 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-34322545 passed 2025-04-11 14:58:04,358 - DEBUG - ====Verifying policy data for ctest-vn-34322545 in API_Server ====== 2025-04-11 14:58:04,358 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-04-11 14:58:04,364 - DEBUG - Requesting: http://10.0.0.50:8082/domain/daa3ff62-ef4f-444e-b7a2-1cffe3d6539f 2025-04-11 14:58:04,380 - DEBUG - Requesting: http://10.0.0.50:8082/project/5e7a24b6-60b1-485f-857f-b6f65ac1776a 2025-04-11 14:58:04,454 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2f0c31d2-f859-4cd0-8bcf-d34e1ab5b056 2025-04-11 14:58:04,465 - DEBUG - ==>Verifying data for policy with id: 45e352f7-9b40-4824-9f34-2ac405ba5ecd, fqn: ['default-domain', 'ctest-TestBasicPolicy-94525524', 'ctest-policy-allow-all-58463723'] 2025-04-11 14:58:04,465 - INFO - VN ctest-vn-34322545 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-11 14:58:04,465 - DEBUG - Verifying the vn in opserver 2025-04-11 14:58:04,465 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94525524:ctest-vn-34322545 virtual network link through opserver 10.0.0.50 2025-04-11 14:58:04,466 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-04-11 14:58:04,477 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94525524:ctest-vn-34322545', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94525524:ctest-vn-34322545?flat'} 2025-04-11 14:58:04,477 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-94525524:ctest-vn-34322545 is found in opserver 2025-04-11 14:58:04,489 - DEBUG - Do not have enough data to verify VN in agent 2025-04-11 14:58:04,495 - DEBUG - VRF ids for VN ctest-vn-34322545: {} 2025-04-11 14:58:04,557 - DEBUG - Services list from nova: [, , ] 2025-04-11 14:58:05,695 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3080-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3080-1) 2025-04-11 14:58:06,912 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3080-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3080-1) 2025-04-11 14:58:06,913 - INFO - Waiting for VM ctest-TestBasicPolicy-94525524-26567131 to be up.. 2025-04-11 14:58:07,023 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-11 14:58:12,102 - DEBUG - VM is in ACTIVE state now 2025-04-11 14:58:12,102 - INFO - VM name : ctest-TestBasicPolicy-94525524-26567131 2025-04-11 14:58:12,190 - DEBUG - VM ctest-TestBasicPolicy-94525524-26567131 ID is 252ebb45-c7a6-43ff-a8a0-5f8b0457e400 2025-04-11 14:58:12,210 - DEBUG - VM ctest-TestBasicPolicy-94525524-26567131 launched on Node cn-jenkins-deploy-platform-ansible-os-3080-1 2025-04-11 14:58:12,290 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/252ebb45-c7a6-43ff-a8a0-5f8b0457e400 2025-04-11 14:58:12,299 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/8a92e1a1-360d-4d06-ab81-1f5794e4d159 2025-04-11 14:58:15,563 - 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 1014ms') 2025-04-11 14:58:15,563 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-94525524-26567131 failed! 2025-04-11 14:58:15,622 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-94525524:ctest-vn-46382693 is 202.67.62.129 and allocation pool is NOT set 2025-04-11 14:58:17,691 - 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=7.80 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.426 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.426/4.113/7.801/3.687 ms') 2025-04-11 14:58:17,691 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-94525524-26567131 passed 2025-04-11 14:58:17,846 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-11 14:58:17,846 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-94525524-26567131, IP 202.67.62.131, Port 22 2025-04-11 14:58:18,002 - DEBUG - VM ctest-TestBasicPolicy-94525524-26567131 is ready for SSH connections 2025-04-11 14:58:18,002 - INFO - Waiting for VM ctest-TestBasicPolicy-94525524-84055969 to be up.. 2025-04-11 14:58:18,082 - DEBUG - VM is in ACTIVE state now 2025-04-11 14:58:18,082 - INFO - VM name : ctest-TestBasicPolicy-94525524-84055969 2025-04-11 14:58:18,177 - DEBUG - VM ctest-TestBasicPolicy-94525524-84055969 ID is c24bb597-32ab-4151-a1d4-d45df1560208 2025-04-11 14:58:18,178 - DEBUG - VM ctest-TestBasicPolicy-94525524-84055969 launched on Node cn-jenkins-deploy-platform-ansible-os-3080-1 2025-04-11 14:58:18,258 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/c24bb597-32ab-4151-a1d4-d45df1560208 2025-04-11 14:58:18,268 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/545c7979-b328-466d-bc90-11cb2feb25df 2025-04-11 14:58:19,513 - 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.39 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.843 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.843/2.117/3.392/1.274 ms') 2025-04-11 14:58:19,514 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-94525524-84055969 passed 2025-04-11 14:58:19,686 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-11 14:58:19,686 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-94525524-84055969, IP 163.172.106.195, Port 22 2025-04-11 14:58:19,842 - DEBUG - VM ctest-TestBasicPolicy-94525524-84055969 is ready for SSH connections 2025-04-11 14:58:19,842 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-11 14:58:19,842 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 163.172.106.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-04-11 14:58:19,842 - DEBUG - ping -s 56 -c 3 -W 1 163.172.106.195 2025-04-11 14:58:23,540 - DEBUG - PING 163.172.106.195 (163.172.106.195): 56 data bytes 64 bytes from 163.172.106.195: seq=0 ttl=63 time=4.548 ms 64 bytes from 163.172.106.195: seq=1 ttl=63 time=0.985 ms 64 bytes from 163.172.106.195: seq=2 ttl=63 time=0.835 ms --- 163.172.106.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.835/2.122/4.548 ms 2025-04-11 14:58:23,540 - INFO - Ping to IP 163.172.106.195 from VM ctest-TestBasicPolicy-94525524-26567131 passed 2025-04-11 14:58:23,722 - DEBUG - Policy Update Response {"network-policy": {"uuid": "45e352f7-9b40-4824-9f34-2ac405ba5ecd", "href": "http://10.0.0.50:8082/network-policy/45e352f7-9b40-4824-9f34-2ac405ba5ecd"}} 2025-04-11 14:58:23,722 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-11 14:58:23,722 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 163.172.106.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-04-11 14:58:23,722 - DEBUG - ping -s 56 -c 3 -W 1 163.172.106.195 2025-04-11 14:58:26,927 - DEBUG - PING 163.172.106.195 (163.172.106.195): 56 data bytes 64 bytes from 163.172.106.195: seq=0 ttl=63 time=1.495 ms --- 163.172.106.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.495/1.495/1.495 ms 2025-04-11 14:58:26,927 - WARNING - Ping to IP 163.172.106.195 from VM ctest-TestBasicPolicy-94525524-26567131 failed 2025-04-11 14:58:26,927 - INFO - Deleting VM ctest-TestBasicPolicy-94525524-84055969 2025-04-11 14:58:27,001 - INFO - Deleting VM ctest-TestBasicPolicy-94525524-26567131 2025-04-11 14:58:27,450 - INFO - Deleted policy ctest-policy-allow-all-58463723 2025-04-11 14:58:27,450 - INFO - Deleting VN ctest-vn-34322545 2025-04-11 14:58:27,509 - DEBUG - VN 2f0c31d2-f859-4cd0-8bcf-d34e1ab5b056 still in use: Unable to complete operation on network 2f0c31d2-f859-4cd0-8bcf-d34e1ab5b056. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-f4fd0d3d-15d6-4b5c-89b8-781194569743'] 2025-04-11 14:58:27,509 - WARNING - Deleting VN ctest-vn-34322545 failed..Will retry 2025-04-11 14:58:29,627 - DEBUG - Response for deleting network () 2025-04-11 14:58:29,627 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8dde3193-8211-4e69-b628-d63982c2fafe 2025-04-11 14:58:29,635 - DEBUG - Response Code: 404 2025-04-11 14:58:29,636 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-04-11 14:58:29,643 - DEBUG - Requesting: http://10.0.0.50:8082/domain/daa3ff62-ef4f-444e-b7a2-1cffe3d6539f 2025-04-11 14:58:29,700 - DEBUG - Requesting: http://10.0.0.50:8082/project/5e7a24b6-60b1-485f-857f-b6f65ac1776a 2025-04-11 14:58:29,782 - INFO - Validated that VN ctest-vn-34322545 is not found in API Server 2025-04-11 14:58:29,793 - DEBUG - VN ctest-vn-34322545 is not present in Agent 10.0.0.50 2025-04-11 14:58:29,793 - INFO - Validated that VN ctest-vn-34322545 is not in any agent 2025-04-11 14:58:29,815 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-34322545 info 2025-04-11 14:58:29,815 - INFO - Deleting VN ctest-vn-46382693 2025-04-11 14:58:29,921 - DEBUG - Response for deleting network () 2025-04-11 14:58:29,921 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/91b17072-7ed4-413f-8d31-0d0051fdf95b 2025-04-11 14:58:29,931 - DEBUG - Response Code: 404 2025-04-11 14:58:29,931 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-04-11 14:58:29,939 - DEBUG - Requesting: http://10.0.0.50:8082/domain/daa3ff62-ef4f-444e-b7a2-1cffe3d6539f 2025-04-11 14:58:29,996 - DEBUG - Requesting: http://10.0.0.50:8082/project/5e7a24b6-60b1-485f-857f-b6f65ac1776a 2025-04-11 14:58:30,069 - INFO - Validated that VN ctest-vn-46382693 is not found in API Server 2025-04-11 14:58:30,080 - DEBUG - VN ctest-vn-46382693 is not present in Agent 10.0.0.50 2025-04-11 14:58:30,080 - INFO - Validated that VN ctest-vn-46382693 is not in any agent 2025-04-11 14:58:30,096 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-46382693 info 2025-04-11 14:58:30,352 - DEBUG - No XMPP flaps were noticed during the test
2025-04-11 14:58:30,352 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2025-04-11 14:58:30,352 - INFO - -------------------------------------------------------------------------------- 2025-04-11 14:58:31,046 - INFO - Deleted project: ctest-TestBasicPolicy-94525524, ID : 5e7a24b6-60b1-485f-857f-b6f65ac1776a