2025-11-12 09:11:30,088 - INFO - Domain Default found not creating
2025-11-12 09:11:30,310 - INFO - Project ctest-TestBasicPolicy-43034229 not found, creating it
2025-11-12 09:11:30,997 - INFO - Created Project:ctest-TestBasicPolicy-43034229, ID : 0535a616-7d0a-4d95-b620-2313807e88b8
2025-11-12 09:11:32,640 - INFO - ================================================================================
2025-11-12 09:11:32,640 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-12 09:11:32,640 - 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-12 09:11:32,898 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.25': '0'}} with
2025-11-12 09:11:32,898 - INFO - Initial checks done. Running the testcase now
2025-11-12 09:11:32,898 - INFO -
2025-11-12 09:11:33,481 - DEBUG - Response for create_network : {'network': {'id': '90012620-9270-4633-a56c-7b38dab4347c', 'name': 'ctest-vn-96951561', 'tenant_id': '0535a6167d0a4d95b6202313807e88b8', 'project_id': '0535a6167d0a4d95b6202313807e88b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43034229', 'ctest-vn-96951561'], 'port_security_enabled': True, 'description': ''}}
2025-11-12 09:11:33,683 - DEBUG - Response for create_subnet : {'subnet': {'id': '36d506a6-d144-4111-9633-b3de91596354', 'name': '', 'tenant_id': '0535a6167d0a4d95b6202313807e88b8', 'network_id': '90012620-9270-4633-a56c-7b38dab4347c', 'ip_version': 4, 'cidr': '173.245.168.128/26', 'allocation_pools': [{'start': '173.245.168.130', 'end': '173.245.168.190'}], 'gateway_ip': '173.245.168.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '173.245.168.130', 'tags': [], 'project_id': '0535a6167d0a4d95b6202313807e88b8'}}
2025-11-12 09:11:33,703 - INFO - Created VN ctest-vn-96951561
2025-11-12 09:11:33,756 - DEBUG - VN ctest-vn-96951561 UUID is 90012620-9270-4633-a56c-7b38dab4347c
2025-11-12 09:11:34,060 - DEBUG - Response for create_network : {'network': {'id': '7d1f9dd5-a50b-4747-9e29-ce37c60c9631', 'name': 'ctest-vn-08263191', 'tenant_id': '0535a6167d0a4d95b6202313807e88b8', 'project_id': '0535a6167d0a4d95b6202313807e88b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43034229', 'ctest-vn-08263191'], 'port_security_enabled': True, 'description': ''}}
2025-11-12 09:11:34,214 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ff46453f-ce82-4a09-a865-b50bf6398913', 'name': '', 'tenant_id': '0535a6167d0a4d95b6202313807e88b8', 'network_id': '7d1f9dd5-a50b-4747-9e29-ce37c60c9631', 'ip_version': 4, 'cidr': '14.173.119.0/26', 'allocation_pools': [{'start': '14.173.119.2', 'end': '14.173.119.62'}], 'gateway_ip': '14.173.119.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '14.173.119.2', 'tags': [], 'project_id': '0535a6167d0a4d95b6202313807e88b8'}}
2025-11-12 09:11:34,233 - INFO - Created VN ctest-vn-08263191
2025-11-12 09:11:34,288 - DEBUG - VN ctest-vn-08263191 UUID is 7d1f9dd5-a50b-4747-9e29-ce37c60c9631
2025-11-12 09:11:34,410 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-43034229:ctest-vn-96951561, 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-43034229:ctest-vn-08263191, 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-12 09:11:34,735 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '90012620-9270-4633-a56c-7b38dab4347c', 'name': 'ctest-vn-96951561', 'tenant_id': '0535a6167d0a4d95b6202313807e88b8', 'project_id': '0535a6167d0a4d95b6202313807e88b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['36d506a6-d144-4111-9633-b3de91596354'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43034229', 'ctest-vn-96951561'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43034229', 'ctest-policy-allow-all-38388110']], 'subnet_ipam': [{'subnet_cidr': '173.245.168.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-12 09:11:34,980 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7d1f9dd5-a50b-4747-9e29-ce37c60c9631', 'name': 'ctest-vn-08263191', 'tenant_id': '0535a6167d0a4d95b6202313807e88b8', 'project_id': '0535a6167d0a4d95b6202313807e88b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ff46453f-ce82-4a09-a865-b50bf6398913'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43034229', 'ctest-vn-08263191'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43034229', 'ctest-policy-allow-all-38388110']], 'subnet_ipam': [{'subnet_cidr': '14.173.119.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-12 09:11:35,148 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-11-12 09:11:35,483 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-11-12 09:11:35,516 - DEBUG - Requesting: http://10.0.0.19:8082/domain/34ba96bd-fcf6-486a-a29f-be5ee365331e
2025-11-12 09:11:35,529 - DEBUG - Requesting: http://10.0.0.19:8082/project/0535a616-7d0a-4d95-b620-2313807e88b8
2025-11-12 09:11:35,606 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/90012620-9270-4633-a56c-7b38dab4347c
2025-11-12 09:11:35,619 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/90012620-9270-4633-a56c-7b38dab4347c
2025-11-12 09:11:35,629 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/f8a8006b-e270-4ef9-a13f-5dd65fdb4c78
2025-11-12 09:11:35,637 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/f8a8006b-e270-4ef9-a13f-5dd65fdb4c78
2025-11-12 09:11:35,644 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/44cdbad8-c2e0-4ae5-88be-1504fa9c40d0
2025-11-12 09:11:35,651 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-12 09:11:35,652 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/90012620-9270-4633-a56c-7b38dab4347c
2025-11-12 09:11:35,666 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/f8a8006b-e270-4ef9-a13f-5dd65fdb4c78
2025-11-12 09:11:35,686 - INFO - Verified VN network id 12 for VN 90012620-9270-4633-a56c-7b38dab4347c
2025-11-12 09:11:35,687 - INFO - Verifications in API Server for VN ctest-vn-96951561 passed
2025-11-12 09:11:35,687 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/90012620-9270-4633-a56c-7b38dab4347c
2025-11-12 09:11:35,698 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/f8a8006b-e270-4ef9-a13f-5dd65fdb4c78
2025-11-12 09:11:35,709 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/f8a8006b-e270-4ef9-a13f-5dd65fdb4c78
2025-11-12 09:11:35,717 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/44cdbad8-c2e0-4ae5-88be-1504fa9c40d0
2025-11-12 09:11:35,731 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43034229:ctest-vn-96951561', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43034229', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10376616937775973939', 'uuid-lslong': '11920037797860488316'}, 'enable': 'true', 'created': '2025-11-12T09:11:33', 'last-modified': '2025-11-12T09:11:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.030012'}
2025-11-12 09:11:35,739 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-12 09:11:35,739 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-96951561 passed
2025-11-12 09:11:35,739 - DEBUG - ====Verifying policy data for ctest-vn-96951561 in API_Server ======
2025-11-12 09:11:35,740 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-11-12 09:11:35,747 - DEBUG - Requesting: http://10.0.0.19:8082/domain/34ba96bd-fcf6-486a-a29f-be5ee365331e
2025-11-12 09:11:35,760 - DEBUG - Requesting: http://10.0.0.19:8082/project/0535a616-7d0a-4d95-b620-2313807e88b8
2025-11-12 09:11:35,836 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/90012620-9270-4633-a56c-7b38dab4347c
2025-11-12 09:11:35,847 - DEBUG - ==>Verifying data for policy with id: 0af010a1-9b65-4689-a399-f8e4716ab0bc, fqn: ['default-domain', 'ctest-TestBasicPolicy-43034229', 'ctest-policy-allow-all-38388110']
2025-11-12 09:11:35,847 - INFO - VN ctest-vn-96951561 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-12 09:11:35,847 - DEBUG - Verifying the vn in opserver
2025-11-12 09:11:35,847 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43034229:ctest-vn-96951561 virtual network link through opserver 10.0.0.19
2025-11-12 09:11:35,847 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-11-12 09:11:36,173 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-11-12 09:11:36,573 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43034229:ctest-vn-96951561', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43034229:ctest-vn-96951561?flat'}
2025-11-12 09:11:36,573 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43034229:ctest-vn-96951561 is found in opserver
2025-11-12 09:11:36,584 - DEBUG - Do not have enough data to verify VN in agent
2025-11-12 09:11:36,590 - DEBUG - VRF ids for VN ctest-vn-96951561: {}
2025-11-12 09:11:36,591 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-11-12 09:11:36,601 - DEBUG - Requesting: http://10.0.0.19:8082/domain/34ba96bd-fcf6-486a-a29f-be5ee365331e
2025-11-12 09:11:36,620 - DEBUG - Requesting: http://10.0.0.19:8082/project/0535a616-7d0a-4d95-b620-2313807e88b8
2025-11-12 09:11:36,703 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/7d1f9dd5-a50b-4747-9e29-ce37c60c9631
2025-11-12 09:11:36,715 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/7d1f9dd5-a50b-4747-9e29-ce37c60c9631
2025-11-12 09:11:36,725 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/be33ff44-d566-4e9e-b73f-94f4e61687f5
2025-11-12 09:11:36,733 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/be33ff44-d566-4e9e-b73f-94f4e61687f5
2025-11-12 09:11:36,741 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/f36e5271-efaf-4d46-995b-a741d4de9b83
2025-11-12 09:11:36,751 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-12 09:11:36,751 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/7d1f9dd5-a50b-4747-9e29-ce37c60c9631
2025-11-12 09:11:36,764 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/be33ff44-d566-4e9e-b73f-94f4e61687f5
2025-11-12 09:11:36,782 - INFO - Verified VN network id 13 for VN 7d1f9dd5-a50b-4747-9e29-ce37c60c9631
2025-11-12 09:11:36,782 - INFO - Verifications in API Server for VN ctest-vn-08263191 passed
2025-11-12 09:11:36,783 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/7d1f9dd5-a50b-4747-9e29-ce37c60c9631
2025-11-12 09:11:36,800 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/be33ff44-d566-4e9e-b73f-94f4e61687f5
2025-11-12 09:11:36,808 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/be33ff44-d566-4e9e-b73f-94f4e61687f5
2025-11-12 09:11:36,816 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/f36e5271-efaf-4d46-995b-a741d4de9b83
2025-11-12 09:11:36,828 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43034229:ctest-vn-08263191', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43034229', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9016098519941596999', 'uuid-lslong': '11396867070978987569'}, 'enable': 'true', 'created': '2025-11-12T09:11:34', 'last-modified': '2025-11-12T09:11:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.878992'}
2025-11-12 09:11:36,835 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-12 09:11:36,835 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-08263191 passed
2025-11-12 09:11:36,835 - DEBUG - ====Verifying policy data for ctest-vn-08263191 in API_Server ======
2025-11-12 09:11:36,835 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-11-12 09:11:36,841 - DEBUG - Requesting: http://10.0.0.19:8082/domain/34ba96bd-fcf6-486a-a29f-be5ee365331e
2025-11-12 09:11:36,852 - DEBUG - Requesting: http://10.0.0.19:8082/project/0535a616-7d0a-4d95-b620-2313807e88b8
2025-11-12 09:11:36,936 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/7d1f9dd5-a50b-4747-9e29-ce37c60c9631
2025-11-12 09:11:36,947 - DEBUG - ==>Verifying data for policy with id: 0af010a1-9b65-4689-a399-f8e4716ab0bc, fqn: ['default-domain', 'ctest-TestBasicPolicy-43034229', 'ctest-policy-allow-all-38388110']
2025-11-12 09:11:36,947 - INFO - VN ctest-vn-08263191 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-12 09:11:36,947 - DEBUG - Verifying the vn in opserver
2025-11-12 09:11:36,947 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43034229:ctest-vn-08263191 virtual network link through opserver 10.0.0.19
2025-11-12 09:11:36,947 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-11-12 09:11:36,965 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43034229:ctest-vn-08263191', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43034229:ctest-vn-08263191?flat'}
2025-11-12 09:11:36,965 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43034229:ctest-vn-08263191 is found in opserver
2025-11-12 09:11:36,980 - DEBUG - Do not have enough data to verify VN in agent
2025-11-12 09:11:36,985 - DEBUG - VRF ids for VN ctest-vn-08263191: {}
2025-11-12 09:11:37,056 - DEBUG - Services list from nova: [