2026-07-08 19:34:01,897 - INFO - Domain Default found not creating
2026-07-08 19:34:02,111 - INFO - Project ctest-TestBasicPolicy-64978411 not found, creating it
2026-07-08 19:34:02,616 - INFO - Created Project:ctest-TestBasicPolicy-64978411, ID : 9e7df154-22ba-4185-9097-18d9ffc5039d
2026-07-08 19:34:04,601 - INFO - ================================================================================
2026-07-08 19:34:04,601 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-07-08 19:34:04,602 - 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-07-08 19:34:04,877 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2026-07-08 19:34:04,877 - INFO - Initial checks done. Running the testcase now
2026-07-08 19:34:04,878 - INFO -
2026-07-08 19:34:05,629 - DEBUG - Response for create_network : {'network': {'id': 'fa1872b1-25df-4689-b88a-d7592e762560', 'name': 'ctest-vn-23066914', 'tenant_id': '9e7df15422ba4185909718d9ffc5039d', 'project_id': '9e7df15422ba4185909718d9ffc5039d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64978411', 'ctest-vn-23066914'], 'port_security_enabled': True, 'description': ''}}
2026-07-08 19:34:05,856 - DEBUG - Response for create_subnet : {'subnet': {'id': '2e677134-4112-49bf-b4e6-f8c07b748562', 'name': '', 'tenant_id': '9e7df15422ba4185909718d9ffc5039d', 'network_id': 'fa1872b1-25df-4689-b88a-d7592e762560', 'ip_version': 4, 'cidr': '116.252.120.0/26', 'allocation_pools': [{'start': '116.252.120.2', 'end': '116.252.120.62'}], 'gateway_ip': '116.252.120.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '116.252.120.2', 'tags': [], 'project_id': '9e7df15422ba4185909718d9ffc5039d'}}
2026-07-08 19:34:05,876 - INFO - Created VN ctest-vn-23066914
2026-07-08 19:34:05,931 - DEBUG - VN ctest-vn-23066914 UUID is fa1872b1-25df-4689-b88a-d7592e762560
2026-07-08 19:34:06,299 - DEBUG - Response for create_network : {'network': {'id': 'fc4eb19a-81ec-426a-b83a-96d2c06857bc', 'name': 'ctest-vn-34391467', 'tenant_id': '9e7df15422ba4185909718d9ffc5039d', 'project_id': '9e7df15422ba4185909718d9ffc5039d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64978411', 'ctest-vn-34391467'], 'port_security_enabled': True, 'description': ''}}
2026-07-08 19:34:06,522 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f92399a0-d651-473d-ad9e-7a780186b2ec', 'name': '', 'tenant_id': '9e7df15422ba4185909718d9ffc5039d', 'network_id': 'fc4eb19a-81ec-426a-b83a-96d2c06857bc', 'ip_version': 4, 'cidr': '108.140.96.64/26', 'allocation_pools': [{'start': '108.140.96.66', 'end': '108.140.96.126'}], 'gateway_ip': '108.140.96.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '108.140.96.66', 'tags': [], 'project_id': '9e7df15422ba4185909718d9ffc5039d'}}
2026-07-08 19:34:06,544 - INFO - Created VN ctest-vn-34391467
2026-07-08 19:34:06,603 - DEBUG - VN ctest-vn-34391467 UUID is fc4eb19a-81ec-426a-b83a-96d2c06857bc
2026-07-08 19:34:06,736 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-64978411:ctest-vn-23066914, 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-64978411:ctest-vn-34391467, 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-07-08 19:34:07,081 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fa1872b1-25df-4689-b88a-d7592e762560', 'name': 'ctest-vn-23066914', 'tenant_id': '9e7df15422ba4185909718d9ffc5039d', 'project_id': '9e7df15422ba4185909718d9ffc5039d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2e677134-4112-49bf-b4e6-f8c07b748562'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64978411', 'ctest-vn-23066914'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-64978411', 'ctest-policy-allow-all-72694412']], 'subnet_ipam': [{'subnet_cidr': '116.252.120.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-07-08 19:34:07,323 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fc4eb19a-81ec-426a-b83a-96d2c06857bc', 'name': 'ctest-vn-34391467', 'tenant_id': '9e7df15422ba4185909718d9ffc5039d', 'project_id': '9e7df15422ba4185909718d9ffc5039d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f92399a0-d651-473d-ad9e-7a780186b2ec'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64978411', 'ctest-vn-34391467'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-64978411', 'ctest-policy-allow-all-72694412']], 'subnet_ipam': [{'subnet_cidr': '108.140.96.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-07-08 19:34:07,495 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-07-08 19:34:07,903 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-07-08 19:34:07,938 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6e4ca09f-e3c3-4299-a425-4f25de16d556
2026-07-08 19:34:07,956 - DEBUG - Requesting: http://10.0.0.38:8082/project/9e7df154-22ba-4185-9097-18d9ffc5039d
2026-07-08 19:34:08,040 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fa1872b1-25df-4689-b88a-d7592e762560
2026-07-08 19:34:08,057 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fa1872b1-25df-4689-b88a-d7592e762560
2026-07-08 19:34:08,070 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b38d9b9a-5ac5-4d45-8e42-841280a006f3
2026-07-08 19:34:08,080 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b38d9b9a-5ac5-4d45-8e42-841280a006f3
2026-07-08 19:34:08,090 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/cbc4d2df-6154-4444-b3d7-787b40ef0cc7
2026-07-08 19:34:08,100 - DEBUG - Route Targets: ['target:64512:8000004']
2026-07-08 19:34:08,100 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fa1872b1-25df-4689-b88a-d7592e762560
2026-07-08 19:34:08,114 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b38d9b9a-5ac5-4d45-8e42-841280a006f3
2026-07-08 19:34:08,132 - INFO - Verified VN network id 11 for VN fa1872b1-25df-4689-b88a-d7592e762560
2026-07-08 19:34:08,133 - INFO - Verifications in API Server for VN ctest-vn-23066914 passed
2026-07-08 19:34:08,133 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fa1872b1-25df-4689-b88a-d7592e762560
2026-07-08 19:34:08,145 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b38d9b9a-5ac5-4d45-8e42-841280a006f3
2026-07-08 19:34:08,154 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b38d9b9a-5ac5-4d45-8e42-841280a006f3
2026-07-08 19:34:08,165 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/cbc4d2df-6154-4444-b3d7-787b40ef0cc7
2026-07-08 19:34:08,183 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64978411:ctest-vn-23066914', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64978411', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18021280014093207177', 'uuid-lslong': '13297677627796366688'}, 'enable': 'true', 'created': '2026-07-08T19:34:05', 'last-modified': '2026-07-08T19:34:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.139097'}
2026-07-08 19:34:08,192 - DEBUG - Route Targets: ['target:64512:8000004']
2026-07-08 19:34:08,192 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-23066914 passed
2026-07-08 19:34:08,192 - DEBUG - ====Verifying policy data for ctest-vn-23066914 in API_Server ======
2026-07-08 19:34:08,192 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-07-08 19:34:08,201 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6e4ca09f-e3c3-4299-a425-4f25de16d556
2026-07-08 19:34:08,216 - DEBUG - Requesting: http://10.0.0.38:8082/project/9e7df154-22ba-4185-9097-18d9ffc5039d
2026-07-08 19:34:08,303 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fa1872b1-25df-4689-b88a-d7592e762560
2026-07-08 19:34:08,318 - DEBUG - ==>Verifying data for policy with id: c6c79513-4af0-4eac-84a7-408639556d9b, fqn: ['default-domain', 'ctest-TestBasicPolicy-64978411', 'ctest-policy-allow-all-72694412']
2026-07-08 19:34:08,318 - INFO - VN ctest-vn-23066914 Policy verification: verify_vn_policy_in_api_server, status: True
2026-07-08 19:34:08,318 - DEBUG - Verifying the vn in opserver
2026-07-08 19:34:08,318 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64978411:ctest-vn-23066914 virtual network link through opserver 10.0.0.38
2026-07-08 19:34:08,318 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-07-08 19:34:08,711 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-07-08 19:34:08,780 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64978411:ctest-vn-23066914', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64978411:ctest-vn-23066914?flat'}
2026-07-08 19:34:08,780 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-64978411:ctest-vn-23066914 is found in opserver
2026-07-08 19:34:08,792 - DEBUG - Do not have enough data to verify VN in agent
2026-07-08 19:34:08,797 - DEBUG - VRF ids for VN ctest-vn-23066914: {}
2026-07-08 19:34:08,797 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-07-08 19:34:08,807 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6e4ca09f-e3c3-4299-a425-4f25de16d556
2026-07-08 19:34:08,820 - DEBUG - Requesting: http://10.0.0.38:8082/project/9e7df154-22ba-4185-9097-18d9ffc5039d
2026-07-08 19:34:08,908 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fc4eb19a-81ec-426a-b83a-96d2c06857bc
2026-07-08 19:34:08,932 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fc4eb19a-81ec-426a-b83a-96d2c06857bc
2026-07-08 19:34:08,945 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/176610b2-ffc7-4d50-9a6e-3a8a9c90ae8e
2026-07-08 19:34:08,955 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/176610b2-ffc7-4d50-9a6e-3a8a9c90ae8e
2026-07-08 19:34:08,965 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/697661a7-34ac-418b-a1f8-4ac61a02f311
2026-07-08 19:34:08,974 - DEBUG - Route Targets: ['target:64512:8000005']
2026-07-08 19:34:08,974 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fc4eb19a-81ec-426a-b83a-96d2c06857bc
2026-07-08 19:34:08,986 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/176610b2-ffc7-4d50-9a6e-3a8a9c90ae8e
2026-07-08 19:34:09,011 - INFO - Verified VN network id 12 for VN fc4eb19a-81ec-426a-b83a-96d2c06857bc
2026-07-08 19:34:09,011 - INFO - Verifications in API Server for VN ctest-vn-34391467 passed
2026-07-08 19:34:09,012 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fc4eb19a-81ec-426a-b83a-96d2c06857bc
2026-07-08 19:34:09,026 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/176610b2-ffc7-4d50-9a6e-3a8a9c90ae8e
2026-07-08 19:34:09,036 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/176610b2-ffc7-4d50-9a6e-3a8a9c90ae8e
2026-07-08 19:34:09,044 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/697661a7-34ac-418b-a1f8-4ac61a02f311
2026-07-08 19:34:09,058 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64978411:ctest-vn-34391467', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64978411', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18180664022904095338', 'uuid-lslong': '13275088683543320508'}, 'enable': 'true', 'created': '2026-07-08T19:34:06', 'last-modified': '2026-07-08T19:34:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.767521'}
2026-07-08 19:34:09,065 - DEBUG - Route Targets: ['target:64512:8000005']
2026-07-08 19:34:09,065 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-34391467 passed
2026-07-08 19:34:09,065 - DEBUG - ====Verifying policy data for ctest-vn-34391467 in API_Server ======
2026-07-08 19:34:09,065 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-07-08 19:34:09,072 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6e4ca09f-e3c3-4299-a425-4f25de16d556
2026-07-08 19:34:09,087 - DEBUG - Requesting: http://10.0.0.38:8082/project/9e7df154-22ba-4185-9097-18d9ffc5039d
2026-07-08 19:34:09,167 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fc4eb19a-81ec-426a-b83a-96d2c06857bc
2026-07-08 19:34:09,178 - DEBUG - ==>Verifying data for policy with id: c6c79513-4af0-4eac-84a7-408639556d9b, fqn: ['default-domain', 'ctest-TestBasicPolicy-64978411', 'ctest-policy-allow-all-72694412']
2026-07-08 19:34:09,178 - INFO - VN ctest-vn-34391467 Policy verification: verify_vn_policy_in_api_server, status: True
2026-07-08 19:34:09,179 - DEBUG - Verifying the vn in opserver
2026-07-08 19:34:09,179 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64978411:ctest-vn-34391467 virtual network link through opserver 10.0.0.38
2026-07-08 19:34:09,179 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-07-08 19:34:09,191 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64978411:ctest-vn-34391467', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64978411:ctest-vn-34391467?flat'}
2026-07-08 19:34:09,191 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-64978411:ctest-vn-34391467 is found in opserver
2026-07-08 19:34:09,202 - DEBUG - Do not have enough data to verify VN in agent
2026-07-08 19:34:09,207 - DEBUG - VRF ids for VN ctest-vn-34391467: {}
2026-07-08 19:34:09,280 - DEBUG - Services list from nova: [