2025-09-08 12:00:52,406 - INFO - Domain Default found not creating
2025-09-08 12:00:52,541 - INFO - Project ctest-TestBasicPolicy-09241802 not found, creating it
2025-09-08 12:00:52,988 - INFO - Created Project:ctest-TestBasicPolicy-09241802, ID : 63cf0ad2-b2c3-425e-8a28-d36e7a68f290
2025-09-08 12:00:54,368 - INFO - ================================================================================
2025-09-08 12:00:54,368 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-08 12:00:54,368 - 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-09-08 12:00:54,622 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with
2025-09-08 12:00:54,623 - INFO - Initial checks done. Running the testcase now
2025-09-08 12:00:54,623 - INFO -
2025-09-08 12:00:55,140 - DEBUG - Response for create_network : {'network': {'id': '6b2ec69c-4f27-4839-874c-b3b453f5a449', 'name': 'ctest-vn-36428205', 'tenant_id': '63cf0ad2b2c3425e8a28d36e7a68f290', 'project_id': '63cf0ad2b2c3425e8a28d36e7a68f290', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09241802', 'ctest-vn-36428205'], 'port_security_enabled': True, 'description': ''}}
2025-09-08 12:00:55,348 - DEBUG - Response for create_subnet : {'subnet': {'id': '2058051f-6d99-4c09-b23b-cd8467babfe8', 'name': '', 'tenant_id': '63cf0ad2b2c3425e8a28d36e7a68f290', 'network_id': '6b2ec69c-4f27-4839-874c-b3b453f5a449', 'ip_version': 4, 'cidr': '120.172.74.128/26', 'allocation_pools': [{'start': '120.172.74.130', 'end': '120.172.74.190'}], 'gateway_ip': '120.172.74.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '120.172.74.130', 'tags': [], 'project_id': '63cf0ad2b2c3425e8a28d36e7a68f290'}}
2025-09-08 12:00:55,364 - INFO - Created VN ctest-vn-36428205
2025-09-08 12:00:55,416 - DEBUG - VN ctest-vn-36428205 UUID is 6b2ec69c-4f27-4839-874c-b3b453f5a449
2025-09-08 12:00:55,712 - DEBUG - Response for create_network : {'network': {'id': 'fdb11f25-b8ae-43a8-9e30-8c526878f0f1', 'name': 'ctest-vn-01461426', 'tenant_id': '63cf0ad2b2c3425e8a28d36e7a68f290', 'project_id': '63cf0ad2b2c3425e8a28d36e7a68f290', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09241802', 'ctest-vn-01461426'], 'port_security_enabled': True, 'description': ''}}
2025-09-08 12:00:55,900 - DEBUG - Response for create_subnet : {'subnet': {'id': '64d34017-6f3c-40a6-876a-2425caef7a47', 'name': '', 'tenant_id': '63cf0ad2b2c3425e8a28d36e7a68f290', 'network_id': 'fdb11f25-b8ae-43a8-9e30-8c526878f0f1', 'ip_version': 4, 'cidr': '64.119.175.128/26', 'allocation_pools': [{'start': '64.119.175.130', 'end': '64.119.175.190'}], 'gateway_ip': '64.119.175.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '64.119.175.130', 'tags': [], 'project_id': '63cf0ad2b2c3425e8a28d36e7a68f290'}}
2025-09-08 12:00:55,916 - INFO - Created VN ctest-vn-01461426
2025-09-08 12:00:55,972 - DEBUG - VN ctest-vn-01461426 UUID is fdb11f25-b8ae-43a8-9e30-8c526878f0f1
2025-09-08 12:00:56,142 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-09241802:ctest-vn-36428205, 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-09241802:ctest-vn-01461426, 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-09-08 12:00:56,427 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6b2ec69c-4f27-4839-874c-b3b453f5a449', 'name': 'ctest-vn-36428205', 'tenant_id': '63cf0ad2b2c3425e8a28d36e7a68f290', 'project_id': '63cf0ad2b2c3425e8a28d36e7a68f290', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2058051f-6d99-4c09-b23b-cd8467babfe8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09241802', 'ctest-vn-36428205'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-09241802', 'ctest-policy-allow-all-74109395']], 'subnet_ipam': [{'subnet_cidr': '120.172.74.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-08 12:00:56,692 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fdb11f25-b8ae-43a8-9e30-8c526878f0f1', 'name': 'ctest-vn-01461426', 'tenant_id': '63cf0ad2b2c3425e8a28d36e7a68f290', 'project_id': '63cf0ad2b2c3425e8a28d36e7a68f290', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['64d34017-6f3c-40a6-876a-2425caef7a47'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09241802', 'ctest-vn-01461426'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-09241802', 'ctest-policy-allow-all-74109395']], 'subnet_ipam': [{'subnet_cidr': '64.119.175.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-08 12:00:56,852 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-08 12:00:57,145 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-08 12:00:57,171 - DEBUG - Requesting: http://10.0.0.22:8082/domain/0fe0a250-1561-4c42-ae6c-0056308b180a
2025-09-08 12:00:57,185 - DEBUG - Requesting: http://10.0.0.22:8082/project/63cf0ad2-b2c3-425e-8a28-d36e7a68f290
2025-09-08 12:00:57,254 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/6b2ec69c-4f27-4839-874c-b3b453f5a449
2025-09-08 12:00:57,264 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/6b2ec69c-4f27-4839-874c-b3b453f5a449
2025-09-08 12:00:57,273 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d74086cd-ff18-424a-abde-249c246608ee
2025-09-08 12:00:57,281 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d74086cd-ff18-424a-abde-249c246608ee
2025-09-08 12:00:57,287 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/73561a60-51d9-41a0-ac60-f5fd81e1d38f
2025-09-08 12:00:57,292 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-08 12:00:57,293 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/6b2ec69c-4f27-4839-874c-b3b453f5a449
2025-09-08 12:00:57,300 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d74086cd-ff18-424a-abde-249c246608ee
2025-09-08 12:00:57,312 - INFO - Verified VN network id 12 for VN 6b2ec69c-4f27-4839-874c-b3b453f5a449
2025-09-08 12:00:57,313 - INFO - Verifications in API Server for VN ctest-vn-36428205 passed
2025-09-08 12:00:57,313 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/6b2ec69c-4f27-4839-874c-b3b453f5a449
2025-09-08 12:00:57,320 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d74086cd-ff18-424a-abde-249c246608ee
2025-09-08 12:00:57,326 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d74086cd-ff18-424a-abde-249c246608ee
2025-09-08 12:00:57,331 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/73561a60-51d9-41a0-ac60-f5fd81e1d38f
2025-09-08 12:00:57,341 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-09241802:ctest-vn-36428205', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09241802', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7723328785632151609', 'uuid-lslong': '9749364880434373705'}, 'enable': 'true', 'created': '2025-09-08T12:00:55', 'last-modified': '2025-09-08T12:00:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.939781'}
2025-09-08 12:00:57,347 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-08 12:00:57,347 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-36428205 passed
2025-09-08 12:00:57,347 - DEBUG - ====Verifying policy data for ctest-vn-36428205 in API_Server ======
2025-09-08 12:00:57,347 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-08 12:00:57,352 - DEBUG - Requesting: http://10.0.0.22:8082/domain/0fe0a250-1561-4c42-ae6c-0056308b180a
2025-09-08 12:00:57,362 - DEBUG - Requesting: http://10.0.0.22:8082/project/63cf0ad2-b2c3-425e-8a28-d36e7a68f290
2025-09-08 12:00:57,429 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/6b2ec69c-4f27-4839-874c-b3b453f5a449
2025-09-08 12:00:57,438 - DEBUG - ==>Verifying data for policy with id: 6b3e1cef-9e64-49be-80e6-dc53348a388a, fqn: ['default-domain', 'ctest-TestBasicPolicy-09241802', 'ctest-policy-allow-all-74109395']
2025-09-08 12:00:57,438 - INFO - VN ctest-vn-36428205 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-08 12:00:57,438 - DEBUG - Verifying the vn in opserver
2025-09-08 12:00:57,438 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-09241802:ctest-vn-36428205 virtual network link through opserver 10.0.0.22
2025-09-08 12:00:57,438 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-08 12:00:57,734 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-08 12:00:57,793 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-09241802:ctest-vn-36428205', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-09241802:ctest-vn-36428205?flat'}
2025-09-08 12:00:57,793 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-09241802:ctest-vn-36428205 is found in opserver
2025-09-08 12:00:57,802 - DEBUG - Do not have enough data to verify VN in agent
2025-09-08 12:00:57,807 - DEBUG - VRF ids for VN ctest-vn-36428205: {}
2025-09-08 12:00:57,807 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-08 12:00:57,813 - DEBUG - Requesting: http://10.0.0.22:8082/domain/0fe0a250-1561-4c42-ae6c-0056308b180a
2025-09-08 12:00:57,824 - DEBUG - Requesting: http://10.0.0.22:8082/project/63cf0ad2-b2c3-425e-8a28-d36e7a68f290
2025-09-08 12:00:57,895 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fdb11f25-b8ae-43a8-9e30-8c526878f0f1
2025-09-08 12:00:57,907 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fdb11f25-b8ae-43a8-9e30-8c526878f0f1
2025-09-08 12:00:57,915 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4eeecbe8-6564-4429-b140-283942c1c569
2025-09-08 12:00:57,922 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4eeecbe8-6564-4429-b140-283942c1c569
2025-09-08 12:00:57,928 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/651e1efc-3a16-4b93-93c3-92fd609929ca
2025-09-08 12:00:57,934 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-08 12:00:57,934 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fdb11f25-b8ae-43a8-9e30-8c526878f0f1
2025-09-08 12:00:57,942 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4eeecbe8-6564-4429-b140-283942c1c569
2025-09-08 12:00:57,954 - INFO - Verified VN network id 13 for VN fdb11f25-b8ae-43a8-9e30-8c526878f0f1
2025-09-08 12:00:57,955 - INFO - Verifications in API Server for VN ctest-vn-01461426 passed
2025-09-08 12:00:57,955 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fdb11f25-b8ae-43a8-9e30-8c526878f0f1
2025-09-08 12:00:57,962 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4eeecbe8-6564-4429-b140-283942c1c569
2025-09-08 12:00:57,969 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4eeecbe8-6564-4429-b140-283942c1c569
2025-09-08 12:00:57,976 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/651e1efc-3a16-4b93-93c3-92fd609929ca
2025-09-08 12:00:57,987 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-09241802:ctest-vn-01461426', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09241802', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18280426609346233256', 'uuid-lslong': '11398764942442688753'}, 'enable': 'true', 'created': '2025-09-08T12:00:55', 'last-modified': '2025-09-08T12:00:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.357026'}
2025-09-08 12:00:57,994 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-08 12:00:57,994 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-01461426 passed
2025-09-08 12:00:57,994 - DEBUG - ====Verifying policy data for ctest-vn-01461426 in API_Server ======
2025-09-08 12:00:57,994 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-08 12:00:58,001 - DEBUG - Requesting: http://10.0.0.22:8082/domain/0fe0a250-1561-4c42-ae6c-0056308b180a
2025-09-08 12:00:58,011 - DEBUG - Requesting: http://10.0.0.22:8082/project/63cf0ad2-b2c3-425e-8a28-d36e7a68f290
2025-09-08 12:00:58,078 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fdb11f25-b8ae-43a8-9e30-8c526878f0f1
2025-09-08 12:00:58,089 - DEBUG - ==>Verifying data for policy with id: 6b3e1cef-9e64-49be-80e6-dc53348a388a, fqn: ['default-domain', 'ctest-TestBasicPolicy-09241802', 'ctest-policy-allow-all-74109395']
2025-09-08 12:00:58,089 - INFO - VN ctest-vn-01461426 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-08 12:00:58,089 - DEBUG - Verifying the vn in opserver
2025-09-08 12:00:58,089 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-09241802:ctest-vn-01461426 virtual network link through opserver 10.0.0.22
2025-09-08 12:00:58,089 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-08 12:00:58,098 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-09241802:ctest-vn-01461426', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-09241802:ctest-vn-01461426?flat'}
2025-09-08 12:00:58,099 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-09241802:ctest-vn-01461426 is found in opserver
2025-09-08 12:00:58,108 - DEBUG - Do not have enough data to verify VN in agent
2025-09-08 12:00:58,112 - DEBUG - VRF ids for VN ctest-vn-01461426: {}
2025-09-08 12:00:58,166 - DEBUG - Services list from nova: [