2026-01-16 12:39:47,127 - INFO - Domain Default found not creating
2026-01-16 12:39:47,300 - INFO - Project ctest-TestBasicPolicy-58533038 not found, creating it
2026-01-16 12:39:47,761 - INFO - Created Project:ctest-TestBasicPolicy-58533038, ID : 116105c0-ee35-4eaf-8297-712fd8373f6a
2026-01-16 12:39:49,293 - INFO - ================================================================================
2026-01-16 12:39:49,293 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-16 12:39:49,293 - 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-16 12:39:49,547 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.145': '0'}} with
2026-01-16 12:39:49,547 - INFO - Initial checks done. Running the testcase now
2026-01-16 12:39:49,547 - INFO -
2026-01-16 12:39:50,103 - DEBUG - Response for create_network : {'network': {'id': '2312a54f-5026-4927-845b-889003878d87', 'name': 'ctest-vn-01028917', 'tenant_id': '116105c0ee354eaf8297712fd8373f6a', 'project_id': '116105c0ee354eaf8297712fd8373f6a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58533038', 'ctest-vn-01028917'], 'port_security_enabled': True, 'description': ''}}
2026-01-16 12:39:50,317 - DEBUG - Response for create_subnet : {'subnet': {'id': '53e5c3a1-1238-4506-877b-dcdee5695e3e', 'name': '', 'tenant_id': '116105c0ee354eaf8297712fd8373f6a', 'network_id': '2312a54f-5026-4927-845b-889003878d87', 'ip_version': 4, 'cidr': '99.172.172.192/26', 'allocation_pools': [{'start': '99.172.172.194', 'end': '99.172.172.254'}], 'gateway_ip': '99.172.172.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '99.172.172.194', 'tags': [], 'project_id': '116105c0ee354eaf8297712fd8373f6a'}}
2026-01-16 12:39:50,338 - INFO - Created VN ctest-vn-01028917
2026-01-16 12:39:50,389 - DEBUG - VN ctest-vn-01028917 UUID is 2312a54f-5026-4927-845b-889003878d87
2026-01-16 12:39:50,677 - DEBUG - Response for create_network : {'network': {'id': 'a1e21533-ec09-424d-8c3d-12a2b19e7951', 'name': 'ctest-vn-71553016', 'tenant_id': '116105c0ee354eaf8297712fd8373f6a', 'project_id': '116105c0ee354eaf8297712fd8373f6a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58533038', 'ctest-vn-71553016'], 'port_security_enabled': True, 'description': ''}}
2026-01-16 12:39:50,838 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ccb92d11-6eaf-4a42-ba99-747ab92ded12', 'name': '', 'tenant_id': '116105c0ee354eaf8297712fd8373f6a', 'network_id': 'a1e21533-ec09-424d-8c3d-12a2b19e7951', 'ip_version': 4, 'cidr': '54.53.242.64/26', 'allocation_pools': [{'start': '54.53.242.66', 'end': '54.53.242.126'}], 'gateway_ip': '54.53.242.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '54.53.242.66', 'tags': [], 'project_id': '116105c0ee354eaf8297712fd8373f6a'}}
2026-01-16 12:39:50,857 - INFO - Created VN ctest-vn-71553016
2026-01-16 12:39:50,909 - DEBUG - VN ctest-vn-71553016 UUID is a1e21533-ec09-424d-8c3d-12a2b19e7951
2026-01-16 12:39:51,024 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-58533038:ctest-vn-01028917, 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-58533038:ctest-vn-71553016, 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-16 12:39:51,320 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2312a54f-5026-4927-845b-889003878d87', 'name': 'ctest-vn-01028917', 'tenant_id': '116105c0ee354eaf8297712fd8373f6a', 'project_id': '116105c0ee354eaf8297712fd8373f6a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['53e5c3a1-1238-4506-877b-dcdee5695e3e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58533038', 'ctest-vn-01028917'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-58533038', 'ctest-policy-allow-all-38578096']], 'subnet_ipam': [{'subnet_cidr': '99.172.172.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-16 12:39:51,547 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a1e21533-ec09-424d-8c3d-12a2b19e7951', 'name': 'ctest-vn-71553016', 'tenant_id': '116105c0ee354eaf8297712fd8373f6a', 'project_id': '116105c0ee354eaf8297712fd8373f6a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ccb92d11-6eaf-4a42-ba99-747ab92ded12'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58533038', 'ctest-vn-71553016'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-58533038', 'ctest-policy-allow-all-38578096']], 'subnet_ipam': [{'subnet_cidr': '54.53.242.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-16 12:39:51,705 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2026-01-16 12:39:52,006 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2026-01-16 12:39:52,038 - DEBUG - Requesting: http://10.0.0.41:8082/domain/9d10340c-1758-4358-9496-e4fe61626007
2026-01-16 12:39:52,049 - DEBUG - Requesting: http://10.0.0.41:8082/project/116105c0-ee35-4eaf-8297-712fd8373f6a
2026-01-16 12:39:52,119 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/2312a54f-5026-4927-845b-889003878d87
2026-01-16 12:39:52,129 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/2312a54f-5026-4927-845b-889003878d87
2026-01-16 12:39:52,140 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/b88e1ce1-6c33-468b-9215-ddf9681f29e4
2026-01-16 12:39:52,148 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/b88e1ce1-6c33-468b-9215-ddf9681f29e4
2026-01-16 12:39:52,155 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/e7b895b6-9f27-45a1-9ff1-c2255841a4c7
2026-01-16 12:39:52,162 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-16 12:39:52,162 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/2312a54f-5026-4927-845b-889003878d87
2026-01-16 12:39:52,171 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/b88e1ce1-6c33-468b-9215-ddf9681f29e4
2026-01-16 12:39:52,185 - INFO - Verified VN network id 12 for VN 2312a54f-5026-4927-845b-889003878d87
2026-01-16 12:39:52,185 - INFO - Verifications in API Server for VN ctest-vn-01028917 passed
2026-01-16 12:39:52,185 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/2312a54f-5026-4927-845b-889003878d87
2026-01-16 12:39:52,195 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/b88e1ce1-6c33-468b-9215-ddf9681f29e4
2026-01-16 12:39:52,203 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/b88e1ce1-6c33-468b-9215-ddf9681f29e4
2026-01-16 12:39:52,211 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/e7b895b6-9f27-45a1-9ff1-c2255841a4c7
2026-01-16 12:39:52,225 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58533038:ctest-vn-01028917', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58533038', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2527264100973955367', 'uuid-lslong': '9537366788003040647'}, 'enable': 'true', 'created': '2026-01-16T12:39:50', 'last-modified': '2026-01-16T12:39:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.929711'}
2026-01-16 12:39:52,231 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-16 12:39:52,231 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-01028917 passed
2026-01-16 12:39:52,231 - DEBUG - ====Verifying policy data for ctest-vn-01028917 in API_Server ======
2026-01-16 12:39:52,231 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2026-01-16 12:39:52,236 - DEBUG - Requesting: http://10.0.0.41:8082/domain/9d10340c-1758-4358-9496-e4fe61626007
2026-01-16 12:39:52,248 - DEBUG - Requesting: http://10.0.0.41:8082/project/116105c0-ee35-4eaf-8297-712fd8373f6a
2026-01-16 12:39:52,320 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/2312a54f-5026-4927-845b-889003878d87
2026-01-16 12:39:52,329 - DEBUG - ==>Verifying data for policy with id: bfbc85fd-c0b7-47bd-9a03-467d5cf23ffa, fqn: ['default-domain', 'ctest-TestBasicPolicy-58533038', 'ctest-policy-allow-all-38578096']
2026-01-16 12:39:52,329 - INFO - VN ctest-vn-01028917 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-16 12:39:52,329 - DEBUG - Verifying the vn in opserver
2026-01-16 12:39:52,329 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58533038:ctest-vn-01028917 virtual network link through opserver 10.0.0.41
2026-01-16 12:39:52,329 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2026-01-16 12:39:52,629 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2026-01-16 12:39:52,700 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58533038:ctest-vn-01028917', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58533038:ctest-vn-01028917?flat'}
2026-01-16 12:39:52,700 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-58533038:ctest-vn-01028917 is found in opserver
2026-01-16 12:39:52,709 - DEBUG - Do not have enough data to verify VN in agent
2026-01-16 12:39:52,714 - DEBUG - VRF ids for VN ctest-vn-01028917: {}
2026-01-16 12:39:52,714 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2026-01-16 12:39:52,719 - DEBUG - Requesting: http://10.0.0.41:8082/domain/9d10340c-1758-4358-9496-e4fe61626007
2026-01-16 12:39:52,731 - DEBUG - Requesting: http://10.0.0.41:8082/project/116105c0-ee35-4eaf-8297-712fd8373f6a
2026-01-16 12:39:52,801 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/a1e21533-ec09-424d-8c3d-12a2b19e7951
2026-01-16 12:39:52,812 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/a1e21533-ec09-424d-8c3d-12a2b19e7951
2026-01-16 12:39:52,821 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/21a0c22d-1bb7-4b0d-be7e-6926fce8c795
2026-01-16 12:39:52,828 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/21a0c22d-1bb7-4b0d-be7e-6926fce8c795
2026-01-16 12:39:52,834 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/f56edb1d-177c-4a4f-87be-5d2759bc2037
2026-01-16 12:39:52,841 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-16 12:39:52,841 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/a1e21533-ec09-424d-8c3d-12a2b19e7951
2026-01-16 12:39:52,850 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/21a0c22d-1bb7-4b0d-be7e-6926fce8c795
2026-01-16 12:39:52,864 - INFO - Verified VN network id 13 for VN a1e21533-ec09-424d-8c3d-12a2b19e7951
2026-01-16 12:39:52,865 - INFO - Verifications in API Server for VN ctest-vn-71553016 passed
2026-01-16 12:39:52,865 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/a1e21533-ec09-424d-8c3d-12a2b19e7951
2026-01-16 12:39:52,873 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/21a0c22d-1bb7-4b0d-be7e-6926fce8c795
2026-01-16 12:39:52,879 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/21a0c22d-1bb7-4b0d-be7e-6926fce8c795
2026-01-16 12:39:52,886 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/f56edb1d-177c-4a4f-87be-5d2759bc2037
2026-01-16 12:39:52,898 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58533038:ctest-vn-71553016', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58533038', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11664909297590551117', 'uuid-lslong': '10105253628863215953'}, 'enable': 'true', 'created': '2026-01-16T12:39:50', 'last-modified': '2026-01-16T12:39:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.371949'}
2026-01-16 12:39:52,904 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-16 12:39:52,904 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-71553016 passed
2026-01-16 12:39:52,904 - DEBUG - ====Verifying policy data for ctest-vn-71553016 in API_Server ======
2026-01-16 12:39:52,904 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2026-01-16 12:39:52,909 - DEBUG - Requesting: http://10.0.0.41:8082/domain/9d10340c-1758-4358-9496-e4fe61626007
2026-01-16 12:39:52,920 - DEBUG - Requesting: http://10.0.0.41:8082/project/116105c0-ee35-4eaf-8297-712fd8373f6a
2026-01-16 12:39:52,995 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/a1e21533-ec09-424d-8c3d-12a2b19e7951
2026-01-16 12:39:53,007 - DEBUG - ==>Verifying data for policy with id: bfbc85fd-c0b7-47bd-9a03-467d5cf23ffa, fqn: ['default-domain', 'ctest-TestBasicPolicy-58533038', 'ctest-policy-allow-all-38578096']
2026-01-16 12:39:53,007 - INFO - VN ctest-vn-71553016 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-16 12:39:53,007 - DEBUG - Verifying the vn in opserver
2026-01-16 12:39:53,007 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58533038:ctest-vn-71553016 virtual network link through opserver 10.0.0.41
2026-01-16 12:39:53,008 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2026-01-16 12:39:53,018 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58533038:ctest-vn-71553016', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58533038:ctest-vn-71553016?flat'}
2026-01-16 12:39:53,018 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-58533038:ctest-vn-71553016 is found in opserver
2026-01-16 12:39:53,028 - DEBUG - Do not have enough data to verify VN in agent
2026-01-16 12:39:53,032 - DEBUG - VRF ids for VN ctest-vn-71553016: {}
2026-01-16 12:39:53,091 - DEBUG - Services list from nova: [