2025-11-17 02:06:21,137 - INFO - Domain Default found not creating
2025-11-17 02:06:21,315 - INFO - Project ctest-TestBasicPolicy-14314613 not found, creating it
2025-11-17 02:06:21,791 - INFO - Created Project:ctest-TestBasicPolicy-14314613, ID : b64e3b70-7759-4d71-baf7-ca3062d9b530
2025-11-17 02:06:23,379 - INFO - ================================================================================
2025-11-17 02:06:23,379 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-17 02:06:23,379 - 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-11-17 02:06:23,639 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.193': '0'}} with
2025-11-17 02:06:23,639 - INFO - Initial checks done. Running the testcase now
2025-11-17 02:06:23,640 - INFO -
2025-11-17 02:06:24,226 - DEBUG - Response for create_network : {'network': {'id': 'fba9096c-b2e8-4672-9c89-702e21bd5acb', 'name': 'ctest-vn-46657541', 'tenant_id': 'b64e3b7077594d71baf7ca3062d9b530', 'project_id': 'b64e3b7077594d71baf7ca3062d9b530', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14314613', 'ctest-vn-46657541'], 'port_security_enabled': True, 'description': ''}}
2025-11-17 02:06:24,376 - DEBUG - Response for create_subnet : {'subnet': {'id': '86288a09-1794-4989-a364-35e7feb3ef32', 'name': '', 'tenant_id': 'b64e3b7077594d71baf7ca3062d9b530', 'network_id': 'fba9096c-b2e8-4672-9c89-702e21bd5acb', 'ip_version': 4, 'cidr': '68.151.116.128/26', 'allocation_pools': [{'start': '68.151.116.130', 'end': '68.151.116.190'}], 'gateway_ip': '68.151.116.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '68.151.116.130', 'tags': [], 'project_id': 'b64e3b7077594d71baf7ca3062d9b530'}}
2025-11-17 02:06:24,393 - INFO - Created VN ctest-vn-46657541
2025-11-17 02:06:24,447 - DEBUG - VN ctest-vn-46657541 UUID is fba9096c-b2e8-4672-9c89-702e21bd5acb
2025-11-17 02:06:24,740 - DEBUG - Response for create_network : {'network': {'id': 'b71e2260-946b-4413-bca5-e81eae0746fd', 'name': 'ctest-vn-98798016', 'tenant_id': 'b64e3b7077594d71baf7ca3062d9b530', 'project_id': 'b64e3b7077594d71baf7ca3062d9b530', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14314613', 'ctest-vn-98798016'], 'port_security_enabled': True, 'description': ''}}
2025-11-17 02:06:24,967 - DEBUG - Response for create_subnet : {'subnet': {'id': '2cad425a-a028-4682-99a5-8c0e719e5047', 'name': '', 'tenant_id': 'b64e3b7077594d71baf7ca3062d9b530', 'network_id': 'b71e2260-946b-4413-bca5-e81eae0746fd', 'ip_version': 4, 'cidr': '220.142.239.128/26', 'allocation_pools': [{'start': '220.142.239.130', 'end': '220.142.239.190'}], 'gateway_ip': '220.142.239.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '220.142.239.130', 'tags': [], 'project_id': 'b64e3b7077594d71baf7ca3062d9b530'}}
2025-11-17 02:06:24,984 - INFO - Created VN ctest-vn-98798016
2025-11-17 02:06:25,039 - DEBUG - VN ctest-vn-98798016 UUID is b71e2260-946b-4413-bca5-e81eae0746fd
2025-11-17 02:06:25,195 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-14314613:ctest-vn-46657541, 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-14314613:ctest-vn-98798016, 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-11-17 02:06:25,494 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fba9096c-b2e8-4672-9c89-702e21bd5acb', 'name': 'ctest-vn-46657541', 'tenant_id': 'b64e3b7077594d71baf7ca3062d9b530', 'project_id': 'b64e3b7077594d71baf7ca3062d9b530', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['86288a09-1794-4989-a364-35e7feb3ef32'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14314613', 'ctest-vn-46657541'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-14314613', 'ctest-policy-allow-all-91391372']], 'subnet_ipam': [{'subnet_cidr': '68.151.116.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-17 02:06:25,742 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b71e2260-946b-4413-bca5-e81eae0746fd', 'name': 'ctest-vn-98798016', 'tenant_id': 'b64e3b7077594d71baf7ca3062d9b530', 'project_id': 'b64e3b7077594d71baf7ca3062d9b530', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2cad425a-a028-4682-99a5-8c0e719e5047'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14314613', 'ctest-vn-98798016'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-14314613', 'ctest-policy-allow-all-91391372']], 'subnet_ipam': [{'subnet_cidr': '220.142.239.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-17 02:06:25,891 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-11-17 02:06:26,229 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-11-17 02:06:26,265 - DEBUG - Requesting: http://10.0.0.141:8082/domain/67a4b56d-f107-4aaf-898e-a90fff88c9ed
2025-11-17 02:06:26,277 - DEBUG - Requesting: http://10.0.0.141:8082/project/b64e3b70-7759-4d71-baf7-ca3062d9b530
2025-11-17 02:06:26,355 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/fba9096c-b2e8-4672-9c89-702e21bd5acb
2025-11-17 02:06:26,368 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/fba9096c-b2e8-4672-9c89-702e21bd5acb
2025-11-17 02:06:26,378 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/746f5eb8-45b7-4355-a687-86d93226c431
2025-11-17 02:06:26,385 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/746f5eb8-45b7-4355-a687-86d93226c431
2025-11-17 02:06:26,391 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/d1a40586-e8be-4d70-9ca6-8d47853c1962
2025-11-17 02:06:26,398 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-17 02:06:26,398 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/fba9096c-b2e8-4672-9c89-702e21bd5acb
2025-11-17 02:06:26,407 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/746f5eb8-45b7-4355-a687-86d93226c431
2025-11-17 02:06:26,421 - INFO - Verified VN network id 11 for VN fba9096c-b2e8-4672-9c89-702e21bd5acb
2025-11-17 02:06:26,421 - INFO - Verifications in API Server for VN ctest-vn-46657541 passed
2025-11-17 02:06:26,421 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/fba9096c-b2e8-4672-9c89-702e21bd5acb
2025-11-17 02:06:26,429 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/746f5eb8-45b7-4355-a687-86d93226c431
2025-11-17 02:06:26,436 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/746f5eb8-45b7-4355-a687-86d93226c431
2025-11-17 02:06:26,442 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/d1a40586-e8be-4d70-9ca6-8d47853c1962
2025-11-17 02:06:26,454 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-14314613:ctest-vn-46657541', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14314613', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18134035737046697586', 'uuid-lslong': '11279670085162982091'}, 'enable': 'true', 'created': '2025-11-17T02:06:24', 'last-modified': '2025-11-17T02:06:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.986534'}
2025-11-17 02:06:26,460 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-17 02:06:26,460 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46657541 passed
2025-11-17 02:06:26,460 - DEBUG - ====Verifying policy data for ctest-vn-46657541 in API_Server ======
2025-11-17 02:06:26,460 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-11-17 02:06:26,465 - DEBUG - Requesting: http://10.0.0.141:8082/domain/67a4b56d-f107-4aaf-898e-a90fff88c9ed
2025-11-17 02:06:26,476 - DEBUG - Requesting: http://10.0.0.141:8082/project/b64e3b70-7759-4d71-baf7-ca3062d9b530
2025-11-17 02:06:26,552 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/fba9096c-b2e8-4672-9c89-702e21bd5acb
2025-11-17 02:06:26,563 - DEBUG - ==>Verifying data for policy with id: 3abc4e50-c99c-4d33-94fa-9b1dd35951fc, fqn: ['default-domain', 'ctest-TestBasicPolicy-14314613', 'ctest-policy-allow-all-91391372']
2025-11-17 02:06:26,564 - INFO - VN ctest-vn-46657541 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-17 02:06:26,564 - DEBUG - Verifying the vn in opserver
2025-11-17 02:06:26,564 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-14314613:ctest-vn-46657541 virtual network link through opserver 10.0.0.141
2025-11-17 02:06:26,564 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-11-17 02:06:26,910 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-11-17 02:06:26,973 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-14314613:ctest-vn-46657541', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-14314613:ctest-vn-46657541?flat'}
2025-11-17 02:06:26,974 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-14314613:ctest-vn-46657541 is found in opserver
2025-11-17 02:06:26,984 - DEBUG - Do not have enough data to verify VN in agent
2025-11-17 02:06:26,989 - DEBUG - VRF ids for VN ctest-vn-46657541: {}
2025-11-17 02:06:26,989 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-11-17 02:06:26,995 - DEBUG - Requesting: http://10.0.0.141:8082/domain/67a4b56d-f107-4aaf-898e-a90fff88c9ed
2025-11-17 02:06:27,011 - DEBUG - Requesting: http://10.0.0.141:8082/project/b64e3b70-7759-4d71-baf7-ca3062d9b530
2025-11-17 02:06:27,089 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/b71e2260-946b-4413-bca5-e81eae0746fd
2025-11-17 02:06:27,105 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/b71e2260-946b-4413-bca5-e81eae0746fd
2025-11-17 02:06:27,118 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/0f921181-367a-41a9-8055-e5b9b68b342e
2025-11-17 02:06:27,127 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/0f921181-367a-41a9-8055-e5b9b68b342e
2025-11-17 02:06:27,136 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/4af85bb1-a392-4070-9da7-c2bf3880d753
2025-11-17 02:06:27,146 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-17 02:06:27,146 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/b71e2260-946b-4413-bca5-e81eae0746fd
2025-11-17 02:06:27,154 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/0f921181-367a-41a9-8055-e5b9b68b342e
2025-11-17 02:06:27,168 - INFO - Verified VN network id 12 for VN b71e2260-946b-4413-bca5-e81eae0746fd
2025-11-17 02:06:27,168 - INFO - Verifications in API Server for VN ctest-vn-98798016 passed
2025-11-17 02:06:27,168 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/b71e2260-946b-4413-bca5-e81eae0746fd
2025-11-17 02:06:27,177 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/0f921181-367a-41a9-8055-e5b9b68b342e
2025-11-17 02:06:27,185 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/0f921181-367a-41a9-8055-e5b9b68b342e
2025-11-17 02:06:27,191 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/4af85bb1-a392-4070-9da7-c2bf3880d753
2025-11-17 02:06:27,202 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-14314613:ctest-vn-98798016', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14314613', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13195021756444394515', 'uuid-lslong': '13593526268754085629'}, 'enable': 'true', 'created': '2025-11-17T02:06:24', 'last-modified': '2025-11-17T02:06:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.489694'}
2025-11-17 02:06:27,209 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-17 02:06:27,209 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-98798016 passed
2025-11-17 02:06:27,209 - DEBUG - ====Verifying policy data for ctest-vn-98798016 in API_Server ======
2025-11-17 02:06:27,209 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-11-17 02:06:27,216 - DEBUG - Requesting: http://10.0.0.141:8082/domain/67a4b56d-f107-4aaf-898e-a90fff88c9ed
2025-11-17 02:06:27,227 - DEBUG - Requesting: http://10.0.0.141:8082/project/b64e3b70-7759-4d71-baf7-ca3062d9b530
2025-11-17 02:06:27,300 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/b71e2260-946b-4413-bca5-e81eae0746fd
2025-11-17 02:06:27,311 - DEBUG - ==>Verifying data for policy with id: 3abc4e50-c99c-4d33-94fa-9b1dd35951fc, fqn: ['default-domain', 'ctest-TestBasicPolicy-14314613', 'ctest-policy-allow-all-91391372']
2025-11-17 02:06:27,311 - INFO - VN ctest-vn-98798016 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-17 02:06:27,311 - DEBUG - Verifying the vn in opserver
2025-11-17 02:06:27,311 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-14314613:ctest-vn-98798016 virtual network link through opserver 10.0.0.141
2025-11-17 02:06:27,311 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-11-17 02:06:27,320 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-14314613:ctest-vn-98798016', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-14314613:ctest-vn-98798016?flat'}
2025-11-17 02:06:27,320 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-14314613:ctest-vn-98798016 is found in opserver
2025-11-17 02:06:27,329 - DEBUG - Do not have enough data to verify VN in agent
2025-11-17 02:06:27,334 - DEBUG - VRF ids for VN ctest-vn-98798016: {}
2025-11-17 02:06:27,393 - DEBUG - Services list from nova: [