2025-10-11 19:28:57,995 - INFO - Domain Default found not creating
2025-10-11 19:28:58,370 - INFO - Project ctest-TestBasicPolicy-53766089 not found, creating it
2025-10-11 19:28:59,009 - INFO - Created Project:ctest-TestBasicPolicy-53766089, ID : 3fb5e2ce-26f6-4a86-a2bd-f3a81fbc646b
2025-10-11 19:29:01,163 - INFO - ================================================================================
2025-10-11 19:29:01,163 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-11 19:29:01,164 - 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-10-11 19:29:01,502 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with
2025-10-11 19:29:01,502 - INFO - Initial checks done. Running the testcase now
2025-10-11 19:29:01,502 - INFO -
2025-10-11 19:29:02,828 - DEBUG - Response for create_network : {'network': {'id': '599c3a10-dd9f-4c56-86b2-2dbb0ea9cf56', 'name': 'ctest-vn-06073338', 'tenant_id': '3fb5e2ce26f64a86a2bdf3a81fbc646b', 'project_id': '3fb5e2ce26f64a86a2bdf3a81fbc646b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53766089', 'ctest-vn-06073338'], 'port_security_enabled': True, 'description': ''}}
2025-10-11 19:29:03,095 - DEBUG - Response for create_subnet : {'subnet': {'id': '875f7e96-9671-487e-bb53-35feb9928b76', 'name': '', 'tenant_id': '3fb5e2ce26f64a86a2bdf3a81fbc646b', 'network_id': '599c3a10-dd9f-4c56-86b2-2dbb0ea9cf56', 'ip_version': 4, 'cidr': '76.155.147.0/26', 'allocation_pools': [{'start': '76.155.147.2', 'end': '76.155.147.62'}], 'gateway_ip': '76.155.147.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '76.155.147.2', 'tags': [], 'project_id': '3fb5e2ce26f64a86a2bdf3a81fbc646b'}}
2025-10-11 19:29:03,117 - INFO - Created VN ctest-vn-06073338
2025-10-11 19:29:03,181 - DEBUG - VN ctest-vn-06073338 UUID is 599c3a10-dd9f-4c56-86b2-2dbb0ea9cf56
2025-10-11 19:29:03,679 - DEBUG - Response for create_network : {'network': {'id': '1c270690-b292-449e-be24-0de530d8f538', 'name': 'ctest-vn-20875491', 'tenant_id': '3fb5e2ce26f64a86a2bdf3a81fbc646b', 'project_id': '3fb5e2ce26f64a86a2bdf3a81fbc646b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53766089', 'ctest-vn-20875491'], 'port_security_enabled': True, 'description': ''}}
2025-10-11 19:29:03,889 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dd9c1796-99ce-4fbc-8e62-b41bd423aa4d', 'name': '', 'tenant_id': '3fb5e2ce26f64a86a2bdf3a81fbc646b', 'network_id': '1c270690-b292-449e-be24-0de530d8f538', 'ip_version': 4, 'cidr': '39.63.199.128/26', 'allocation_pools': [{'start': '39.63.199.130', 'end': '39.63.199.190'}], 'gateway_ip': '39.63.199.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '39.63.199.130', 'tags': [], 'project_id': '3fb5e2ce26f64a86a2bdf3a81fbc646b'}}
2025-10-11 19:29:03,922 - INFO - Created VN ctest-vn-20875491
2025-10-11 19:29:03,989 - DEBUG - VN ctest-vn-20875491 UUID is 1c270690-b292-449e-be24-0de530d8f538
2025-10-11 19:29:04,126 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-53766089:ctest-vn-06073338, 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-53766089:ctest-vn-20875491, 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-10-11 19:29:04,586 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '599c3a10-dd9f-4c56-86b2-2dbb0ea9cf56', 'name': 'ctest-vn-06073338', 'tenant_id': '3fb5e2ce26f64a86a2bdf3a81fbc646b', 'project_id': '3fb5e2ce26f64a86a2bdf3a81fbc646b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['875f7e96-9671-487e-bb53-35feb9928b76'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53766089', 'ctest-vn-06073338'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-53766089', 'ctest-policy-allow-all-41140778']], 'subnet_ipam': [{'subnet_cidr': '76.155.147.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-11 19:29:04,899 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1c270690-b292-449e-be24-0de530d8f538', 'name': 'ctest-vn-20875491', 'tenant_id': '3fb5e2ce26f64a86a2bdf3a81fbc646b', 'project_id': '3fb5e2ce26f64a86a2bdf3a81fbc646b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['dd9c1796-99ce-4fbc-8e62-b41bd423aa4d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53766089', 'ctest-vn-20875491'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-53766089', 'ctest-policy-allow-all-41140778']], 'subnet_ipam': [{'subnet_cidr': '39.63.199.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-11 19:29:05,073 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-11 19:29:05,382 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-11 19:29:05,428 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c786773f-bd03-4e23-a739-ea6582baf839
2025-10-11 19:29:05,458 - DEBUG - Requesting: http://10.0.0.254:8082/project/3fb5e2ce-26f6-4a86-a2bd-f3a81fbc646b
2025-10-11 19:29:05,575 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/599c3a10-dd9f-4c56-86b2-2dbb0ea9cf56
2025-10-11 19:29:05,596 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/599c3a10-dd9f-4c56-86b2-2dbb0ea9cf56
2025-10-11 19:29:05,614 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1c66321a-ba20-4646-bf0f-4dd027129d32
2025-10-11 19:29:05,630 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1c66321a-ba20-4646-bf0f-4dd027129d32
2025-10-11 19:29:05,645 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/7fb64352-cf3e-4a29-84df-48cf1e8e0b79
2025-10-11 19:29:05,658 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-11 19:29:05,659 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/599c3a10-dd9f-4c56-86b2-2dbb0ea9cf56
2025-10-11 19:29:05,677 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1c66321a-ba20-4646-bf0f-4dd027129d32
2025-10-11 19:29:05,706 - INFO - Verified VN network id 11 for VN 599c3a10-dd9f-4c56-86b2-2dbb0ea9cf56
2025-10-11 19:29:05,706 - INFO - Verifications in API Server for VN ctest-vn-06073338 passed
2025-10-11 19:29:05,707 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/599c3a10-dd9f-4c56-86b2-2dbb0ea9cf56
2025-10-11 19:29:05,734 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1c66321a-ba20-4646-bf0f-4dd027129d32
2025-10-11 19:29:05,753 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1c66321a-ba20-4646-bf0f-4dd027129d32
2025-10-11 19:29:05,767 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/7fb64352-cf3e-4a29-84df-48cf1e8e0b79
2025-10-11 19:29:05,790 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-53766089:ctest-vn-06073338', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-53766089', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6457099809854540886', 'uuid-lslong': '9705870428364984150'}, 'enable': 'true', 'created': '2025-10-11T19:29:02', 'last-modified': '2025-10-11T19:29:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.257427'}
2025-10-11 19:29:05,806 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-11 19:29:05,806 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-06073338 passed
2025-10-11 19:29:05,806 - DEBUG - ====Verifying policy data for ctest-vn-06073338 in API_Server ======
2025-10-11 19:29:05,807 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-11 19:29:05,818 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c786773f-bd03-4e23-a739-ea6582baf839
2025-10-11 19:29:05,844 - DEBUG - Requesting: http://10.0.0.254:8082/project/3fb5e2ce-26f6-4a86-a2bd-f3a81fbc646b
2025-10-11 19:29:05,955 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/599c3a10-dd9f-4c56-86b2-2dbb0ea9cf56
2025-10-11 19:29:05,979 - DEBUG - ==>Verifying data for policy with id: fa073a28-23c1-48b9-8d9b-596ebd04513d, fqn: ['default-domain', 'ctest-TestBasicPolicy-53766089', 'ctest-policy-allow-all-41140778']
2025-10-11 19:29:05,979 - INFO - VN ctest-vn-06073338 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-11 19:29:05,979 - DEBUG - Verifying the vn in opserver
2025-10-11 19:29:05,980 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-53766089:ctest-vn-06073338 virtual network link through opserver 10.0.0.254
2025-10-11 19:29:05,980 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-11 19:29:06,332 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-11 19:29:06,409 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-53766089:ctest-vn-06073338', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-53766089:ctest-vn-06073338?flat'}
2025-10-11 19:29:06,409 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-53766089:ctest-vn-06073338 is found in opserver
2025-10-11 19:29:06,425 - DEBUG - Do not have enough data to verify VN in agent
2025-10-11 19:29:06,432 - DEBUG - VRF ids for VN ctest-vn-06073338: {}
2025-10-11 19:29:06,432 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-11 19:29:06,440 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c786773f-bd03-4e23-a739-ea6582baf839
2025-10-11 19:29:06,464 - DEBUG - Requesting: http://10.0.0.254:8082/project/3fb5e2ce-26f6-4a86-a2bd-f3a81fbc646b
2025-10-11 19:29:06,592 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1c270690-b292-449e-be24-0de530d8f538
2025-10-11 19:29:06,620 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1c270690-b292-449e-be24-0de530d8f538
2025-10-11 19:29:06,645 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/41a28e81-a775-49a8-8bad-9570b20e72a2
2025-10-11 19:29:06,669 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/41a28e81-a775-49a8-8bad-9570b20e72a2
2025-10-11 19:29:06,688 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e5daceea-3732-4d30-b917-57b4b8a9a0dd
2025-10-11 19:29:06,706 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-11 19:29:06,707 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1c270690-b292-449e-be24-0de530d8f538
2025-10-11 19:29:06,734 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/41a28e81-a775-49a8-8bad-9570b20e72a2
2025-10-11 19:29:06,767 - INFO - Verified VN network id 12 for VN 1c270690-b292-449e-be24-0de530d8f538
2025-10-11 19:29:06,767 - INFO - Verifications in API Server for VN ctest-vn-20875491 passed
2025-10-11 19:29:06,768 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1c270690-b292-449e-be24-0de530d8f538
2025-10-11 19:29:06,786 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/41a28e81-a775-49a8-8bad-9570b20e72a2
2025-10-11 19:29:06,799 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/41a28e81-a775-49a8-8bad-9570b20e72a2
2025-10-11 19:29:06,811 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e5daceea-3732-4d30-b917-57b4b8a9a0dd
2025-10-11 19:29:06,833 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-53766089:ctest-vn-20875491', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-53766089', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2028597375694685342', 'uuid-lslong': '13701091244386088248'}, 'enable': 'true', 'created': '2025-10-11T19:29:03', 'last-modified': '2025-10-11T19:29:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.969816'}
2025-10-11 19:29:06,847 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-11 19:29:06,847 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-20875491 passed
2025-10-11 19:29:06,847 - DEBUG - ====Verifying policy data for ctest-vn-20875491 in API_Server ======
2025-10-11 19:29:06,848 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-11 19:29:06,857 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c786773f-bd03-4e23-a739-ea6582baf839
2025-10-11 19:29:06,875 - DEBUG - Requesting: http://10.0.0.254:8082/project/3fb5e2ce-26f6-4a86-a2bd-f3a81fbc646b
2025-10-11 19:29:06,964 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1c270690-b292-449e-be24-0de530d8f538
2025-10-11 19:29:06,985 - DEBUG - ==>Verifying data for policy with id: fa073a28-23c1-48b9-8d9b-596ebd04513d, fqn: ['default-domain', 'ctest-TestBasicPolicy-53766089', 'ctest-policy-allow-all-41140778']
2025-10-11 19:29:06,986 - INFO - VN ctest-vn-20875491 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-11 19:29:06,986 - DEBUG - Verifying the vn in opserver
2025-10-11 19:29:06,986 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-53766089:ctest-vn-20875491 virtual network link through opserver 10.0.0.254
2025-10-11 19:29:06,986 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-11 19:29:07,007 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-53766089:ctest-vn-20875491', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-53766089:ctest-vn-20875491?flat'}
2025-10-11 19:29:07,007 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-53766089:ctest-vn-20875491 is found in opserver
2025-10-11 19:29:07,037 - DEBUG - Do not have enough data to verify VN in agent
2025-10-11 19:29:07,051 - DEBUG - VRF ids for VN ctest-vn-20875491: {}
2025-10-11 19:29:07,198 - DEBUG - Services list from nova: [