2025-10-29 15:42:41,915 - INFO - Domain Default found not creating
2025-10-29 15:42:42,076 - INFO - Project ctest-TestBasicPolicy-74352274 not found, creating it
2025-10-29 15:42:42,506 - INFO - Created Project:ctest-TestBasicPolicy-74352274, ID : 56421f2a-db8c-41fc-8d0a-f91c0574b1e9
2025-10-29 15:42:43,888 - INFO - ================================================================================
2025-10-29 15:42:43,888 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-29 15:42:43,888 - 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-29 15:42:44,161 - DEBUG - Nothing to compare xmpp stats {'10.0.0.73': {'10.20.0.18': '0'}} with
2025-10-29 15:42:44,161 - INFO - Initial checks done. Running the testcase now
2025-10-29 15:42:44,161 - INFO -
2025-10-29 15:42:44,711 - DEBUG - Response for create_network : {'network': {'id': '949f3674-83c0-4426-b4a1-aede67805412', 'name': 'ctest-vn-70130689', 'tenant_id': '56421f2adb8c41fc8d0af91c0574b1e9', 'project_id': '56421f2adb8c41fc8d0af91c0574b1e9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74352274', 'ctest-vn-70130689'], 'port_security_enabled': True, 'description': ''}}
2025-10-29 15:42:44,877 - DEBUG - Response for create_subnet : {'subnet': {'id': '36f08c59-f322-4d7c-a339-a3e7dd604e94', 'name': '', 'tenant_id': '56421f2adb8c41fc8d0af91c0574b1e9', 'network_id': '949f3674-83c0-4426-b4a1-aede67805412', 'ip_version': 4, 'cidr': '101.234.224.192/26', 'allocation_pools': [{'start': '101.234.224.194', 'end': '101.234.224.254'}], 'gateway_ip': '101.234.224.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '101.234.224.194', 'tags': [], 'project_id': '56421f2adb8c41fc8d0af91c0574b1e9'}}
2025-10-29 15:42:44,895 - INFO - Created VN ctest-vn-70130689
2025-10-29 15:42:44,947 - DEBUG - VN ctest-vn-70130689 UUID is 949f3674-83c0-4426-b4a1-aede67805412
2025-10-29 15:42:45,278 - DEBUG - Response for create_network : {'network': {'id': '32003893-a90b-44b1-ac80-78ee4fe86d38', 'name': 'ctest-vn-22120478', 'tenant_id': '56421f2adb8c41fc8d0af91c0574b1e9', 'project_id': '56421f2adb8c41fc8d0af91c0574b1e9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74352274', 'ctest-vn-22120478'], 'port_security_enabled': True, 'description': ''}}
2025-10-29 15:42:45,452 - DEBUG - Response for create_subnet : {'subnet': {'id': '4d25e8fa-3b45-4a24-b780-1f1b370448fe', 'name': '', 'tenant_id': '56421f2adb8c41fc8d0af91c0574b1e9', 'network_id': '32003893-a90b-44b1-ac80-78ee4fe86d38', 'ip_version': 4, 'cidr': '9.142.110.192/26', 'allocation_pools': [{'start': '9.142.110.194', 'end': '9.142.110.254'}], 'gateway_ip': '9.142.110.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '9.142.110.194', 'tags': [], 'project_id': '56421f2adb8c41fc8d0af91c0574b1e9'}}
2025-10-29 15:42:45,469 - INFO - Created VN ctest-vn-22120478
2025-10-29 15:42:45,519 - DEBUG - VN ctest-vn-22120478 UUID is 32003893-a90b-44b1-ac80-78ee4fe86d38
2025-10-29 15:42:45,667 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-74352274:ctest-vn-70130689, 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-74352274:ctest-vn-22120478, 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-29 15:42:45,954 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '949f3674-83c0-4426-b4a1-aede67805412', 'name': 'ctest-vn-70130689', 'tenant_id': '56421f2adb8c41fc8d0af91c0574b1e9', 'project_id': '56421f2adb8c41fc8d0af91c0574b1e9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['36f08c59-f322-4d7c-a339-a3e7dd604e94'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74352274', 'ctest-vn-70130689'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-74352274', 'ctest-policy-allow-all-04607876']], 'subnet_ipam': [{'subnet_cidr': '101.234.224.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-29 15:42:46,168 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '32003893-a90b-44b1-ac80-78ee4fe86d38', 'name': 'ctest-vn-22120478', 'tenant_id': '56421f2adb8c41fc8d0af91c0574b1e9', 'project_id': '56421f2adb8c41fc8d0af91c0574b1e9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4d25e8fa-3b45-4a24-b780-1f1b370448fe'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74352274', 'ctest-vn-22120478'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-74352274', 'ctest-policy-allow-all-04607876']], 'subnet_ipam': [{'subnet_cidr': '9.142.110.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-29 15:42:46,335 - DEBUG - Requesting: http://10.0.0.73:8082/domains
2025-10-29 15:42:46,628 - DEBUG - Requesting: http://10.0.0.73:8082/domains
2025-10-29 15:42:46,663 - DEBUG - Requesting: http://10.0.0.73:8082/domain/58d33886-8d31-4b0c-9981-c122a8670336
2025-10-29 15:42:46,676 - DEBUG - Requesting: http://10.0.0.73:8082/project/56421f2a-db8c-41fc-8d0a-f91c0574b1e9
2025-10-29 15:42:46,759 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/949f3674-83c0-4426-b4a1-aede67805412
2025-10-29 15:42:46,769 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/949f3674-83c0-4426-b4a1-aede67805412
2025-10-29 15:42:46,778 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/8342c58f-63e7-466d-b263-faa7775b887d
2025-10-29 15:42:46,785 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/8342c58f-63e7-466d-b263-faa7775b887d
2025-10-29 15:42:46,792 - DEBUG - Requesting: http://10.0.0.73:8082/route-target/750004eb-693d-4719-ad76-0d5cbfc1e0f6
2025-10-29 15:42:46,799 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-29 15:42:46,799 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/949f3674-83c0-4426-b4a1-aede67805412
2025-10-29 15:42:46,807 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/8342c58f-63e7-466d-b263-faa7775b887d
2025-10-29 15:42:46,819 - INFO - Verified VN network id 12 for VN 949f3674-83c0-4426-b4a1-aede67805412
2025-10-29 15:42:46,819 - INFO - Verifications in API Server for VN ctest-vn-70130689 passed
2025-10-29 15:42:46,820 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/949f3674-83c0-4426-b4a1-aede67805412
2025-10-29 15:42:46,828 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/8342c58f-63e7-466d-b263-faa7775b887d
2025-10-29 15:42:46,835 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/8342c58f-63e7-466d-b263-faa7775b887d
2025-10-29 15:42:46,846 - DEBUG - Requesting: http://10.0.0.73:8082/route-target/750004eb-693d-4719-ad76-0d5cbfc1e0f6
2025-10-29 15:42:46,857 - DEBUG - Control-node 10.0.0.73 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-74352274:ctest-vn-70130689', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-74352274', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10709338312964850726', 'uuid-lslong': '13015876668319880210'}, 'enable': 'true', 'created': '2025-10-29T15:42:44', 'last-modified': '2025-10-29T15:42:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.930004'}
2025-10-29 15:42:46,863 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-29 15:42:46,864 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-70130689 passed
2025-10-29 15:42:46,864 - DEBUG - ====Verifying policy data for ctest-vn-70130689 in API_Server ======
2025-10-29 15:42:46,864 - DEBUG - Requesting: http://10.0.0.73:8082/domains
2025-10-29 15:42:46,869 - DEBUG - Requesting: http://10.0.0.73:8082/domain/58d33886-8d31-4b0c-9981-c122a8670336
2025-10-29 15:42:46,879 - DEBUG - Requesting: http://10.0.0.73:8082/project/56421f2a-db8c-41fc-8d0a-f91c0574b1e9
2025-10-29 15:42:46,954 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/949f3674-83c0-4426-b4a1-aede67805412
2025-10-29 15:42:46,963 - DEBUG - ==>Verifying data for policy with id: 216404fc-368e-499b-beb5-084c70001a33, fqn: ['default-domain', 'ctest-TestBasicPolicy-74352274', 'ctest-policy-allow-all-04607876']
2025-10-29 15:42:46,963 - INFO - VN ctest-vn-70130689 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-29 15:42:46,963 - DEBUG - Verifying the vn in opserver
2025-10-29 15:42:46,963 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-74352274:ctest-vn-70130689 virtual network link through opserver 10.0.0.73
2025-10-29 15:42:46,963 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks
2025-10-29 15:42:47,252 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks
2025-10-29 15:42:47,315 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-74352274:ctest-vn-70130689', 'href': 'http://10.0.0.73:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-74352274:ctest-vn-70130689?flat'}
2025-10-29 15:42:47,315 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-74352274:ctest-vn-70130689 is found in opserver
2025-10-29 15:42:47,324 - DEBUG - Do not have enough data to verify VN in agent
2025-10-29 15:42:47,329 - DEBUG - VRF ids for VN ctest-vn-70130689: {}
2025-10-29 15:42:47,329 - DEBUG - Requesting: http://10.0.0.73:8082/domains
2025-10-29 15:42:47,334 - DEBUG - Requesting: http://10.0.0.73:8082/domain/58d33886-8d31-4b0c-9981-c122a8670336
2025-10-29 15:42:47,346 - DEBUG - Requesting: http://10.0.0.73:8082/project/56421f2a-db8c-41fc-8d0a-f91c0574b1e9
2025-10-29 15:42:47,412 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/32003893-a90b-44b1-ac80-78ee4fe86d38
2025-10-29 15:42:47,422 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/32003893-a90b-44b1-ac80-78ee4fe86d38
2025-10-29 15:42:47,430 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/a9399672-6867-485b-aa46-2a1e008a1694
2025-10-29 15:42:47,436 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/a9399672-6867-485b-aa46-2a1e008a1694
2025-10-29 15:42:47,442 - DEBUG - Requesting: http://10.0.0.73:8082/route-target/9b4d98e5-6ae6-4a71-b4f1-413a2544a271
2025-10-29 15:42:47,448 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-29 15:42:47,448 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/32003893-a90b-44b1-ac80-78ee4fe86d38
2025-10-29 15:42:47,456 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/a9399672-6867-485b-aa46-2a1e008a1694
2025-10-29 15:42:47,470 - INFO - Verified VN network id 13 for VN 32003893-a90b-44b1-ac80-78ee4fe86d38
2025-10-29 15:42:47,470 - INFO - Verifications in API Server for VN ctest-vn-22120478 passed
2025-10-29 15:42:47,470 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/32003893-a90b-44b1-ac80-78ee4fe86d38
2025-10-29 15:42:47,479 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/a9399672-6867-485b-aa46-2a1e008a1694
2025-10-29 15:42:47,486 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/a9399672-6867-485b-aa46-2a1e008a1694
2025-10-29 15:42:47,494 - DEBUG - Requesting: http://10.0.0.73:8082/route-target/9b4d98e5-6ae6-4a71-b4f1-413a2544a271
2025-10-29 15:42:47,506 - DEBUG - Control-node 10.0.0.73 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-74352274:ctest-vn-22120478', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-74352274', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3602941908743832753', 'uuid-lslong': '12430067936480750904'}, 'enable': 'true', 'created': '2025-10-29T15:42:45', 'last-modified': '2025-10-29T15:42:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.362658'}
2025-10-29 15:42:47,513 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-29 15:42:47,513 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-22120478 passed
2025-10-29 15:42:47,514 - DEBUG - ====Verifying policy data for ctest-vn-22120478 in API_Server ======
2025-10-29 15:42:47,514 - DEBUG - Requesting: http://10.0.0.73:8082/domains
2025-10-29 15:42:47,519 - DEBUG - Requesting: http://10.0.0.73:8082/domain/58d33886-8d31-4b0c-9981-c122a8670336
2025-10-29 15:42:47,535 - DEBUG - Requesting: http://10.0.0.73:8082/project/56421f2a-db8c-41fc-8d0a-f91c0574b1e9
2025-10-29 15:42:47,605 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/32003893-a90b-44b1-ac80-78ee4fe86d38
2025-10-29 15:42:47,614 - DEBUG - ==>Verifying data for policy with id: 216404fc-368e-499b-beb5-084c70001a33, fqn: ['default-domain', 'ctest-TestBasicPolicy-74352274', 'ctest-policy-allow-all-04607876']
2025-10-29 15:42:47,614 - INFO - VN ctest-vn-22120478 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-29 15:42:47,614 - DEBUG - Verifying the vn in opserver
2025-10-29 15:42:47,614 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-74352274:ctest-vn-22120478 virtual network link through opserver 10.0.0.73
2025-10-29 15:42:47,614 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks
2025-10-29 15:42:47,623 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-74352274:ctest-vn-22120478', 'href': 'http://10.0.0.73:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-74352274:ctest-vn-22120478?flat'}
2025-10-29 15:42:47,623 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-74352274:ctest-vn-22120478 is found in opserver
2025-10-29 15:42:47,635 - DEBUG - Do not have enough data to verify VN in agent
2025-10-29 15:42:47,640 - DEBUG - VRF ids for VN ctest-vn-22120478: {}
2025-10-29 15:42:47,707 - DEBUG - Services list from nova: [