2025-10-09 14:51:16,376 - INFO - Domain Default found not creating
2025-10-09 14:51:16,524 - INFO - Project ctest-TestBasicPolicy-53727952 not found, creating it
2025-10-09 14:51:16,971 - INFO - Created Project:ctest-TestBasicPolicy-53727952, ID : 8bee2cfb-6639-4c37-a976-16bc9bd5cbcc
2025-10-09 14:51:18,404 - INFO - ================================================================================
2025-10-09 14:51:18,404 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-09 14:51:18,404 - 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-09 14:51:18,661 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.14': '0'}} with
2025-10-09 14:51:18,661 - INFO - Initial checks done. Running the testcase now
2025-10-09 14:51:18,661 - INFO -
2025-10-09 14:51:19,249 - DEBUG - Response for create_network : {'network': {'id': '513cc511-fc20-478a-a112-a521f12cd1b6', 'name': 'ctest-vn-15479907', 'tenant_id': '8bee2cfb66394c37a97616bc9bd5cbcc', 'project_id': '8bee2cfb66394c37a97616bc9bd5cbcc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53727952', 'ctest-vn-15479907'], 'port_security_enabled': True, 'description': ''}}
2025-10-09 14:51:19,429 - DEBUG - Response for create_subnet : {'subnet': {'id': '45708e1e-1b73-44c2-8bc3-398945c099dc', 'name': '', 'tenant_id': '8bee2cfb66394c37a97616bc9bd5cbcc', 'network_id': '513cc511-fc20-478a-a112-a521f12cd1b6', 'ip_version': 4, 'cidr': '122.138.14.64/26', 'allocation_pools': [{'start': '122.138.14.66', 'end': '122.138.14.126'}], 'gateway_ip': '122.138.14.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '122.138.14.66', 'tags': [], 'project_id': '8bee2cfb66394c37a97616bc9bd5cbcc'}}
2025-10-09 14:51:19,447 - INFO - Created VN ctest-vn-15479907
2025-10-09 14:51:19,500 - DEBUG - VN ctest-vn-15479907 UUID is 513cc511-fc20-478a-a112-a521f12cd1b6
2025-10-09 14:51:19,773 - DEBUG - Response for create_network : {'network': {'id': '005ecaed-87a2-4e13-9919-1852c2239200', 'name': 'ctest-vn-63545594', 'tenant_id': '8bee2cfb66394c37a97616bc9bd5cbcc', 'project_id': '8bee2cfb66394c37a97616bc9bd5cbcc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53727952', 'ctest-vn-63545594'], 'port_security_enabled': True, 'description': ''}}
2025-10-09 14:51:19,938 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd557133c-7c24-4206-bf3f-3dd45f6f3c1c', 'name': '', 'tenant_id': '8bee2cfb66394c37a97616bc9bd5cbcc', 'network_id': '005ecaed-87a2-4e13-9919-1852c2239200', 'ip_version': 4, 'cidr': '121.189.77.192/26', 'allocation_pools': [{'start': '121.189.77.194', 'end': '121.189.77.254'}], 'gateway_ip': '121.189.77.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '121.189.77.194', 'tags': [], 'project_id': '8bee2cfb66394c37a97616bc9bd5cbcc'}}
2025-10-09 14:51:19,956 - INFO - Created VN ctest-vn-63545594
2025-10-09 14:51:20,008 - DEBUG - VN ctest-vn-63545594 UUID is 005ecaed-87a2-4e13-9919-1852c2239200
2025-10-09 14:51:20,121 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-53727952:ctest-vn-15479907, 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-53727952:ctest-vn-63545594, 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-09 14:51:20,413 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '513cc511-fc20-478a-a112-a521f12cd1b6', 'name': 'ctest-vn-15479907', 'tenant_id': '8bee2cfb66394c37a97616bc9bd5cbcc', 'project_id': '8bee2cfb66394c37a97616bc9bd5cbcc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['45708e1e-1b73-44c2-8bc3-398945c099dc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53727952', 'ctest-vn-15479907'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-53727952', 'ctest-policy-allow-all-63522213']], 'subnet_ipam': [{'subnet_cidr': '122.138.14.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-09 14:51:20,641 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '005ecaed-87a2-4e13-9919-1852c2239200', 'name': 'ctest-vn-63545594', 'tenant_id': '8bee2cfb66394c37a97616bc9bd5cbcc', 'project_id': '8bee2cfb66394c37a97616bc9bd5cbcc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d557133c-7c24-4206-bf3f-3dd45f6f3c1c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53727952', 'ctest-vn-63545594'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-53727952', 'ctest-policy-allow-all-63522213']], 'subnet_ipam': [{'subnet_cidr': '121.189.77.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-09 14:51:20,812 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-09 14:51:21,105 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-09 14:51:21,136 - DEBUG - Requesting: http://10.0.0.242:8082/domain/e9fdd950-4694-411a-9365-540c867da33b
2025-10-09 14:51:21,148 - DEBUG - Requesting: http://10.0.0.242:8082/project/8bee2cfb-6639-4c37-a976-16bc9bd5cbcc
2025-10-09 14:51:21,223 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/513cc511-fc20-478a-a112-a521f12cd1b6
2025-10-09 14:51:21,235 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/513cc511-fc20-478a-a112-a521f12cd1b6
2025-10-09 14:51:21,244 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/d6d729c6-fd91-4026-a6db-7518eed5b6a9
2025-10-09 14:51:21,251 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/d6d729c6-fd91-4026-a6db-7518eed5b6a9
2025-10-09 14:51:21,258 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/d176c940-b61e-48c7-b050-98e075b0785e
2025-10-09 14:51:21,265 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-09 14:51:21,265 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/513cc511-fc20-478a-a112-a521f12cd1b6
2025-10-09 14:51:21,274 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/d6d729c6-fd91-4026-a6db-7518eed5b6a9
2025-10-09 14:51:21,289 - INFO - Verified VN network id 11 for VN 513cc511-fc20-478a-a112-a521f12cd1b6
2025-10-09 14:51:21,289 - INFO - Verifications in API Server for VN ctest-vn-15479907 passed
2025-10-09 14:51:21,289 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/513cc511-fc20-478a-a112-a521f12cd1b6
2025-10-09 14:51:21,298 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/d6d729c6-fd91-4026-a6db-7518eed5b6a9
2025-10-09 14:51:21,305 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/d6d729c6-fd91-4026-a6db-7518eed5b6a9
2025-10-09 14:51:21,311 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/d176c940-b61e-48c7-b050-98e075b0785e
2025-10-09 14:51:21,323 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-53727952:ctest-vn-15479907', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-53727952', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5853770296709891978', 'uuid-lslong': '11606520754885939638'}, 'enable': 'true', 'created': '2025-10-09T14:51:19', 'last-modified': '2025-10-09T14:51:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.933134'}
2025-10-09 14:51:21,328 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-09 14:51:21,328 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-15479907 passed
2025-10-09 14:51:21,329 - DEBUG - ====Verifying policy data for ctest-vn-15479907 in API_Server ======
2025-10-09 14:51:21,329 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-09 14:51:21,334 - DEBUG - Requesting: http://10.0.0.242:8082/domain/e9fdd950-4694-411a-9365-540c867da33b
2025-10-09 14:51:21,344 - DEBUG - Requesting: http://10.0.0.242:8082/project/8bee2cfb-6639-4c37-a976-16bc9bd5cbcc
2025-10-09 14:51:21,416 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/513cc511-fc20-478a-a112-a521f12cd1b6
2025-10-09 14:51:21,425 - DEBUG - ==>Verifying data for policy with id: 3b1fd8bd-5a87-4a95-80b4-621152140f69, fqn: ['default-domain', 'ctest-TestBasicPolicy-53727952', 'ctest-policy-allow-all-63522213']
2025-10-09 14:51:21,425 - INFO - VN ctest-vn-15479907 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-09 14:51:21,425 - DEBUG - Verifying the vn in opserver
2025-10-09 14:51:21,425 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-53727952:ctest-vn-15479907 virtual network link through opserver 10.0.0.242
2025-10-09 14:51:21,425 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-10-09 14:51:21,719 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-10-09 14:51:21,775 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-53727952:ctest-vn-15479907', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-53727952:ctest-vn-15479907?flat'}
2025-10-09 14:51:21,775 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-53727952:ctest-vn-15479907 is found in opserver
2025-10-09 14:51:21,785 - DEBUG - Do not have enough data to verify VN in agent
2025-10-09 14:51:21,789 - DEBUG - VRF ids for VN ctest-vn-15479907: {}
2025-10-09 14:51:21,789 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-09 14:51:21,795 - DEBUG - Requesting: http://10.0.0.242:8082/domain/e9fdd950-4694-411a-9365-540c867da33b
2025-10-09 14:51:21,805 - DEBUG - Requesting: http://10.0.0.242:8082/project/8bee2cfb-6639-4c37-a976-16bc9bd5cbcc
2025-10-09 14:51:21,873 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/005ecaed-87a2-4e13-9919-1852c2239200
2025-10-09 14:51:21,884 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/005ecaed-87a2-4e13-9919-1852c2239200
2025-10-09 14:51:21,893 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/d559dfd0-1249-4a11-a337-5ee09c7d2c9c
2025-10-09 14:51:21,899 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/d559dfd0-1249-4a11-a337-5ee09c7d2c9c
2025-10-09 14:51:21,905 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/ed9f88c0-3798-4623-97cd-63157dda1294
2025-10-09 14:51:21,917 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-09 14:51:21,917 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/005ecaed-87a2-4e13-9919-1852c2239200
2025-10-09 14:51:21,926 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/d559dfd0-1249-4a11-a337-5ee09c7d2c9c
2025-10-09 14:51:21,939 - INFO - Verified VN network id 12 for VN 005ecaed-87a2-4e13-9919-1852c2239200
2025-10-09 14:51:21,939 - INFO - Verifications in API Server for VN ctest-vn-63545594 passed
2025-10-09 14:51:21,939 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/005ecaed-87a2-4e13-9919-1852c2239200
2025-10-09 14:51:21,949 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/d559dfd0-1249-4a11-a337-5ee09c7d2c9c
2025-10-09 14:51:21,956 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/d559dfd0-1249-4a11-a337-5ee09c7d2c9c
2025-10-09 14:51:21,963 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/ed9f88c0-3798-4623-97cd-63157dda1294
2025-10-09 14:51:21,974 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-53727952:ctest-vn-63545594', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-53727952', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '26681769342422547', 'uuid-lslong': '11031875505944236544'}, 'enable': 'true', 'created': '2025-10-09T14:51:19', 'last-modified': '2025-10-09T14:51:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.357955'}
2025-10-09 14:51:21,981 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-09 14:51:21,981 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-63545594 passed
2025-10-09 14:51:21,981 - DEBUG - ====Verifying policy data for ctest-vn-63545594 in API_Server ======
2025-10-09 14:51:21,981 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-09 14:51:21,987 - DEBUG - Requesting: http://10.0.0.242:8082/domain/e9fdd950-4694-411a-9365-540c867da33b
2025-10-09 14:51:21,999 - DEBUG - Requesting: http://10.0.0.242:8082/project/8bee2cfb-6639-4c37-a976-16bc9bd5cbcc
2025-10-09 14:51:22,071 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/005ecaed-87a2-4e13-9919-1852c2239200
2025-10-09 14:51:22,080 - DEBUG - ==>Verifying data for policy with id: 3b1fd8bd-5a87-4a95-80b4-621152140f69, fqn: ['default-domain', 'ctest-TestBasicPolicy-53727952', 'ctest-policy-allow-all-63522213']
2025-10-09 14:51:22,080 - INFO - VN ctest-vn-63545594 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-09 14:51:22,080 - DEBUG - Verifying the vn in opserver
2025-10-09 14:51:22,080 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-53727952:ctest-vn-63545594 virtual network link through opserver 10.0.0.242
2025-10-09 14:51:22,080 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-10-09 14:51:22,089 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-53727952:ctest-vn-63545594', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-53727952:ctest-vn-63545594?flat'}
2025-10-09 14:51:22,090 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-53727952:ctest-vn-63545594 is found in opserver
2025-10-09 14:51:22,099 - DEBUG - Do not have enough data to verify VN in agent
2025-10-09 14:51:22,103 - DEBUG - VRF ids for VN ctest-vn-63545594: {}
2025-10-09 14:51:22,161 - DEBUG - Services list from nova: [