2026-03-18 19:44:39,834 - INFO - Domain Default found not creating
2026-03-18 19:44:40,192 - INFO - Project ctest-TestBasicPolicy-16509350 not found, creating it
2026-03-18 19:44:40,696 - INFO - Created Project:ctest-TestBasicPolicy-16509350, ID : 98d3e328-2de4-4e36-88e8-9a27a242c27f
2026-03-18 19:44:42,546 - INFO - ================================================================================
2026-03-18 19:44:42,547 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-03-18 19:44:42,548 - 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
2026-03-18 19:44:42,888 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with
2026-03-18 19:44:42,889 - INFO - Initial checks done. Running the testcase now
2026-03-18 19:44:42,889 - INFO -
2026-03-18 19:44:43,570 - DEBUG - Response for create_network : {'network': {'id': 'f3e017b1-090b-4614-b3f3-4e2ebbd305ae', 'name': 'ctest-vn-54041205', 'tenant_id': '98d3e3282de44e3688e89a27a242c27f', 'project_id': '98d3e3282de44e3688e89a27a242c27f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16509350', 'ctest-vn-54041205'], 'port_security_enabled': True, 'description': ''}}
2026-03-18 19:44:43,814 - DEBUG - Response for create_subnet : {'subnet': {'id': '3c9ea8b5-6e1d-434d-bcdf-c24f9fedfa85', 'name': '', 'tenant_id': '98d3e3282de44e3688e89a27a242c27f', 'network_id': 'f3e017b1-090b-4614-b3f3-4e2ebbd305ae', 'ip_version': 4, 'cidr': '214.155.152.192/26', 'allocation_pools': [{'start': '214.155.152.194', 'end': '214.155.152.254'}], 'gateway_ip': '214.155.152.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '214.155.152.194', 'tags': [], 'project_id': '98d3e3282de44e3688e89a27a242c27f'}}
2026-03-18 19:44:43,841 - INFO - Created VN ctest-vn-54041205
2026-03-18 19:44:43,902 - DEBUG - VN ctest-vn-54041205 UUID is f3e017b1-090b-4614-b3f3-4e2ebbd305ae
2026-03-18 19:44:44,420 - DEBUG - Response for create_network : {'network': {'id': 'aacf449f-dc59-4755-84c7-713ffc90de92', 'name': 'ctest-vn-13145386', 'tenant_id': '98d3e3282de44e3688e89a27a242c27f', 'project_id': '98d3e3282de44e3688e89a27a242c27f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16509350', 'ctest-vn-13145386'], 'port_security_enabled': True, 'description': ''}}
2026-03-18 19:44:44,585 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e47bf36a-1506-44aa-bbed-872919e572a9', 'name': '', 'tenant_id': '98d3e3282de44e3688e89a27a242c27f', 'network_id': 'aacf449f-dc59-4755-84c7-713ffc90de92', 'ip_version': 4, 'cidr': '83.25.254.192/26', 'allocation_pools': [{'start': '83.25.254.194', 'end': '83.25.254.254'}], 'gateway_ip': '83.25.254.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '83.25.254.194', 'tags': [], 'project_id': '98d3e3282de44e3688e89a27a242c27f'}}
2026-03-18 19:44:44,606 - INFO - Created VN ctest-vn-13145386
2026-03-18 19:44:44,660 - DEBUG - VN ctest-vn-13145386 UUID is aacf449f-dc59-4755-84c7-713ffc90de92
2026-03-18 19:44:44,792 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-16509350:ctest-vn-54041205, 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-16509350:ctest-vn-13145386, 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]
2026-03-18 19:44:45,155 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f3e017b1-090b-4614-b3f3-4e2ebbd305ae', 'name': 'ctest-vn-54041205', 'tenant_id': '98d3e3282de44e3688e89a27a242c27f', 'project_id': '98d3e3282de44e3688e89a27a242c27f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3c9ea8b5-6e1d-434d-bcdf-c24f9fedfa85'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16509350', 'ctest-vn-54041205'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-16509350', 'ctest-policy-allow-all-20569371']], 'subnet_ipam': [{'subnet_cidr': '214.155.152.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-18 19:44:45,454 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'aacf449f-dc59-4755-84c7-713ffc90de92', 'name': 'ctest-vn-13145386', 'tenant_id': '98d3e3282de44e3688e89a27a242c27f', 'project_id': '98d3e3282de44e3688e89a27a242c27f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e47bf36a-1506-44aa-bbed-872919e572a9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16509350', 'ctest-vn-13145386'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-16509350', 'ctest-policy-allow-all-20569371']], 'subnet_ipam': [{'subnet_cidr': '83.25.254.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-18 19:44:45,637 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-03-18 19:44:45,948 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-03-18 19:44:46,041 - DEBUG - Requesting: http://10.0.0.33:8082/domain/d67fdacd-c7c7-4aed-8c72-fe2ee799f392
2026-03-18 19:44:46,074 - DEBUG - Requesting: http://10.0.0.33:8082/project/98d3e328-2de4-4e36-88e8-9a27a242c27f
2026-03-18 19:44:46,182 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f3e017b1-090b-4614-b3f3-4e2ebbd305ae
2026-03-18 19:44:46,207 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f3e017b1-090b-4614-b3f3-4e2ebbd305ae
2026-03-18 19:44:46,224 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b61abe9d-c9a5-442b-80dc-b2abd7d1c630
2026-03-18 19:44:46,235 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b61abe9d-c9a5-442b-80dc-b2abd7d1c630
2026-03-18 19:44:46,244 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/9db03045-e0bb-4ff7-9b83-7fe06d989531
2026-03-18 19:44:46,254 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-18 19:44:46,254 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f3e017b1-090b-4614-b3f3-4e2ebbd305ae
2026-03-18 19:44:46,275 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b61abe9d-c9a5-442b-80dc-b2abd7d1c630
2026-03-18 19:44:46,303 - INFO - Verified VN network id 9 for VN f3e017b1-090b-4614-b3f3-4e2ebbd305ae
2026-03-18 19:44:46,303 - INFO - Verifications in API Server for VN ctest-vn-54041205 passed
2026-03-18 19:44:46,303 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f3e017b1-090b-4614-b3f3-4e2ebbd305ae
2026-03-18 19:44:46,324 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b61abe9d-c9a5-442b-80dc-b2abd7d1c630
2026-03-18 19:44:46,337 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b61abe9d-c9a5-442b-80dc-b2abd7d1c630
2026-03-18 19:44:46,349 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/9db03045-e0bb-4ff7-9b83-7fe06d989531
2026-03-18 19:44:46,371 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16509350:ctest-vn-54041205', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16509350', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17573071795128059412', 'uuid-lslong': '12966793714756421038'}, 'enable': 'true', 'created': '2026-03-18T19:44:43', 'last-modified': '2026-03-18T19:44:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.237789'}
2026-03-18 19:44:46,382 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-18 19:44:46,382 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54041205 passed
2026-03-18 19:44:46,383 - DEBUG - ====Verifying policy data for ctest-vn-54041205 in API_Server ======
2026-03-18 19:44:46,383 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-03-18 19:44:46,394 - DEBUG - Requesting: http://10.0.0.33:8082/domain/d67fdacd-c7c7-4aed-8c72-fe2ee799f392
2026-03-18 19:44:46,412 - DEBUG - Requesting: http://10.0.0.33:8082/project/98d3e328-2de4-4e36-88e8-9a27a242c27f
2026-03-18 19:44:46,509 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f3e017b1-090b-4614-b3f3-4e2ebbd305ae
2026-03-18 19:44:46,526 - DEBUG - ==>Verifying data for policy with id: 447d3e45-58f9-42c7-b1dd-6de69eee2db2, fqn: ['default-domain', 'ctest-TestBasicPolicy-16509350', 'ctest-policy-allow-all-20569371']
2026-03-18 19:44:46,526 - INFO - VN ctest-vn-54041205 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-18 19:44:46,526 - DEBUG - Verifying the vn in opserver
2026-03-18 19:44:46,526 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16509350:ctest-vn-54041205 virtual network link through opserver 10.0.0.33
2026-03-18 19:44:46,526 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-03-18 19:44:46,862 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-03-18 19:44:46,933 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16509350:ctest-vn-54041205', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16509350:ctest-vn-54041205?flat'}
2026-03-18 19:44:46,933 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-16509350:ctest-vn-54041205 is found in opserver
2026-03-18 19:44:46,952 - DEBUG - Do not have enough data to verify VN in agent
2026-03-18 19:44:46,962 - DEBUG - VRF ids for VN ctest-vn-54041205: {}
2026-03-18 19:44:46,962 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-03-18 19:44:46,968 - DEBUG - Requesting: http://10.0.0.33:8082/domain/d67fdacd-c7c7-4aed-8c72-fe2ee799f392
2026-03-18 19:44:46,979 - DEBUG - Requesting: http://10.0.0.33:8082/project/98d3e328-2de4-4e36-88e8-9a27a242c27f
2026-03-18 19:44:47,077 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/aacf449f-dc59-4755-84c7-713ffc90de92
2026-03-18 19:44:47,104 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/aacf449f-dc59-4755-84c7-713ffc90de92
2026-03-18 19:44:47,122 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/fdb00795-4a7c-44f3-a778-d5891f06bc0f
2026-03-18 19:44:47,133 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/fdb00795-4a7c-44f3-a778-d5891f06bc0f
2026-03-18 19:44:47,145 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/c87250c4-b7d4-49f5-a145-58dae4c73538
2026-03-18 19:44:47,161 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-18 19:44:47,162 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/aacf449f-dc59-4755-84c7-713ffc90de92
2026-03-18 19:44:47,178 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/fdb00795-4a7c-44f3-a778-d5891f06bc0f
2026-03-18 19:44:47,201 - INFO - Verified VN network id 10 for VN aacf449f-dc59-4755-84c7-713ffc90de92
2026-03-18 19:44:47,202 - INFO - Verifications in API Server for VN ctest-vn-13145386 passed
2026-03-18 19:44:47,202 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/aacf449f-dc59-4755-84c7-713ffc90de92
2026-03-18 19:44:47,222 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/fdb00795-4a7c-44f3-a778-d5891f06bc0f
2026-03-18 19:44:47,234 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/fdb00795-4a7c-44f3-a778-d5891f06bc0f
2026-03-18 19:44:47,247 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/c87250c4-b7d4-49f5-a145-58dae4c73538
2026-03-18 19:44:47,274 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16509350:ctest-vn-13145386', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16509350', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12308131760014182229', 'uuid-lslong': '9567740453006139026'}, 'enable': 'true', 'created': '2026-03-18T19:44:44', 'last-modified': '2026-03-18T19:44:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.859961'}
2026-03-18 19:44:47,287 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-18 19:44:47,287 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-13145386 passed
2026-03-18 19:44:47,287 - DEBUG - ====Verifying policy data for ctest-vn-13145386 in API_Server ======
2026-03-18 19:44:47,287 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-03-18 19:44:47,298 - DEBUG - Requesting: http://10.0.0.33:8082/domain/d67fdacd-c7c7-4aed-8c72-fe2ee799f392
2026-03-18 19:44:47,315 - DEBUG - Requesting: http://10.0.0.33:8082/project/98d3e328-2de4-4e36-88e8-9a27a242c27f
2026-03-18 19:44:47,405 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/aacf449f-dc59-4755-84c7-713ffc90de92
2026-03-18 19:44:47,434 - DEBUG - ==>Verifying data for policy with id: 447d3e45-58f9-42c7-b1dd-6de69eee2db2, fqn: ['default-domain', 'ctest-TestBasicPolicy-16509350', 'ctest-policy-allow-all-20569371']
2026-03-18 19:44:47,434 - INFO - VN ctest-vn-13145386 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-18 19:44:47,434 - DEBUG - Verifying the vn in opserver
2026-03-18 19:44:47,434 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16509350:ctest-vn-13145386 virtual network link through opserver 10.0.0.33
2026-03-18 19:44:47,435 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-03-18 19:44:47,454 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16509350:ctest-vn-13145386', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16509350:ctest-vn-13145386?flat'}
2026-03-18 19:44:47,454 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-16509350:ctest-vn-13145386 is found in opserver
2026-03-18 19:44:47,472 - DEBUG - Do not have enough data to verify VN in agent
2026-03-18 19:44:47,484 - DEBUG - VRF ids for VN ctest-vn-13145386: {}
2026-03-18 19:44:47,588 - DEBUG - Services list from nova: [