2025-10-22 08:26:00,480 - INFO - Domain Default found not creating
2025-10-22 08:26:00,641 - INFO - Project ctest-TestBasicPolicy-04762940 not found, creating it
2025-10-22 08:26:01,151 - INFO - Created Project:ctest-TestBasicPolicy-04762940, ID : 88e8b6dd-2263-4574-81c9-d39ace497807
2025-10-22 08:26:02,587 - INFO - ================================================================================
2025-10-22 08:26:02,587 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-22 08:26:02,587 - 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-22 08:26:02,840 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.254': '0'}} with
2025-10-22 08:26:02,840 - INFO - Initial checks done. Running the testcase now
2025-10-22 08:26:02,841 - INFO -
2025-10-22 08:26:03,390 - DEBUG - Response for create_network : {'network': {'id': '0a3f67d6-e0c1-4842-a4b6-5b4a4e5c5d74', 'name': 'ctest-vn-38821319', 'tenant_id': '88e8b6dd2263457481c9d39ace497807', 'project_id': '88e8b6dd2263457481c9d39ace497807', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04762940', 'ctest-vn-38821319'], 'port_security_enabled': True, 'description': ''}}
2025-10-22 08:26:03,571 - DEBUG - Response for create_subnet : {'subnet': {'id': '43c36b8c-d4d0-4d67-ac60-29b77ce6186c', 'name': '', 'tenant_id': '88e8b6dd2263457481c9d39ace497807', 'network_id': '0a3f67d6-e0c1-4842-a4b6-5b4a4e5c5d74', 'ip_version': 4, 'cidr': '135.179.121.0/26', 'allocation_pools': [{'start': '135.179.121.2', 'end': '135.179.121.62'}], 'gateway_ip': '135.179.121.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '135.179.121.2', 'tags': [], 'project_id': '88e8b6dd2263457481c9d39ace497807'}}
2025-10-22 08:26:03,590 - INFO - Created VN ctest-vn-38821319
2025-10-22 08:26:03,643 - DEBUG - VN ctest-vn-38821319 UUID is 0a3f67d6-e0c1-4842-a4b6-5b4a4e5c5d74
2025-10-22 08:26:03,974 - DEBUG - Response for create_network : {'network': {'id': '54b5e7f4-40cd-460d-ba73-5d28b8b3eb19', 'name': 'ctest-vn-88123184', 'tenant_id': '88e8b6dd2263457481c9d39ace497807', 'project_id': '88e8b6dd2263457481c9d39ace497807', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04762940', 'ctest-vn-88123184'], 'port_security_enabled': True, 'description': ''}}
2025-10-22 08:26:04,197 - DEBUG - Response for create_subnet : {'subnet': {'id': '59e97e6b-1302-4a1e-897d-0d48f853f52b', 'name': '', 'tenant_id': '88e8b6dd2263457481c9d39ace497807', 'network_id': '54b5e7f4-40cd-460d-ba73-5d28b8b3eb19', 'ip_version': 4, 'cidr': '84.235.198.128/26', 'allocation_pools': [{'start': '84.235.198.130', 'end': '84.235.198.190'}], 'gateway_ip': '84.235.198.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '84.235.198.130', 'tags': [], 'project_id': '88e8b6dd2263457481c9d39ace497807'}}
2025-10-22 08:26:04,216 - INFO - Created VN ctest-vn-88123184
2025-10-22 08:26:04,267 - DEBUG - VN ctest-vn-88123184 UUID is 54b5e7f4-40cd-460d-ba73-5d28b8b3eb19
2025-10-22 08:26:04,379 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-04762940:ctest-vn-38821319, 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-04762940:ctest-vn-88123184, 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-22 08:26:04,691 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0a3f67d6-e0c1-4842-a4b6-5b4a4e5c5d74', 'name': 'ctest-vn-38821319', 'tenant_id': '88e8b6dd2263457481c9d39ace497807', 'project_id': '88e8b6dd2263457481c9d39ace497807', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['43c36b8c-d4d0-4d67-ac60-29b77ce6186c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04762940', 'ctest-vn-38821319'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04762940', 'ctest-policy-allow-all-62351219']], 'subnet_ipam': [{'subnet_cidr': '135.179.121.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-22 08:26:04,915 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '54b5e7f4-40cd-460d-ba73-5d28b8b3eb19', 'name': 'ctest-vn-88123184', 'tenant_id': '88e8b6dd2263457481c9d39ace497807', 'project_id': '88e8b6dd2263457481c9d39ace497807', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['59e97e6b-1302-4a1e-897d-0d48f853f52b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04762940', 'ctest-vn-88123184'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04762940', 'ctest-policy-allow-all-62351219']], 'subnet_ipam': [{'subnet_cidr': '84.235.198.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-22 08:26:05,083 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-10-22 08:26:05,378 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-10-22 08:26:05,412 - DEBUG - Requesting: http://10.0.0.141:8082/domain/df5e11c4-a1d4-42ad-a3e9-10e45e18461a
2025-10-22 08:26:05,425 - DEBUG - Requesting: http://10.0.0.141:8082/project/88e8b6dd-2263-4574-81c9-d39ace497807
2025-10-22 08:26:05,499 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/0a3f67d6-e0c1-4842-a4b6-5b4a4e5c5d74
2025-10-22 08:26:05,511 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/0a3f67d6-e0c1-4842-a4b6-5b4a4e5c5d74
2025-10-22 08:26:05,520 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/1cb2c54c-e121-40b9-be3c-97169e77b0a9
2025-10-22 08:26:05,528 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/1cb2c54c-e121-40b9-be3c-97169e77b0a9
2025-10-22 08:26:05,535 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/a412f97c-0d62-4599-9bc6-9694dbac9647
2025-10-22 08:26:05,542 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-22 08:26:05,542 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/0a3f67d6-e0c1-4842-a4b6-5b4a4e5c5d74
2025-10-22 08:26:05,551 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/1cb2c54c-e121-40b9-be3c-97169e77b0a9
2025-10-22 08:26:05,568 - INFO - Verified VN network id 11 for VN 0a3f67d6-e0c1-4842-a4b6-5b4a4e5c5d74
2025-10-22 08:26:05,568 - INFO - Verifications in API Server for VN ctest-vn-38821319 passed
2025-10-22 08:26:05,568 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/0a3f67d6-e0c1-4842-a4b6-5b4a4e5c5d74
2025-10-22 08:26:05,579 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/1cb2c54c-e121-40b9-be3c-97169e77b0a9
2025-10-22 08:26:05,587 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/1cb2c54c-e121-40b9-be3c-97169e77b0a9
2025-10-22 08:26:05,598 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/a412f97c-0d62-4599-9bc6-9694dbac9647
2025-10-22 08:26:05,613 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04762940:ctest-vn-38821319', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04762940', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '738423036503476290', 'uuid-lslong': '11868774242681904500'}, 'enable': 'true', 'created': '2025-10-22T08:26:03', 'last-modified': '2025-10-22T08:26:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.945752'}
2025-10-22 08:26:05,621 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-22 08:26:05,621 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38821319 passed
2025-10-22 08:26:05,621 - DEBUG - ====Verifying policy data for ctest-vn-38821319 in API_Server ======
2025-10-22 08:26:05,621 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-10-22 08:26:05,627 - DEBUG - Requesting: http://10.0.0.141:8082/domain/df5e11c4-a1d4-42ad-a3e9-10e45e18461a
2025-10-22 08:26:05,638 - DEBUG - Requesting: http://10.0.0.141:8082/project/88e8b6dd-2263-4574-81c9-d39ace497807
2025-10-22 08:26:05,708 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/0a3f67d6-e0c1-4842-a4b6-5b4a4e5c5d74
2025-10-22 08:26:05,718 - DEBUG - ==>Verifying data for policy with id: 9463e628-acdc-4209-b7e4-54a7a951aa67, fqn: ['default-domain', 'ctest-TestBasicPolicy-04762940', 'ctest-policy-allow-all-62351219']
2025-10-22 08:26:05,718 - INFO - VN ctest-vn-38821319 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-22 08:26:05,718 - DEBUG - Verifying the vn in opserver
2025-10-22 08:26:05,718 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04762940:ctest-vn-38821319 virtual network link through opserver 10.0.0.141
2025-10-22 08:26:05,718 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-10-22 08:26:06,012 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-10-22 08:26:06,074 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04762940:ctest-vn-38821319', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04762940:ctest-vn-38821319?flat'}
2025-10-22 08:26:06,074 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04762940:ctest-vn-38821319 is found in opserver
2025-10-22 08:26:06,084 - DEBUG - Do not have enough data to verify VN in agent
2025-10-22 08:26:06,088 - DEBUG - VRF ids for VN ctest-vn-38821319: {}
2025-10-22 08:26:06,089 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-10-22 08:26:06,094 - DEBUG - Requesting: http://10.0.0.141:8082/domain/df5e11c4-a1d4-42ad-a3e9-10e45e18461a
2025-10-22 08:26:06,105 - DEBUG - Requesting: http://10.0.0.141:8082/project/88e8b6dd-2263-4574-81c9-d39ace497807
2025-10-22 08:26:06,174 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/54b5e7f4-40cd-460d-ba73-5d28b8b3eb19
2025-10-22 08:26:06,186 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/54b5e7f4-40cd-460d-ba73-5d28b8b3eb19
2025-10-22 08:26:06,195 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2db4d6e0-1cb0-4502-9dd6-f5c3ad62e6f9
2025-10-22 08:26:06,202 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2db4d6e0-1cb0-4502-9dd6-f5c3ad62e6f9
2025-10-22 08:26:06,211 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/f3acd4e0-42a5-4b3c-bb15-6c3917ade9c7
2025-10-22 08:26:06,219 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-22 08:26:06,219 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/54b5e7f4-40cd-460d-ba73-5d28b8b3eb19
2025-10-22 08:26:06,229 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2db4d6e0-1cb0-4502-9dd6-f5c3ad62e6f9
2025-10-22 08:26:06,247 - INFO - Verified VN network id 12 for VN 54b5e7f4-40cd-460d-ba73-5d28b8b3eb19
2025-10-22 08:26:06,247 - INFO - Verifications in API Server for VN ctest-vn-88123184 passed
2025-10-22 08:26:06,247 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/54b5e7f4-40cd-460d-ba73-5d28b8b3eb19
2025-10-22 08:26:06,256 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2db4d6e0-1cb0-4502-9dd6-f5c3ad62e6f9
2025-10-22 08:26:06,262 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2db4d6e0-1cb0-4502-9dd6-f5c3ad62e6f9
2025-10-22 08:26:06,270 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/f3acd4e0-42a5-4b3c-bb15-6c3917ade9c7
2025-10-22 08:26:06,283 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04762940:ctest-vn-88123184', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04762940', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6104039906215806477', 'uuid-lslong': '13435184542855195417'}, 'enable': 'true', 'created': '2025-10-22T08:26:03', 'last-modified': '2025-10-22T08:26:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.386898'}
2025-10-22 08:26:06,290 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-22 08:26:06,290 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-88123184 passed
2025-10-22 08:26:06,290 - DEBUG - ====Verifying policy data for ctest-vn-88123184 in API_Server ======
2025-10-22 08:26:06,291 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-10-22 08:26:06,298 - DEBUG - Requesting: http://10.0.0.141:8082/domain/df5e11c4-a1d4-42ad-a3e9-10e45e18461a
2025-10-22 08:26:06,309 - DEBUG - Requesting: http://10.0.0.141:8082/project/88e8b6dd-2263-4574-81c9-d39ace497807
2025-10-22 08:26:06,383 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/54b5e7f4-40cd-460d-ba73-5d28b8b3eb19
2025-10-22 08:26:06,393 - DEBUG - ==>Verifying data for policy with id: 9463e628-acdc-4209-b7e4-54a7a951aa67, fqn: ['default-domain', 'ctest-TestBasicPolicy-04762940', 'ctest-policy-allow-all-62351219']
2025-10-22 08:26:06,393 - INFO - VN ctest-vn-88123184 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-22 08:26:06,393 - DEBUG - Verifying the vn in opserver
2025-10-22 08:26:06,393 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04762940:ctest-vn-88123184 virtual network link through opserver 10.0.0.141
2025-10-22 08:26:06,393 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-10-22 08:26:06,404 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04762940:ctest-vn-88123184', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04762940:ctest-vn-88123184?flat'}
2025-10-22 08:26:06,404 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04762940:ctest-vn-88123184 is found in opserver
2025-10-22 08:26:06,413 - DEBUG - Do not have enough data to verify VN in agent
2025-10-22 08:26:06,418 - DEBUG - VRF ids for VN ctest-vn-88123184: {}
2025-10-22 08:26:06,478 - DEBUG - Services list from nova: [