2025-12-09 12:08:34,241 - INFO - Domain Default found not creating
2025-12-09 12:08:34,417 - INFO - Project ctest-TestBasicPolicy-52793887 not found, creating it
2025-12-09 12:08:34,911 - INFO - Created Project:ctest-TestBasicPolicy-52793887, ID : a480bafb-4c6f-4008-a762-41902fb01831
2025-12-09 12:08:36,232 - INFO - ================================================================================
2025-12-09 12:08:36,232 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-12-09 12:08:36,232 - 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-12-09 12:08:36,486 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with
2025-12-09 12:08:36,487 - INFO - Initial checks done. Running the testcase now
2025-12-09 12:08:36,487 - INFO -
2025-12-09 12:08:36,975 - DEBUG - Response for create_network : {'network': {'id': 'a1220f50-d0cd-45c2-9f68-a9ccc13a6bdb', 'name': 'ctest-vn-76643827', 'tenant_id': 'a480bafb4c6f4008a76241902fb01831', 'project_id': 'a480bafb4c6f4008a76241902fb01831', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52793887', 'ctest-vn-76643827'], 'port_security_enabled': True, 'description': ''}}
2025-12-09 12:08:37,139 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cb5b6372-00fc-4923-acc5-192e76691fb1', 'name': '', 'tenant_id': 'a480bafb4c6f4008a76241902fb01831', 'network_id': 'a1220f50-d0cd-45c2-9f68-a9ccc13a6bdb', 'ip_version': 4, 'cidr': '11.168.176.0/26', 'allocation_pools': [{'start': '11.168.176.2', 'end': '11.168.176.62'}], 'gateway_ip': '11.168.176.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '11.168.176.2', 'tags': [], 'project_id': 'a480bafb4c6f4008a76241902fb01831'}}
2025-12-09 12:08:37,155 - INFO - Created VN ctest-vn-76643827
2025-12-09 12:08:37,208 - DEBUG - VN ctest-vn-76643827 UUID is a1220f50-d0cd-45c2-9f68-a9ccc13a6bdb
2025-12-09 12:08:37,523 - DEBUG - Response for create_network : {'network': {'id': 'e3d36cf7-245b-43fa-bad3-843eb4adb334', 'name': 'ctest-vn-41975647', 'tenant_id': 'a480bafb4c6f4008a76241902fb01831', 'project_id': 'a480bafb4c6f4008a76241902fb01831', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52793887', 'ctest-vn-41975647'], 'port_security_enabled': True, 'description': ''}}
2025-12-09 12:08:37,741 - DEBUG - Response for create_subnet : {'subnet': {'id': '4293238c-af22-432a-9295-a997f0b8700b', 'name': '', 'tenant_id': 'a480bafb4c6f4008a76241902fb01831', 'network_id': 'e3d36cf7-245b-43fa-bad3-843eb4adb334', 'ip_version': 4, 'cidr': '41.99.242.0/26', 'allocation_pools': [{'start': '41.99.242.2', 'end': '41.99.242.62'}], 'gateway_ip': '41.99.242.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '41.99.242.2', 'tags': [], 'project_id': 'a480bafb4c6f4008a76241902fb01831'}}
2025-12-09 12:08:37,760 - INFO - Created VN ctest-vn-41975647
2025-12-09 12:08:37,812 - DEBUG - VN ctest-vn-41975647 UUID is e3d36cf7-245b-43fa-bad3-843eb4adb334
2025-12-09 12:08:37,964 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-52793887:ctest-vn-76643827, 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-52793887:ctest-vn-41975647, 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-12-09 12:08:38,250 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a1220f50-d0cd-45c2-9f68-a9ccc13a6bdb', 'name': 'ctest-vn-76643827', 'tenant_id': 'a480bafb4c6f4008a76241902fb01831', 'project_id': 'a480bafb4c6f4008a76241902fb01831', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cb5b6372-00fc-4923-acc5-192e76691fb1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52793887', 'ctest-vn-76643827'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-52793887', 'ctest-policy-allow-all-38580923']], 'subnet_ipam': [{'subnet_cidr': '11.168.176.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-09 12:08:38,486 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e3d36cf7-245b-43fa-bad3-843eb4adb334', 'name': 'ctest-vn-41975647', 'tenant_id': 'a480bafb4c6f4008a76241902fb01831', 'project_id': 'a480bafb4c6f4008a76241902fb01831', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4293238c-af22-432a-9295-a997f0b8700b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52793887', 'ctest-vn-41975647'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-52793887', 'ctest-policy-allow-all-38580923']], 'subnet_ipam': [{'subnet_cidr': '41.99.242.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-09 12:08:38,648 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-09 12:08:38,917 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-09 12:08:38,945 - DEBUG - Requesting: http://10.0.0.38:8082/domain/74950727-4669-4385-884c-f729302b5d4d
2025-12-09 12:08:38,955 - DEBUG - Requesting: http://10.0.0.38:8082/project/a480bafb-4c6f-4008-a762-41902fb01831
2025-12-09 12:08:39,030 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a1220f50-d0cd-45c2-9f68-a9ccc13a6bdb
2025-12-09 12:08:39,040 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a1220f50-d0cd-45c2-9f68-a9ccc13a6bdb
2025-12-09 12:08:39,048 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8ab47237-e88b-4130-a49e-04a2becebb96
2025-12-09 12:08:39,054 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8ab47237-e88b-4130-a49e-04a2becebb96
2025-12-09 12:08:39,060 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/85bb4e75-704c-4881-a69f-69f88780867c
2025-12-09 12:08:39,065 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-09 12:08:39,066 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a1220f50-d0cd-45c2-9f68-a9ccc13a6bdb
2025-12-09 12:08:39,072 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8ab47237-e88b-4130-a49e-04a2becebb96
2025-12-09 12:08:39,083 - INFO - Verified VN network id 12 for VN a1220f50-d0cd-45c2-9f68-a9ccc13a6bdb
2025-12-09 12:08:39,084 - INFO - Verifications in API Server for VN ctest-vn-76643827 passed
2025-12-09 12:08:39,084 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a1220f50-d0cd-45c2-9f68-a9ccc13a6bdb
2025-12-09 12:08:39,092 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8ab47237-e88b-4130-a49e-04a2becebb96
2025-12-09 12:08:39,099 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8ab47237-e88b-4130-a49e-04a2becebb96
2025-12-09 12:08:39,105 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/85bb4e75-704c-4881-a69f-69f88780867c
2025-12-09 12:08:39,116 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-52793887:ctest-vn-76643827', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-52793887', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11610859629089473986', 'uuid-lslong': '11486617546488703963'}, 'enable': 'true', 'created': '2025-12-09T12:08:36', 'last-modified': '2025-12-09T12:08:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.884118'}
2025-12-09 12:08:39,121 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-09 12:08:39,121 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76643827 passed
2025-12-09 12:08:39,121 - DEBUG - ====Verifying policy data for ctest-vn-76643827 in API_Server ======
2025-12-09 12:08:39,121 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-09 12:08:39,126 - DEBUG - Requesting: http://10.0.0.38:8082/domain/74950727-4669-4385-884c-f729302b5d4d
2025-12-09 12:08:39,137 - DEBUG - Requesting: http://10.0.0.38:8082/project/a480bafb-4c6f-4008-a762-41902fb01831
2025-12-09 12:08:39,207 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a1220f50-d0cd-45c2-9f68-a9ccc13a6bdb
2025-12-09 12:08:39,215 - DEBUG - ==>Verifying data for policy with id: d1474e93-3c44-4fd2-9a9c-b8b0621b3c4d, fqn: ['default-domain', 'ctest-TestBasicPolicy-52793887', 'ctest-policy-allow-all-38580923']
2025-12-09 12:08:39,215 - INFO - VN ctest-vn-76643827 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-09 12:08:39,215 - DEBUG - Verifying the vn in opserver
2025-12-09 12:08:39,215 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-52793887:ctest-vn-76643827 virtual network link through opserver 10.0.0.38
2025-12-09 12:08:39,216 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-12-09 12:08:39,484 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-12-09 12:08:39,548 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-52793887:ctest-vn-76643827', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-52793887:ctest-vn-76643827?flat'}
2025-12-09 12:08:39,548 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-52793887:ctest-vn-76643827 is found in opserver
2025-12-09 12:08:39,560 - DEBUG - Do not have enough data to verify VN in agent
2025-12-09 12:08:39,565 - DEBUG - VRF ids for VN ctest-vn-76643827: {}
2025-12-09 12:08:39,565 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-09 12:08:39,571 - DEBUG - Requesting: http://10.0.0.38:8082/domain/74950727-4669-4385-884c-f729302b5d4d
2025-12-09 12:08:39,581 - DEBUG - Requesting: http://10.0.0.38:8082/project/a480bafb-4c6f-4008-a762-41902fb01831
2025-12-09 12:08:39,651 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e3d36cf7-245b-43fa-bad3-843eb4adb334
2025-12-09 12:08:39,660 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e3d36cf7-245b-43fa-bad3-843eb4adb334
2025-12-09 12:08:39,668 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c5881548-4338-42e7-855d-9efbf120d3b3
2025-12-09 12:08:39,674 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c5881548-4338-42e7-855d-9efbf120d3b3
2025-12-09 12:08:39,680 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/827df9e1-b095-4d73-8c5f-c792a8795c4d
2025-12-09 12:08:39,685 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-09 12:08:39,686 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e3d36cf7-245b-43fa-bad3-843eb4adb334
2025-12-09 12:08:39,693 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c5881548-4338-42e7-855d-9efbf120d3b3
2025-12-09 12:08:39,705 - INFO - Verified VN network id 13 for VN e3d36cf7-245b-43fa-bad3-843eb4adb334
2025-12-09 12:08:39,705 - INFO - Verifications in API Server for VN ctest-vn-41975647 passed
2025-12-09 12:08:39,705 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e3d36cf7-245b-43fa-bad3-843eb4adb334
2025-12-09 12:08:39,717 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c5881548-4338-42e7-855d-9efbf120d3b3
2025-12-09 12:08:39,723 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c5881548-4338-42e7-855d-9efbf120d3b3
2025-12-09 12:08:39,730 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/827df9e1-b095-4d73-8c5f-c792a8795c4d
2025-12-09 12:08:39,742 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-52793887:ctest-vn-41975647', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-52793887', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16416584875418272762', 'uuid-lslong': '13462249115994665780'}, 'enable': 'true', 'created': '2025-12-09T12:08:37', 'last-modified': '2025-12-09T12:08:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.275072'}
2025-12-09 12:08:39,749 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-09 12:08:39,749 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41975647 passed
2025-12-09 12:08:39,749 - DEBUG - ====Verifying policy data for ctest-vn-41975647 in API_Server ======
2025-12-09 12:08:39,751 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-09 12:08:39,758 - DEBUG - Requesting: http://10.0.0.38:8082/domain/74950727-4669-4385-884c-f729302b5d4d
2025-12-09 12:08:39,770 - DEBUG - Requesting: http://10.0.0.38:8082/project/a480bafb-4c6f-4008-a762-41902fb01831
2025-12-09 12:08:39,837 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e3d36cf7-245b-43fa-bad3-843eb4adb334
2025-12-09 12:08:39,845 - DEBUG - ==>Verifying data for policy with id: d1474e93-3c44-4fd2-9a9c-b8b0621b3c4d, fqn: ['default-domain', 'ctest-TestBasicPolicy-52793887', 'ctest-policy-allow-all-38580923']
2025-12-09 12:08:39,845 - INFO - VN ctest-vn-41975647 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-09 12:08:39,845 - DEBUG - Verifying the vn in opserver
2025-12-09 12:08:39,845 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-52793887:ctest-vn-41975647 virtual network link through opserver 10.0.0.38
2025-12-09 12:08:39,845 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-12-09 12:08:39,853 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-52793887:ctest-vn-41975647', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-52793887:ctest-vn-41975647?flat'}
2025-12-09 12:08:39,853 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-52793887:ctest-vn-41975647 is found in opserver
2025-12-09 12:08:39,863 - DEBUG - Do not have enough data to verify VN in agent
2025-12-09 12:08:39,867 - DEBUG - VRF ids for VN ctest-vn-41975647: {}
2025-12-09 12:08:39,919 - DEBUG - Services list from nova: [