2026-05-25 02:06:32,356 - INFO - Domain Default found not creating
2026-05-25 02:06:32,527 - INFO - Project ctest-TestBasicPolicy-72228530 not found, creating it
2026-05-25 02:06:32,961 - INFO - Created Project:ctest-TestBasicPolicy-72228530, ID : 9fa75597-5a0e-4ee1-9855-f4ad693cb4e5
2026-05-25 02:06:34,388 - INFO - ================================================================================
2026-05-25 02:06:34,388 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-05-25 02:06:34,388 - 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-25 02:06:34,650 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.201': '0'}} with
2026-05-25 02:06:34,650 - INFO - Initial checks done. Running the testcase now
2026-05-25 02:06:34,650 - INFO -
2026-05-25 02:06:35,211 - DEBUG - Response for create_network : {'network': {'id': 'b7bc904f-9fe8-4023-8b45-c587fb43bdb2', 'name': 'ctest-vn-58885824', 'tenant_id': '9fa755975a0e4ee19855f4ad693cb4e5', 'project_id': '9fa755975a0e4ee19855f4ad693cb4e5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72228530', 'ctest-vn-58885824'], 'port_security_enabled': True, 'description': ''}}
2026-05-25 02:06:35,405 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c35f1d3c-c563-4155-bd10-56459c2f8b59', 'name': '', 'tenant_id': '9fa755975a0e4ee19855f4ad693cb4e5', 'network_id': 'b7bc904f-9fe8-4023-8b45-c587fb43bdb2', 'ip_version': 4, 'cidr': '119.107.47.128/26', 'allocation_pools': [{'start': '119.107.47.130', 'end': '119.107.47.190'}], 'gateway_ip': '119.107.47.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '119.107.47.130', 'tags': [], 'project_id': '9fa755975a0e4ee19855f4ad693cb4e5'}}
2026-05-25 02:06:35,421 - INFO - Created VN ctest-vn-58885824
2026-05-25 02:06:35,473 - DEBUG - VN ctest-vn-58885824 UUID is b7bc904f-9fe8-4023-8b45-c587fb43bdb2
2026-05-25 02:06:35,800 - DEBUG - Response for create_network : {'network': {'id': '06e1f7de-708f-4fdb-b52e-a69acb5ff9e3', 'name': 'ctest-vn-51365743', 'tenant_id': '9fa755975a0e4ee19855f4ad693cb4e5', 'project_id': '9fa755975a0e4ee19855f4ad693cb4e5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72228530', 'ctest-vn-51365743'], 'port_security_enabled': True, 'description': ''}}
2026-05-25 02:06:36,021 - DEBUG - Response for create_subnet : {'subnet': {'id': '1bdf6d29-3b77-4c32-9c04-3b21f6015b11', 'name': '', 'tenant_id': '9fa755975a0e4ee19855f4ad693cb4e5', 'network_id': '06e1f7de-708f-4fdb-b52e-a69acb5ff9e3', 'ip_version': 4, 'cidr': '151.155.236.0/26', 'allocation_pools': [{'start': '151.155.236.2', 'end': '151.155.236.62'}], 'gateway_ip': '151.155.236.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '151.155.236.2', 'tags': [], 'project_id': '9fa755975a0e4ee19855f4ad693cb4e5'}}
2026-05-25 02:06:36,039 - INFO - Created VN ctest-vn-51365743
2026-05-25 02:06:36,089 - DEBUG - VN ctest-vn-51365743 UUID is 06e1f7de-708f-4fdb-b52e-a69acb5ff9e3
2026-05-25 02:06:36,241 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-72228530:ctest-vn-58885824, 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-72228530:ctest-vn-51365743, 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-25 02:06:36,530 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b7bc904f-9fe8-4023-8b45-c587fb43bdb2', 'name': 'ctest-vn-58885824', 'tenant_id': '9fa755975a0e4ee19855f4ad693cb4e5', 'project_id': '9fa755975a0e4ee19855f4ad693cb4e5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c35f1d3c-c563-4155-bd10-56459c2f8b59'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72228530', 'ctest-vn-58885824'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-72228530', 'ctest-policy-allow-all-17577692']], 'subnet_ipam': [{'subnet_cidr': '119.107.47.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-25 02:06:36,762 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '06e1f7de-708f-4fdb-b52e-a69acb5ff9e3', 'name': 'ctest-vn-51365743', 'tenant_id': '9fa755975a0e4ee19855f4ad693cb4e5', 'project_id': '9fa755975a0e4ee19855f4ad693cb4e5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1bdf6d29-3b77-4c32-9c04-3b21f6015b11'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72228530', 'ctest-vn-51365743'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-72228530', 'ctest-policy-allow-all-17577692']], 'subnet_ipam': [{'subnet_cidr': '151.155.236.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-25 02:06:36,929 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2026-05-25 02:06:37,223 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2026-05-25 02:06:37,536 - DEBUG - Requesting: http://10.0.0.130:8082/domain/d05b3aa9-78be-4e19-8297-f1a7525d7e03
2026-05-25 02:06:37,547 - DEBUG - Requesting: http://10.0.0.130:8082/project/9fa75597-5a0e-4ee1-9855-f4ad693cb4e5
2026-05-25 02:06:37,614 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/b7bc904f-9fe8-4023-8b45-c587fb43bdb2
2026-05-25 02:06:37,625 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/b7bc904f-9fe8-4023-8b45-c587fb43bdb2
2026-05-25 02:06:37,634 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/6f9695ab-5759-4856-b368-a3b38d18f648
2026-05-25 02:06:37,640 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/6f9695ab-5759-4856-b368-a3b38d18f648
2026-05-25 02:06:37,646 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/077e645f-8297-4734-9d52-d04d4b327dd5
2026-05-25 02:06:37,652 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-25 02:06:37,652 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/b7bc904f-9fe8-4023-8b45-c587fb43bdb2
2026-05-25 02:06:37,659 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/6f9695ab-5759-4856-b368-a3b38d18f648
2026-05-25 02:06:37,669 - INFO - Verified VN network id 10 for VN b7bc904f-9fe8-4023-8b45-c587fb43bdb2
2026-05-25 02:06:37,669 - INFO - Verifications in API Server for VN ctest-vn-58885824 passed
2026-05-25 02:06:37,670 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/b7bc904f-9fe8-4023-8b45-c587fb43bdb2
2026-05-25 02:06:37,676 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/6f9695ab-5759-4856-b368-a3b38d18f648
2026-05-25 02:06:37,681 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/6f9695ab-5759-4856-b368-a3b38d18f648
2026-05-25 02:06:37,686 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/077e645f-8297-4734-9d52-d04d4b327dd5
2026-05-25 02:06:37,694 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-72228530:ctest-vn-58885824', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-72228530', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13239615676222029859', 'uuid-lslong': '10035644532491795890'}, 'enable': 'true', 'created': '2026-05-25T02:06:35', 'last-modified': '2026-05-25T02:06:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.189349'}
2026-05-25 02:06:37,699 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-25 02:06:37,699 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-58885824 passed
2026-05-25 02:06:37,699 - DEBUG - ====Verifying policy data for ctest-vn-58885824 in API_Server ======
2026-05-25 02:06:37,699 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2026-05-25 02:06:37,703 - DEBUG - Requesting: http://10.0.0.130:8082/domain/d05b3aa9-78be-4e19-8297-f1a7525d7e03
2026-05-25 02:06:37,713 - DEBUG - Requesting: http://10.0.0.130:8082/project/9fa75597-5a0e-4ee1-9855-f4ad693cb4e5
2026-05-25 02:06:37,778 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/b7bc904f-9fe8-4023-8b45-c587fb43bdb2
2026-05-25 02:06:37,787 - DEBUG - ==>Verifying data for policy with id: ca4fd2ae-a615-4bd4-b2fb-3731384a58ac, fqn: ['default-domain', 'ctest-TestBasicPolicy-72228530', 'ctest-policy-allow-all-17577692']
2026-05-25 02:06:37,787 - INFO - VN ctest-vn-58885824 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-25 02:06:37,787 - DEBUG - Verifying the vn in opserver
2026-05-25 02:06:37,787 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-72228530:ctest-vn-58885824 virtual network link through opserver 10.0.0.130
2026-05-25 02:06:37,787 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2026-05-25 02:06:38,162 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2026-05-25 02:06:38,240 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-72228530:ctest-vn-58885824', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-72228530:ctest-vn-58885824?flat'}
2026-05-25 02:06:38,240 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-72228530:ctest-vn-58885824 is found in opserver
2026-05-25 02:06:38,249 - DEBUG - Do not have enough data to verify VN in agent
2026-05-25 02:06:38,254 - DEBUG - VRF ids for VN ctest-vn-58885824: {}
2026-05-25 02:06:38,254 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2026-05-25 02:06:38,259 - DEBUG - Requesting: http://10.0.0.130:8082/domain/d05b3aa9-78be-4e19-8297-f1a7525d7e03
2026-05-25 02:06:38,269 - DEBUG - Requesting: http://10.0.0.130:8082/project/9fa75597-5a0e-4ee1-9855-f4ad693cb4e5
2026-05-25 02:06:38,338 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/06e1f7de-708f-4fdb-b52e-a69acb5ff9e3
2026-05-25 02:06:38,348 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/06e1f7de-708f-4fdb-b52e-a69acb5ff9e3
2026-05-25 02:06:38,356 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/5a383b30-212a-446b-9e6d-6d2d2d2daef6
2026-05-25 02:06:38,362 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/5a383b30-212a-446b-9e6d-6d2d2d2daef6
2026-05-25 02:06:38,368 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/1b7ae5be-9f1f-4691-8af1-34295399db56
2026-05-25 02:06:38,373 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-25 02:06:38,373 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/06e1f7de-708f-4fdb-b52e-a69acb5ff9e3
2026-05-25 02:06:38,381 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/5a383b30-212a-446b-9e6d-6d2d2d2daef6
2026-05-25 02:06:38,394 - INFO - Verified VN network id 11 for VN 06e1f7de-708f-4fdb-b52e-a69acb5ff9e3
2026-05-25 02:06:38,394 - INFO - Verifications in API Server for VN ctest-vn-51365743 passed
2026-05-25 02:06:38,394 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/06e1f7de-708f-4fdb-b52e-a69acb5ff9e3
2026-05-25 02:06:38,401 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/5a383b30-212a-446b-9e6d-6d2d2d2daef6
2026-05-25 02:06:38,408 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/5a383b30-212a-446b-9e6d-6d2d2d2daef6
2026-05-25 02:06:38,414 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/1b7ae5be-9f1f-4691-8af1-34295399db56
2026-05-25 02:06:38,426 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-72228530:ctest-vn-51365743', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-72228530', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '495949968730705883', 'uuid-lslong': '13055555553560885731'}, 'enable': 'true', 'created': '2026-05-25T02:06:35', 'last-modified': '2026-05-25T02:06:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.677977'}
2026-05-25 02:06:38,431 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-25 02:06:38,431 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51365743 passed
2026-05-25 02:06:38,431 - DEBUG - ====Verifying policy data for ctest-vn-51365743 in API_Server ======
2026-05-25 02:06:38,431 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2026-05-25 02:06:38,436 - DEBUG - Requesting: http://10.0.0.130:8082/domain/d05b3aa9-78be-4e19-8297-f1a7525d7e03
2026-05-25 02:06:38,446 - DEBUG - Requesting: http://10.0.0.130:8082/project/9fa75597-5a0e-4ee1-9855-f4ad693cb4e5
2026-05-25 02:06:38,513 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/06e1f7de-708f-4fdb-b52e-a69acb5ff9e3
2026-05-25 02:06:38,521 - DEBUG - ==>Verifying data for policy with id: ca4fd2ae-a615-4bd4-b2fb-3731384a58ac, fqn: ['default-domain', 'ctest-TestBasicPolicy-72228530', 'ctest-policy-allow-all-17577692']
2026-05-25 02:06:38,521 - INFO - VN ctest-vn-51365743 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-25 02:06:38,521 - DEBUG - Verifying the vn in opserver
2026-05-25 02:06:38,521 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-72228530:ctest-vn-51365743 virtual network link through opserver 10.0.0.130
2026-05-25 02:06:38,521 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2026-05-25 02:06:38,529 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-72228530:ctest-vn-51365743', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-72228530:ctest-vn-51365743?flat'}
2026-05-25 02:06:38,529 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-72228530:ctest-vn-51365743 is found in opserver
2026-05-25 02:06:38,538 - DEBUG - Do not have enough data to verify VN in agent
2026-05-25 02:06:38,542 - DEBUG - VRF ids for VN ctest-vn-51365743: {}
2026-05-25 02:06:38,603 - DEBUG - Services list from nova: [