2026-02-24 16:39:22,481 - INFO - Domain Default found not creating
2026-02-24 16:39:22,643 - INFO - Project ctest-TestBasicPolicy-43994074 not found, creating it
2026-02-24 16:39:23,069 - INFO - Created Project:ctest-TestBasicPolicy-43994074, ID : 29748ccd-ecd0-4867-a9bb-f79aeb488e13
2026-02-24 16:39:24,475 - INFO - ================================================================================
2026-02-24 16:39:24,476 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-24 16:39:24,476 - 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-02-24 16:39:24,729 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2026-02-24 16:39:24,729 - INFO - Initial checks done. Running the testcase now
2026-02-24 16:39:24,729 - INFO -
2026-02-24 16:39:25,252 - DEBUG - Response for create_network : {'network': {'id': 'ec315f39-9a7b-4767-91c9-29cedc89da00', 'name': 'ctest-vn-58780704', 'tenant_id': '29748ccdecd04867a9bbf79aeb488e13', 'project_id': '29748ccdecd04867a9bbf79aeb488e13', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43994074', 'ctest-vn-58780704'], 'port_security_enabled': True, 'description': ''}}
2026-02-24 16:39:25,410 - DEBUG - Response for create_subnet : {'subnet': {'id': '535bc578-6aec-4703-96d4-7efd64d3e8e0', 'name': '', 'tenant_id': '29748ccdecd04867a9bbf79aeb488e13', 'network_id': 'ec315f39-9a7b-4767-91c9-29cedc89da00', 'ip_version': 4, 'cidr': '174.215.145.64/26', 'allocation_pools': [{'start': '174.215.145.66', 'end': '174.215.145.126'}], 'gateway_ip': '174.215.145.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '174.215.145.66', 'tags': [], 'project_id': '29748ccdecd04867a9bbf79aeb488e13'}}
2026-02-24 16:39:25,426 - INFO - Created VN ctest-vn-58780704
2026-02-24 16:39:25,476 - DEBUG - VN ctest-vn-58780704 UUID is ec315f39-9a7b-4767-91c9-29cedc89da00
2026-02-24 16:39:25,808 - DEBUG - Response for create_network : {'network': {'id': '7f6da93e-ab39-44fe-be4c-0effa09a2377', 'name': 'ctest-vn-83168457', 'tenant_id': '29748ccdecd04867a9bbf79aeb488e13', 'project_id': '29748ccdecd04867a9bbf79aeb488e13', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43994074', 'ctest-vn-83168457'], 'port_security_enabled': True, 'description': ''}}
2026-02-24 16:39:25,999 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd8a01b86-ee07-4bd4-812a-c944731b9791', 'name': '', 'tenant_id': '29748ccdecd04867a9bbf79aeb488e13', 'network_id': '7f6da93e-ab39-44fe-be4c-0effa09a2377', 'ip_version': 4, 'cidr': '164.134.27.128/26', 'allocation_pools': [{'start': '164.134.27.130', 'end': '164.134.27.190'}], 'gateway_ip': '164.134.27.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '164.134.27.130', 'tags': [], 'project_id': '29748ccdecd04867a9bbf79aeb488e13'}}
2026-02-24 16:39:26,014 - INFO - Created VN ctest-vn-83168457
2026-02-24 16:39:26,064 - DEBUG - VN ctest-vn-83168457 UUID is 7f6da93e-ab39-44fe-be4c-0effa09a2377
2026-02-24 16:39:26,204 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-43994074:ctest-vn-58780704, 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-43994074:ctest-vn-83168457, 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-02-24 16:39:26,481 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ec315f39-9a7b-4767-91c9-29cedc89da00', 'name': 'ctest-vn-58780704', 'tenant_id': '29748ccdecd04867a9bbf79aeb488e13', 'project_id': '29748ccdecd04867a9bbf79aeb488e13', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['535bc578-6aec-4703-96d4-7efd64d3e8e0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43994074', 'ctest-vn-58780704'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43994074', 'ctest-policy-allow-all-68775685']], 'subnet_ipam': [{'subnet_cidr': '174.215.145.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-24 16:39:26,703 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7f6da93e-ab39-44fe-be4c-0effa09a2377', 'name': 'ctest-vn-83168457', 'tenant_id': '29748ccdecd04867a9bbf79aeb488e13', 'project_id': '29748ccdecd04867a9bbf79aeb488e13', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d8a01b86-ee07-4bd4-812a-c944731b9791'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43994074', 'ctest-vn-83168457'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43994074', 'ctest-policy-allow-all-68775685']], 'subnet_ipam': [{'subnet_cidr': '164.134.27.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-24 16:39:26,860 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-24 16:39:27,152 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-24 16:39:27,177 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f29418f6-8f55-4029-bf91-65876e64923f
2026-02-24 16:39:27,187 - DEBUG - Requesting: http://10.0.0.38:8082/project/29748ccd-ecd0-4867-a9bb-f79aeb488e13
2026-02-24 16:39:27,251 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ec315f39-9a7b-4767-91c9-29cedc89da00
2026-02-24 16:39:27,261 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ec315f39-9a7b-4767-91c9-29cedc89da00
2026-02-24 16:39:27,268 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d7a78bd9-354c-438a-8e9e-016ca7caa50b
2026-02-24 16:39:27,273 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d7a78bd9-354c-438a-8e9e-016ca7caa50b
2026-02-24 16:39:27,277 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e0cfc03c-ebeb-43a2-aaa2-7343749172d5
2026-02-24 16:39:27,282 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-24 16:39:27,282 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ec315f39-9a7b-4767-91c9-29cedc89da00
2026-02-24 16:39:27,290 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d7a78bd9-354c-438a-8e9e-016ca7caa50b
2026-02-24 16:39:27,302 - INFO - Verified VN network id 9 for VN ec315f39-9a7b-4767-91c9-29cedc89da00
2026-02-24 16:39:27,302 - INFO - Verifications in API Server for VN ctest-vn-58780704 passed
2026-02-24 16:39:27,302 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ec315f39-9a7b-4767-91c9-29cedc89da00
2026-02-24 16:39:27,310 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d7a78bd9-354c-438a-8e9e-016ca7caa50b
2026-02-24 16:39:27,316 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d7a78bd9-354c-438a-8e9e-016ca7caa50b
2026-02-24 16:39:27,321 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e0cfc03c-ebeb-43a2-aaa2-7343749172d5
2026-02-24 16:39:27,330 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43994074:ctest-vn-58780704', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43994074', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17019489167819360103', 'uuid-lslong': '10504973574258416128'}, 'enable': 'true', 'created': '2026-02-24T16:39:25', 'last-modified': '2026-02-24T16:39:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.866674'}
2026-02-24 16:39:27,334 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-24 16:39:27,335 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-58780704 passed
2026-02-24 16:39:27,335 - DEBUG - ====Verifying policy data for ctest-vn-58780704 in API_Server ======
2026-02-24 16:39:27,335 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-24 16:39:27,339 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f29418f6-8f55-4029-bf91-65876e64923f
2026-02-24 16:39:27,347 - DEBUG - Requesting: http://10.0.0.38:8082/project/29748ccd-ecd0-4867-a9bb-f79aeb488e13
2026-02-24 16:39:27,413 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ec315f39-9a7b-4767-91c9-29cedc89da00
2026-02-24 16:39:27,421 - DEBUG - ==>Verifying data for policy with id: 97f87896-e38c-4be1-a9fc-0b07c0252da8, fqn: ['default-domain', 'ctest-TestBasicPolicy-43994074', 'ctest-policy-allow-all-68775685']
2026-02-24 16:39:27,421 - INFO - VN ctest-vn-58780704 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-24 16:39:27,421 - DEBUG - Verifying the vn in opserver
2026-02-24 16:39:27,421 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43994074:ctest-vn-58780704 virtual network link through opserver 10.0.0.38
2026-02-24 16:39:27,422 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-02-24 16:39:27,710 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-02-24 16:39:27,764 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43994074:ctest-vn-58780704', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43994074:ctest-vn-58780704?flat'}
2026-02-24 16:39:27,765 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43994074:ctest-vn-58780704 is found in opserver
2026-02-24 16:39:27,774 - DEBUG - Do not have enough data to verify VN in agent
2026-02-24 16:39:27,779 - DEBUG - VRF ids for VN ctest-vn-58780704: {}
2026-02-24 16:39:27,779 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-24 16:39:27,783 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f29418f6-8f55-4029-bf91-65876e64923f
2026-02-24 16:39:27,793 - DEBUG - Requesting: http://10.0.0.38:8082/project/29748ccd-ecd0-4867-a9bb-f79aeb488e13
2026-02-24 16:39:27,859 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7f6da93e-ab39-44fe-be4c-0effa09a2377
2026-02-24 16:39:27,868 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7f6da93e-ab39-44fe-be4c-0effa09a2377
2026-02-24 16:39:27,876 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/36109c44-9e7e-4373-bbf2-4e6ef8d839d2
2026-02-24 16:39:27,882 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/36109c44-9e7e-4373-bbf2-4e6ef8d839d2
2026-02-24 16:39:27,888 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1bc77522-1ac9-486e-8d29-5ce4177f29cc
2026-02-24 16:39:27,893 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-24 16:39:27,893 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7f6da93e-ab39-44fe-be4c-0effa09a2377
2026-02-24 16:39:27,900 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/36109c44-9e7e-4373-bbf2-4e6ef8d839d2
2026-02-24 16:39:27,909 - INFO - Verified VN network id 10 for VN 7f6da93e-ab39-44fe-be4c-0effa09a2377
2026-02-24 16:39:27,910 - INFO - Verifications in API Server for VN ctest-vn-83168457 passed
2026-02-24 16:39:27,910 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7f6da93e-ab39-44fe-be4c-0effa09a2377
2026-02-24 16:39:27,916 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/36109c44-9e7e-4373-bbf2-4e6ef8d839d2
2026-02-24 16:39:27,921 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/36109c44-9e7e-4373-bbf2-4e6ef8d839d2
2026-02-24 16:39:27,926 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1bc77522-1ac9-486e-8d29-5ce4177f29cc
2026-02-24 16:39:27,935 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43994074:ctest-vn-83168457', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43994074', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9182181301904033022', 'uuid-lslong': '13712351456510223223'}, 'enable': 'true', 'created': '2026-02-24T16:39:25', 'last-modified': '2026-02-24T16:39:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.251824'}
2026-02-24 16:39:27,940 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-24 16:39:27,940 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83168457 passed
2026-02-24 16:39:27,941 - DEBUG - ====Verifying policy data for ctest-vn-83168457 in API_Server ======
2026-02-24 16:39:27,941 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-24 16:39:27,945 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f29418f6-8f55-4029-bf91-65876e64923f
2026-02-24 16:39:27,953 - DEBUG - Requesting: http://10.0.0.38:8082/project/29748ccd-ecd0-4867-a9bb-f79aeb488e13
2026-02-24 16:39:28,018 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7f6da93e-ab39-44fe-be4c-0effa09a2377
2026-02-24 16:39:28,026 - DEBUG - ==>Verifying data for policy with id: 97f87896-e38c-4be1-a9fc-0b07c0252da8, fqn: ['default-domain', 'ctest-TestBasicPolicy-43994074', 'ctest-policy-allow-all-68775685']
2026-02-24 16:39:28,026 - INFO - VN ctest-vn-83168457 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-24 16:39:28,026 - DEBUG - Verifying the vn in opserver
2026-02-24 16:39:28,026 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43994074:ctest-vn-83168457 virtual network link through opserver 10.0.0.38
2026-02-24 16:39:28,026 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-02-24 16:39:28,034 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43994074:ctest-vn-83168457', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43994074:ctest-vn-83168457?flat'}
2026-02-24 16:39:28,034 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43994074:ctest-vn-83168457 is found in opserver
2026-02-24 16:39:28,042 - DEBUG - Do not have enough data to verify VN in agent
2026-02-24 16:39:28,046 - DEBUG - VRF ids for VN ctest-vn-83168457: {}
2026-02-24 16:39:28,094 - DEBUG - Services list from nova: [