2026-01-07 15:40:27,197 - INFO - Domain Default found not creating
2026-01-07 15:40:27,337 - INFO - Project ctest-TestBasicPolicy-67093140 not found, creating it
2026-01-07 15:40:27,759 - INFO - Created Project:ctest-TestBasicPolicy-67093140, ID : 43405010-cf34-4a66-8bf8-73d2bc6751fd
2026-01-07 15:40:29,116 - INFO - ================================================================================
2026-01-07 15:40:29,116 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-07 15:40:29,116 - 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-01-07 15:40:29,372 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2026-01-07 15:40:29,372 - INFO - Initial checks done. Running the testcase now
2026-01-07 15:40:29,372 - INFO -
2026-01-07 15:40:29,873 - DEBUG - Response for create_network : {'network': {'id': '8ed0dc80-1c67-436a-a200-f82481b65159', 'name': 'ctest-vn-99598922', 'tenant_id': '43405010cf344a668bf873d2bc6751fd', 'project_id': '43405010cf344a668bf873d2bc6751fd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67093140', 'ctest-vn-99598922'], 'port_security_enabled': True, 'description': ''}}
2026-01-07 15:40:30,055 - DEBUG - Response for create_subnet : {'subnet': {'id': '1a100486-4008-47d1-9e14-65faac71c13d', 'name': '', 'tenant_id': '43405010cf344a668bf873d2bc6751fd', 'network_id': '8ed0dc80-1c67-436a-a200-f82481b65159', 'ip_version': 4, 'cidr': '163.57.212.128/26', 'allocation_pools': [{'start': '163.57.212.130', 'end': '163.57.212.190'}], 'gateway_ip': '163.57.212.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '163.57.212.130', 'tags': [], 'project_id': '43405010cf344a668bf873d2bc6751fd'}}
2026-01-07 15:40:30,069 - INFO - Created VN ctest-vn-99598922
2026-01-07 15:40:30,120 - DEBUG - VN ctest-vn-99598922 UUID is 8ed0dc80-1c67-436a-a200-f82481b65159
2026-01-07 15:40:30,411 - DEBUG - Response for create_network : {'network': {'id': 'fcaca00c-68bc-4b0e-a23e-422e0b580785', 'name': 'ctest-vn-28322609', 'tenant_id': '43405010cf344a668bf873d2bc6751fd', 'project_id': '43405010cf344a668bf873d2bc6751fd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67093140', 'ctest-vn-28322609'], 'port_security_enabled': True, 'description': ''}}
2026-01-07 15:40:30,599 - DEBUG - Response for create_subnet : {'subnet': {'id': '82754913-afc6-4e4c-998f-fc7f7b852fed', 'name': '', 'tenant_id': '43405010cf344a668bf873d2bc6751fd', 'network_id': 'fcaca00c-68bc-4b0e-a23e-422e0b580785', 'ip_version': 4, 'cidr': '203.142.201.0/26', 'allocation_pools': [{'start': '203.142.201.2', 'end': '203.142.201.62'}], 'gateway_ip': '203.142.201.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '203.142.201.2', 'tags': [], 'project_id': '43405010cf344a668bf873d2bc6751fd'}}
2026-01-07 15:40:30,615 - INFO - Created VN ctest-vn-28322609
2026-01-07 15:40:30,668 - DEBUG - VN ctest-vn-28322609 UUID is fcaca00c-68bc-4b0e-a23e-422e0b580785
2026-01-07 15:40:30,808 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-67093140:ctest-vn-99598922, 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-67093140:ctest-vn-28322609, 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-01-07 15:40:31,069 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8ed0dc80-1c67-436a-a200-f82481b65159', 'name': 'ctest-vn-99598922', 'tenant_id': '43405010cf344a668bf873d2bc6751fd', 'project_id': '43405010cf344a668bf873d2bc6751fd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1a100486-4008-47d1-9e14-65faac71c13d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67093140', 'ctest-vn-99598922'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-67093140', 'ctest-policy-allow-all-35159592']], 'subnet_ipam': [{'subnet_cidr': '163.57.212.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-07 15:40:31,278 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fcaca00c-68bc-4b0e-a23e-422e0b580785', 'name': 'ctest-vn-28322609', 'tenant_id': '43405010cf344a668bf873d2bc6751fd', 'project_id': '43405010cf344a668bf873d2bc6751fd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['82754913-afc6-4e4c-998f-fc7f7b852fed'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67093140', 'ctest-vn-28322609'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-67093140', 'ctest-policy-allow-all-35159592']], 'subnet_ipam': [{'subnet_cidr': '203.142.201.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-07 15:40:31,432 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-07 15:40:31,724 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-07 15:40:31,749 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4bbd2eb6-9e1d-4df7-b005-e6a90b7c79a4
2026-01-07 15:40:31,759 - DEBUG - Requesting: http://10.0.0.38:8082/project/43405010-cf34-4a66-8bf8-73d2bc6751fd
2026-01-07 15:40:31,830 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8ed0dc80-1c67-436a-a200-f82481b65159
2026-01-07 15:40:31,839 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8ed0dc80-1c67-436a-a200-f82481b65159
2026-01-07 15:40:31,847 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4f617ef0-83a8-4b77-889a-bdfe83565c84
2026-01-07 15:40:31,852 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4f617ef0-83a8-4b77-889a-bdfe83565c84
2026-01-07 15:40:31,857 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/a4a8802c-2718-4133-bfa4-cd0f18b7b4b2
2026-01-07 15:40:31,862 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-07 15:40:31,862 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8ed0dc80-1c67-436a-a200-f82481b65159
2026-01-07 15:40:31,869 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4f617ef0-83a8-4b77-889a-bdfe83565c84
2026-01-07 15:40:31,880 - INFO - Verified VN network id 11 for VN 8ed0dc80-1c67-436a-a200-f82481b65159
2026-01-07 15:40:31,881 - INFO - Verifications in API Server for VN ctest-vn-99598922 passed
2026-01-07 15:40:31,881 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8ed0dc80-1c67-436a-a200-f82481b65159
2026-01-07 15:40:31,888 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4f617ef0-83a8-4b77-889a-bdfe83565c84
2026-01-07 15:40:31,893 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4f617ef0-83a8-4b77-889a-bdfe83565c84
2026-01-07 15:40:31,899 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/a4a8802c-2718-4133-bfa4-cd0f18b7b4b2
2026-01-07 15:40:31,910 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-67093140:ctest-vn-99598922', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-67093140', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10290967591332037482', 'uuid-lslong': '11673603069823045977'}, 'enable': 'true', 'created': '2026-01-07T15:40:29', 'last-modified': '2026-01-07T15:40:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.854962'}
2026-01-07 15:40:31,917 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-07 15:40:31,917 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-99598922 passed
2026-01-07 15:40:31,917 - DEBUG - ====Verifying policy data for ctest-vn-99598922 in API_Server ======
2026-01-07 15:40:31,917 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-07 15:40:31,923 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4bbd2eb6-9e1d-4df7-b005-e6a90b7c79a4
2026-01-07 15:40:31,932 - DEBUG - Requesting: http://10.0.0.38:8082/project/43405010-cf34-4a66-8bf8-73d2bc6751fd
2026-01-07 15:40:32,000 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8ed0dc80-1c67-436a-a200-f82481b65159
2026-01-07 15:40:32,007 - DEBUG - ==>Verifying data for policy with id: 7eeb9521-0cec-4377-8007-a40300db42db, fqn: ['default-domain', 'ctest-TestBasicPolicy-67093140', 'ctest-policy-allow-all-35159592']
2026-01-07 15:40:32,007 - INFO - VN ctest-vn-99598922 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-07 15:40:32,007 - DEBUG - Verifying the vn in opserver
2026-01-07 15:40:32,007 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-67093140:ctest-vn-99598922 virtual network link through opserver 10.0.0.38
2026-01-07 15:40:32,007 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-07 15:40:32,295 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-07 15:40:32,347 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-67093140:ctest-vn-99598922', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-67093140:ctest-vn-99598922?flat'}
2026-01-07 15:40:32,347 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-67093140:ctest-vn-99598922 is found in opserver
2026-01-07 15:40:32,356 - DEBUG - Do not have enough data to verify VN in agent
2026-01-07 15:40:32,359 - DEBUG - VRF ids for VN ctest-vn-99598922: {}
2026-01-07 15:40:32,359 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-07 15:40:32,365 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4bbd2eb6-9e1d-4df7-b005-e6a90b7c79a4
2026-01-07 15:40:32,374 - DEBUG - Requesting: http://10.0.0.38:8082/project/43405010-cf34-4a66-8bf8-73d2bc6751fd
2026-01-07 15:40:32,439 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fcaca00c-68bc-4b0e-a23e-422e0b580785
2026-01-07 15:40:32,448 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fcaca00c-68bc-4b0e-a23e-422e0b580785
2026-01-07 15:40:32,455 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ece89a0f-1b73-4c31-8d1c-128261af9067
2026-01-07 15:40:32,460 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ece89a0f-1b73-4c31-8d1c-128261af9067
2026-01-07 15:40:32,464 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/927ece8d-000a-4de5-94bd-15fe796559c5
2026-01-07 15:40:32,469 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-07 15:40:32,469 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fcaca00c-68bc-4b0e-a23e-422e0b580785
2026-01-07 15:40:32,475 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ece89a0f-1b73-4c31-8d1c-128261af9067
2026-01-07 15:40:32,485 - INFO - Verified VN network id 12 for VN fcaca00c-68bc-4b0e-a23e-422e0b580785
2026-01-07 15:40:32,485 - INFO - Verifications in API Server for VN ctest-vn-28322609 passed
2026-01-07 15:40:32,485 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fcaca00c-68bc-4b0e-a23e-422e0b580785
2026-01-07 15:40:32,492 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ece89a0f-1b73-4c31-8d1c-128261af9067
2026-01-07 15:40:32,497 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ece89a0f-1b73-4c31-8d1c-128261af9067
2026-01-07 15:40:32,502 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/927ece8d-000a-4de5-94bd-15fe796559c5
2026-01-07 15:40:32,510 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-67093140:ctest-vn-28322609', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-67093140', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18207103368709294862', 'uuid-lslong': '11690854448226633605'}, 'enable': 'true', 'created': '2026-01-07T15:40:30', 'last-modified': '2026-01-07T15:40:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.252730'}
2026-01-07 15:40:32,515 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-07 15:40:32,515 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-28322609 passed
2026-01-07 15:40:32,515 - DEBUG - ====Verifying policy data for ctest-vn-28322609 in API_Server ======
2026-01-07 15:40:32,515 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-07 15:40:32,518 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4bbd2eb6-9e1d-4df7-b005-e6a90b7c79a4
2026-01-07 15:40:32,526 - DEBUG - Requesting: http://10.0.0.38:8082/project/43405010-cf34-4a66-8bf8-73d2bc6751fd
2026-01-07 15:40:32,594 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fcaca00c-68bc-4b0e-a23e-422e0b580785
2026-01-07 15:40:32,605 - DEBUG - ==>Verifying data for policy with id: 7eeb9521-0cec-4377-8007-a40300db42db, fqn: ['default-domain', 'ctest-TestBasicPolicy-67093140', 'ctest-policy-allow-all-35159592']
2026-01-07 15:40:32,605 - INFO - VN ctest-vn-28322609 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-07 15:40:32,605 - DEBUG - Verifying the vn in opserver
2026-01-07 15:40:32,605 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-67093140:ctest-vn-28322609 virtual network link through opserver 10.0.0.38
2026-01-07 15:40:32,605 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-07 15:40:32,613 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-67093140:ctest-vn-28322609', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-67093140:ctest-vn-28322609?flat'}
2026-01-07 15:40:32,613 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-67093140:ctest-vn-28322609 is found in opserver
2026-01-07 15:40:32,621 - DEBUG - Do not have enough data to verify VN in agent
2026-01-07 15:40:32,625 - DEBUG - VRF ids for VN ctest-vn-28322609: {}
2026-01-07 15:40:32,674 - DEBUG - Services list from nova: [