2026-01-29 18:48:17,827 - INFO - Domain Default found not creating
2026-01-29 18:48:18,079 - INFO - Project ctest-TestBasicPolicy-56701691 not found, creating it
2026-01-29 18:48:18,640 - INFO - Created Project:ctest-TestBasicPolicy-56701691, ID : 36605816-f28a-407f-8902-af72c92fec41
2026-01-29 18:48:20,501 - INFO - ================================================================================
2026-01-29 18:48:20,501 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-29 18:48:20,501 - 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-29 18:48:20,785 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.17': '0'}} with
2026-01-29 18:48:20,785 - INFO - Initial checks done. Running the testcase now
2026-01-29 18:48:20,785 - INFO -
2026-01-29 18:48:21,472 - DEBUG - Response for create_network : {'network': {'id': 'f81f3f71-dd26-4ffc-8ddc-ae9b5fbc2200', 'name': 'ctest-vn-81346863', 'tenant_id': '36605816f28a407f8902af72c92fec41', 'project_id': '36605816f28a407f8902af72c92fec41', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56701691', 'ctest-vn-81346863'], 'port_security_enabled': True, 'description': ''}}
2026-01-29 18:48:21,719 - DEBUG - Response for create_subnet : {'subnet': {'id': '000eafb3-c7e3-4236-997c-c264e9e0cb66', 'name': '', 'tenant_id': '36605816f28a407f8902af72c92fec41', 'network_id': 'f81f3f71-dd26-4ffc-8ddc-ae9b5fbc2200', 'ip_version': 4, 'cidr': '151.79.39.192/26', 'allocation_pools': [{'start': '151.79.39.194', 'end': '151.79.39.254'}], 'gateway_ip': '151.79.39.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '151.79.39.194', 'tags': [], 'project_id': '36605816f28a407f8902af72c92fec41'}}
2026-01-29 18:48:21,747 - INFO - Created VN ctest-vn-81346863
2026-01-29 18:48:21,806 - DEBUG - VN ctest-vn-81346863 UUID is f81f3f71-dd26-4ffc-8ddc-ae9b5fbc2200
2026-01-29 18:48:22,271 - DEBUG - Response for create_network : {'network': {'id': 'a960109e-2156-4d9a-a864-d214a11ffae4', 'name': 'ctest-vn-27338494', 'tenant_id': '36605816f28a407f8902af72c92fec41', 'project_id': '36605816f28a407f8902af72c92fec41', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56701691', 'ctest-vn-27338494'], 'port_security_enabled': True, 'description': ''}}
2026-01-29 18:48:22,547 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a9c2d79d-bcf8-4cfd-a9e5-c4333e35a5c9', 'name': '', 'tenant_id': '36605816f28a407f8902af72c92fec41', 'network_id': 'a960109e-2156-4d9a-a864-d214a11ffae4', 'ip_version': 4, 'cidr': '64.67.97.192/26', 'allocation_pools': [{'start': '64.67.97.194', 'end': '64.67.97.254'}], 'gateway_ip': '64.67.97.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '64.67.97.194', 'tags': [], 'project_id': '36605816f28a407f8902af72c92fec41'}}
2026-01-29 18:48:22,596 - INFO - Created VN ctest-vn-27338494
2026-01-29 18:48:22,662 - DEBUG - VN ctest-vn-27338494 UUID is a960109e-2156-4d9a-a864-d214a11ffae4
2026-01-29 18:48:22,814 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-56701691:ctest-vn-81346863, 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-56701691:ctest-vn-27338494, 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-29 18:48:23,176 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f81f3f71-dd26-4ffc-8ddc-ae9b5fbc2200', 'name': 'ctest-vn-81346863', 'tenant_id': '36605816f28a407f8902af72c92fec41', 'project_id': '36605816f28a407f8902af72c92fec41', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['000eafb3-c7e3-4236-997c-c264e9e0cb66'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56701691', 'ctest-vn-81346863'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56701691', 'ctest-policy-allow-all-08384968']], 'subnet_ipam': [{'subnet_cidr': '151.79.39.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-29 18:48:23,425 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a960109e-2156-4d9a-a864-d214a11ffae4', 'name': 'ctest-vn-27338494', 'tenant_id': '36605816f28a407f8902af72c92fec41', 'project_id': '36605816f28a407f8902af72c92fec41', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a9c2d79d-bcf8-4cfd-a9e5-c4333e35a5c9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56701691', 'ctest-vn-27338494'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56701691', 'ctest-policy-allow-all-08384968']], 'subnet_ipam': [{'subnet_cidr': '64.67.97.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-29 18:48:23,610 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2026-01-29 18:48:23,919 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2026-01-29 18:48:23,962 - DEBUG - Requesting: http://10.0.0.129:8082/domain/0e2b9175-8307-4231-973e-cdccdfafbf23
2026-01-29 18:48:23,998 - DEBUG - Requesting: http://10.0.0.129:8082/project/36605816-f28a-407f-8902-af72c92fec41
2026-01-29 18:48:24,103 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/f81f3f71-dd26-4ffc-8ddc-ae9b5fbc2200
2026-01-29 18:48:24,122 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/f81f3f71-dd26-4ffc-8ddc-ae9b5fbc2200
2026-01-29 18:48:24,140 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/fc80d78a-ffa9-482b-b402-cd904f80f521
2026-01-29 18:48:24,155 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/fc80d78a-ffa9-482b-b402-cd904f80f521
2026-01-29 18:48:24,170 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/56279fb6-6062-40d6-b9eb-9228f4ec65bb
2026-01-29 18:48:24,187 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-29 18:48:24,187 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/f81f3f71-dd26-4ffc-8ddc-ae9b5fbc2200
2026-01-29 18:48:24,210 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/fc80d78a-ffa9-482b-b402-cd904f80f521
2026-01-29 18:48:24,246 - INFO - Verified VN network id 11 for VN f81f3f71-dd26-4ffc-8ddc-ae9b5fbc2200
2026-01-29 18:48:24,246 - INFO - Verifications in API Server for VN ctest-vn-81346863 passed
2026-01-29 18:48:24,246 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/f81f3f71-dd26-4ffc-8ddc-ae9b5fbc2200
2026-01-29 18:48:24,271 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/fc80d78a-ffa9-482b-b402-cd904f80f521
2026-01-29 18:48:24,289 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/fc80d78a-ffa9-482b-b402-cd904f80f521
2026-01-29 18:48:24,304 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/56279fb6-6062-40d6-b9eb-9228f4ec65bb
2026-01-29 18:48:24,329 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56701691:ctest-vn-81346863', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56701691', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17879078803958288380', 'uuid-lslong': '10222237236573512192'}, 'enable': 'true', 'created': '2026-01-29T18:48:21', 'last-modified': '2026-01-29T18:48:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.177208'}
2026-01-29 18:48:24,346 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-29 18:48:24,346 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81346863 passed
2026-01-29 18:48:24,346 - DEBUG - ====Verifying policy data for ctest-vn-81346863 in API_Server ======
2026-01-29 18:48:24,347 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2026-01-29 18:48:24,360 - DEBUG - Requesting: http://10.0.0.129:8082/domain/0e2b9175-8307-4231-973e-cdccdfafbf23
2026-01-29 18:48:24,387 - DEBUG - Requesting: http://10.0.0.129:8082/project/36605816-f28a-407f-8902-af72c92fec41
2026-01-29 18:48:24,490 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/f81f3f71-dd26-4ffc-8ddc-ae9b5fbc2200
2026-01-29 18:48:24,506 - DEBUG - ==>Verifying data for policy with id: b279bf63-c794-43ea-a6bd-3ca256dce2da, fqn: ['default-domain', 'ctest-TestBasicPolicy-56701691', 'ctest-policy-allow-all-08384968']
2026-01-29 18:48:24,506 - INFO - VN ctest-vn-81346863 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-29 18:48:24,506 - DEBUG - Verifying the vn in opserver
2026-01-29 18:48:24,506 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56701691:ctest-vn-81346863 virtual network link through opserver 10.0.0.129
2026-01-29 18:48:24,506 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks
2026-01-29 18:48:24,835 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks
2026-01-29 18:48:24,937 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56701691:ctest-vn-81346863', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56701691:ctest-vn-81346863?flat'}
2026-01-29 18:48:24,937 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56701691:ctest-vn-81346863 is found in opserver
2026-01-29 18:48:24,949 - DEBUG - Do not have enough data to verify VN in agent
2026-01-29 18:48:24,958 - DEBUG - VRF ids for VN ctest-vn-81346863: {}
2026-01-29 18:48:24,958 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2026-01-29 18:48:24,967 - DEBUG - Requesting: http://10.0.0.129:8082/domain/0e2b9175-8307-4231-973e-cdccdfafbf23
2026-01-29 18:48:24,987 - DEBUG - Requesting: http://10.0.0.129:8082/project/36605816-f28a-407f-8902-af72c92fec41
2026-01-29 18:48:25,076 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/a960109e-2156-4d9a-a864-d214a11ffae4
2026-01-29 18:48:25,095 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/a960109e-2156-4d9a-a864-d214a11ffae4
2026-01-29 18:48:25,111 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/0619f7fa-bfd5-48fd-9364-9df4ee520192
2026-01-29 18:48:25,124 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/0619f7fa-bfd5-48fd-9364-9df4ee520192
2026-01-29 18:48:25,133 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/f5c8170b-a700-4100-b952-b3aa551261e4
2026-01-29 18:48:25,139 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-29 18:48:25,139 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/a960109e-2156-4d9a-a864-d214a11ffae4
2026-01-29 18:48:25,149 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/0619f7fa-bfd5-48fd-9364-9df4ee520192
2026-01-29 18:48:25,164 - INFO - Verified VN network id 12 for VN a960109e-2156-4d9a-a864-d214a11ffae4
2026-01-29 18:48:25,164 - INFO - Verifications in API Server for VN ctest-vn-27338494 passed
2026-01-29 18:48:25,165 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/a960109e-2156-4d9a-a864-d214a11ffae4
2026-01-29 18:48:25,176 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/0619f7fa-bfd5-48fd-9364-9df4ee520192
2026-01-29 18:48:25,184 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/0619f7fa-bfd5-48fd-9364-9df4ee520192
2026-01-29 18:48:25,192 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/f5c8170b-a700-4100-b952-b3aa551261e4
2026-01-29 18:48:25,214 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56701691:ctest-vn-27338494', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56701691', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12204773261524225434', 'uuid-lslong': '12134054282087365348'}, 'enable': 'true', 'created': '2026-01-29T18:48:22', 'last-modified': '2026-01-29T18:48:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.807109'}
2026-01-29 18:48:25,230 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-29 18:48:25,230 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-27338494 passed
2026-01-29 18:48:25,230 - DEBUG - ====Verifying policy data for ctest-vn-27338494 in API_Server ======
2026-01-29 18:48:25,230 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2026-01-29 18:48:25,238 - DEBUG - Requesting: http://10.0.0.129:8082/domain/0e2b9175-8307-4231-973e-cdccdfafbf23
2026-01-29 18:48:25,253 - DEBUG - Requesting: http://10.0.0.129:8082/project/36605816-f28a-407f-8902-af72c92fec41
2026-01-29 18:48:25,332 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/a960109e-2156-4d9a-a864-d214a11ffae4
2026-01-29 18:48:25,349 - DEBUG - ==>Verifying data for policy with id: b279bf63-c794-43ea-a6bd-3ca256dce2da, fqn: ['default-domain', 'ctest-TestBasicPolicy-56701691', 'ctest-policy-allow-all-08384968']
2026-01-29 18:48:25,349 - INFO - VN ctest-vn-27338494 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-29 18:48:25,350 - DEBUG - Verifying the vn in opserver
2026-01-29 18:48:25,350 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56701691:ctest-vn-27338494 virtual network link through opserver 10.0.0.129
2026-01-29 18:48:25,350 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks
2026-01-29 18:48:25,363 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56701691:ctest-vn-27338494', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56701691:ctest-vn-27338494?flat'}
2026-01-29 18:48:25,363 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56701691:ctest-vn-27338494 is found in opserver
2026-01-29 18:48:25,376 - DEBUG - Do not have enough data to verify VN in agent
2026-01-29 18:48:25,381 - DEBUG - VRF ids for VN ctest-vn-27338494: {}
2026-01-29 18:48:25,454 - DEBUG - Services list from nova: [