2026-06-16 10:54:47,734 - INFO - Domain Default found not creating
2026-06-16 10:54:47,910 - INFO - Project ctest-TestBasicPolicy-07752155 not found, creating it
2026-06-16 10:54:48,401 - INFO - Created Project:ctest-TestBasicPolicy-07752155, ID : 26c3d8f6-b1fd-4ae7-98c7-caeb8455efcd
2026-06-16 10:54:49,967 - INFO - ================================================================================
2026-06-16 10:54:49,967 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-06-16 10:54:49,968 - 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-06-16 10:54:50,238 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2026-06-16 10:54:50,238 - INFO - Initial checks done. Running the testcase now
2026-06-16 10:54:50,238 - INFO -
2026-06-16 10:54:50,897 - DEBUG - Response for create_network : {'network': {'id': '1a103236-85a2-4d11-ac74-e93d1bf658be', 'name': 'ctest-vn-75096406', 'tenant_id': '26c3d8f6b1fd4ae798c7caeb8455efcd', 'project_id': '26c3d8f6b1fd4ae798c7caeb8455efcd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07752155', 'ctest-vn-75096406'], 'port_security_enabled': True, 'description': ''}}
2026-06-16 10:54:51,083 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fa64e48c-c526-4840-81fb-602c2354f102', 'name': '', 'tenant_id': '26c3d8f6b1fd4ae798c7caeb8455efcd', 'network_id': '1a103236-85a2-4d11-ac74-e93d1bf658be', 'ip_version': 4, 'cidr': '218.89.10.0/26', 'allocation_pools': [{'start': '218.89.10.2', 'end': '218.89.10.62'}], 'gateway_ip': '218.89.10.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '218.89.10.2', 'tags': [], 'project_id': '26c3d8f6b1fd4ae798c7caeb8455efcd'}}
2026-06-16 10:54:51,098 - INFO - Created VN ctest-vn-75096406
2026-06-16 10:54:51,151 - DEBUG - VN ctest-vn-75096406 UUID is 1a103236-85a2-4d11-ac74-e93d1bf658be
2026-06-16 10:54:51,479 - DEBUG - Response for create_network : {'network': {'id': '04fd2bc8-ea05-4120-9b1c-efa7637efffc', 'name': 'ctest-vn-04385359', 'tenant_id': '26c3d8f6b1fd4ae798c7caeb8455efcd', 'project_id': '26c3d8f6b1fd4ae798c7caeb8455efcd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07752155', 'ctest-vn-04385359'], 'port_security_enabled': True, 'description': ''}}
2026-06-16 10:54:51,701 - DEBUG - Response for create_subnet : {'subnet': {'id': '8560a842-8ccb-4965-9535-8ff89bb04aec', 'name': '', 'tenant_id': '26c3d8f6b1fd4ae798c7caeb8455efcd', 'network_id': '04fd2bc8-ea05-4120-9b1c-efa7637efffc', 'ip_version': 4, 'cidr': '85.190.109.192/26', 'allocation_pools': [{'start': '85.190.109.194', 'end': '85.190.109.254'}], 'gateway_ip': '85.190.109.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '85.190.109.194', 'tags': [], 'project_id': '26c3d8f6b1fd4ae798c7caeb8455efcd'}}
2026-06-16 10:54:51,720 - INFO - Created VN ctest-vn-04385359
2026-06-16 10:54:51,771 - DEBUG - VN ctest-vn-04385359 UUID is 04fd2bc8-ea05-4120-9b1c-efa7637efffc
2026-06-16 10:54:51,883 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-07752155:ctest-vn-75096406, 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-07752155:ctest-vn-04385359, 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-06-16 10:54:52,224 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1a103236-85a2-4d11-ac74-e93d1bf658be', 'name': 'ctest-vn-75096406', 'tenant_id': '26c3d8f6b1fd4ae798c7caeb8455efcd', 'project_id': '26c3d8f6b1fd4ae798c7caeb8455efcd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fa64e48c-c526-4840-81fb-602c2354f102'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07752155', 'ctest-vn-75096406'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-07752155', 'ctest-policy-allow-all-44004601']], 'subnet_ipam': [{'subnet_cidr': '218.89.10.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-06-16 10:54:52,463 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '04fd2bc8-ea05-4120-9b1c-efa7637efffc', 'name': 'ctest-vn-04385359', 'tenant_id': '26c3d8f6b1fd4ae798c7caeb8455efcd', 'project_id': '26c3d8f6b1fd4ae798c7caeb8455efcd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8560a842-8ccb-4965-9535-8ff89bb04aec'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07752155', 'ctest-vn-04385359'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-07752155', 'ctest-policy-allow-all-44004601']], 'subnet_ipam': [{'subnet_cidr': '85.190.109.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-06-16 10:54:52,627 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-06-16 10:54:52,956 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-06-16 10:54:52,991 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d144f4fc-0984-409e-b738-0f5352836e54
2026-06-16 10:54:53,003 - DEBUG - Requesting: http://10.0.0.50:8082/project/26c3d8f6-b1fd-4ae7-98c7-caeb8455efcd
2026-06-16 10:54:53,079 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1a103236-85a2-4d11-ac74-e93d1bf658be
2026-06-16 10:54:53,097 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1a103236-85a2-4d11-ac74-e93d1bf658be
2026-06-16 10:54:53,115 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3477953f-1e30-4df5-97f6-cfc5d37a6de2
2026-06-16 10:54:53,125 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3477953f-1e30-4df5-97f6-cfc5d37a6de2
2026-06-16 10:54:53,134 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/d14a6f66-3d73-47e1-831b-ff34fedc7c05
2026-06-16 10:54:53,141 - DEBUG - Route Targets: ['target:64512:8000004']
2026-06-16 10:54:53,142 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1a103236-85a2-4d11-ac74-e93d1bf658be
2026-06-16 10:54:53,154 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3477953f-1e30-4df5-97f6-cfc5d37a6de2
2026-06-16 10:54:53,173 - INFO - Verified VN network id 9 for VN 1a103236-85a2-4d11-ac74-e93d1bf658be
2026-06-16 10:54:53,173 - INFO - Verifications in API Server for VN ctest-vn-75096406 passed
2026-06-16 10:54:53,173 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1a103236-85a2-4d11-ac74-e93d1bf658be
2026-06-16 10:54:53,184 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3477953f-1e30-4df5-97f6-cfc5d37a6de2
2026-06-16 10:54:53,191 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3477953f-1e30-4df5-97f6-cfc5d37a6de2
2026-06-16 10:54:53,200 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/d14a6f66-3d73-47e1-831b-ff34fedc7c05
2026-06-16 10:54:53,215 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07752155:ctest-vn-75096406', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07752155', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1878056254365125905', 'uuid-lslong': '12426813720493447358'}, 'enable': 'true', 'created': '2026-06-16T10:54:50', 'last-modified': '2026-06-16T10:54:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.026808'}
2026-06-16 10:54:53,223 - DEBUG - Route Targets: ['target:64512:8000004']
2026-06-16 10:54:53,223 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75096406 passed
2026-06-16 10:54:53,223 - DEBUG - ====Verifying policy data for ctest-vn-75096406 in API_Server ======
2026-06-16 10:54:53,223 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-06-16 10:54:53,232 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d144f4fc-0984-409e-b738-0f5352836e54
2026-06-16 10:54:53,243 - DEBUG - Requesting: http://10.0.0.50:8082/project/26c3d8f6-b1fd-4ae7-98c7-caeb8455efcd
2026-06-16 10:54:53,314 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1a103236-85a2-4d11-ac74-e93d1bf658be
2026-06-16 10:54:53,325 - DEBUG - ==>Verifying data for policy with id: 4e0fbcad-7c45-41b8-a575-22c7efcc136e, fqn: ['default-domain', 'ctest-TestBasicPolicy-07752155', 'ctest-policy-allow-all-44004601']
2026-06-16 10:54:53,325 - INFO - VN ctest-vn-75096406 Policy verification: verify_vn_policy_in_api_server, status: True
2026-06-16 10:54:53,325 - DEBUG - Verifying the vn in opserver
2026-06-16 10:54:53,325 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07752155:ctest-vn-75096406 virtual network link through opserver 10.0.0.50
2026-06-16 10:54:53,325 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-06-16 10:54:53,664 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-06-16 10:54:53,736 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07752155:ctest-vn-75096406', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07752155:ctest-vn-75096406?flat'}
2026-06-16 10:54:53,736 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-07752155:ctest-vn-75096406 is found in opserver
2026-06-16 10:54:53,748 - DEBUG - Do not have enough data to verify VN in agent
2026-06-16 10:54:53,753 - DEBUG - VRF ids for VN ctest-vn-75096406: {}
2026-06-16 10:54:53,753 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-06-16 10:54:53,759 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d144f4fc-0984-409e-b738-0f5352836e54
2026-06-16 10:54:53,769 - DEBUG - Requesting: http://10.0.0.50:8082/project/26c3d8f6-b1fd-4ae7-98c7-caeb8455efcd
2026-06-16 10:54:53,838 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/04fd2bc8-ea05-4120-9b1c-efa7637efffc
2026-06-16 10:54:53,849 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/04fd2bc8-ea05-4120-9b1c-efa7637efffc
2026-06-16 10:54:53,858 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e8e036e9-b281-49e4-946f-3bfd02082c7c
2026-06-16 10:54:53,865 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e8e036e9-b281-49e4-946f-3bfd02082c7c
2026-06-16 10:54:53,872 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/00da6651-1cbc-4808-83b5-3703117e8001
2026-06-16 10:54:53,880 - DEBUG - Route Targets: ['target:64512:8000005']
2026-06-16 10:54:53,880 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/04fd2bc8-ea05-4120-9b1c-efa7637efffc
2026-06-16 10:54:53,888 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e8e036e9-b281-49e4-946f-3bfd02082c7c
2026-06-16 10:54:53,905 - INFO - Verified VN network id 10 for VN 04fd2bc8-ea05-4120-9b1c-efa7637efffc
2026-06-16 10:54:53,905 - INFO - Verifications in API Server for VN ctest-vn-04385359 passed
2026-06-16 10:54:53,905 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/04fd2bc8-ea05-4120-9b1c-efa7637efffc
2026-06-16 10:54:53,914 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e8e036e9-b281-49e4-946f-3bfd02082c7c
2026-06-16 10:54:53,922 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e8e036e9-b281-49e4-946f-3bfd02082c7c
2026-06-16 10:54:53,930 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/00da6651-1cbc-4808-83b5-3703117e8001
2026-06-16 10:54:53,943 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07752155:ctest-vn-04385359', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07752155', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '359491687179174176', 'uuid-lslong': '11177071877434572796'}, 'enable': 'true', 'created': '2026-06-16T10:54:51', 'last-modified': '2026-06-16T10:54:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.509481'}
2026-06-16 10:54:53,952 - DEBUG - Route Targets: ['target:64512:8000005']
2026-06-16 10:54:53,952 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04385359 passed
2026-06-16 10:54:53,952 - DEBUG - ====Verifying policy data for ctest-vn-04385359 in API_Server ======
2026-06-16 10:54:53,952 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-06-16 10:54:53,958 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d144f4fc-0984-409e-b738-0f5352836e54
2026-06-16 10:54:53,970 - DEBUG - Requesting: http://10.0.0.50:8082/project/26c3d8f6-b1fd-4ae7-98c7-caeb8455efcd
2026-06-16 10:54:54,043 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/04fd2bc8-ea05-4120-9b1c-efa7637efffc
2026-06-16 10:54:54,053 - DEBUG - ==>Verifying data for policy with id: 4e0fbcad-7c45-41b8-a575-22c7efcc136e, fqn: ['default-domain', 'ctest-TestBasicPolicy-07752155', 'ctest-policy-allow-all-44004601']
2026-06-16 10:54:54,053 - INFO - VN ctest-vn-04385359 Policy verification: verify_vn_policy_in_api_server, status: True
2026-06-16 10:54:54,053 - DEBUG - Verifying the vn in opserver
2026-06-16 10:54:54,054 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07752155:ctest-vn-04385359 virtual network link through opserver 10.0.0.50
2026-06-16 10:54:54,054 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-06-16 10:54:54,065 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07752155:ctest-vn-04385359', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07752155:ctest-vn-04385359?flat'}
2026-06-16 10:54:54,065 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-07752155:ctest-vn-04385359 is found in opserver
2026-06-16 10:54:54,083 - DEBUG - Do not have enough data to verify VN in agent
2026-06-16 10:54:54,090 - DEBUG - VRF ids for VN ctest-vn-04385359: {}
2026-06-16 10:54:54,161 - DEBUG - Services list from nova: [