2026-08-25 23:47:37,840 - INFO - Domain Default found not creating
2026-08-25 23:47:38,010 - INFO - Project ctest-TestBasicPolicy-59986106 not found, creating it
2026-08-25 23:47:38,536 - INFO - Created Project:ctest-TestBasicPolicy-59986106, ID : b82604e0-d5ef-4b6e-9987-a69cb8c77277
2026-08-25 23:47:40,258 - INFO - ================================================================================
2026-08-25 23:47:40,259 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-08-25 23:47:40,259 - 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-08-25 23:47:40,529 - DEBUG - Nothing to compare xmpp stats {'10.0.0.162': {'10.20.0.17': '0'}} with
2026-08-25 23:47:40,529 - INFO - Initial checks done. Running the testcase now
2026-08-25 23:47:40,530 - INFO -
2026-08-25 23:47:41,216 - DEBUG - Response for create_network : {'network': {'id': 'cafa73eb-f032-475d-92ef-6423766bdf8e', 'name': 'ctest-vn-44610503', 'tenant_id': 'b82604e0d5ef4b6e9987a69cb8c77277', 'project_id': 'b82604e0d5ef4b6e9987a69cb8c77277', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59986106', 'ctest-vn-44610503'], 'port_security_enabled': True, 'description': ''}}
2026-08-25 23:47:41,405 - DEBUG - Response for create_subnet : {'subnet': {'id': '0991d928-c248-4ed3-b909-b00d15e614f5', 'name': '', 'tenant_id': 'b82604e0d5ef4b6e9987a69cb8c77277', 'network_id': 'cafa73eb-f032-475d-92ef-6423766bdf8e', 'ip_version': 4, 'cidr': '218.112.124.0/26', 'allocation_pools': [{'start': '218.112.124.2', 'end': '218.112.124.62'}], 'gateway_ip': '218.112.124.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '218.112.124.2', 'tags': [], 'project_id': 'b82604e0d5ef4b6e9987a69cb8c77277'}}
2026-08-25 23:47:41,428 - INFO - Created VN ctest-vn-44610503
2026-08-25 23:47:41,480 - DEBUG - VN ctest-vn-44610503 UUID is cafa73eb-f032-475d-92ef-6423766bdf8e
2026-08-25 23:47:41,823 - DEBUG - Response for create_network : {'network': {'id': 'cf565a34-9dc1-487a-8f8f-b8d13d6ba636', 'name': 'ctest-vn-62452837', 'tenant_id': 'b82604e0d5ef4b6e9987a69cb8c77277', 'project_id': 'b82604e0d5ef4b6e9987a69cb8c77277', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59986106', 'ctest-vn-62452837'], 'port_security_enabled': True, 'description': ''}}
2026-08-25 23:47:42,009 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a352d0f9-03d2-4d3e-aebd-da4b13fe4ab0', 'name': '', 'tenant_id': 'b82604e0d5ef4b6e9987a69cb8c77277', 'network_id': 'cf565a34-9dc1-487a-8f8f-b8d13d6ba636', 'ip_version': 4, 'cidr': '164.220.198.128/26', 'allocation_pools': [{'start': '164.220.198.130', 'end': '164.220.198.190'}], 'gateway_ip': '164.220.198.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '164.220.198.130', 'tags': [], 'project_id': 'b82604e0d5ef4b6e9987a69cb8c77277'}}
2026-08-25 23:47:42,027 - INFO - Created VN ctest-vn-62452837
2026-08-25 23:47:42,084 - DEBUG - VN ctest-vn-62452837 UUID is cf565a34-9dc1-487a-8f8f-b8d13d6ba636
2026-08-25 23:47:42,206 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-59986106:ctest-vn-44610503, 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-59986106:ctest-vn-62452837, 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-08-25 23:47:42,565 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cafa73eb-f032-475d-92ef-6423766bdf8e', 'name': 'ctest-vn-44610503', 'tenant_id': 'b82604e0d5ef4b6e9987a69cb8c77277', 'project_id': 'b82604e0d5ef4b6e9987a69cb8c77277', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['0991d928-c248-4ed3-b909-b00d15e614f5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59986106', 'ctest-vn-44610503'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-59986106', 'ctest-policy-allow-all-56665080']], 'subnet_ipam': [{'subnet_cidr': '218.112.124.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-25 23:47:42,860 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cf565a34-9dc1-487a-8f8f-b8d13d6ba636', 'name': 'ctest-vn-62452837', 'tenant_id': 'b82604e0d5ef4b6e9987a69cb8c77277', 'project_id': 'b82604e0d5ef4b6e9987a69cb8c77277', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['a352d0f9-03d2-4d3e-aebd-da4b13fe4ab0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59986106', 'ctest-vn-62452837'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-59986106', 'ctest-policy-allow-all-56665080']], 'subnet_ipam': [{'subnet_cidr': '164.220.198.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-25 23:47:43,036 - DEBUG - Requesting: http://10.0.0.162:8082/domains
2026-08-25 23:47:43,406 - DEBUG - Requesting: http://10.0.0.162:8082/domains
2026-08-25 23:47:43,441 - DEBUG - Requesting: http://10.0.0.162:8082/domain/9db896ba-d4cf-437d-846f-a4837f9a7076
2026-08-25 23:47:43,457 - DEBUG - Requesting: http://10.0.0.162:8082/project/b82604e0-d5ef-4b6e-9987-a69cb8c77277
2026-08-25 23:47:43,538 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/cafa73eb-f032-475d-92ef-6423766bdf8e
2026-08-25 23:47:43,549 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/cafa73eb-f032-475d-92ef-6423766bdf8e
2026-08-25 23:47:43,558 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/dc0e5244-63a9-47ce-9322-0b92c1e3effe
2026-08-25 23:47:43,566 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/dc0e5244-63a9-47ce-9322-0b92c1e3effe
2026-08-25 23:47:43,574 - DEBUG - Requesting: http://10.0.0.162:8082/route-target/3e3fff2b-7959-4c25-a962-6ffb0483cc05
2026-08-25 23:47:43,582 - DEBUG - Route Targets: ['target:64512:8000004']
2026-08-25 23:47:43,582 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/cafa73eb-f032-475d-92ef-6423766bdf8e
2026-08-25 23:47:43,592 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/dc0e5244-63a9-47ce-9322-0b92c1e3effe
2026-08-25 23:47:43,607 - INFO - Verified VN network id 11 for VN cafa73eb-f032-475d-92ef-6423766bdf8e
2026-08-25 23:47:43,607 - INFO - Verifications in API Server for VN ctest-vn-44610503 passed
2026-08-25 23:47:43,607 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/cafa73eb-f032-475d-92ef-6423766bdf8e
2026-08-25 23:47:43,616 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/dc0e5244-63a9-47ce-9322-0b92c1e3effe
2026-08-25 23:47:43,624 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/dc0e5244-63a9-47ce-9322-0b92c1e3effe
2026-08-25 23:47:43,635 - DEBUG - Requesting: http://10.0.0.162:8082/route-target/3e3fff2b-7959-4c25-a962-6ffb0483cc05
2026-08-25 23:47:43,651 - DEBUG - Control-node 10.0.0.162 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-59986106:ctest-vn-44610503', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-59986106', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14626130197023442781', 'uuid-lslong': '10587791352444739470'}, 'enable': 'true', 'created': '2026-08-25T23:47:41', 'last-modified': '2026-08-25T23:47:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.118754'}
2026-08-25 23:47:43,661 - DEBUG - Route Targets: ['target:64512:8000004']
2026-08-25 23:47:43,662 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-44610503 passed
2026-08-25 23:47:43,662 - DEBUG - ====Verifying policy data for ctest-vn-44610503 in API_Server ======
2026-08-25 23:47:43,662 - DEBUG - Requesting: http://10.0.0.162:8082/domains
2026-08-25 23:47:43,671 - DEBUG - Requesting: http://10.0.0.162:8082/domain/9db896ba-d4cf-437d-846f-a4837f9a7076
2026-08-25 23:47:43,688 - DEBUG - Requesting: http://10.0.0.162:8082/project/b82604e0-d5ef-4b6e-9987-a69cb8c77277
2026-08-25 23:47:43,762 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/cafa73eb-f032-475d-92ef-6423766bdf8e
2026-08-25 23:47:43,771 - DEBUG - ==>Verifying data for policy with id: aee620cd-45df-4adb-88fd-8ee95abebf10, fqn: ['default-domain', 'ctest-TestBasicPolicy-59986106', 'ctest-policy-allow-all-56665080']
2026-08-25 23:47:43,771 - INFO - VN ctest-vn-44610503 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-25 23:47:43,771 - DEBUG - Verifying the vn in opserver
2026-08-25 23:47:43,772 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-59986106:ctest-vn-44610503 virtual network link through opserver 10.0.0.162
2026-08-25 23:47:43,772 - DEBUG - Requesting: http://10.0.0.162:8081/analytics/uves/virtual-networks
2026-08-25 23:47:44,142 - DEBUG - Requesting: http://10.0.0.162:8081/analytics/uves/virtual-networks
2026-08-25 23:47:44,200 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-59986106:ctest-vn-44610503', 'href': 'http://10.0.0.162:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-59986106:ctest-vn-44610503?flat'}
2026-08-25 23:47:44,200 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-59986106:ctest-vn-44610503 is found in opserver
2026-08-25 23:47:44,211 - DEBUG - Do not have enough data to verify VN in agent
2026-08-25 23:47:44,215 - DEBUG - VRF ids for VN ctest-vn-44610503: {}
2026-08-25 23:47:44,216 - DEBUG - Requesting: http://10.0.0.162:8082/domains
2026-08-25 23:47:44,221 - DEBUG - Requesting: http://10.0.0.162:8082/domain/9db896ba-d4cf-437d-846f-a4837f9a7076
2026-08-25 23:47:44,232 - DEBUG - Requesting: http://10.0.0.162:8082/project/b82604e0-d5ef-4b6e-9987-a69cb8c77277
2026-08-25 23:47:44,308 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/cf565a34-9dc1-487a-8f8f-b8d13d6ba636
2026-08-25 23:47:44,320 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/cf565a34-9dc1-487a-8f8f-b8d13d6ba636
2026-08-25 23:47:44,330 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/1e56838c-4551-40c0-80c2-32208c178efc
2026-08-25 23:47:44,337 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/1e56838c-4551-40c0-80c2-32208c178efc
2026-08-25 23:47:44,344 - DEBUG - Requesting: http://10.0.0.162:8082/route-target/c2407465-bd2e-49e4-9664-20446eb3b5e2
2026-08-25 23:47:44,350 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-25 23:47:44,350 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/cf565a34-9dc1-487a-8f8f-b8d13d6ba636
2026-08-25 23:47:44,363 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/1e56838c-4551-40c0-80c2-32208c178efc
2026-08-25 23:47:44,384 - INFO - Verified VN network id 12 for VN cf565a34-9dc1-487a-8f8f-b8d13d6ba636
2026-08-25 23:47:44,384 - INFO - Verifications in API Server for VN ctest-vn-62452837 passed
2026-08-25 23:47:44,384 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/cf565a34-9dc1-487a-8f8f-b8d13d6ba636
2026-08-25 23:47:44,395 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/1e56838c-4551-40c0-80c2-32208c178efc
2026-08-25 23:47:44,404 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/1e56838c-4551-40c0-80c2-32208c178efc
2026-08-25 23:47:44,413 - DEBUG - Requesting: http://10.0.0.162:8082/route-target/c2407465-bd2e-49e4-9664-20446eb3b5e2
2026-08-25 23:47:44,429 - DEBUG - Control-node 10.0.0.162 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-59986106:ctest-vn-62452837', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-59986106', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14940227995879688314', 'uuid-lslong': '10344690077911459382'}, 'enable': 'true', 'created': '2026-08-25T23:47:41', 'last-modified': '2026-08-25T23:47:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.610006'}
2026-08-25 23:47:44,436 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-25 23:47:44,436 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-62452837 passed
2026-08-25 23:47:44,436 - DEBUG - ====Verifying policy data for ctest-vn-62452837 in API_Server ======
2026-08-25 23:47:44,436 - DEBUG - Requesting: http://10.0.0.162:8082/domains
2026-08-25 23:47:44,443 - DEBUG - Requesting: http://10.0.0.162:8082/domain/9db896ba-d4cf-437d-846f-a4837f9a7076
2026-08-25 23:47:44,456 - DEBUG - Requesting: http://10.0.0.162:8082/project/b82604e0-d5ef-4b6e-9987-a69cb8c77277
2026-08-25 23:47:44,534 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/cf565a34-9dc1-487a-8f8f-b8d13d6ba636
2026-08-25 23:47:44,546 - DEBUG - ==>Verifying data for policy with id: aee620cd-45df-4adb-88fd-8ee95abebf10, fqn: ['default-domain', 'ctest-TestBasicPolicy-59986106', 'ctest-policy-allow-all-56665080']
2026-08-25 23:47:44,546 - INFO - VN ctest-vn-62452837 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-25 23:47:44,546 - DEBUG - Verifying the vn in opserver
2026-08-25 23:47:44,546 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-59986106:ctest-vn-62452837 virtual network link through opserver 10.0.0.162
2026-08-25 23:47:44,547 - DEBUG - Requesting: http://10.0.0.162:8081/analytics/uves/virtual-networks
2026-08-25 23:47:44,559 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-59986106:ctest-vn-62452837', 'href': 'http://10.0.0.162:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-59986106:ctest-vn-62452837?flat'}
2026-08-25 23:47:44,559 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-59986106:ctest-vn-62452837 is found in opserver
2026-08-25 23:47:44,572 - DEBUG - Do not have enough data to verify VN in agent
2026-08-25 23:47:44,578 - DEBUG - VRF ids for VN ctest-vn-62452837: {}
2026-08-25 23:47:44,639 - DEBUG - Services list from nova: [