2026-06-04 16:20:15,179 - INFO - Domain Default found not creating
2026-06-04 16:20:15,375 - INFO - Project ctest-TestBasicPolicy-18477264 not found, creating it
2026-06-04 16:20:15,852 - INFO - Created Project:ctest-TestBasicPolicy-18477264, ID : 4f662dd0-a350-40c1-8cf5-f43d52ad911e
2026-06-04 16:20:17,355 - INFO - ================================================================================
2026-06-04 16:20:17,355 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-06-04 16:20:17,355 - 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-06-04 16:20:17,608 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.18': '0'}} with
2026-06-04 16:20:17,608 - INFO - Initial checks done. Running the testcase now
2026-06-04 16:20:17,608 - INFO -
2026-06-04 16:20:18,172 - DEBUG - Response for create_network : {'network': {'id': '40dfedde-3532-461b-a105-699e1acb4ab9', 'name': 'ctest-vn-48786452', 'tenant_id': '4f662dd0a35040c18cf5f43d52ad911e', 'project_id': '4f662dd0a35040c18cf5f43d52ad911e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18477264', 'ctest-vn-48786452'], 'port_security_enabled': True, 'description': ''}}
2026-06-04 16:20:18,322 - DEBUG - Response for create_subnet : {'subnet': {'id': '0eccc3d9-e566-4774-857e-9da711d42497', 'name': '', 'tenant_id': '4f662dd0a35040c18cf5f43d52ad911e', 'network_id': '40dfedde-3532-461b-a105-699e1acb4ab9', 'ip_version': 4, 'cidr': '71.49.130.0/26', 'allocation_pools': [{'start': '71.49.130.2', 'end': '71.49.130.62'}], 'gateway_ip': '71.49.130.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '71.49.130.2', 'tags': [], 'project_id': '4f662dd0a35040c18cf5f43d52ad911e'}}
2026-06-04 16:20:18,340 - INFO - Created VN ctest-vn-48786452
2026-06-04 16:20:18,390 - DEBUG - VN ctest-vn-48786452 UUID is 40dfedde-3532-461b-a105-699e1acb4ab9
2026-06-04 16:20:18,730 - DEBUG - Response for create_network : {'network': {'id': '7d776b4c-1aec-4fd8-b392-88c84abeac9b', 'name': 'ctest-vn-85737660', 'tenant_id': '4f662dd0a35040c18cf5f43d52ad911e', 'project_id': '4f662dd0a35040c18cf5f43d52ad911e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18477264', 'ctest-vn-85737660'], 'port_security_enabled': True, 'description': ''}}
2026-06-04 16:20:18,916 - DEBUG - Response for create_subnet : {'subnet': {'id': '25a25f3a-7081-41d9-bf9a-c426959e9a53', 'name': '', 'tenant_id': '4f662dd0a35040c18cf5f43d52ad911e', 'network_id': '7d776b4c-1aec-4fd8-b392-88c84abeac9b', 'ip_version': 4, 'cidr': '123.231.46.0/26', 'allocation_pools': [{'start': '123.231.46.2', 'end': '123.231.46.62'}], 'gateway_ip': '123.231.46.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '123.231.46.2', 'tags': [], 'project_id': '4f662dd0a35040c18cf5f43d52ad911e'}}
2026-06-04 16:20:18,935 - INFO - Created VN ctest-vn-85737660
2026-06-04 16:20:18,986 - DEBUG - VN ctest-vn-85737660 UUID is 7d776b4c-1aec-4fd8-b392-88c84abeac9b
2026-06-04 16:20:19,134 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-18477264:ctest-vn-48786452, 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-18477264:ctest-vn-85737660, 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-06-04 16:20:19,423 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '40dfedde-3532-461b-a105-699e1acb4ab9', 'name': 'ctest-vn-48786452', 'tenant_id': '4f662dd0a35040c18cf5f43d52ad911e', 'project_id': '4f662dd0a35040c18cf5f43d52ad911e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0eccc3d9-e566-4774-857e-9da711d42497'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18477264', 'ctest-vn-48786452'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-18477264', 'ctest-policy-allow-all-01738429']], 'subnet_ipam': [{'subnet_cidr': '71.49.130.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-06-04 16:20:19,646 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7d776b4c-1aec-4fd8-b392-88c84abeac9b', 'name': 'ctest-vn-85737660', 'tenant_id': '4f662dd0a35040c18cf5f43d52ad911e', 'project_id': '4f662dd0a35040c18cf5f43d52ad911e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['25a25f3a-7081-41d9-bf9a-c426959e9a53'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18477264', 'ctest-vn-85737660'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-18477264', 'ctest-policy-allow-all-01738429']], 'subnet_ipam': [{'subnet_cidr': '123.231.46.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-06-04 16:20:19,806 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2026-06-04 16:20:20,106 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2026-06-04 16:20:20,140 - DEBUG - Requesting: http://10.0.0.129:8082/domain/749c21dd-f00a-4e48-8a23-a95d17fee122
2026-06-04 16:20:20,160 - DEBUG - Requesting: http://10.0.0.129:8082/project/4f662dd0-a350-40c1-8cf5-f43d52ad911e
2026-06-04 16:20:20,233 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/40dfedde-3532-461b-a105-699e1acb4ab9
2026-06-04 16:20:20,244 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/40dfedde-3532-461b-a105-699e1acb4ab9
2026-06-04 16:20:20,253 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/f9b06a7a-a84d-4849-a2be-e17e21b1dcdc
2026-06-04 16:20:20,260 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/f9b06a7a-a84d-4849-a2be-e17e21b1dcdc
2026-06-04 16:20:20,268 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/7eeb185b-7b09-4234-995c-1149a43d7dc6
2026-06-04 16:20:20,276 - DEBUG - Route Targets: ['target:64512:8000004']
2026-06-04 16:20:20,276 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/40dfedde-3532-461b-a105-699e1acb4ab9
2026-06-04 16:20:20,288 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/f9b06a7a-a84d-4849-a2be-e17e21b1dcdc
2026-06-04 16:20:20,304 - INFO - Verified VN network id 11 for VN 40dfedde-3532-461b-a105-699e1acb4ab9
2026-06-04 16:20:20,304 - INFO - Verifications in API Server for VN ctest-vn-48786452 passed
2026-06-04 16:20:20,304 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/40dfedde-3532-461b-a105-699e1acb4ab9
2026-06-04 16:20:20,314 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/f9b06a7a-a84d-4849-a2be-e17e21b1dcdc
2026-06-04 16:20:20,321 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/f9b06a7a-a84d-4849-a2be-e17e21b1dcdc
2026-06-04 16:20:20,329 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/7eeb185b-7b09-4234-995c-1149a43d7dc6
2026-06-04 16:20:20,342 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-18477264:ctest-vn-48786452', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-18477264', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4674716476864874011', 'uuid-lslong': '11602796142765230777'}, 'enable': 'true', 'created': '2026-06-04T16:20:18', 'last-modified': '2026-06-04T16:20:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.939627'}
2026-06-04 16:20:20,349 - DEBUG - Route Targets: ['target:64512:8000004']
2026-06-04 16:20:20,349 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48786452 passed
2026-06-04 16:20:20,350 - DEBUG - ====Verifying policy data for ctest-vn-48786452 in API_Server ======
2026-06-04 16:20:20,350 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2026-06-04 16:20:20,356 - DEBUG - Requesting: http://10.0.0.129:8082/domain/749c21dd-f00a-4e48-8a23-a95d17fee122
2026-06-04 16:20:20,367 - DEBUG - Requesting: http://10.0.0.129:8082/project/4f662dd0-a350-40c1-8cf5-f43d52ad911e
2026-06-04 16:20:20,450 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/40dfedde-3532-461b-a105-699e1acb4ab9
2026-06-04 16:20:20,459 - DEBUG - ==>Verifying data for policy with id: 097b67ad-b0bb-4134-9f7c-0462a0121106, fqn: ['default-domain', 'ctest-TestBasicPolicy-18477264', 'ctest-policy-allow-all-01738429']
2026-06-04 16:20:20,459 - INFO - VN ctest-vn-48786452 Policy verification: verify_vn_policy_in_api_server, status: True
2026-06-04 16:20:20,459 - DEBUG - Verifying the vn in opserver
2026-06-04 16:20:20,459 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-18477264:ctest-vn-48786452 virtual network link through opserver 10.0.0.129
2026-06-04 16:20:20,459 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks
2026-06-04 16:20:20,754 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks
2026-06-04 16:20:20,829 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-18477264:ctest-vn-48786452', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-18477264:ctest-vn-48786452?flat'}
2026-06-04 16:20:20,829 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-18477264:ctest-vn-48786452 is found in opserver
2026-06-04 16:20:20,838 - DEBUG - Do not have enough data to verify VN in agent
2026-06-04 16:20:20,843 - DEBUG - VRF ids for VN ctest-vn-48786452: {}
2026-06-04 16:20:20,844 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2026-06-04 16:20:20,849 - DEBUG - Requesting: http://10.0.0.129:8082/domain/749c21dd-f00a-4e48-8a23-a95d17fee122
2026-06-04 16:20:20,858 - DEBUG - Requesting: http://10.0.0.129:8082/project/4f662dd0-a350-40c1-8cf5-f43d52ad911e
2026-06-04 16:20:20,924 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/7d776b4c-1aec-4fd8-b392-88c84abeac9b
2026-06-04 16:20:20,939 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/7d776b4c-1aec-4fd8-b392-88c84abeac9b
2026-06-04 16:20:20,948 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/3176caea-28e2-46b8-9ee8-7b1bb6bc95df
2026-06-04 16:20:20,954 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/3176caea-28e2-46b8-9ee8-7b1bb6bc95df
2026-06-04 16:20:20,960 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/81f0d3d0-9503-4f8d-82bd-d652a93a475b
2026-06-04 16:20:20,965 - DEBUG - Route Targets: ['target:64512:8000005']
2026-06-04 16:20:20,965 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/7d776b4c-1aec-4fd8-b392-88c84abeac9b
2026-06-04 16:20:20,973 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/3176caea-28e2-46b8-9ee8-7b1bb6bc95df
2026-06-04 16:20:20,986 - INFO - Verified VN network id 12 for VN 7d776b4c-1aec-4fd8-b392-88c84abeac9b
2026-06-04 16:20:20,986 - INFO - Verifications in API Server for VN ctest-vn-85737660 passed
2026-06-04 16:20:20,986 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/7d776b4c-1aec-4fd8-b392-88c84abeac9b
2026-06-04 16:20:20,998 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/3176caea-28e2-46b8-9ee8-7b1bb6bc95df
2026-06-04 16:20:21,006 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/3176caea-28e2-46b8-9ee8-7b1bb6bc95df
2026-06-04 16:20:21,013 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/81f0d3d0-9503-4f8d-82bd-d652a93a475b
2026-06-04 16:20:21,024 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-18477264:ctest-vn-85737660', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-18477264', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9040812751582941144', 'uuid-lslong': '12939555073217703067'}, 'enable': 'true', 'created': '2026-06-04T16:20:18', 'last-modified': '2026-06-04T16:20:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.395976'}
2026-06-04 16:20:21,031 - DEBUG - Route Targets: ['target:64512:8000005']
2026-06-04 16:20:21,031 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-85737660 passed
2026-06-04 16:20:21,031 - DEBUG - ====Verifying policy data for ctest-vn-85737660 in API_Server ======
2026-06-04 16:20:21,031 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2026-06-04 16:20:21,038 - DEBUG - Requesting: http://10.0.0.129:8082/domain/749c21dd-f00a-4e48-8a23-a95d17fee122
2026-06-04 16:20:21,048 - DEBUG - Requesting: http://10.0.0.129:8082/project/4f662dd0-a350-40c1-8cf5-f43d52ad911e
2026-06-04 16:20:21,114 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/7d776b4c-1aec-4fd8-b392-88c84abeac9b
2026-06-04 16:20:21,122 - DEBUG - ==>Verifying data for policy with id: 097b67ad-b0bb-4134-9f7c-0462a0121106, fqn: ['default-domain', 'ctest-TestBasicPolicy-18477264', 'ctest-policy-allow-all-01738429']
2026-06-04 16:20:21,122 - INFO - VN ctest-vn-85737660 Policy verification: verify_vn_policy_in_api_server, status: True
2026-06-04 16:20:21,122 - DEBUG - Verifying the vn in opserver
2026-06-04 16:20:21,122 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-18477264:ctest-vn-85737660 virtual network link through opserver 10.0.0.129
2026-06-04 16:20:21,122 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks
2026-06-04 16:20:21,132 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-18477264:ctest-vn-85737660', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-18477264:ctest-vn-85737660?flat'}
2026-06-04 16:20:21,132 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-18477264:ctest-vn-85737660 is found in opserver
2026-06-04 16:20:21,142 - DEBUG - Do not have enough data to verify VN in agent
2026-06-04 16:20:21,146 - DEBUG - VRF ids for VN ctest-vn-85737660: {}
2026-06-04 16:20:21,210 - DEBUG - Services list from nova: [