2025-10-27 09:04:28,849 - INFO - Domain Default found not creating
2025-10-27 09:04:29,012 - INFO - Project ctest-TestBasicPolicy-35234568 not found, creating it
2025-10-27 09:04:29,511 - INFO - Created Project:ctest-TestBasicPolicy-35234568, ID : 8f9bd5e8-b8db-4f0e-935e-b60bcb4964d4
2025-10-27 09:04:31,097 - INFO - ================================================================================
2025-10-27 09:04:31,097 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-27 09:04:31,097 - 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-27 09:04:31,363 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.17': '0'}} with
2025-10-27 09:04:31,364 - INFO - Initial checks done. Running the testcase now
2025-10-27 09:04:31,364 - INFO -
2025-10-27 09:04:31,971 - DEBUG - Response for create_network : {'network': {'id': '5757a4f8-bc67-411f-88e1-1e16c71e1b91', 'name': 'ctest-vn-41028546', 'tenant_id': '8f9bd5e8b8db4f0e935eb60bcb4964d4', 'project_id': '8f9bd5e8b8db4f0e935eb60bcb4964d4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35234568', 'ctest-vn-41028546'], 'port_security_enabled': True, 'description': ''}}
2025-10-27 09:04:32,203 - DEBUG - Response for create_subnet : {'subnet': {'id': '87ea2d48-27d9-4324-a3b1-8b4a5a9555f8', 'name': '', 'tenant_id': '8f9bd5e8b8db4f0e935eb60bcb4964d4', 'network_id': '5757a4f8-bc67-411f-88e1-1e16c71e1b91', 'ip_version': 4, 'cidr': '209.96.63.128/26', 'allocation_pools': [{'start': '209.96.63.130', 'end': '209.96.63.190'}], 'gateway_ip': '209.96.63.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '209.96.63.130', 'tags': [], 'project_id': '8f9bd5e8b8db4f0e935eb60bcb4964d4'}}
2025-10-27 09:04:32,225 - INFO - Created VN ctest-vn-41028546
2025-10-27 09:04:32,280 - DEBUG - VN ctest-vn-41028546 UUID is 5757a4f8-bc67-411f-88e1-1e16c71e1b91
2025-10-27 09:04:32,585 - DEBUG - Response for create_network : {'network': {'id': '74db8313-3bc2-4f05-8462-56b74434e5d3', 'name': 'ctest-vn-95038397', 'tenant_id': '8f9bd5e8b8db4f0e935eb60bcb4964d4', 'project_id': '8f9bd5e8b8db4f0e935eb60bcb4964d4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35234568', 'ctest-vn-95038397'], 'port_security_enabled': True, 'description': ''}}
2025-10-27 09:04:32,820 - DEBUG - Response for create_subnet : {'subnet': {'id': '70ae8104-2c90-49db-ad8f-4eb960cd0817', 'name': '', 'tenant_id': '8f9bd5e8b8db4f0e935eb60bcb4964d4', 'network_id': '74db8313-3bc2-4f05-8462-56b74434e5d3', 'ip_version': 4, 'cidr': '29.109.197.192/26', 'allocation_pools': [{'start': '29.109.197.194', 'end': '29.109.197.254'}], 'gateway_ip': '29.109.197.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '29.109.197.194', 'tags': [], 'project_id': '8f9bd5e8b8db4f0e935eb60bcb4964d4'}}
2025-10-27 09:04:32,840 - INFO - Created VN ctest-vn-95038397
2025-10-27 09:04:32,892 - DEBUG - VN ctest-vn-95038397 UUID is 74db8313-3bc2-4f05-8462-56b74434e5d3
2025-10-27 09:04:33,013 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-35234568:ctest-vn-41028546, 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-35234568:ctest-vn-95038397, 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-27 09:04:33,335 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5757a4f8-bc67-411f-88e1-1e16c71e1b91', 'name': 'ctest-vn-41028546', 'tenant_id': '8f9bd5e8b8db4f0e935eb60bcb4964d4', 'project_id': '8f9bd5e8b8db4f0e935eb60bcb4964d4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['87ea2d48-27d9-4324-a3b1-8b4a5a9555f8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35234568', 'ctest-vn-41028546'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-35234568', 'ctest-policy-allow-all-37563925']], 'subnet_ipam': [{'subnet_cidr': '209.96.63.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-27 09:04:33,590 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '74db8313-3bc2-4f05-8462-56b74434e5d3', 'name': 'ctest-vn-95038397', 'tenant_id': '8f9bd5e8b8db4f0e935eb60bcb4964d4', 'project_id': '8f9bd5e8b8db4f0e935eb60bcb4964d4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['70ae8104-2c90-49db-ad8f-4eb960cd0817'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35234568', 'ctest-vn-95038397'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-35234568', 'ctest-policy-allow-all-37563925']], 'subnet_ipam': [{'subnet_cidr': '29.109.197.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-27 09:04:33,756 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-10-27 09:04:34,116 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-10-27 09:04:34,149 - DEBUG - Requesting: http://10.0.0.27:8082/domain/7c02ca6d-793c-4313-b0d9-2191e6bd5d86
2025-10-27 09:04:34,163 - DEBUG - Requesting: http://10.0.0.27:8082/project/8f9bd5e8-b8db-4f0e-935e-b60bcb4964d4
2025-10-27 09:04:34,244 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/5757a4f8-bc67-411f-88e1-1e16c71e1b91
2025-10-27 09:04:34,259 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/5757a4f8-bc67-411f-88e1-1e16c71e1b91
2025-10-27 09:04:34,271 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/1e953dc7-1fdf-4e82-9ddd-d13896377801
2025-10-27 09:04:34,279 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/1e953dc7-1fdf-4e82-9ddd-d13896377801
2025-10-27 09:04:34,286 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/356492ad-0e17-4752-b014-a4ccea2dffb2
2025-10-27 09:04:34,293 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-27 09:04:34,293 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/5757a4f8-bc67-411f-88e1-1e16c71e1b91
2025-10-27 09:04:34,304 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/1e953dc7-1fdf-4e82-9ddd-d13896377801
2025-10-27 09:04:34,324 - INFO - Verified VN network id 12 for VN 5757a4f8-bc67-411f-88e1-1e16c71e1b91
2025-10-27 09:04:34,325 - INFO - Verifications in API Server for VN ctest-vn-41028546 passed
2025-10-27 09:04:34,325 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/5757a4f8-bc67-411f-88e1-1e16c71e1b91
2025-10-27 09:04:34,338 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/1e953dc7-1fdf-4e82-9ddd-d13896377801
2025-10-27 09:04:34,351 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/1e953dc7-1fdf-4e82-9ddd-d13896377801
2025-10-27 09:04:34,363 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/356492ad-0e17-4752-b014-a4ccea2dffb2
2025-10-27 09:04:34,381 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35234568:ctest-vn-41028546', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35234568', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6293680392493285663', 'uuid-lslong': '9863197742096849809'}, 'enable': 'true', 'created': '2025-10-27T09:04:31', 'last-modified': '2025-10-27T09:04:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.074721'}
2025-10-27 09:04:34,391 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-27 09:04:34,391 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41028546 passed
2025-10-27 09:04:34,392 - DEBUG - ====Verifying policy data for ctest-vn-41028546 in API_Server ======
2025-10-27 09:04:34,392 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-10-27 09:04:34,400 - DEBUG - Requesting: http://10.0.0.27:8082/domain/7c02ca6d-793c-4313-b0d9-2191e6bd5d86
2025-10-27 09:04:34,418 - DEBUG - Requesting: http://10.0.0.27:8082/project/8f9bd5e8-b8db-4f0e-935e-b60bcb4964d4
2025-10-27 09:04:34,495 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/5757a4f8-bc67-411f-88e1-1e16c71e1b91
2025-10-27 09:04:34,509 - DEBUG - ==>Verifying data for policy with id: 9aeca0d9-f61b-465a-afc0-fb88b1c98271, fqn: ['default-domain', 'ctest-TestBasicPolicy-35234568', 'ctest-policy-allow-all-37563925']
2025-10-27 09:04:34,509 - INFO - VN ctest-vn-41028546 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-27 09:04:34,509 - DEBUG - Verifying the vn in opserver
2025-10-27 09:04:34,509 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35234568:ctest-vn-41028546 virtual network link through opserver 10.0.0.27
2025-10-27 09:04:34,510 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-10-27 09:04:34,864 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-10-27 09:04:34,927 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35234568:ctest-vn-41028546', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35234568:ctest-vn-41028546?flat'}
2025-10-27 09:04:34,927 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-35234568:ctest-vn-41028546 is found in opserver
2025-10-27 09:04:34,940 - DEBUG - Do not have enough data to verify VN in agent
2025-10-27 09:04:34,945 - DEBUG - VRF ids for VN ctest-vn-41028546: {}
2025-10-27 09:04:34,945 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-10-27 09:04:34,951 - DEBUG - Requesting: http://10.0.0.27:8082/domain/7c02ca6d-793c-4313-b0d9-2191e6bd5d86
2025-10-27 09:04:34,965 - DEBUG - Requesting: http://10.0.0.27:8082/project/8f9bd5e8-b8db-4f0e-935e-b60bcb4964d4
2025-10-27 09:04:35,038 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/74db8313-3bc2-4f05-8462-56b74434e5d3
2025-10-27 09:04:35,054 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/74db8313-3bc2-4f05-8462-56b74434e5d3
2025-10-27 09:04:35,067 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/ccd4ab47-d3b7-4fcc-8811-cf8f77e52c71
2025-10-27 09:04:35,076 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/ccd4ab47-d3b7-4fcc-8811-cf8f77e52c71
2025-10-27 09:04:35,084 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/8b8b7ddc-7c8b-4545-9653-745a43bfb758
2025-10-27 09:04:35,091 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-27 09:04:35,091 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/74db8313-3bc2-4f05-8462-56b74434e5d3
2025-10-27 09:04:35,103 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/ccd4ab47-d3b7-4fcc-8811-cf8f77e52c71
2025-10-27 09:04:35,121 - INFO - Verified VN network id 13 for VN 74db8313-3bc2-4f05-8462-56b74434e5d3
2025-10-27 09:04:35,121 - INFO - Verifications in API Server for VN ctest-vn-95038397 passed
2025-10-27 09:04:35,122 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/74db8313-3bc2-4f05-8462-56b74434e5d3
2025-10-27 09:04:35,132 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/ccd4ab47-d3b7-4fcc-8811-cf8f77e52c71
2025-10-27 09:04:35,141 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/ccd4ab47-d3b7-4fcc-8811-cf8f77e52c71
2025-10-27 09:04:35,150 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/8b8b7ddc-7c8b-4545-9653-745a43bfb758
2025-10-27 09:04:35,164 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35234568:ctest-vn-95038397', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35234568', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8420468046929481477', 'uuid-lslong': '9539282305847453139'}, 'enable': 'true', 'created': '2025-10-27T09:04:32', 'last-modified': '2025-10-27T09:04:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.603445'}
2025-10-27 09:04:35,171 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-27 09:04:35,171 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-95038397 passed
2025-10-27 09:04:35,171 - DEBUG - ====Verifying policy data for ctest-vn-95038397 in API_Server ======
2025-10-27 09:04:35,171 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-10-27 09:04:35,180 - DEBUG - Requesting: http://10.0.0.27:8082/domain/7c02ca6d-793c-4313-b0d9-2191e6bd5d86
2025-10-27 09:04:35,193 - DEBUG - Requesting: http://10.0.0.27:8082/project/8f9bd5e8-b8db-4f0e-935e-b60bcb4964d4
2025-10-27 09:04:35,276 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/74db8313-3bc2-4f05-8462-56b74434e5d3
2025-10-27 09:04:35,289 - DEBUG - ==>Verifying data for policy with id: 9aeca0d9-f61b-465a-afc0-fb88b1c98271, fqn: ['default-domain', 'ctest-TestBasicPolicy-35234568', 'ctest-policy-allow-all-37563925']
2025-10-27 09:04:35,289 - INFO - VN ctest-vn-95038397 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-27 09:04:35,289 - DEBUG - Verifying the vn in opserver
2025-10-27 09:04:35,289 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35234568:ctest-vn-95038397 virtual network link through opserver 10.0.0.27
2025-10-27 09:04:35,289 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-10-27 09:04:35,301 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35234568:ctest-vn-95038397', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35234568:ctest-vn-95038397?flat'}
2025-10-27 09:04:35,301 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-35234568:ctest-vn-95038397 is found in opserver
2025-10-27 09:04:35,314 - DEBUG - Do not have enough data to verify VN in agent
2025-10-27 09:04:35,321 - DEBUG - VRF ids for VN ctest-vn-95038397: {}
2025-10-27 09:04:35,388 - DEBUG - Services list from nova: [