2026-05-11 02:21:01,219 - INFO - Domain Default found not creating
2026-05-11 02:21:01,425 - INFO - Project ctest-TestBasicPolicy-70695101 not found, creating it
2026-05-11 02:21:01,892 - INFO - Created Project:ctest-TestBasicPolicy-70695101, ID : e720b153-5b33-470a-b989-ea98596afb5e
2026-05-11 02:21:03,393 - INFO - ================================================================================
2026-05-11 02:21:03,393 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-05-11 02:21:03,393 - 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-05-11 02:21:03,649 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.14': '0'}} with
2026-05-11 02:21:03,649 - INFO - Initial checks done. Running the testcase now
2026-05-11 02:21:03,649 - INFO -
2026-05-11 02:21:04,195 - DEBUG - Response for create_network : {'network': {'id': 'd3a36cf7-9205-49ce-b997-1aa50b4643a4', 'name': 'ctest-vn-43349599', 'tenant_id': 'e720b1535b33470ab989ea98596afb5e', 'project_id': 'e720b1535b33470ab989ea98596afb5e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70695101', 'ctest-vn-43349599'], 'port_security_enabled': True, 'description': ''}}
2026-05-11 02:21:04,390 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd7cfe97a-0ba8-4acd-bcb9-202a90b0d8fd', 'name': '', 'tenant_id': 'e720b1535b33470ab989ea98596afb5e', 'network_id': 'd3a36cf7-9205-49ce-b997-1aa50b4643a4', 'ip_version': 4, 'cidr': '220.22.1.192/26', 'allocation_pools': [{'start': '220.22.1.194', 'end': '220.22.1.254'}], 'gateway_ip': '220.22.1.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '220.22.1.194', 'tags': [], 'project_id': 'e720b1535b33470ab989ea98596afb5e'}}
2026-05-11 02:21:04,409 - INFO - Created VN ctest-vn-43349599
2026-05-11 02:21:04,460 - DEBUG - VN ctest-vn-43349599 UUID is d3a36cf7-9205-49ce-b997-1aa50b4643a4
2026-05-11 02:21:04,759 - DEBUG - Response for create_network : {'network': {'id': '72583b57-6088-45a3-a2bf-08cc8be31e6a', 'name': 'ctest-vn-50870646', 'tenant_id': 'e720b1535b33470ab989ea98596afb5e', 'project_id': 'e720b1535b33470ab989ea98596afb5e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70695101', 'ctest-vn-50870646'], 'port_security_enabled': True, 'description': ''}}
2026-05-11 02:21:04,935 - DEBUG - Response for create_subnet : {'subnet': {'id': '2e09c6b5-6cd8-4a81-ae76-68b50d916ec2', 'name': '', 'tenant_id': 'e720b1535b33470ab989ea98596afb5e', 'network_id': '72583b57-6088-45a3-a2bf-08cc8be31e6a', 'ip_version': 4, 'cidr': '112.106.235.64/26', 'allocation_pools': [{'start': '112.106.235.66', 'end': '112.106.235.126'}], 'gateway_ip': '112.106.235.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '112.106.235.66', 'tags': [], 'project_id': 'e720b1535b33470ab989ea98596afb5e'}}
2026-05-11 02:21:04,954 - INFO - Created VN ctest-vn-50870646
2026-05-11 02:21:05,020 - DEBUG - VN ctest-vn-50870646 UUID is 72583b57-6088-45a3-a2bf-08cc8be31e6a
2026-05-11 02:21:05,145 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-70695101:ctest-vn-43349599, 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-70695101:ctest-vn-50870646, 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-05-11 02:21:05,434 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd3a36cf7-9205-49ce-b997-1aa50b4643a4', 'name': 'ctest-vn-43349599', 'tenant_id': 'e720b1535b33470ab989ea98596afb5e', 'project_id': 'e720b1535b33470ab989ea98596afb5e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d7cfe97a-0ba8-4acd-bcb9-202a90b0d8fd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70695101', 'ctest-vn-43349599'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-70695101', 'ctest-policy-allow-all-28422540']], 'subnet_ipam': [{'subnet_cidr': '220.22.1.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-11 02:21:05,673 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '72583b57-6088-45a3-a2bf-08cc8be31e6a', 'name': 'ctest-vn-50870646', 'tenant_id': 'e720b1535b33470ab989ea98596afb5e', 'project_id': 'e720b1535b33470ab989ea98596afb5e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2e09c6b5-6cd8-4a81-ae76-68b50d916ec2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70695101', 'ctest-vn-50870646'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-70695101', 'ctest-policy-allow-all-28422540']], 'subnet_ipam': [{'subnet_cidr': '112.106.235.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-11 02:21:05,848 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-05-11 02:21:06,143 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-05-11 02:21:06,177 - DEBUG - Requesting: http://10.0.0.22:8082/domain/59bf549c-572e-4c94-b962-23595d60dcf1
2026-05-11 02:21:06,189 - DEBUG - Requesting: http://10.0.0.22:8082/project/e720b153-5b33-470a-b989-ea98596afb5e
2026-05-11 02:21:06,259 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d3a36cf7-9205-49ce-b997-1aa50b4643a4
2026-05-11 02:21:06,272 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d3a36cf7-9205-49ce-b997-1aa50b4643a4
2026-05-11 02:21:06,281 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0bb6648b-43bc-4c8c-aa7b-f095394f594d
2026-05-11 02:21:06,289 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0bb6648b-43bc-4c8c-aa7b-f095394f594d
2026-05-11 02:21:06,296 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/d505b871-ec5b-4add-8ab4-cece1855ae63
2026-05-11 02:21:06,303 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-11 02:21:06,303 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d3a36cf7-9205-49ce-b997-1aa50b4643a4
2026-05-11 02:21:06,315 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0bb6648b-43bc-4c8c-aa7b-f095394f594d
2026-05-11 02:21:06,332 - INFO - Verified VN network id 12 for VN d3a36cf7-9205-49ce-b997-1aa50b4643a4
2026-05-11 02:21:06,332 - INFO - Verifications in API Server for VN ctest-vn-43349599 passed
2026-05-11 02:21:06,332 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d3a36cf7-9205-49ce-b997-1aa50b4643a4
2026-05-11 02:21:06,343 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0bb6648b-43bc-4c8c-aa7b-f095394f594d
2026-05-11 02:21:06,350 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0bb6648b-43bc-4c8c-aa7b-f095394f594d
2026-05-11 02:21:06,358 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/d505b871-ec5b-4add-8ab4-cece1855ae63
2026-05-11 02:21:06,371 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70695101:ctest-vn-43349599', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70695101', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15250152573769173454', 'uuid-lslong': '13373186914661057444'}, 'enable': 'true', 'created': '2026-05-11T02:21:04', 'last-modified': '2026-05-11T02:21:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.958653'}
2026-05-11 02:21:06,378 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-11 02:21:06,378 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-43349599 passed
2026-05-11 02:21:06,379 - DEBUG - ====Verifying policy data for ctest-vn-43349599 in API_Server ======
2026-05-11 02:21:06,379 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-05-11 02:21:06,385 - DEBUG - Requesting: http://10.0.0.22:8082/domain/59bf549c-572e-4c94-b962-23595d60dcf1
2026-05-11 02:21:06,396 - DEBUG - Requesting: http://10.0.0.22:8082/project/e720b153-5b33-470a-b989-ea98596afb5e
2026-05-11 02:21:06,471 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d3a36cf7-9205-49ce-b997-1aa50b4643a4
2026-05-11 02:21:06,480 - DEBUG - ==>Verifying data for policy with id: 3f24884f-f007-4253-a8e3-9c5f256da5e3, fqn: ['default-domain', 'ctest-TestBasicPolicy-70695101', 'ctest-policy-allow-all-28422540']
2026-05-11 02:21:06,480 - INFO - VN ctest-vn-43349599 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-11 02:21:06,480 - DEBUG - Verifying the vn in opserver
2026-05-11 02:21:06,480 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70695101:ctest-vn-43349599 virtual network link through opserver 10.0.0.22
2026-05-11 02:21:06,481 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-05-11 02:21:06,778 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-05-11 02:21:06,841 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70695101:ctest-vn-43349599', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70695101:ctest-vn-43349599?flat'}
2026-05-11 02:21:06,841 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-70695101:ctest-vn-43349599 is found in opserver
2026-05-11 02:21:06,851 - DEBUG - Do not have enough data to verify VN in agent
2026-05-11 02:21:06,855 - DEBUG - VRF ids for VN ctest-vn-43349599: {}
2026-05-11 02:21:06,855 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-05-11 02:21:06,861 - DEBUG - Requesting: http://10.0.0.22:8082/domain/59bf549c-572e-4c94-b962-23595d60dcf1
2026-05-11 02:21:06,871 - DEBUG - Requesting: http://10.0.0.22:8082/project/e720b153-5b33-470a-b989-ea98596afb5e
2026-05-11 02:21:06,941 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/72583b57-6088-45a3-a2bf-08cc8be31e6a
2026-05-11 02:21:06,952 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/72583b57-6088-45a3-a2bf-08cc8be31e6a
2026-05-11 02:21:06,962 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6012489b-19c5-401c-a441-4bd435aa4dd1
2026-05-11 02:21:06,969 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6012489b-19c5-401c-a441-4bd435aa4dd1
2026-05-11 02:21:06,975 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/6d2f2672-67a5-4727-a49c-ca5c52ce1b05
2026-05-11 02:21:06,982 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-11 02:21:06,982 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/72583b57-6088-45a3-a2bf-08cc8be31e6a
2026-05-11 02:21:06,990 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6012489b-19c5-401c-a441-4bd435aa4dd1
2026-05-11 02:21:07,004 - INFO - Verified VN network id 13 for VN 72583b57-6088-45a3-a2bf-08cc8be31e6a
2026-05-11 02:21:07,004 - INFO - Verifications in API Server for VN ctest-vn-50870646 passed
2026-05-11 02:21:07,005 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/72583b57-6088-45a3-a2bf-08cc8be31e6a
2026-05-11 02:21:07,016 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6012489b-19c5-401c-a441-4bd435aa4dd1
2026-05-11 02:21:07,025 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6012489b-19c5-401c-a441-4bd435aa4dd1
2026-05-11 02:21:07,033 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/6d2f2672-67a5-4727-a49c-ca5c52ce1b05
2026-05-11 02:21:07,045 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70695101:ctest-vn-50870646', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70695101', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8239400764742059427', 'uuid-lslong': '11727101629309329002'}, 'enable': 'true', 'created': '2026-05-11T02:21:04', 'last-modified': '2026-05-11T02:21:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.398998'}
2026-05-11 02:21:07,053 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-11 02:21:07,053 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-50870646 passed
2026-05-11 02:21:07,053 - DEBUG - ====Verifying policy data for ctest-vn-50870646 in API_Server ======
2026-05-11 02:21:07,053 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-05-11 02:21:07,058 - DEBUG - Requesting: http://10.0.0.22:8082/domain/59bf549c-572e-4c94-b962-23595d60dcf1
2026-05-11 02:21:07,070 - DEBUG - Requesting: http://10.0.0.22:8082/project/e720b153-5b33-470a-b989-ea98596afb5e
2026-05-11 02:21:07,143 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/72583b57-6088-45a3-a2bf-08cc8be31e6a
2026-05-11 02:21:07,152 - DEBUG - ==>Verifying data for policy with id: 3f24884f-f007-4253-a8e3-9c5f256da5e3, fqn: ['default-domain', 'ctest-TestBasicPolicy-70695101', 'ctest-policy-allow-all-28422540']
2026-05-11 02:21:07,152 - INFO - VN ctest-vn-50870646 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-11 02:21:07,152 - DEBUG - Verifying the vn in opserver
2026-05-11 02:21:07,152 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70695101:ctest-vn-50870646 virtual network link through opserver 10.0.0.22
2026-05-11 02:21:07,152 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-05-11 02:21:07,162 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70695101:ctest-vn-50870646', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70695101:ctest-vn-50870646?flat'}
2026-05-11 02:21:07,162 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-70695101:ctest-vn-50870646 is found in opserver
2026-05-11 02:21:07,171 - DEBUG - Do not have enough data to verify VN in agent
2026-05-11 02:21:07,176 - DEBUG - VRF ids for VN ctest-vn-50870646: {}
2026-05-11 02:21:07,238 - DEBUG - Services list from nova: [