2025-10-13 13:02:37,685 - INFO - Domain Default found not creating
2025-10-13 13:02:37,869 - INFO - Project ctest-TestBasicPolicy-16442004 not found, creating it
2025-10-13 13:02:38,336 - INFO - Created Project:ctest-TestBasicPolicy-16442004, ID : 2823169b-3dac-4473-90a2-ef07a4dfb6e2
2025-10-13 13:02:40,045 - INFO - ================================================================================
2025-10-13 13:02:40,045 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-13 13:02:40,045 - 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-13 13:02:40,321 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.192': '0'}} with
2025-10-13 13:02:40,321 - INFO - Initial checks done. Running the testcase now
2025-10-13 13:02:40,321 - INFO -
2025-10-13 13:02:40,952 - DEBUG - Response for create_network : {'network': {'id': 'ab7ca442-5f11-46cf-b57e-4030472eca23', 'name': 'ctest-vn-40252317', 'tenant_id': '2823169b3dac447390a2ef07a4dfb6e2', 'project_id': '2823169b3dac447390a2ef07a4dfb6e2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16442004', 'ctest-vn-40252317'], 'port_security_enabled': True, 'description': ''}}
2025-10-13 13:02:41,147 - DEBUG - Response for create_subnet : {'subnet': {'id': '21004ed6-7fd3-4d0c-8934-b6fe55932808', 'name': '', 'tenant_id': '2823169b3dac447390a2ef07a4dfb6e2', 'network_id': 'ab7ca442-5f11-46cf-b57e-4030472eca23', 'ip_version': 4, 'cidr': '51.197.134.0/26', 'allocation_pools': [{'start': '51.197.134.2', 'end': '51.197.134.62'}], 'gateway_ip': '51.197.134.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '51.197.134.2', 'tags': [], 'project_id': '2823169b3dac447390a2ef07a4dfb6e2'}}
2025-10-13 13:02:41,174 - INFO - Created VN ctest-vn-40252317
2025-10-13 13:02:41,232 - DEBUG - VN ctest-vn-40252317 UUID is ab7ca442-5f11-46cf-b57e-4030472eca23
2025-10-13 13:02:41,560 - DEBUG - Response for create_network : {'network': {'id': '2b7b6e46-81a8-4661-8a39-26823e9446f1', 'name': 'ctest-vn-12704557', 'tenant_id': '2823169b3dac447390a2ef07a4dfb6e2', 'project_id': '2823169b3dac447390a2ef07a4dfb6e2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16442004', 'ctest-vn-12704557'], 'port_security_enabled': True, 'description': ''}}
2025-10-13 13:02:41,772 - DEBUG - Response for create_subnet : {'subnet': {'id': '7f04a859-319e-4624-9922-beb1ac6a0a48', 'name': '', 'tenant_id': '2823169b3dac447390a2ef07a4dfb6e2', 'network_id': '2b7b6e46-81a8-4661-8a39-26823e9446f1', 'ip_version': 4, 'cidr': '92.244.78.128/26', 'allocation_pools': [{'start': '92.244.78.130', 'end': '92.244.78.190'}], 'gateway_ip': '92.244.78.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '92.244.78.130', 'tags': [], 'project_id': '2823169b3dac447390a2ef07a4dfb6e2'}}
2025-10-13 13:02:41,792 - INFO - Created VN ctest-vn-12704557
2025-10-13 13:02:41,848 - DEBUG - VN ctest-vn-12704557 UUID is 2b7b6e46-81a8-4661-8a39-26823e9446f1
2025-10-13 13:02:41,971 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-16442004:ctest-vn-40252317, 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-16442004:ctest-vn-12704557, 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-13 13:02:42,286 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ab7ca442-5f11-46cf-b57e-4030472eca23', 'name': 'ctest-vn-40252317', 'tenant_id': '2823169b3dac447390a2ef07a4dfb6e2', 'project_id': '2823169b3dac447390a2ef07a4dfb6e2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['21004ed6-7fd3-4d0c-8934-b6fe55932808'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16442004', 'ctest-vn-40252317'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-16442004', 'ctest-policy-allow-all-71325803']], 'subnet_ipam': [{'subnet_cidr': '51.197.134.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-13 13:02:42,536 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2b7b6e46-81a8-4661-8a39-26823e9446f1', 'name': 'ctest-vn-12704557', 'tenant_id': '2823169b3dac447390a2ef07a4dfb6e2', 'project_id': '2823169b3dac447390a2ef07a4dfb6e2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7f04a859-319e-4624-9922-beb1ac6a0a48'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16442004', 'ctest-vn-12704557'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-16442004', 'ctest-policy-allow-all-71325803']], 'subnet_ipam': [{'subnet_cidr': '92.244.78.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-13 13:02:42,684 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-10-13 13:02:43,034 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-10-13 13:02:43,068 - DEBUG - Requesting: http://10.0.0.241:8082/domain/c8632d8b-e5be-4178-a615-2469af6995f4
2025-10-13 13:02:43,081 - DEBUG - Requesting: http://10.0.0.241:8082/project/2823169b-3dac-4473-90a2-ef07a4dfb6e2
2025-10-13 13:02:43,158 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/ab7ca442-5f11-46cf-b57e-4030472eca23
2025-10-13 13:02:43,171 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/ab7ca442-5f11-46cf-b57e-4030472eca23
2025-10-13 13:02:43,182 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/8cce4be2-964a-4da7-a483-6faed3f9df1a
2025-10-13 13:02:43,190 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/8cce4be2-964a-4da7-a483-6faed3f9df1a
2025-10-13 13:02:43,197 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/11b954e4-e7a2-4fb3-9986-1a15eed9c27e
2025-10-13 13:02:43,204 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-13 13:02:43,204 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/ab7ca442-5f11-46cf-b57e-4030472eca23
2025-10-13 13:02:43,214 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/8cce4be2-964a-4da7-a483-6faed3f9df1a
2025-10-13 13:02:43,230 - INFO - Verified VN network id 10 for VN ab7ca442-5f11-46cf-b57e-4030472eca23
2025-10-13 13:02:43,230 - INFO - Verifications in API Server for VN ctest-vn-40252317 passed
2025-10-13 13:02:43,230 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/ab7ca442-5f11-46cf-b57e-4030472eca23
2025-10-13 13:02:43,241 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/8cce4be2-964a-4da7-a483-6faed3f9df1a
2025-10-13 13:02:43,248 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/8cce4be2-964a-4da7-a483-6faed3f9df1a
2025-10-13 13:02:43,256 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/11b954e4-e7a2-4fb3-9986-1a15eed9c27e
2025-10-13 13:02:43,267 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16442004:ctest-vn-40252317', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16442004', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12356932082567562959', 'uuid-lslong': '13077960944027355683'}, 'enable': 'true', 'created': '2025-10-13T13:02:40', 'last-modified': '2025-10-13T13:02:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.017972'}
2025-10-13 13:02:43,274 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-13 13:02:43,274 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-40252317 passed
2025-10-13 13:02:43,274 - DEBUG - ====Verifying policy data for ctest-vn-40252317 in API_Server ======
2025-10-13 13:02:43,274 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-10-13 13:02:43,279 - DEBUG - Requesting: http://10.0.0.241:8082/domain/c8632d8b-e5be-4178-a615-2469af6995f4
2025-10-13 13:02:43,291 - DEBUG - Requesting: http://10.0.0.241:8082/project/2823169b-3dac-4473-90a2-ef07a4dfb6e2
2025-10-13 13:02:43,371 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/ab7ca442-5f11-46cf-b57e-4030472eca23
2025-10-13 13:02:43,382 - DEBUG - ==>Verifying data for policy with id: 51845a9a-4fc8-43db-a9f1-7311d110eef9, fqn: ['default-domain', 'ctest-TestBasicPolicy-16442004', 'ctest-policy-allow-all-71325803']
2025-10-13 13:02:43,382 - INFO - VN ctest-vn-40252317 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-13 13:02:43,382 - DEBUG - Verifying the vn in opserver
2025-10-13 13:02:43,382 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16442004:ctest-vn-40252317 virtual network link through opserver 10.0.0.241
2025-10-13 13:02:43,382 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks
2025-10-13 13:02:43,717 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks
2025-10-13 13:02:43,779 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16442004:ctest-vn-40252317', 'href': 'http://10.0.0.241:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16442004:ctest-vn-40252317?flat'}
2025-10-13 13:02:43,780 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-16442004:ctest-vn-40252317 is found in opserver
2025-10-13 13:02:43,791 - DEBUG - Do not have enough data to verify VN in agent
2025-10-13 13:02:43,798 - DEBUG - VRF ids for VN ctest-vn-40252317: {}
2025-10-13 13:02:43,798 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-10-13 13:02:43,804 - DEBUG - Requesting: http://10.0.0.241:8082/domain/c8632d8b-e5be-4178-a615-2469af6995f4
2025-10-13 13:02:43,816 - DEBUG - Requesting: http://10.0.0.241:8082/project/2823169b-3dac-4473-90a2-ef07a4dfb6e2
2025-10-13 13:02:43,887 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/2b7b6e46-81a8-4661-8a39-26823e9446f1
2025-10-13 13:02:43,899 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/2b7b6e46-81a8-4661-8a39-26823e9446f1
2025-10-13 13:02:43,908 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/bf995fff-e83b-4606-bf48-109d3b67d36b
2025-10-13 13:02:43,916 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/bf995fff-e83b-4606-bf48-109d3b67d36b
2025-10-13 13:02:43,923 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/65c4b7ab-9e1a-439f-92e5-49a5e3b90c98
2025-10-13 13:02:43,930 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-13 13:02:43,930 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/2b7b6e46-81a8-4661-8a39-26823e9446f1
2025-10-13 13:02:43,939 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/bf995fff-e83b-4606-bf48-109d3b67d36b
2025-10-13 13:02:43,954 - INFO - Verified VN network id 11 for VN 2b7b6e46-81a8-4661-8a39-26823e9446f1
2025-10-13 13:02:43,954 - INFO - Verifications in API Server for VN ctest-vn-12704557 passed
2025-10-13 13:02:43,954 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/2b7b6e46-81a8-4661-8a39-26823e9446f1
2025-10-13 13:02:43,964 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/bf995fff-e83b-4606-bf48-109d3b67d36b
2025-10-13 13:02:43,971 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/bf995fff-e83b-4606-bf48-109d3b67d36b
2025-10-13 13:02:43,978 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/65c4b7ab-9e1a-439f-92e5-49a5e3b90c98
2025-10-13 13:02:43,989 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16442004:ctest-vn-12704557', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16442004', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3133219214868366945', 'uuid-lslong': '9960034391744071409'}, 'enable': 'true', 'created': '2025-10-13T13:02:41', 'last-modified': '2025-10-13T13:02:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.486407'}
2025-10-13 13:02:43,996 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-13 13:02:43,996 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-12704557 passed
2025-10-13 13:02:43,996 - DEBUG - ====Verifying policy data for ctest-vn-12704557 in API_Server ======
2025-10-13 13:02:43,996 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-10-13 13:02:44,002 - DEBUG - Requesting: http://10.0.0.241:8082/domain/c8632d8b-e5be-4178-a615-2469af6995f4
2025-10-13 13:02:44,013 - DEBUG - Requesting: http://10.0.0.241:8082/project/2823169b-3dac-4473-90a2-ef07a4dfb6e2
2025-10-13 13:02:44,083 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/2b7b6e46-81a8-4661-8a39-26823e9446f1
2025-10-13 13:02:44,093 - DEBUG - ==>Verifying data for policy with id: 51845a9a-4fc8-43db-a9f1-7311d110eef9, fqn: ['default-domain', 'ctest-TestBasicPolicy-16442004', 'ctest-policy-allow-all-71325803']
2025-10-13 13:02:44,093 - INFO - VN ctest-vn-12704557 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-13 13:02:44,093 - DEBUG - Verifying the vn in opserver
2025-10-13 13:02:44,093 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16442004:ctest-vn-12704557 virtual network link through opserver 10.0.0.241
2025-10-13 13:02:44,093 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks
2025-10-13 13:02:44,104 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16442004:ctest-vn-12704557', 'href': 'http://10.0.0.241:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16442004:ctest-vn-12704557?flat'}
2025-10-13 13:02:44,104 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-16442004:ctest-vn-12704557 is found in opserver
2025-10-13 13:02:44,114 - DEBUG - Do not have enough data to verify VN in agent
2025-10-13 13:02:44,119 - DEBUG - VRF ids for VN ctest-vn-12704557: {}
2025-10-13 13:02:44,191 - DEBUG - Services list from nova: [