2026-02-23 02:31:31,956 - INFO - Domain Default found not creating 2026-02-23 02:31:32,123 - INFO - Project ctest-TestBasicPolicy-58853566 not found, creating it 2026-02-23 02:31:32,885 - INFO - Created Project:ctest-TestBasicPolicy-58853566, ID : 1fc38602-d06b-4da4-90fe-9b7d41427251 2026-02-23 02:31:34,806 - INFO - ================================================================================ 2026-02-23 02:31:34,806 - INFO - STARTING TEST : test_basic_policy_allow_deny 2026-02-23 02:31:34,806 - 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 2026-02-23 02:31:36,123 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.193': '0', '10.20.0.25': '0'}, '10.0.0.65': {'10.20.0.254': '0', '10.20.0.193': '0'}} with 2026-02-23 02:31:36,123 - INFO - Initial checks done. Running the testcase now 2026-02-23 02:31:36,123 - INFO - 2026-02-23 02:31:36,835 - DEBUG - Response for create_network : {'network': {'id': 'ef4347cf-e174-4551-a118-a858c45191ff', 'name': 'ctest-vn-27987039', 'tenant_id': '1fc38602d06b4da490fe9b7d41427251', 'project_id': '1fc38602d06b4da490fe9b7d41427251', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58853566', 'ctest-vn-27987039'], 'port_security_enabled': True, 'description': ''}} 2026-02-23 02:31:37,104 - DEBUG - Response for create_subnet : {'subnet': {'id': '47565665-b670-46d6-a244-66a68c63bc55', 'name': '', 'tenant_id': '1fc38602d06b4da490fe9b7d41427251', 'network_id': 'ef4347cf-e174-4551-a118-a858c45191ff', 'ip_version': 4, 'cidr': '122.20.23.128/26', 'allocation_pools': [{'start': '122.20.23.130', 'end': '122.20.23.190'}], 'gateway_ip': '122.20.23.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '122.20.23.130', 'tags': [], 'project_id': '1fc38602d06b4da490fe9b7d41427251'}} 2026-02-23 02:31:37,129 - INFO - Created VN ctest-vn-27987039 2026-02-23 02:31:37,144 - DEBUG - VN ctest-vn-27987039 UUID is ef4347cf-e174-4551-a118-a858c45191ff 2026-02-23 02:31:37,503 - DEBUG - Response for create_network : {'network': {'id': 'eb02999a-bb52-4978-a308-b9f4c19734f1', 'name': 'ctest-vn-20193928', 'tenant_id': '1fc38602d06b4da490fe9b7d41427251', 'project_id': '1fc38602d06b4da490fe9b7d41427251', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58853566', 'ctest-vn-20193928'], 'port_security_enabled': True, 'description': ''}} 2026-02-23 02:31:37,723 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c71a3af6-df3b-4ca4-aafd-224eb0e3b8b9', 'name': '', 'tenant_id': '1fc38602d06b4da490fe9b7d41427251', 'network_id': 'eb02999a-bb52-4978-a308-b9f4c19734f1', 'ip_version': 4, 'cidr': '209.9.242.192/26', 'allocation_pools': [{'start': '209.9.242.194', 'end': '209.9.242.254'}], 'gateway_ip': '209.9.242.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '209.9.242.194', 'tags': [], 'project_id': '1fc38602d06b4da490fe9b7d41427251'}} 2026-02-23 02:31:37,750 - INFO - Created VN ctest-vn-20193928 2026-02-23 02:31:37,763 - DEBUG - VN ctest-vn-20193928 UUID is eb02999a-bb52-4978-a308-b9f4c19734f1 2026-02-23 02:31:37,848 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-58853566:ctest-vn-27987039, 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-58853566:ctest-vn-20193928, 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] 2026-02-23 02:31:38,181 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ef4347cf-e174-4551-a118-a858c45191ff', 'name': 'ctest-vn-27987039', 'tenant_id': '1fc38602d06b4da490fe9b7d41427251', 'project_id': '1fc38602d06b4da490fe9b7d41427251', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['47565665-b670-46d6-a244-66a68c63bc55'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58853566', 'ctest-vn-27987039'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-58853566', 'ctest-policy-allow-all-48472504']], 'subnet_ipam': [{'subnet_cidr': '122.20.23.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-23 02:31:38,389 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'eb02999a-bb52-4978-a308-b9f4c19734f1', 'name': 'ctest-vn-20193928', 'tenant_id': '1fc38602d06b4da490fe9b7d41427251', 'project_id': '1fc38602d06b4da490fe9b7d41427251', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c71a3af6-df3b-4ca4-aafd-224eb0e3b8b9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58853566', 'ctest-vn-20193928'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-58853566', 'ctest-policy-allow-all-48472504']], 'subnet_ipam': [{'subnet_cidr': '209.9.242.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-23 02:31:38,526 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-02-23 02:31:38,906 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-02-23 02:31:38,952 - DEBUG - Requesting: http://10.0.0.242:8082/domain/e1cc6957-1fd1-4e0a-8f60-be32b1950cd6 2026-02-23 02:31:38,967 - DEBUG - Requesting: http://10.0.0.242:8082/project/1fc38602-d06b-4da4-90fe-9b7d41427251 2026-02-23 02:31:39,080 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/ef4347cf-e174-4551-a118-a858c45191ff 2026-02-23 02:31:39,102 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/ef4347cf-e174-4551-a118-a858c45191ff 2026-02-23 02:31:39,130 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/38fb689e-8954-4905-bc78-87a00eb0e840 2026-02-23 02:31:39,142 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/38fb689e-8954-4905-bc78-87a00eb0e840 2026-02-23 02:31:39,156 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/ee33787c-e7cc-4872-a1c1-2a8e1858dd32 2026-02-23 02:31:39,172 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-23 02:31:39,172 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/ef4347cf-e174-4551-a118-a858c45191ff 2026-02-23 02:31:39,195 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/38fb689e-8954-4905-bc78-87a00eb0e840 2026-02-23 02:31:39,224 - INFO - Verified VN network id 15 for VN ef4347cf-e174-4551-a118-a858c45191ff 2026-02-23 02:31:39,224 - INFO - Verifications in API Server for VN ctest-vn-27987039 passed 2026-02-23 02:31:39,224 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/ef4347cf-e174-4551-a118-a858c45191ff 2026-02-23 02:31:39,243 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/38fb689e-8954-4905-bc78-87a00eb0e840 2026-02-23 02:31:39,256 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/38fb689e-8954-4905-bc78-87a00eb0e840 2026-02-23 02:31:39,267 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/ee33787c-e7cc-4872-a1c1-2a8e1858dd32 2026-02-23 02:31:39,285 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58853566:ctest-vn-27987039', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58853566', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17240702756670686545', 'uuid-lslong': '11608213138751721983'}, 'enable': 'true', 'created': '2026-02-23T02:31:36', 'last-modified': '2026-02-23T02:31:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.155356'} 2026-02-23 02:31:39,292 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-23 02:31:39,298 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58853566:ctest-vn-27987039', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58853566', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17240702756670686545', 'uuid-lslong': '11608213138751721983'}, 'enable': 'true', 'created': '2026-02-23T02:31:36', 'last-modified': '2026-02-23T02:31:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.166471'} 2026-02-23 02:31:39,307 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-23 02:31:39,313 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58853566:ctest-vn-27987039', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58853566', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17240702756670686545', 'uuid-lslong': '11608213138751721983'}, 'enable': 'true', 'created': '2026-02-23T02:31:36', 'last-modified': '2026-02-23T02:31:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.183588'} 2026-02-23 02:31:39,319 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-23 02:31:39,319 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-27987039 passed 2026-02-23 02:31:39,319 - DEBUG - ====Verifying policy data for ctest-vn-27987039 in API_Server ====== 2026-02-23 02:31:39,319 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-02-23 02:31:39,326 - DEBUG - Requesting: http://10.0.0.242:8082/domain/e1cc6957-1fd1-4e0a-8f60-be32b1950cd6 2026-02-23 02:31:39,338 - DEBUG - Requesting: http://10.0.0.242:8082/project/1fc38602-d06b-4da4-90fe-9b7d41427251 2026-02-23 02:31:39,438 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/ef4347cf-e174-4551-a118-a858c45191ff 2026-02-23 02:31:39,454 - DEBUG - ==>Verifying data for policy with id: 27d9217b-b1a9-4323-bffc-5de158640c83, fqn: ['default-domain', 'ctest-TestBasicPolicy-58853566', 'ctest-policy-allow-all-48472504'] 2026-02-23 02:31:39,454 - INFO - VN ctest-vn-27987039 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-23 02:31:39,454 - DEBUG - Verifying the vn in opserver 2026-02-23 02:31:39,454 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58853566:ctest-vn-27987039 virtual network link through opserver 10.0.0.242 2026-02-23 02:31:39,454 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-02-23 02:31:39,778 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-02-23 02:31:39,874 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58853566:ctest-vn-27987039', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58853566:ctest-vn-27987039?flat'} 2026-02-23 02:31:39,874 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58853566:ctest-vn-27987039 virtual network link through opserver 10.0.0.50 2026-02-23 02:31:39,874 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-02-23 02:31:40,210 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-02-23 02:31:40,293 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58853566:ctest-vn-27987039', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58853566:ctest-vn-27987039?flat'} 2026-02-23 02:31:40,293 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58853566:ctest-vn-27987039 virtual network link through opserver 10.0.0.23 2026-02-23 02:31:40,294 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-02-23 02:31:40,594 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-02-23 02:31:40,657 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58853566:ctest-vn-27987039', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58853566:ctest-vn-27987039?flat'} 2026-02-23 02:31:40,657 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-58853566:ctest-vn-27987039 is found in opserver 2026-02-23 02:31:40,679 - DEBUG - Do not have enough data to verify VN in agent 2026-02-23 02:31:40,691 - DEBUG - VRF ids for VN ctest-vn-27987039: {} 2026-02-23 02:31:40,691 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-02-23 02:31:40,698 - DEBUG - Requesting: http://10.0.0.242:8082/domain/e1cc6957-1fd1-4e0a-8f60-be32b1950cd6 2026-02-23 02:31:40,710 - DEBUG - Requesting: http://10.0.0.242:8082/project/1fc38602-d06b-4da4-90fe-9b7d41427251 2026-02-23 02:31:40,805 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/eb02999a-bb52-4978-a308-b9f4c19734f1 2026-02-23 02:31:40,824 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/eb02999a-bb52-4978-a308-b9f4c19734f1 2026-02-23 02:31:40,834 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/c1c4ee21-7cbe-4b78-bfde-4715716eec43 2026-02-23 02:31:40,846 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/c1c4ee21-7cbe-4b78-bfde-4715716eec43 2026-02-23 02:31:40,852 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/fea1a10f-42cd-42a1-9548-ae0ed8cea849 2026-02-23 02:31:40,859 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-02-23 02:31:40,859 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/eb02999a-bb52-4978-a308-b9f4c19734f1 2026-02-23 02:31:40,869 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/c1c4ee21-7cbe-4b78-bfde-4715716eec43 2026-02-23 02:31:40,889 - INFO - Verified VN network id 16 for VN eb02999a-bb52-4978-a308-b9f4c19734f1 2026-02-23 02:31:40,889 - INFO - Verifications in API Server for VN ctest-vn-20193928 passed 2026-02-23 02:31:40,889 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/eb02999a-bb52-4978-a308-b9f4c19734f1 2026-02-23 02:31:40,899 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/c1c4ee21-7cbe-4b78-bfde-4715716eec43 2026-02-23 02:31:40,909 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/c1c4ee21-7cbe-4b78-bfde-4715716eec43 2026-02-23 02:31:40,918 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/fea1a10f-42cd-42a1-9548-ae0ed8cea849 2026-02-23 02:31:40,930 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58853566:ctest-vn-20193928', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58853566', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16934266438713231736', 'uuid-lslong': '11747844088867009777'}, 'enable': 'true', 'created': '2026-02-23T02:31:37', 'last-modified': '2026-02-23T02:31:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.574603'} 2026-02-23 02:31:40,937 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-02-23 02:31:40,943 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58853566:ctest-vn-20193928', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58853566', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16934266438713231736', 'uuid-lslong': '11747844088867009777'}, 'enable': 'true', 'created': '2026-02-23T02:31:37', 'last-modified': '2026-02-23T02:31:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.586016'} 2026-02-23 02:31:40,948 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-02-23 02:31:40,953 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58853566:ctest-vn-20193928', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58853566', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16934266438713231736', 'uuid-lslong': '11747844088867009777'}, 'enable': 'true', 'created': '2026-02-23T02:31:37', 'last-modified': '2026-02-23T02:31:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.598703'} 2026-02-23 02:31:40,958 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-02-23 02:31:40,958 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-20193928 passed 2026-02-23 02:31:40,959 - DEBUG - ====Verifying policy data for ctest-vn-20193928 in API_Server ====== 2026-02-23 02:31:40,959 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-02-23 02:31:40,965 - DEBUG - Requesting: http://10.0.0.242:8082/domain/e1cc6957-1fd1-4e0a-8f60-be32b1950cd6 2026-02-23 02:31:40,977 - DEBUG - Requesting: http://10.0.0.242:8082/project/1fc38602-d06b-4da4-90fe-9b7d41427251 2026-02-23 02:31:41,063 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/eb02999a-bb52-4978-a308-b9f4c19734f1 2026-02-23 02:31:41,078 - DEBUG - ==>Verifying data for policy with id: 27d9217b-b1a9-4323-bffc-5de158640c83, fqn: ['default-domain', 'ctest-TestBasicPolicy-58853566', 'ctest-policy-allow-all-48472504'] 2026-02-23 02:31:41,078 - INFO - VN ctest-vn-20193928 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-23 02:31:41,078 - DEBUG - Verifying the vn in opserver 2026-02-23 02:31:41,078 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58853566:ctest-vn-20193928 virtual network link through opserver 10.0.0.242 2026-02-23 02:31:41,078 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-02-23 02:31:41,144 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58853566:ctest-vn-20193928', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58853566:ctest-vn-20193928?flat'} 2026-02-23 02:31:41,144 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58853566:ctest-vn-20193928 virtual network link through opserver 10.0.0.50 2026-02-23 02:31:41,144 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-02-23 02:31:41,207 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58853566:ctest-vn-20193928', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58853566:ctest-vn-20193928?flat'} 2026-02-23 02:31:41,207 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58853566:ctest-vn-20193928 virtual network link through opserver 10.0.0.23 2026-02-23 02:31:41,207 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-02-23 02:31:41,267 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58853566:ctest-vn-20193928', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58853566:ctest-vn-20193928?flat'} 2026-02-23 02:31:41,267 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-58853566:ctest-vn-20193928 is found in opserver 2026-02-23 02:31:41,295 - DEBUG - Do not have enough data to verify VN in agent 2026-02-23 02:31:41,308 - DEBUG - VRF ids for VN ctest-vn-20193928: {} 2026-02-23 02:31:41,380 - DEBUG - Services list from nova: [, , , ] 2026-02-23 02:31:42,525 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-5383-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-5383-2) 2026-02-23 02:31:44,011 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-5383-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-5383-1) 2026-02-23 02:31:44,011 - INFO - Waiting for VM ctest-TestBasicPolicy-58853566-91481763 to be up.. 2026-02-23 02:31:44,117 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2026-02-23 02:31:49,203 - DEBUG - VM is in ACTIVE state now 2026-02-23 02:31:49,203 - INFO - VM name : ctest-TestBasicPolicy-58853566-91481763 2026-02-23 02:31:49,294 - DEBUG - VM ctest-TestBasicPolicy-58853566-91481763 ID is 61a8f894-26c4-4261-ab13-9c4558df06b9 2026-02-23 02:31:49,321 - DEBUG - VM ctest-TestBasicPolicy-58853566-91481763 launched on Node an-jenkins-deploy-platform-ansible-os-5383-2 2026-02-23 02:31:49,402 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/61a8f894-26c4-4261-ab13-9c4558df06b9 2026-02-23 02:31:49,710 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/61a8f894-26c4-4261-ab13-9c4558df06b9 2026-02-23 02:31:49,749 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/ab77cdab-4096-4e94-a6ee-eda000ceb2e2 2026-02-23 02:31:52,936 - 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 1025ms') 2026-02-23 02:31:52,936 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-58853566-91481763 failed! 2026-02-23 02:31:52,949 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-58853566:ctest-vn-27987039 is 122.20.23.129 and allocation pool is NOT set 2026-02-23 02:31:57,034 - 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 1017ms') 2026-02-23 02:31:57,035 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-58853566-91481763 failed! 2026-02-23 02:31:57,048 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-58853566:ctest-vn-27987039 is 122.20.23.129 and allocation pool is NOT set 2026-02-23 02:32:01,125 - 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') 2026-02-23 02:32:01,125 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-58853566-91481763 failed! 2026-02-23 02:32:01,139 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-58853566:ctest-vn-27987039 is 122.20.23.129 and allocation pool is NOT set 2026-02-23 02:32:05,227 - 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 1023ms') 2026-02-23 02:32:05,227 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-58853566-91481763 failed! 2026-02-23 02:32:05,241 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-58853566:ctest-vn-27987039 is 122.20.23.129 and allocation pool is NOT set 2026-02-23 02:32:09,314 - 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') 2026-02-23 02:32:09,314 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-58853566-91481763 failed! 2026-02-23 02:32:09,328 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-58853566:ctest-vn-27987039 is 122.20.23.129 and allocation pool is NOT set 2026-02-23 02:32:13,415 - 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 1020ms') 2026-02-23 02:32:13,416 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-58853566-91481763 failed! 2026-02-23 02:32:13,428 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-58853566:ctest-vn-27987039 is 122.20.23.129 and allocation pool is NOT set 2026-02-23 02:32:17,511 - 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 1017ms') 2026-02-23 02:32:17,511 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-58853566-91481763 failed! 2026-02-23 02:32:17,524 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-58853566:ctest-vn-27987039 is 122.20.23.129 and allocation pool is NOT set 2026-02-23 02:32:21,608 - 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 1018ms') 2026-02-23 02:32:21,608 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-58853566-91481763 failed! 2026-02-23 02:32:21,621 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-58853566:ctest-vn-27987039 is 122.20.23.129 and allocation pool is NOT set 2026-02-23 02:32:23,695 - 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=5.78 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=6.54 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 = 5.775/6.156/6.537/0.381 ms') 2026-02-23 02:32:23,696 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-58853566-91481763 passed 2026-02-23 02:32:23,765 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-02-23 02:32:23,765 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-58853566-91481763, IP 122.20.23.131, Port 22 2026-02-23 02:32:23,836 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2026-02-23 02:32:23,923 - DEBUG - VM ctest-TestBasicPolicy-58853566-91481763 is NOT ready for SSH connections, VM status: ACTIVE 2026-02-23 02:32:28,924 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-02-23 02:32:28,924 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-58853566-91481763, IP 122.20.23.131, Port 22 2026-02-23 02:32:28,993 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2026-02-23 02:32:29,090 - DEBUG - VM ctest-TestBasicPolicy-58853566-91481763 is NOT ready for SSH connections, VM status: ACTIVE 2026-02-23 02:32:34,091 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-02-23 02:32:34,091 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-58853566-91481763, IP 122.20.23.131, Port 22 2026-02-23 02:32:34,161 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2026-02-23 02:32:34,257 - DEBUG - VM ctest-TestBasicPolicy-58853566-91481763 is NOT ready for SSH connections, VM status: ACTIVE 2026-02-23 02:32:39,258 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-02-23 02:32:39,258 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-58853566-91481763, IP 122.20.23.131, Port 22 2026-02-23 02:32:39,325 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2026-02-23 02:32:39,418 - DEBUG - VM ctest-TestBasicPolicy-58853566-91481763 is NOT ready for SSH connections, VM status: ACTIVE 2026-02-23 02:32:44,419 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-02-23 02:32:44,419 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-58853566-91481763, IP 122.20.23.131, Port 22 2026-02-23 02:32:44,600 - DEBUG - VM ctest-TestBasicPolicy-58853566-91481763 is ready for SSH connections 2026-02-23 02:32:44,600 - INFO - Waiting for VM ctest-TestBasicPolicy-58853566-19182504 to be up.. 2026-02-23 02:32:44,688 - DEBUG - VM is in ACTIVE state now 2026-02-23 02:32:44,688 - INFO - VM name : ctest-TestBasicPolicy-58853566-19182504 2026-02-23 02:32:44,775 - DEBUG - VM ctest-TestBasicPolicy-58853566-19182504 ID is e52d9d3e-cf85-4366-90ee-d268fd4e4a7e 2026-02-23 02:32:44,775 - DEBUG - VM ctest-TestBasicPolicy-58853566-19182504 launched on Node an-jenkins-deploy-platform-ansible-os-5383-1 2026-02-23 02:32:44,863 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/e52d9d3e-cf85-4366-90ee-d268fd4e4a7e 2026-02-23 02:32:44,873 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/e57a9ef8-aef8-456b-a7b6-4c3a1311e7bb 2026-02-23 02:32:46,046 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=4.92 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.655 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.655/2.785/4.916/2.130 ms') 2026-02-23 02:32:46,046 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-58853566-19182504 passed 2026-02-23 02:32:46,117 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-02-23 02:32:46,117 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-58853566-19182504, IP 209.9.242.195, Port 22 2026-02-23 02:32:46,273 - DEBUG - VM ctest-TestBasicPolicy-58853566-19182504 is ready for SSH connections 2026-02-23 02:32:46,273 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-02-23 02:32:46,273 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 209.9.242.195, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.65, gateway password: c0ntrail123 2026-02-23 02:32:46,274 - DEBUG - ping -s 56 -c 3 -W 1 209.9.242.195 2026-02-23 02:33:05,274 - DEBUG - PING 209.9.242.195 (209.9.242.195) 56(84) bytes of data. 64 bytes from 209.9.242.195: icmp_req=1 ttl=63 time=11.8 ms 64 bytes from 209.9.242.195: icmp_req=2 ttl=63 time=1.32 ms 64 bytes from 209.9.242.195: icmp_req=3 ttl=63 time=1.81 ms --- 209.9.242.195 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2004ms rtt min/avg/max/mdev = 1.320/4.993/11.847/4.850 ms 2026-02-23 02:33:05,275 - INFO - Ping to IP 209.9.242.195 from VM ctest-TestBasicPolicy-58853566-91481763 passed 2026-02-23 02:33:05,488 - DEBUG - Policy Update Response {"network-policy": {"uuid": "27d9217b-b1a9-4323-bffc-5de158640c83", "href": "http://10.0.0.23:8082/network-policy/27d9217b-b1a9-4323-bffc-5de158640c83"}} 2026-02-23 02:33:05,489 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-02-23 02:33:05,489 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 209.9.242.195, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.65, gateway password: c0ntrail123 2026-02-23 02:33:05,489 - DEBUG - ping -s 56 -c 3 -W 1 209.9.242.195 2026-02-23 02:33:08,940 - DEBUG - PING 209.9.242.195 (209.9.242.195) 56(84) bytes of data. 64 bytes from 209.9.242.195: icmp_req=1 ttl=63 time=6.72 ms --- 209.9.242.195 ping statistics --- 3 packets transmitted, 1 received, 66% packet loss, time 2002ms rtt min/avg/max/mdev = 6.727/6.727/6.727/0.000 ms 2026-02-23 02:33:08,940 - WARNING - Ping to IP 209.9.242.195 from VM ctest-TestBasicPolicy-58853566-91481763 failed 2026-02-23 02:33:08,941 - INFO - Deleting VM ctest-TestBasicPolicy-58853566-19182504 2026-02-23 02:33:09,027 - INFO - Deleting VM ctest-TestBasicPolicy-58853566-91481763 2026-02-23 02:33:09,475 - INFO - Deleted policy ctest-policy-allow-all-48472504 2026-02-23 02:33:09,476 - INFO - Deleting VN ctest-vn-20193928 2026-02-23 02:33:09,529 - DEBUG - VN eb02999a-bb52-4978-a308-b9f4c19734f1 still in use: Unable to complete operation on network eb02999a-bb52-4978-a308-b9f4c19734f1. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-e1018b9f-882b-432b-a051-b741f18aacf0'] 2026-02-23 02:33:09,529 - WARNING - Deleting VN ctest-vn-20193928 failed..Will retry 2026-02-23 02:33:11,680 - DEBUG - Response for deleting network () 2026-02-23 02:33:11,680 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/c1c4ee21-7cbe-4b78-bfde-4715716eec43 2026-02-23 02:33:11,692 - DEBUG - Response Code: 404 2026-02-23 02:33:11,692 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-02-23 02:33:11,702 - DEBUG - Requesting: http://10.0.0.242:8082/domain/e1cc6957-1fd1-4e0a-8f60-be32b1950cd6 2026-02-23 02:33:11,723 - DEBUG - Requesting: http://10.0.0.242:8082/project/1fc38602-d06b-4da4-90fe-9b7d41427251 2026-02-23 02:33:11,822 - INFO - Validated that VN ctest-vn-20193928 is not found in API Server 2026-02-23 02:33:11,833 - DEBUG - VN ctest-vn-20193928 is not present in Agent 10.0.0.141 2026-02-23 02:33:11,844 - DEBUG - VN ctest-vn-20193928 is not present in Agent 10.0.0.65 2026-02-23 02:33:11,844 - INFO - Validated that VN ctest-vn-20193928 is not in any agent 2026-02-23 02:33:11,871 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-20193928 info 2026-02-23 02:33:11,871 - INFO - Deleting VN ctest-vn-27987039 2026-02-23 02:33:12,019 - DEBUG - Response for deleting network () 2026-02-23 02:33:12,019 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/38fb689e-8954-4905-bc78-87a00eb0e840 2026-02-23 02:33:12,031 - DEBUG - Response Code: 404 2026-02-23 02:33:12,031 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-02-23 02:33:12,040 - DEBUG - Requesting: http://10.0.0.242:8082/domain/e1cc6957-1fd1-4e0a-8f60-be32b1950cd6 2026-02-23 02:33:12,062 - DEBUG - Requesting: http://10.0.0.242:8082/project/1fc38602-d06b-4da4-90fe-9b7d41427251 2026-02-23 02:33:12,152 - INFO - Validated that VN ctest-vn-27987039 is not found in API Server 2026-02-23 02:33:12,165 - DEBUG - VN ctest-vn-27987039 is not present in Agent 10.0.0.141 2026-02-23 02:33:12,175 - DEBUG - VN ctest-vn-27987039 is not present in Agent 10.0.0.65 2026-02-23 02:33:12,175 - INFO - Validated that VN ctest-vn-27987039 is not in any agent 2026-02-23 02:33:12,207 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-27987039 info 2026-02-23 02:33:13,479 - DEBUG - No XMPP flaps were noticed during the test
2026-02-23 02:33:13,479 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:01:39]
2026-02-23 02:33:13,479 - INFO - -------------------------------------------------------------------------------- 2026-02-23 02:33:14,228 - INFO - Deleted project: ctest-TestBasicPolicy-58853566, ID : 1fc38602-d06b-4da4-90fe-9b7d41427251