2025-11-10 18:51:53,387 - INFO - Domain Default found not creating
2025-11-10 18:51:53,530 - INFO - Project ctest-TestBasicPolicy-07439816 not found, creating it
2025-11-10 18:51:54,002 - INFO - Created Project:ctest-TestBasicPolicy-07439816, ID : 6e3a078b-fd5d-42e4-abee-b6b69beeb522
2025-11-10 18:51:55,441 - INFO - ================================================================================
2025-11-10 18:51:55,441 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-10 18:51:55,441 - 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-11-10 18:51:55,696 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.25': '0'}} with
2025-11-10 18:51:55,696 - INFO - Initial checks done. Running the testcase now
2025-11-10 18:51:55,696 - INFO -
2025-11-10 18:51:56,217 - DEBUG - Response for create_network : {'network': {'id': 'fe2ed3ff-099e-438d-8410-e931d0c33095', 'name': 'ctest-vn-82470171', 'tenant_id': '6e3a078bfd5d42e4abeeb6b69beeb522', 'project_id': '6e3a078bfd5d42e4abeeb6b69beeb522', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07439816', 'ctest-vn-82470171'], 'port_security_enabled': True, 'description': ''}}
2025-11-10 18:51:56,370 - DEBUG - Response for create_subnet : {'subnet': {'id': '529d25b7-4c92-46fa-b076-b8be72641d23', 'name': '', 'tenant_id': '6e3a078bfd5d42e4abeeb6b69beeb522', 'network_id': 'fe2ed3ff-099e-438d-8410-e931d0c33095', 'ip_version': 4, 'cidr': '13.23.227.128/26', 'allocation_pools': [{'start': '13.23.227.130', 'end': '13.23.227.190'}], 'gateway_ip': '13.23.227.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '13.23.227.130', 'tags': [], 'project_id': '6e3a078bfd5d42e4abeeb6b69beeb522'}}
2025-11-10 18:51:56,388 - INFO - Created VN ctest-vn-82470171
2025-11-10 18:51:56,438 - DEBUG - VN ctest-vn-82470171 UUID is fe2ed3ff-099e-438d-8410-e931d0c33095
2025-11-10 18:51:56,754 - DEBUG - Response for create_network : {'network': {'id': 'c9b39149-05e3-4459-98cf-a453bb94f975', 'name': 'ctest-vn-90350523', 'tenant_id': '6e3a078bfd5d42e4abeeb6b69beeb522', 'project_id': '6e3a078bfd5d42e4abeeb6b69beeb522', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07439816', 'ctest-vn-90350523'], 'port_security_enabled': True, 'description': ''}}
2025-11-10 18:51:56,967 - DEBUG - Response for create_subnet : {'subnet': {'id': '9a5f8894-e128-4dbd-bdef-bc30ba500663', 'name': '', 'tenant_id': '6e3a078bfd5d42e4abeeb6b69beeb522', 'network_id': 'c9b39149-05e3-4459-98cf-a453bb94f975', 'ip_version': 4, 'cidr': '7.97.135.64/26', 'allocation_pools': [{'start': '7.97.135.66', 'end': '7.97.135.126'}], 'gateway_ip': '7.97.135.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '7.97.135.66', 'tags': [], 'project_id': '6e3a078bfd5d42e4abeeb6b69beeb522'}}
2025-11-10 18:51:56,984 - INFO - Created VN ctest-vn-90350523
2025-11-10 18:51:57,038 - DEBUG - VN ctest-vn-90350523 UUID is c9b39149-05e3-4459-98cf-a453bb94f975
2025-11-10 18:51:57,186 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-07439816:ctest-vn-82470171, 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-07439816:ctest-vn-90350523, 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-11-10 18:51:57,468 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fe2ed3ff-099e-438d-8410-e931d0c33095', 'name': 'ctest-vn-82470171', 'tenant_id': '6e3a078bfd5d42e4abeeb6b69beeb522', 'project_id': '6e3a078bfd5d42e4abeeb6b69beeb522', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['529d25b7-4c92-46fa-b076-b8be72641d23'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07439816', 'ctest-vn-82470171'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-07439816', 'ctest-policy-allow-all-65252350']], 'subnet_ipam': [{'subnet_cidr': '13.23.227.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-10 18:51:57,691 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c9b39149-05e3-4459-98cf-a453bb94f975', 'name': 'ctest-vn-90350523', 'tenant_id': '6e3a078bfd5d42e4abeeb6b69beeb522', 'project_id': '6e3a078bfd5d42e4abeeb6b69beeb522', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9a5f8894-e128-4dbd-bdef-bc30ba500663'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07439816', 'ctest-vn-90350523'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-07439816', 'ctest-policy-allow-all-65252350']], 'subnet_ipam': [{'subnet_cidr': '7.97.135.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-10 18:51:57,886 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-11-10 18:51:58,179 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-11-10 18:51:58,206 - DEBUG - Requesting: http://10.0.0.23:8082/domain/a00c2223-e74d-4340-8cbb-7add8c3ed3a1
2025-11-10 18:51:58,217 - DEBUG - Requesting: http://10.0.0.23:8082/project/6e3a078b-fd5d-42e4-abee-b6b69beeb522
2025-11-10 18:51:58,290 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/fe2ed3ff-099e-438d-8410-e931d0c33095
2025-11-10 18:51:58,300 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/fe2ed3ff-099e-438d-8410-e931d0c33095
2025-11-10 18:51:58,308 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/698ae7f2-8048-4230-841b-366ec17592fe
2025-11-10 18:51:58,315 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/698ae7f2-8048-4230-841b-366ec17592fe
2025-11-10 18:51:58,321 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/b4fd3744-d017-42fd-970d-dc78d3a515a3
2025-11-10 18:51:58,327 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-10 18:51:58,327 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/fe2ed3ff-099e-438d-8410-e931d0c33095
2025-11-10 18:51:58,335 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/698ae7f2-8048-4230-841b-366ec17592fe
2025-11-10 18:51:58,347 - INFO - Verified VN network id 11 for VN fe2ed3ff-099e-438d-8410-e931d0c33095
2025-11-10 18:51:58,347 - INFO - Verifications in API Server for VN ctest-vn-82470171 passed
2025-11-10 18:51:58,347 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/fe2ed3ff-099e-438d-8410-e931d0c33095
2025-11-10 18:51:58,354 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/698ae7f2-8048-4230-841b-366ec17592fe
2025-11-10 18:51:58,360 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/698ae7f2-8048-4230-841b-366ec17592fe
2025-11-10 18:51:58,365 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/b4fd3744-d017-42fd-970d-dc78d3a515a3
2025-11-10 18:51:58,376 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07439816:ctest-vn-82470171', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07439816', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18315809826893874061', 'uuid-lslong': '9516362412798980245'}, 'enable': 'true', 'created': '2025-11-10T18:51:56', 'last-modified': '2025-11-10T18:51:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.921365'}
2025-11-10 18:51:58,381 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-10 18:51:58,381 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82470171 passed
2025-11-10 18:51:58,381 - DEBUG - ====Verifying policy data for ctest-vn-82470171 in API_Server ======
2025-11-10 18:51:58,381 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-11-10 18:51:58,386 - DEBUG - Requesting: http://10.0.0.23:8082/domain/a00c2223-e74d-4340-8cbb-7add8c3ed3a1
2025-11-10 18:51:58,395 - DEBUG - Requesting: http://10.0.0.23:8082/project/6e3a078b-fd5d-42e4-abee-b6b69beeb522
2025-11-10 18:51:58,466 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/fe2ed3ff-099e-438d-8410-e931d0c33095
2025-11-10 18:51:58,475 - DEBUG - ==>Verifying data for policy with id: 9671393d-6bb7-475d-922f-4600f95dd7a4, fqn: ['default-domain', 'ctest-TestBasicPolicy-07439816', 'ctest-policy-allow-all-65252350']
2025-11-10 18:51:58,475 - INFO - VN ctest-vn-82470171 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-10 18:51:58,475 - DEBUG - Verifying the vn in opserver
2025-11-10 18:51:58,475 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07439816:ctest-vn-82470171 virtual network link through opserver 10.0.0.23
2025-11-10 18:51:58,475 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2025-11-10 18:51:58,769 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2025-11-10 18:51:58,825 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07439816:ctest-vn-82470171', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07439816:ctest-vn-82470171?flat'}
2025-11-10 18:51:58,826 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-07439816:ctest-vn-82470171 is found in opserver
2025-11-10 18:51:58,834 - DEBUG - Do not have enough data to verify VN in agent
2025-11-10 18:51:58,839 - DEBUG - VRF ids for VN ctest-vn-82470171: {}
2025-11-10 18:51:58,839 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-11-10 18:51:58,843 - DEBUG - Requesting: http://10.0.0.23:8082/domain/a00c2223-e74d-4340-8cbb-7add8c3ed3a1
2025-11-10 18:51:58,854 - DEBUG - Requesting: http://10.0.0.23:8082/project/6e3a078b-fd5d-42e4-abee-b6b69beeb522
2025-11-10 18:51:58,923 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/c9b39149-05e3-4459-98cf-a453bb94f975
2025-11-10 18:51:58,933 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/c9b39149-05e3-4459-98cf-a453bb94f975
2025-11-10 18:51:58,941 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/d50f7c6a-db83-415b-8150-4148980ed2dd
2025-11-10 18:51:58,948 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/d50f7c6a-db83-415b-8150-4148980ed2dd
2025-11-10 18:51:58,954 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/d5078270-d746-4ac8-8105-f1b2aa83099b
2025-11-10 18:51:58,961 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-10 18:51:58,961 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/c9b39149-05e3-4459-98cf-a453bb94f975
2025-11-10 18:51:58,970 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/d50f7c6a-db83-415b-8150-4148980ed2dd
2025-11-10 18:51:58,983 - INFO - Verified VN network id 12 for VN c9b39149-05e3-4459-98cf-a453bb94f975
2025-11-10 18:51:58,983 - INFO - Verifications in API Server for VN ctest-vn-90350523 passed
2025-11-10 18:51:58,983 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/c9b39149-05e3-4459-98cf-a453bb94f975
2025-11-10 18:51:58,992 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/d50f7c6a-db83-415b-8150-4148980ed2dd
2025-11-10 18:51:58,998 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/d50f7c6a-db83-415b-8150-4148980ed2dd
2025-11-10 18:51:59,004 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/d5078270-d746-4ac8-8105-f1b2aa83099b
2025-11-10 18:51:59,015 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07439816:ctest-vn-90350523', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07439816', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14534120165272142937', 'uuid-lslong': '11011200293480495477'}, 'enable': 'true', 'created': '2025-11-10T18:51:56', 'last-modified': '2025-11-10T18:51:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.343705'}
2025-11-10 18:51:59,020 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-10 18:51:59,021 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-90350523 passed
2025-11-10 18:51:59,021 - DEBUG - ====Verifying policy data for ctest-vn-90350523 in API_Server ======
2025-11-10 18:51:59,021 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-11-10 18:51:59,026 - DEBUG - Requesting: http://10.0.0.23:8082/domain/a00c2223-e74d-4340-8cbb-7add8c3ed3a1
2025-11-10 18:51:59,035 - DEBUG - Requesting: http://10.0.0.23:8082/project/6e3a078b-fd5d-42e4-abee-b6b69beeb522
2025-11-10 18:51:59,100 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/c9b39149-05e3-4459-98cf-a453bb94f975
2025-11-10 18:51:59,110 - DEBUG - ==>Verifying data for policy with id: 9671393d-6bb7-475d-922f-4600f95dd7a4, fqn: ['default-domain', 'ctest-TestBasicPolicy-07439816', 'ctest-policy-allow-all-65252350']
2025-11-10 18:51:59,110 - INFO - VN ctest-vn-90350523 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-10 18:51:59,110 - DEBUG - Verifying the vn in opserver
2025-11-10 18:51:59,110 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07439816:ctest-vn-90350523 virtual network link through opserver 10.0.0.23
2025-11-10 18:51:59,110 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2025-11-10 18:51:59,118 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07439816:ctest-vn-90350523', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07439816:ctest-vn-90350523?flat'}
2025-11-10 18:51:59,118 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-07439816:ctest-vn-90350523 is found in opserver
2025-11-10 18:51:59,127 - DEBUG - Do not have enough data to verify VN in agent
2025-11-10 18:51:59,130 - DEBUG - VRF ids for VN ctest-vn-90350523: {}
2025-11-10 18:51:59,188 - DEBUG - Services list from nova: [