2025-10-30 17:14:01,180 - INFO - Domain Default found not creating
2025-10-30 17:14:01,372 - INFO - Project ctest-TestBasicPolicy-47416809 not found, creating it
2025-10-30 17:14:01,847 - INFO - Created Project:ctest-TestBasicPolicy-47416809, ID : ea785cba-3c4d-42b8-8f01-bbe6deeaf70d
2025-10-30 17:14:03,838 - INFO - ================================================================================
2025-10-30 17:14:03,838 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-30 17:14:03,838 - 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
2025-10-30 17:14:04,165 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with
2025-10-30 17:14:04,166 - INFO - Initial checks done. Running the testcase now
2025-10-30 17:14:04,166 - INFO -
2025-10-30 17:14:04,907 - DEBUG - Response for create_network : {'network': {'id': 'ae199b74-96b2-48b0-b66a-3766cbb039c7', 'name': 'ctest-vn-05458133', 'tenant_id': 'ea785cba3c4d42b88f01bbe6deeaf70d', 'project_id': 'ea785cba3c4d42b88f01bbe6deeaf70d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47416809', 'ctest-vn-05458133'], 'port_security_enabled': True, 'description': ''}}
2025-10-30 17:14:05,099 - DEBUG - Response for create_subnet : {'subnet': {'id': '1eeb8898-fe1d-4409-9739-3ba9320efd3a', 'name': '', 'tenant_id': 'ea785cba3c4d42b88f01bbe6deeaf70d', 'network_id': 'ae199b74-96b2-48b0-b66a-3766cbb039c7', 'ip_version': 4, 'cidr': '191.90.250.128/26', 'allocation_pools': [{'start': '191.90.250.130', 'end': '191.90.250.190'}], 'gateway_ip': '191.90.250.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '191.90.250.130', 'tags': [], 'project_id': 'ea785cba3c4d42b88f01bbe6deeaf70d'}}
2025-10-30 17:14:05,120 - INFO - Created VN ctest-vn-05458133
2025-10-30 17:14:05,178 - DEBUG - VN ctest-vn-05458133 UUID is ae199b74-96b2-48b0-b66a-3766cbb039c7
2025-10-30 17:14:05,657 - DEBUG - Response for create_network : {'network': {'id': 'a4639113-d4a0-403b-a13d-402a9887fc28', 'name': 'ctest-vn-42024462', 'tenant_id': 'ea785cba3c4d42b88f01bbe6deeaf70d', 'project_id': 'ea785cba3c4d42b88f01bbe6deeaf70d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47416809', 'ctest-vn-42024462'], 'port_security_enabled': True, 'description': ''}}
2025-10-30 17:14:05,917 - DEBUG - Response for create_subnet : {'subnet': {'id': '2d74efd4-f569-45e0-bede-7369a66a2404', 'name': '', 'tenant_id': 'ea785cba3c4d42b88f01bbe6deeaf70d', 'network_id': 'a4639113-d4a0-403b-a13d-402a9887fc28', 'ip_version': 4, 'cidr': '130.129.186.64/26', 'allocation_pools': [{'start': '130.129.186.66', 'end': '130.129.186.126'}], 'gateway_ip': '130.129.186.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '130.129.186.66', 'tags': [], 'project_id': 'ea785cba3c4d42b88f01bbe6deeaf70d'}}
2025-10-30 17:14:05,950 - INFO - Created VN ctest-vn-42024462
2025-10-30 17:14:06,005 - DEBUG - VN ctest-vn-42024462 UUID is a4639113-d4a0-403b-a13d-402a9887fc28
2025-10-30 17:14:06,170 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-47416809:ctest-vn-05458133, 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-47416809:ctest-vn-42024462, 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]
2025-10-30 17:14:06,538 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ae199b74-96b2-48b0-b66a-3766cbb039c7', 'name': 'ctest-vn-05458133', 'tenant_id': 'ea785cba3c4d42b88f01bbe6deeaf70d', 'project_id': 'ea785cba3c4d42b88f01bbe6deeaf70d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1eeb8898-fe1d-4409-9739-3ba9320efd3a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47416809', 'ctest-vn-05458133'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-47416809', 'ctest-policy-allow-all-14071470']], 'subnet_ipam': [{'subnet_cidr': '191.90.250.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-30 17:14:06,893 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a4639113-d4a0-403b-a13d-402a9887fc28', 'name': 'ctest-vn-42024462', 'tenant_id': 'ea785cba3c4d42b88f01bbe6deeaf70d', 'project_id': 'ea785cba3c4d42b88f01bbe6deeaf70d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2d74efd4-f569-45e0-bede-7369a66a2404'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47416809', 'ctest-vn-42024462'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-47416809', 'ctest-policy-allow-all-14071470']], 'subnet_ipam': [{'subnet_cidr': '130.129.186.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-30 17:14:07,086 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-30 17:14:07,407 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-30 17:14:07,724 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d1fec484-0983-4101-8f56-7f5f4d69e839
2025-10-30 17:14:07,754 - DEBUG - Requesting: http://10.0.0.38:8082/project/ea785cba-3c4d-42b8-8f01-bbe6deeaf70d
2025-10-30 17:14:07,844 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ae199b74-96b2-48b0-b66a-3766cbb039c7
2025-10-30 17:14:07,860 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ae199b74-96b2-48b0-b66a-3766cbb039c7
2025-10-30 17:14:07,874 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5aee4eab-fc6f-45de-9b4c-3d22f6262e15
2025-10-30 17:14:07,883 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5aee4eab-fc6f-45de-9b4c-3d22f6262e15
2025-10-30 17:14:07,891 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/0f8c182e-ee1f-4f3d-a13e-53cde0bf3f9a
2025-10-30 17:14:07,899 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-30 17:14:07,900 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ae199b74-96b2-48b0-b66a-3766cbb039c7
2025-10-30 17:14:07,911 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5aee4eab-fc6f-45de-9b4c-3d22f6262e15
2025-10-30 17:14:07,939 - INFO - Verified VN network id 11 for VN ae199b74-96b2-48b0-b66a-3766cbb039c7
2025-10-30 17:14:07,940 - INFO - Verifications in API Server for VN ctest-vn-05458133 passed
2025-10-30 17:14:07,940 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ae199b74-96b2-48b0-b66a-3766cbb039c7
2025-10-30 17:14:07,952 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5aee4eab-fc6f-45de-9b4c-3d22f6262e15
2025-10-30 17:14:07,960 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5aee4eab-fc6f-45de-9b4c-3d22f6262e15
2025-10-30 17:14:07,970 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/0f8c182e-ee1f-4f3d-a13e-53cde0bf3f9a
2025-10-30 17:14:07,986 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-47416809:ctest-vn-05458133', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-47416809', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12545229162064005296', 'uuid-lslong': '13144379377077729735'}, 'enable': 'true', 'created': '2025-10-30T17:14:04', 'last-modified': '2025-10-30T17:14:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.480464'}
2025-10-30 17:14:07,993 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-30 17:14:07,993 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-05458133 passed
2025-10-30 17:14:07,993 - DEBUG - ====Verifying policy data for ctest-vn-05458133 in API_Server ======
2025-10-30 17:14:07,993 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-30 17:14:07,999 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d1fec484-0983-4101-8f56-7f5f4d69e839
2025-10-30 17:14:08,010 - DEBUG - Requesting: http://10.0.0.38:8082/project/ea785cba-3c4d-42b8-8f01-bbe6deeaf70d
2025-10-30 17:14:08,096 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ae199b74-96b2-48b0-b66a-3766cbb039c7
2025-10-30 17:14:08,109 - DEBUG - ==>Verifying data for policy with id: 1974ee89-254b-4f86-9cc7-4c93ef55d8c8, fqn: ['default-domain', 'ctest-TestBasicPolicy-47416809', 'ctest-policy-allow-all-14071470']
2025-10-30 17:14:08,109 - INFO - VN ctest-vn-05458133 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-30 17:14:08,109 - DEBUG - Verifying the vn in opserver
2025-10-30 17:14:08,109 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-47416809:ctest-vn-05458133 virtual network link through opserver 10.0.0.38
2025-10-30 17:14:08,109 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-30 17:14:08,453 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-30 17:14:08,635 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-47416809:ctest-vn-05458133', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-47416809:ctest-vn-05458133?flat'}
2025-10-30 17:14:08,635 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-47416809:ctest-vn-05458133 is found in opserver
2025-10-30 17:14:08,651 - DEBUG - Do not have enough data to verify VN in agent
2025-10-30 17:14:08,660 - DEBUG - VRF ids for VN ctest-vn-05458133: {}
2025-10-30 17:14:08,660 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-30 17:14:08,668 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d1fec484-0983-4101-8f56-7f5f4d69e839
2025-10-30 17:14:08,691 - DEBUG - Requesting: http://10.0.0.38:8082/project/ea785cba-3c4d-42b8-8f01-bbe6deeaf70d
2025-10-30 17:14:08,785 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a4639113-d4a0-403b-a13d-402a9887fc28
2025-10-30 17:14:08,801 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a4639113-d4a0-403b-a13d-402a9887fc28
2025-10-30 17:14:08,815 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/81b69d91-3d8a-47d3-979c-4af598712d7f
2025-10-30 17:14:08,825 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/81b69d91-3d8a-47d3-979c-4af598712d7f
2025-10-30 17:14:08,834 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/cad7922b-af38-4715-aaad-1a777061510c
2025-10-30 17:14:08,842 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-30 17:14:08,842 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a4639113-d4a0-403b-a13d-402a9887fc28
2025-10-30 17:14:08,853 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/81b69d91-3d8a-47d3-979c-4af598712d7f
2025-10-30 17:14:08,873 - INFO - Verified VN network id 12 for VN a4639113-d4a0-403b-a13d-402a9887fc28
2025-10-30 17:14:08,873 - INFO - Verifications in API Server for VN ctest-vn-42024462 passed
2025-10-30 17:14:08,873 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a4639113-d4a0-403b-a13d-402a9887fc28
2025-10-30 17:14:08,887 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/81b69d91-3d8a-47d3-979c-4af598712d7f
2025-10-30 17:14:08,897 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/81b69d91-3d8a-47d3-979c-4af598712d7f
2025-10-30 17:14:08,908 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/cad7922b-af38-4715-aaad-1a777061510c
2025-10-30 17:14:08,920 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-47416809:ctest-vn-42024462', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-47416809', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11845470959272214587', 'uuid-lslong': '11618513165377600552'}, 'enable': 'true', 'created': '2025-10-30T17:14:05', 'last-modified': '2025-10-30T17:14:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.078771'}
2025-10-30 17:14:08,927 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-30 17:14:08,927 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-42024462 passed
2025-10-30 17:14:08,927 - DEBUG - ====Verifying policy data for ctest-vn-42024462 in API_Server ======
2025-10-30 17:14:08,927 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-30 17:14:08,933 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d1fec484-0983-4101-8f56-7f5f4d69e839
2025-10-30 17:14:08,947 - DEBUG - Requesting: http://10.0.0.38:8082/project/ea785cba-3c4d-42b8-8f01-bbe6deeaf70d
2025-10-30 17:14:09,041 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a4639113-d4a0-403b-a13d-402a9887fc28
2025-10-30 17:14:09,053 - DEBUG - ==>Verifying data for policy with id: 1974ee89-254b-4f86-9cc7-4c93ef55d8c8, fqn: ['default-domain', 'ctest-TestBasicPolicy-47416809', 'ctest-policy-allow-all-14071470']
2025-10-30 17:14:09,053 - INFO - VN ctest-vn-42024462 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-30 17:14:09,053 - DEBUG - Verifying the vn in opserver
2025-10-30 17:14:09,053 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-47416809:ctest-vn-42024462 virtual network link through opserver 10.0.0.38
2025-10-30 17:14:09,053 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-30 17:14:09,067 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-47416809:ctest-vn-42024462', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-47416809:ctest-vn-42024462?flat'}
2025-10-30 17:14:09,067 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-47416809:ctest-vn-42024462 is found in opserver
2025-10-30 17:14:09,079 - DEBUG - Do not have enough data to verify VN in agent
2025-10-30 17:14:09,085 - DEBUG - VRF ids for VN ctest-vn-42024462: {}
2025-10-30 17:14:09,162 - DEBUG - Services list from nova: [