2025-07-16 16:51:24,801 - INFO - Domain Default found not creating
2025-07-16 16:51:25,003 - INFO - Project ctest-TestBasicPolicy-68126720 not found, creating it
2025-07-16 16:51:25,524 - INFO - Created Project:ctest-TestBasicPolicy-68126720, ID : 1401e611-55de-4496-9a31-cd67c739f2f6
2025-07-16 16:51:27,169 - INFO - ================================================================================
2025-07-16 16:51:27,169 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-16 16:51:27,169 - 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-07-16 16:51:27,434 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.193': '0'}} with
2025-07-16 16:51:27,434 - INFO - Initial checks done. Running the testcase now
2025-07-16 16:51:27,434 - INFO -
2025-07-16 16:51:28,055 - DEBUG - Response for create_network : {'network': {'id': 'bf3ae09b-cf55-48b5-a761-4adb72dccb17', 'name': 'ctest-vn-96007683', 'tenant_id': '1401e61155de44969a31cd67c739f2f6', 'project_id': '1401e61155de44969a31cd67c739f2f6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68126720', 'ctest-vn-96007683'], 'port_security_enabled': True, 'description': ''}}
2025-07-16 16:51:28,255 - DEBUG - Response for create_subnet : {'subnet': {'id': '957cfcbb-3b9d-4b7c-b4ce-3238f10a42a3', 'name': '', 'tenant_id': '1401e61155de44969a31cd67c739f2f6', 'network_id': 'bf3ae09b-cf55-48b5-a761-4adb72dccb17', 'ip_version': 4, 'cidr': '7.250.233.0/26', 'allocation_pools': [{'start': '7.250.233.2', 'end': '7.250.233.62'}], 'gateway_ip': '7.250.233.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '7.250.233.2', 'tags': [], 'project_id': '1401e61155de44969a31cd67c739f2f6'}}
2025-07-16 16:51:28,276 - INFO - Created VN ctest-vn-96007683
2025-07-16 16:51:28,331 - DEBUG - VN ctest-vn-96007683 UUID is bf3ae09b-cf55-48b5-a761-4adb72dccb17
2025-07-16 16:51:28,666 - DEBUG - Response for create_network : {'network': {'id': '090baa21-8c39-403e-b7a7-293398c1e153', 'name': 'ctest-vn-22613501', 'tenant_id': '1401e61155de44969a31cd67c739f2f6', 'project_id': '1401e61155de44969a31cd67c739f2f6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68126720', 'ctest-vn-22613501'], 'port_security_enabled': True, 'description': ''}}
2025-07-16 16:51:28,884 - DEBUG - Response for create_subnet : {'subnet': {'id': '09733a82-8aa5-42f1-8185-e2e57f30ffad', 'name': '', 'tenant_id': '1401e61155de44969a31cd67c739f2f6', 'network_id': '090baa21-8c39-403e-b7a7-293398c1e153', 'ip_version': 4, 'cidr': '215.193.71.128/26', 'allocation_pools': [{'start': '215.193.71.130', 'end': '215.193.71.190'}], 'gateway_ip': '215.193.71.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '215.193.71.130', 'tags': [], 'project_id': '1401e61155de44969a31cd67c739f2f6'}}
2025-07-16 16:51:28,907 - INFO - Created VN ctest-vn-22613501
2025-07-16 16:51:28,963 - DEBUG - VN ctest-vn-22613501 UUID is 090baa21-8c39-403e-b7a7-293398c1e153
2025-07-16 16:51:29,093 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-68126720:ctest-vn-96007683, 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-68126720:ctest-vn-22613501, 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-07-16 16:51:29,406 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bf3ae09b-cf55-48b5-a761-4adb72dccb17', 'name': 'ctest-vn-96007683', 'tenant_id': '1401e61155de44969a31cd67c739f2f6', 'project_id': '1401e61155de44969a31cd67c739f2f6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['957cfcbb-3b9d-4b7c-b4ce-3238f10a42a3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68126720', 'ctest-vn-96007683'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68126720', 'ctest-policy-allow-all-54123060']], 'subnet_ipam': [{'subnet_cidr': '7.250.233.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-16 16:51:29,701 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '090baa21-8c39-403e-b7a7-293398c1e153', 'name': 'ctest-vn-22613501', 'tenant_id': '1401e61155de44969a31cd67c739f2f6', 'project_id': '1401e61155de44969a31cd67c739f2f6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['09733a82-8aa5-42f1-8185-e2e57f30ffad'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68126720', 'ctest-vn-22613501'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68126720', 'ctest-policy-allow-all-54123060']], 'subnet_ipam': [{'subnet_cidr': '215.193.71.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-16 16:51:29,863 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-07-16 16:51:30,190 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-07-16 16:51:30,224 - DEBUG - Requesting: http://10.0.0.33:8082/domain/a8fe2a09-3b4d-42dc-8fd2-c1f568d42f20
2025-07-16 16:51:30,244 - DEBUG - Requesting: http://10.0.0.33:8082/project/1401e611-55de-4496-9a31-cd67c739f2f6
2025-07-16 16:51:30,325 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/bf3ae09b-cf55-48b5-a761-4adb72dccb17
2025-07-16 16:51:30,340 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/bf3ae09b-cf55-48b5-a761-4adb72dccb17
2025-07-16 16:51:30,354 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/04429eff-f9a1-412d-957c-b6a57804522b
2025-07-16 16:51:30,363 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/04429eff-f9a1-412d-957c-b6a57804522b
2025-07-16 16:51:30,372 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/270b2893-cf2d-42d6-85b6-05042c183268
2025-07-16 16:51:30,382 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-16 16:51:30,382 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/bf3ae09b-cf55-48b5-a761-4adb72dccb17
2025-07-16 16:51:30,395 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/04429eff-f9a1-412d-957c-b6a57804522b
2025-07-16 16:51:30,413 - INFO - Verified VN network id 8 for VN bf3ae09b-cf55-48b5-a761-4adb72dccb17
2025-07-16 16:51:30,413 - INFO - Verifications in API Server for VN ctest-vn-96007683 passed
2025-07-16 16:51:30,414 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/bf3ae09b-cf55-48b5-a761-4adb72dccb17
2025-07-16 16:51:30,426 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/04429eff-f9a1-412d-957c-b6a57804522b
2025-07-16 16:51:30,437 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/04429eff-f9a1-412d-957c-b6a57804522b
2025-07-16 16:51:30,448 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/270b2893-cf2d-42d6-85b6-05042c183268
2025-07-16 16:51:30,464 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68126720:ctest-vn-96007683', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68126720', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13779572969696479413', 'uuid-lslong': '12061003583460264727'}, 'enable': 'true', 'created': '2025-07-16T16:51:28', 'last-modified': '2025-07-16T16:51:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.083285'}
2025-07-16 16:51:30,475 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-16 16:51:30,475 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-96007683 passed
2025-07-16 16:51:30,475 - DEBUG - ====Verifying policy data for ctest-vn-96007683 in API_Server ======
2025-07-16 16:51:30,475 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-07-16 16:51:30,485 - DEBUG - Requesting: http://10.0.0.33:8082/domain/a8fe2a09-3b4d-42dc-8fd2-c1f568d42f20
2025-07-16 16:51:30,501 - DEBUG - Requesting: http://10.0.0.33:8082/project/1401e611-55de-4496-9a31-cd67c739f2f6
2025-07-16 16:51:30,589 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/bf3ae09b-cf55-48b5-a761-4adb72dccb17
2025-07-16 16:51:30,603 - DEBUG - ==>Verifying data for policy with id: 6b89c03e-7619-4aa2-90c4-c6d1dd4604b5, fqn: ['default-domain', 'ctest-TestBasicPolicy-68126720', 'ctest-policy-allow-all-54123060']
2025-07-16 16:51:30,603 - INFO - VN ctest-vn-96007683 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-16 16:51:30,603 - DEBUG - Verifying the vn in opserver
2025-07-16 16:51:30,603 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68126720:ctest-vn-96007683 virtual network link through opserver 10.0.0.33
2025-07-16 16:51:30,603 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-07-16 16:51:30,913 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-07-16 16:51:30,986 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68126720:ctest-vn-96007683', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68126720:ctest-vn-96007683?flat'}
2025-07-16 16:51:30,986 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68126720:ctest-vn-96007683 is found in opserver
2025-07-16 16:51:31,000 - DEBUG - Do not have enough data to verify VN in agent
2025-07-16 16:51:31,007 - DEBUG - VRF ids for VN ctest-vn-96007683: {}
2025-07-16 16:51:31,007 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-07-16 16:51:31,017 - DEBUG - Requesting: http://10.0.0.33:8082/domain/a8fe2a09-3b4d-42dc-8fd2-c1f568d42f20
2025-07-16 16:51:31,031 - DEBUG - Requesting: http://10.0.0.33:8082/project/1401e611-55de-4496-9a31-cd67c739f2f6
2025-07-16 16:51:31,109 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/090baa21-8c39-403e-b7a7-293398c1e153
2025-07-16 16:51:31,122 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/090baa21-8c39-403e-b7a7-293398c1e153
2025-07-16 16:51:31,134 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/aee74a2b-ae82-4485-b37d-b6e17c1396e7
2025-07-16 16:51:31,144 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/aee74a2b-ae82-4485-b37d-b6e17c1396e7
2025-07-16 16:51:31,154 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/68a7ce6d-135d-4d4c-9c43-f98cd9df586a
2025-07-16 16:51:31,164 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-16 16:51:31,165 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/090baa21-8c39-403e-b7a7-293398c1e153
2025-07-16 16:51:31,178 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/aee74a2b-ae82-4485-b37d-b6e17c1396e7
2025-07-16 16:51:31,197 - INFO - Verified VN network id 9 for VN 090baa21-8c39-403e-b7a7-293398c1e153
2025-07-16 16:51:31,198 - INFO - Verifications in API Server for VN ctest-vn-22613501 passed
2025-07-16 16:51:31,198 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/090baa21-8c39-403e-b7a7-293398c1e153
2025-07-16 16:51:31,217 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/aee74a2b-ae82-4485-b37d-b6e17c1396e7
2025-07-16 16:51:31,230 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/aee74a2b-ae82-4485-b37d-b6e17c1396e7
2025-07-16 16:51:31,241 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/68a7ce6d-135d-4d4c-9c43-f98cd9df586a
2025-07-16 16:51:31,260 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68126720:ctest-vn-22613501', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68126720', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '651801632148373566', 'uuid-lslong': '13233591331634405715'}, 'enable': 'true', 'created': '2025-07-16T16:51:28', 'last-modified': '2025-07-16T16:51:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.630543'}
2025-07-16 16:51:31,269 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-16 16:51:31,270 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-22613501 passed
2025-07-16 16:51:31,270 - DEBUG - ====Verifying policy data for ctest-vn-22613501 in API_Server ======
2025-07-16 16:51:31,270 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-07-16 16:51:31,278 - DEBUG - Requesting: http://10.0.0.33:8082/domain/a8fe2a09-3b4d-42dc-8fd2-c1f568d42f20
2025-07-16 16:51:31,293 - DEBUG - Requesting: http://10.0.0.33:8082/project/1401e611-55de-4496-9a31-cd67c739f2f6
2025-07-16 16:51:31,374 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/090baa21-8c39-403e-b7a7-293398c1e153
2025-07-16 16:51:31,389 - DEBUG - ==>Verifying data for policy with id: 6b89c03e-7619-4aa2-90c4-c6d1dd4604b5, fqn: ['default-domain', 'ctest-TestBasicPolicy-68126720', 'ctest-policy-allow-all-54123060']
2025-07-16 16:51:31,389 - INFO - VN ctest-vn-22613501 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-16 16:51:31,389 - DEBUG - Verifying the vn in opserver
2025-07-16 16:51:31,389 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68126720:ctest-vn-22613501 virtual network link through opserver 10.0.0.33
2025-07-16 16:51:31,389 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-07-16 16:51:31,404 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68126720:ctest-vn-22613501', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68126720:ctest-vn-22613501?flat'}
2025-07-16 16:51:31,404 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68126720:ctest-vn-22613501 is found in opserver
2025-07-16 16:51:31,425 - DEBUG - Do not have enough data to verify VN in agent
2025-07-16 16:51:31,436 - DEBUG - VRF ids for VN ctest-vn-22613501: {}
2025-07-16 16:51:31,503 - DEBUG - Services list from nova: [