2025-11-02 21:41:23,363 - INFO - Domain Default found not creating 2025-11-02 21:41:23,515 - INFO - Project ctest-TestBasicPolicy-01290793 not found, creating it 2025-11-02 21:41:23,971 - INFO - Created Project:ctest-TestBasicPolicy-01290793, ID : b5cec947-1b5c-4dcc-a9f2-414abbe4a00e 2025-11-02 21:41:25,406 - INFO - ================================================================================ 2025-11-02 21:41:25,406 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-11-02 21:41:25,406 - 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-11-02 21:41:25,666 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2025-11-02 21:41:25,666 - INFO - Initial checks done. Running the testcase now 2025-11-02 21:41:25,666 - INFO - 2025-11-02 21:41:26,208 - DEBUG - Response for create_network : {'network': {'id': 'aee1537e-50e1-482f-8a26-868bb6feda72', 'name': 'ctest-vn-78103609', 'tenant_id': 'b5cec9471b5c4dcca9f2414abbe4a00e', 'project_id': 'b5cec9471b5c4dcca9f2414abbe4a00e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01290793', 'ctest-vn-78103609'], 'port_security_enabled': True, 'description': ''}} 2025-11-02 21:41:26,350 - DEBUG - Response for create_subnet : {'subnet': {'id': '99530873-7597-44df-b6fa-1594d9b8048b', 'name': '', 'tenant_id': 'b5cec9471b5c4dcca9f2414abbe4a00e', 'network_id': 'aee1537e-50e1-482f-8a26-868bb6feda72', 'ip_version': 4, 'cidr': '13.181.148.192/26', 'allocation_pools': [{'start': '13.181.148.194', 'end': '13.181.148.254'}], 'gateway_ip': '13.181.148.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '13.181.148.194', 'tags': [], 'project_id': 'b5cec9471b5c4dcca9f2414abbe4a00e'}} 2025-11-02 21:41:26,366 - INFO - Created VN ctest-vn-78103609 2025-11-02 21:41:26,422 - DEBUG - VN ctest-vn-78103609 UUID is aee1537e-50e1-482f-8a26-868bb6feda72 2025-11-02 21:41:26,739 - DEBUG - Response for create_network : {'network': {'id': 'ef8927c6-69a8-40d3-b7ed-816dd2b67618', 'name': 'ctest-vn-10802992', 'tenant_id': 'b5cec9471b5c4dcca9f2414abbe4a00e', 'project_id': 'b5cec9471b5c4dcca9f2414abbe4a00e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01290793', 'ctest-vn-10802992'], 'port_security_enabled': True, 'description': ''}} 2025-11-02 21:41:26,884 - DEBUG - Response for create_subnet : {'subnet': {'id': '67329ce5-9f42-4bb1-b753-5a42a7857885', 'name': '', 'tenant_id': 'b5cec9471b5c4dcca9f2414abbe4a00e', 'network_id': 'ef8927c6-69a8-40d3-b7ed-816dd2b67618', 'ip_version': 4, 'cidr': '106.255.119.128/26', 'allocation_pools': [{'start': '106.255.119.130', 'end': '106.255.119.190'}], 'gateway_ip': '106.255.119.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '106.255.119.130', 'tags': [], 'project_id': 'b5cec9471b5c4dcca9f2414abbe4a00e'}} 2025-11-02 21:41:26,900 - INFO - Created VN ctest-vn-10802992 2025-11-02 21:41:26,950 - DEBUG - VN ctest-vn-10802992 UUID is ef8927c6-69a8-40d3-b7ed-816dd2b67618 2025-11-02 21:41:27,101 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-01290793:ctest-vn-78103609, 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-01290793:ctest-vn-10802992, 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-11-02 21:41:27,392 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'aee1537e-50e1-482f-8a26-868bb6feda72', 'name': 'ctest-vn-78103609', 'tenant_id': 'b5cec9471b5c4dcca9f2414abbe4a00e', 'project_id': 'b5cec9471b5c4dcca9f2414abbe4a00e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['99530873-7597-44df-b6fa-1594d9b8048b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01290793', 'ctest-vn-78103609'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-01290793', 'ctest-policy-allow-all-75883422']], 'subnet_ipam': [{'subnet_cidr': '13.181.148.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-02 21:41:27,672 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ef8927c6-69a8-40d3-b7ed-816dd2b67618', 'name': 'ctest-vn-10802992', 'tenant_id': 'b5cec9471b5c4dcca9f2414abbe4a00e', 'project_id': 'b5cec9471b5c4dcca9f2414abbe4a00e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['67329ce5-9f42-4bb1-b753-5a42a7857885'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01290793', 'ctest-vn-10802992'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-01290793', 'ctest-policy-allow-all-75883422']], 'subnet_ipam': [{'subnet_cidr': '106.255.119.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-02 21:41:27,830 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-02 21:41:28,128 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-02 21:41:28,160 - DEBUG - Requesting: http://10.0.0.33:8082/domain/9fe3fd30-cefa-449f-b6b7-b0c8bdec524b 2025-11-02 21:41:28,172 - DEBUG - Requesting: http://10.0.0.33:8082/project/b5cec947-1b5c-4dcc-a9f2-414abbe4a00e 2025-11-02 21:41:28,242 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/aee1537e-50e1-482f-8a26-868bb6feda72 2025-11-02 21:41:28,255 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/aee1537e-50e1-482f-8a26-868bb6feda72 2025-11-02 21:41:28,263 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/087641c9-f63a-48a0-9010-5a12c03db5e6 2025-11-02 21:41:28,270 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/087641c9-f63a-48a0-9010-5a12c03db5e6 2025-11-02 21:41:28,276 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/0235ed1f-d3c3-4185-8070-4bc34a65d732 2025-11-02 21:41:28,283 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-02 21:41:28,283 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/aee1537e-50e1-482f-8a26-868bb6feda72 2025-11-02 21:41:28,293 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/087641c9-f63a-48a0-9010-5a12c03db5e6 2025-11-02 21:41:28,306 - INFO - Verified VN network id 11 for VN aee1537e-50e1-482f-8a26-868bb6feda72 2025-11-02 21:41:28,306 - INFO - Verifications in API Server for VN ctest-vn-78103609 passed 2025-11-02 21:41:28,306 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/aee1537e-50e1-482f-8a26-868bb6feda72 2025-11-02 21:41:28,316 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/087641c9-f63a-48a0-9010-5a12c03db5e6 2025-11-02 21:41:28,322 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/087641c9-f63a-48a0-9010-5a12c03db5e6 2025-11-02 21:41:28,328 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/0235ed1f-d3c3-4185-8070-4bc34a65d732 2025-11-02 21:41:28,339 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-01290793:ctest-vn-78103609', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-01290793', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12601445034347284527', 'uuid-lslong': '9954791960977791602'}, 'enable': 'true', 'created': '2025-11-02T21:41:26', 'last-modified': '2025-11-02T21:41:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.966931'} 2025-11-02 21:41:28,345 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-02 21:41:28,345 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-78103609 passed 2025-11-02 21:41:28,345 - DEBUG - ====Verifying policy data for ctest-vn-78103609 in API_Server ====== 2025-11-02 21:41:28,345 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-02 21:41:28,351 - DEBUG - Requesting: http://10.0.0.33:8082/domain/9fe3fd30-cefa-449f-b6b7-b0c8bdec524b 2025-11-02 21:41:28,361 - DEBUG - Requesting: http://10.0.0.33:8082/project/b5cec947-1b5c-4dcc-a9f2-414abbe4a00e 2025-11-02 21:41:28,430 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/aee1537e-50e1-482f-8a26-868bb6feda72 2025-11-02 21:41:28,440 - DEBUG - ==>Verifying data for policy with id: e4a84b96-ee29-4b10-ba60-2437459a7ba1, fqn: ['default-domain', 'ctest-TestBasicPolicy-01290793', 'ctest-policy-allow-all-75883422'] 2025-11-02 21:41:28,440 - INFO - VN ctest-vn-78103609 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-02 21:41:28,440 - DEBUG - Verifying the vn in opserver 2025-11-02 21:41:28,440 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-01290793:ctest-vn-78103609 virtual network link through opserver 10.0.0.33 2025-11-02 21:41:28,441 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-11-02 21:41:28,736 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-11-02 21:41:28,789 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-01290793:ctest-vn-78103609', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-01290793:ctest-vn-78103609?flat'} 2025-11-02 21:41:28,789 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-01290793:ctest-vn-78103609 is found in opserver 2025-11-02 21:41:28,798 - DEBUG - Do not have enough data to verify VN in agent 2025-11-02 21:41:28,802 - DEBUG - VRF ids for VN ctest-vn-78103609: {} 2025-11-02 21:41:28,802 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-02 21:41:28,807 - DEBUG - Requesting: http://10.0.0.33:8082/domain/9fe3fd30-cefa-449f-b6b7-b0c8bdec524b 2025-11-02 21:41:28,816 - DEBUG - Requesting: http://10.0.0.33:8082/project/b5cec947-1b5c-4dcc-a9f2-414abbe4a00e 2025-11-02 21:41:28,892 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ef8927c6-69a8-40d3-b7ed-816dd2b67618 2025-11-02 21:41:28,903 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ef8927c6-69a8-40d3-b7ed-816dd2b67618 2025-11-02 21:41:28,911 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/375ab845-2422-4fd2-b620-661cfbde1561 2025-11-02 21:41:28,917 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/375ab845-2422-4fd2-b620-661cfbde1561 2025-11-02 21:41:28,924 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/7f93a009-c49a-4f72-8fbf-8e4866a471e8 2025-11-02 21:41:28,930 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-11-02 21:41:28,930 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ef8927c6-69a8-40d3-b7ed-816dd2b67618 2025-11-02 21:41:28,938 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/375ab845-2422-4fd2-b620-661cfbde1561 2025-11-02 21:41:28,950 - INFO - Verified VN network id 12 for VN ef8927c6-69a8-40d3-b7ed-816dd2b67618 2025-11-02 21:41:28,950 - INFO - Verifications in API Server for VN ctest-vn-10802992 passed 2025-11-02 21:41:28,950 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ef8927c6-69a8-40d3-b7ed-816dd2b67618 2025-11-02 21:41:28,959 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/375ab845-2422-4fd2-b620-661cfbde1561 2025-11-02 21:41:28,965 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/375ab845-2422-4fd2-b620-661cfbde1561 2025-11-02 21:41:28,971 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/7f93a009-c49a-4f72-8fbf-8e4866a471e8 2025-11-02 21:41:28,981 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-01290793:ctest-vn-10802992', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-01290793', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17260370780003778771', 'uuid-lslong': '13253391587107829272'}, 'enable': 'true', 'created': '2025-11-02T21:41:26', 'last-modified': '2025-11-02T21:41:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.386681'} 2025-11-02 21:41:28,986 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-11-02 21:41:28,986 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-10802992 passed 2025-11-02 21:41:28,986 - DEBUG - ====Verifying policy data for ctest-vn-10802992 in API_Server ====== 2025-11-02 21:41:28,986 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-02 21:41:28,991 - DEBUG - Requesting: http://10.0.0.33:8082/domain/9fe3fd30-cefa-449f-b6b7-b0c8bdec524b 2025-11-02 21:41:29,003 - DEBUG - Requesting: http://10.0.0.33:8082/project/b5cec947-1b5c-4dcc-a9f2-414abbe4a00e 2025-11-02 21:41:29,074 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ef8927c6-69a8-40d3-b7ed-816dd2b67618 2025-11-02 21:41:29,090 - DEBUG - ==>Verifying data for policy with id: e4a84b96-ee29-4b10-ba60-2437459a7ba1, fqn: ['default-domain', 'ctest-TestBasicPolicy-01290793', 'ctest-policy-allow-all-75883422'] 2025-11-02 21:41:29,090 - INFO - VN ctest-vn-10802992 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-02 21:41:29,090 - DEBUG - Verifying the vn in opserver 2025-11-02 21:41:29,090 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-01290793:ctest-vn-10802992 virtual network link through opserver 10.0.0.33 2025-11-02 21:41:29,090 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-11-02 21:41:29,100 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-01290793:ctest-vn-10802992', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-01290793:ctest-vn-10802992?flat'} 2025-11-02 21:41:29,100 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-01290793:ctest-vn-10802992 is found in opserver 2025-11-02 21:41:29,111 - DEBUG - Do not have enough data to verify VN in agent 2025-11-02 21:41:29,116 - DEBUG - VRF ids for VN ctest-vn-10802992: {} 2025-11-02 21:41:29,180 - DEBUG - Services list from nova: [, , ] 2025-11-02 21:41:30,222 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4595-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4595-1) 2025-11-02 21:41:31,358 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4595-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4595-1) 2025-11-02 21:41:31,358 - INFO - Waiting for VM ctest-TestBasicPolicy-01290793-80552359 to be up.. 2025-11-02 21:41:31,432 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-11-02 21:41:36,513 - DEBUG - VM is in ACTIVE state now 2025-11-02 21:41:36,513 - INFO - VM name : ctest-TestBasicPolicy-01290793-80552359 2025-11-02 21:41:36,588 - DEBUG - VM ctest-TestBasicPolicy-01290793-80552359 ID is 55d8b588-0b37-48a5-952d-da7950561fbe 2025-11-02 21:41:36,613 - DEBUG - VM ctest-TestBasicPolicy-01290793-80552359 launched on Node cn-jenkins-deploy-platform-ansible-os-4595-1 2025-11-02 21:41:36,701 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/55d8b588-0b37-48a5-952d-da7950561fbe 2025-11-02 21:41:36,710 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/b7f99686-39ab-4596-b34d-7bfaafe63cb0 2025-11-02 21:41:39,977 - 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 1015ms') 2025-11-02 21:41:39,977 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-01290793-80552359 failed! 2025-11-02 21:41:40,030 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-01290793:ctest-vn-78103609 is 13.181.148.193 and allocation pool is NOT set 2025-11-02 21:41:42,093 - 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=10.5 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.36 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 = 2.358/6.415/10.472/4.057 ms') 2025-11-02 21:41:42,093 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-01290793-80552359 passed 2025-11-02 21:41:42,241 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-02 21:41:42,242 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-01290793-80552359, IP 13.181.148.195, Port 22 2025-11-02 21:41:42,410 - DEBUG - VM ctest-TestBasicPolicy-01290793-80552359 is ready for SSH connections 2025-11-02 21:41:42,410 - INFO - Waiting for VM ctest-TestBasicPolicy-01290793-08046399 to be up.. 2025-11-02 21:41:42,485 - DEBUG - VM is in ACTIVE state now 2025-11-02 21:41:42,485 - INFO - VM name : ctest-TestBasicPolicy-01290793-08046399 2025-11-02 21:41:42,553 - DEBUG - VM ctest-TestBasicPolicy-01290793-08046399 ID is fee0a7d0-f666-4ab5-9732-ae2f0a023b99 2025-11-02 21:41:42,553 - DEBUG - VM ctest-TestBasicPolicy-01290793-08046399 launched on Node cn-jenkins-deploy-platform-ansible-os-4595-1 2025-11-02 21:41:42,626 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/fee0a7d0-f666-4ab5-9732-ae2f0a023b99 2025-11-02 21:41:42,636 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/78b387da-90a1-4f27-8102-28a62c12b33a 2025-11-02 21:41:43,866 - 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.15 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.368 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.368/1.758/3.149/1.390 ms') 2025-11-02 21:41:43,866 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-01290793-08046399 passed 2025-11-02 21:41:44,013 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-02 21:41:44,014 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-01290793-08046399, IP 106.255.119.131, Port 22 2025-11-02 21:41:44,181 - DEBUG - VM ctest-TestBasicPolicy-01290793-08046399 is ready for SSH connections 2025-11-02 21:41:44,181 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-02 21:41:44,181 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 106.255.119.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2025-11-02 21:41:44,182 - DEBUG - ping -s 56 -c 3 -W 1 106.255.119.131 2025-11-02 21:41:47,878 - DEBUG - PING 106.255.119.131 (106.255.119.131): 56 data bytes 64 bytes from 106.255.119.131: seq=0 ttl=63 time=3.520 ms 64 bytes from 106.255.119.131: seq=1 ttl=63 time=0.850 ms 64 bytes from 106.255.119.131: seq=2 ttl=63 time=0.958 ms --- 106.255.119.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.850/1.776/3.520 ms 2025-11-02 21:41:47,878 - INFO - Ping to IP 106.255.119.131 from VM ctest-TestBasicPolicy-01290793-80552359 passed 2025-11-02 21:41:48,061 - DEBUG - Policy Update Response {"network-policy": {"uuid": "e4a84b96-ee29-4b10-ba60-2437459a7ba1", "href": "http://10.0.0.33:8082/network-policy/e4a84b96-ee29-4b10-ba60-2437459a7ba1"}} 2025-11-02 21:41:48,062 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-02 21:41:48,062 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 106.255.119.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2025-11-02 21:41:48,062 - DEBUG - ping -s 56 -c 3 -W 1 106.255.119.131 2025-11-02 21:41:51,267 - DEBUG - PING 106.255.119.131 (106.255.119.131): 56 data bytes --- 106.255.119.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-11-02 21:41:51,267 - WARNING - Ping to IP 106.255.119.131 from VM ctest-TestBasicPolicy-01290793-80552359 failed 2025-11-02 21:41:51,267 - INFO - Deleting VM ctest-TestBasicPolicy-01290793-08046399 2025-11-02 21:41:51,331 - INFO - Deleting VM ctest-TestBasicPolicy-01290793-80552359 2025-11-02 21:41:51,698 - INFO - Deleted policy ctest-policy-allow-all-75883422 2025-11-02 21:41:51,699 - INFO - Deleting VN ctest-vn-10802992 2025-11-02 21:41:51,745 - DEBUG - VN ef8927c6-69a8-40d3-b7ed-816dd2b67618 still in use: Unable to complete operation on network ef8927c6-69a8-40d3-b7ed-816dd2b67618. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-41c51c0f-705a-439b-94f2-7524769d7ee7'] 2025-11-02 21:41:51,745 - WARNING - Deleting VN ctest-vn-10802992 failed..Will retry 2025-11-02 21:41:53,843 - DEBUG - Response for deleting network () 2025-11-02 21:41:53,843 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/375ab845-2422-4fd2-b620-661cfbde1561 2025-11-02 21:41:53,849 - DEBUG - Response Code: 404 2025-11-02 21:41:53,849 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-02 21:41:53,856 - DEBUG - Requesting: http://10.0.0.33:8082/domain/9fe3fd30-cefa-449f-b6b7-b0c8bdec524b 2025-11-02 21:41:53,906 - DEBUG - Requesting: http://10.0.0.33:8082/project/b5cec947-1b5c-4dcc-a9f2-414abbe4a00e 2025-11-02 21:41:53,976 - INFO - Validated that VN ctest-vn-10802992 is not found in API Server 2025-11-02 21:41:53,985 - DEBUG - VN ctest-vn-10802992 is not present in Agent 10.0.0.33 2025-11-02 21:41:53,985 - INFO - Validated that VN ctest-vn-10802992 is not in any agent 2025-11-02 21:41:53,999 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-10802992 info 2025-11-02 21:41:53,999 - INFO - Deleting VN ctest-vn-78103609 2025-11-02 21:41:54,110 - DEBUG - Response for deleting network () 2025-11-02 21:41:54,110 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/087641c9-f63a-48a0-9010-5a12c03db5e6 2025-11-02 21:41:54,115 - DEBUG - Response Code: 404 2025-11-02 21:41:54,115 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-02 21:41:54,120 - DEBUG - Requesting: http://10.0.0.33:8082/domain/9fe3fd30-cefa-449f-b6b7-b0c8bdec524b 2025-11-02 21:41:54,170 - DEBUG - Requesting: http://10.0.0.33:8082/project/b5cec947-1b5c-4dcc-a9f2-414abbe4a00e 2025-11-02 21:41:54,240 - INFO - Validated that VN ctest-vn-78103609 is not found in API Server 2025-11-02 21:41:54,250 - DEBUG - VN ctest-vn-78103609 is not present in Agent 10.0.0.33 2025-11-02 21:41:54,250 - INFO - Validated that VN ctest-vn-78103609 is not in any agent 2025-11-02 21:41:54,266 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-78103609 info 2025-11-02 21:41:54,522 - DEBUG - No XMPP flaps were noticed during the test
2025-11-02 21:41:54,522 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:29]
2025-11-02 21:41:54,522 - INFO - -------------------------------------------------------------------------------- 2025-11-02 21:41:55,211 - INFO - Deleted project: ctest-TestBasicPolicy-01290793, ID : b5cec947-1b5c-4dcc-a9f2-414abbe4a00e