2025-10-22 14:08:43,367 - INFO - Domain Default found not creating
2025-10-22 14:08:43,637 - INFO - Project ctest-TestBasicPolicy-23391665 not found, creating it
2025-10-22 14:08:44,288 - INFO - Created Project:ctest-TestBasicPolicy-23391665, ID : fb29421a-4316-4d49-a01a-4e9a67bac8e7
2025-10-22 14:08:46,258 - INFO - ================================================================================
2025-10-22 14:08:46,259 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-22 14:08:46,259 - 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-22 14:08:46,590 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.17': '0'}} with
2025-10-22 14:08:46,590 - INFO - Initial checks done. Running the testcase now
2025-10-22 14:08:46,591 - INFO -
2025-10-22 14:08:47,358 - DEBUG - Response for create_network : {'network': {'id': '54b43d6b-1d2b-4f1c-8bf7-2d79a99eec3a', 'name': 'ctest-vn-46629872', 'tenant_id': 'fb29421a43164d49a01a4e9a67bac8e7', 'project_id': 'fb29421a43164d49a01a4e9a67bac8e7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23391665', 'ctest-vn-46629872'], 'port_security_enabled': True, 'description': ''}}
2025-10-22 14:08:47,612 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd1de5a33-a914-4850-a432-6af8955797f5', 'name': '', 'tenant_id': 'fb29421a43164d49a01a4e9a67bac8e7', 'network_id': '54b43d6b-1d2b-4f1c-8bf7-2d79a99eec3a', 'ip_version': 4, 'cidr': '187.252.240.64/26', 'allocation_pools': [{'start': '187.252.240.66', 'end': '187.252.240.126'}], 'gateway_ip': '187.252.240.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '187.252.240.66', 'tags': [], 'project_id': 'fb29421a43164d49a01a4e9a67bac8e7'}}
2025-10-22 14:08:47,639 - INFO - Created VN ctest-vn-46629872
2025-10-22 14:08:47,704 - DEBUG - VN ctest-vn-46629872 UUID is 54b43d6b-1d2b-4f1c-8bf7-2d79a99eec3a
2025-10-22 14:08:48,069 - DEBUG - Response for create_network : {'network': {'id': '6872ea4a-ec75-42ce-984f-287f20b43040', 'name': 'ctest-vn-43961471', 'tenant_id': 'fb29421a43164d49a01a4e9a67bac8e7', 'project_id': 'fb29421a43164d49a01a4e9a67bac8e7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23391665', 'ctest-vn-43961471'], 'port_security_enabled': True, 'description': ''}}
2025-10-22 14:08:48,344 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a3d202b7-fe23-4161-b802-58e15636b179', 'name': '', 'tenant_id': 'fb29421a43164d49a01a4e9a67bac8e7', 'network_id': '6872ea4a-ec75-42ce-984f-287f20b43040', 'ip_version': 4, 'cidr': '63.227.239.128/26', 'allocation_pools': [{'start': '63.227.239.130', 'end': '63.227.239.190'}], 'gateway_ip': '63.227.239.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '63.227.239.130', 'tags': [], 'project_id': 'fb29421a43164d49a01a4e9a67bac8e7'}}
2025-10-22 14:08:48,372 - INFO - Created VN ctest-vn-43961471
2025-10-22 14:08:48,432 - DEBUG - VN ctest-vn-43961471 UUID is 6872ea4a-ec75-42ce-984f-287f20b43040
2025-10-22 14:08:48,593 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-23391665:ctest-vn-46629872, 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-23391665:ctest-vn-43961471, 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-22 14:08:49,004 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '54b43d6b-1d2b-4f1c-8bf7-2d79a99eec3a', 'name': 'ctest-vn-46629872', 'tenant_id': 'fb29421a43164d49a01a4e9a67bac8e7', 'project_id': 'fb29421a43164d49a01a4e9a67bac8e7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d1de5a33-a914-4850-a432-6af8955797f5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23391665', 'ctest-vn-46629872'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-23391665', 'ctest-policy-allow-all-19415494']], 'subnet_ipam': [{'subnet_cidr': '187.252.240.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-22 14:08:49,262 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6872ea4a-ec75-42ce-984f-287f20b43040', 'name': 'ctest-vn-43961471', 'tenant_id': 'fb29421a43164d49a01a4e9a67bac8e7', 'project_id': 'fb29421a43164d49a01a4e9a67bac8e7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a3d202b7-fe23-4161-b802-58e15636b179'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23391665', 'ctest-vn-43961471'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-23391665', 'ctest-policy-allow-all-19415494']], 'subnet_ipam': [{'subnet_cidr': '63.227.239.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-22 14:08:49,432 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-10-22 14:08:49,743 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-10-22 14:08:49,779 - DEBUG - Requesting: http://10.0.0.130:8082/domain/e71dc404-88de-4b9d-9aaf-b9cae211d205
2025-10-22 14:08:49,798 - DEBUG - Requesting: http://10.0.0.130:8082/project/fb29421a-4316-4d49-a01a-4e9a67bac8e7
2025-10-22 14:08:49,891 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/54b43d6b-1d2b-4f1c-8bf7-2d79a99eec3a
2025-10-22 14:08:49,911 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/54b43d6b-1d2b-4f1c-8bf7-2d79a99eec3a
2025-10-22 14:08:49,927 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/a5f9e73c-d50d-4e87-a19d-5458bb3a7b04
2025-10-22 14:08:49,938 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/a5f9e73c-d50d-4e87-a19d-5458bb3a7b04
2025-10-22 14:08:49,951 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/9d7333b3-0470-474c-baa8-0dc1ac97664d
2025-10-22 14:08:49,964 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-22 14:08:49,964 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/54b43d6b-1d2b-4f1c-8bf7-2d79a99eec3a
2025-10-22 14:08:49,987 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/a5f9e73c-d50d-4e87-a19d-5458bb3a7b04
2025-10-22 14:08:50,008 - INFO - Verified VN network id 11 for VN 54b43d6b-1d2b-4f1c-8bf7-2d79a99eec3a
2025-10-22 14:08:50,008 - INFO - Verifications in API Server for VN ctest-vn-46629872 passed
2025-10-22 14:08:50,008 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/54b43d6b-1d2b-4f1c-8bf7-2d79a99eec3a
2025-10-22 14:08:50,022 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/a5f9e73c-d50d-4e87-a19d-5458bb3a7b04
2025-10-22 14:08:50,032 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/a5f9e73c-d50d-4e87-a19d-5458bb3a7b04
2025-10-22 14:08:50,039 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/9d7333b3-0470-474c-baa8-0dc1ac97664d
2025-10-22 14:08:50,054 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-23391665:ctest-vn-46629872', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-23391665', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6103570925254037276', 'uuid-lslong': '10085579891079572538'}, 'enable': 'true', 'created': '2025-10-22T14:08:47', 'last-modified': '2025-10-22T14:08:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.091851'}
2025-10-22 14:08:50,060 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-22 14:08:50,061 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46629872 passed
2025-10-22 14:08:50,061 - DEBUG - ====Verifying policy data for ctest-vn-46629872 in API_Server ======
2025-10-22 14:08:50,061 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-10-22 14:08:50,067 - DEBUG - Requesting: http://10.0.0.130:8082/domain/e71dc404-88de-4b9d-9aaf-b9cae211d205
2025-10-22 14:08:50,085 - DEBUG - Requesting: http://10.0.0.130:8082/project/fb29421a-4316-4d49-a01a-4e9a67bac8e7
2025-10-22 14:08:50,187 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/54b43d6b-1d2b-4f1c-8bf7-2d79a99eec3a
2025-10-22 14:08:50,204 - DEBUG - ==>Verifying data for policy with id: 318a3997-7a06-48ef-a238-ef99ba212876, fqn: ['default-domain', 'ctest-TestBasicPolicy-23391665', 'ctest-policy-allow-all-19415494']
2025-10-22 14:08:50,204 - INFO - VN ctest-vn-46629872 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-22 14:08:50,204 - DEBUG - Verifying the vn in opserver
2025-10-22 14:08:50,205 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-23391665:ctest-vn-46629872 virtual network link through opserver 10.0.0.130
2025-10-22 14:08:50,205 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-10-22 14:08:50,535 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-10-22 14:08:50,616 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-23391665:ctest-vn-46629872', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-23391665:ctest-vn-46629872?flat'}
2025-10-22 14:08:50,616 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-23391665:ctest-vn-46629872 is found in opserver
2025-10-22 14:08:50,630 - DEBUG - Do not have enough data to verify VN in agent
2025-10-22 14:08:50,635 - DEBUG - VRF ids for VN ctest-vn-46629872: {}
2025-10-22 14:08:50,635 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-10-22 14:08:50,642 - DEBUG - Requesting: http://10.0.0.130:8082/domain/e71dc404-88de-4b9d-9aaf-b9cae211d205
2025-10-22 14:08:50,664 - DEBUG - Requesting: http://10.0.0.130:8082/project/fb29421a-4316-4d49-a01a-4e9a67bac8e7
2025-10-22 14:08:50,758 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/6872ea4a-ec75-42ce-984f-287f20b43040
2025-10-22 14:08:50,781 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/6872ea4a-ec75-42ce-984f-287f20b43040
2025-10-22 14:08:50,800 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/f8f8f070-7f96-4c7c-81fd-ff25ab4ff862
2025-10-22 14:08:50,812 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/f8f8f070-7f96-4c7c-81fd-ff25ab4ff862
2025-10-22 14:08:50,824 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/f1de7508-d00f-4dac-bfc0-954acd8af95c
2025-10-22 14:08:50,834 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-22 14:08:50,834 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/6872ea4a-ec75-42ce-984f-287f20b43040
2025-10-22 14:08:50,850 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/f8f8f070-7f96-4c7c-81fd-ff25ab4ff862
2025-10-22 14:08:50,873 - INFO - Verified VN network id 12 for VN 6872ea4a-ec75-42ce-984f-287f20b43040
2025-10-22 14:08:50,873 - INFO - Verifications in API Server for VN ctest-vn-43961471 passed
2025-10-22 14:08:50,873 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/6872ea4a-ec75-42ce-984f-287f20b43040
2025-10-22 14:08:50,885 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/f8f8f070-7f96-4c7c-81fd-ff25ab4ff862
2025-10-22 14:08:50,896 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/f8f8f070-7f96-4c7c-81fd-ff25ab4ff862
2025-10-22 14:08:50,905 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/f1de7508-d00f-4dac-bfc0-954acd8af95c
2025-10-22 14:08:50,925 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-23391665:ctest-vn-43961471', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-23391665', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7526335534805107406', 'uuid-lslong': '10975035343399825472'}, 'enable': 'true', 'created': '2025-10-22T14:08:48', 'last-modified': '2025-10-22T14:08:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.714471'}
2025-10-22 14:08:50,938 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-22 14:08:50,938 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-43961471 passed
2025-10-22 14:08:50,938 - DEBUG - ====Verifying policy data for ctest-vn-43961471 in API_Server ======
2025-10-22 14:08:50,938 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-10-22 14:08:50,948 - DEBUG - Requesting: http://10.0.0.130:8082/domain/e71dc404-88de-4b9d-9aaf-b9cae211d205
2025-10-22 14:08:50,968 - DEBUG - Requesting: http://10.0.0.130:8082/project/fb29421a-4316-4d49-a01a-4e9a67bac8e7
2025-10-22 14:08:51,075 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/6872ea4a-ec75-42ce-984f-287f20b43040
2025-10-22 14:08:51,094 - DEBUG - ==>Verifying data for policy with id: 318a3997-7a06-48ef-a238-ef99ba212876, fqn: ['default-domain', 'ctest-TestBasicPolicy-23391665', 'ctest-policy-allow-all-19415494']
2025-10-22 14:08:51,094 - INFO - VN ctest-vn-43961471 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-22 14:08:51,094 - DEBUG - Verifying the vn in opserver
2025-10-22 14:08:51,094 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-23391665:ctest-vn-43961471 virtual network link through opserver 10.0.0.130
2025-10-22 14:08:51,094 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-10-22 14:08:51,112 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-23391665:ctest-vn-43961471', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-23391665:ctest-vn-43961471?flat'}
2025-10-22 14:08:51,113 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-23391665:ctest-vn-43961471 is found in opserver
2025-10-22 14:08:51,132 - DEBUG - Do not have enough data to verify VN in agent
2025-10-22 14:08:51,143 - DEBUG - VRF ids for VN ctest-vn-43961471: {}
2025-10-22 14:08:51,244 - DEBUG - Services list from nova: [