2025-12-08 10:11:33,734 - INFO - Domain Default found not creating
2025-12-08 10:11:33,889 - INFO - Project ctest-TestBasicPolicy-36969830 not found, creating it
2025-12-08 10:11:34,347 - INFO - Created Project:ctest-TestBasicPolicy-36969830, ID : e1daf4e6-2377-467c-9f75-9e5f53121b42
2025-12-08 10:11:35,816 - INFO - ================================================================================
2025-12-08 10:11:35,816 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-12-08 10:11:35,816 - 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-12-08 10:11:36,069 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.14': '0'}} with
2025-12-08 10:11:36,069 - INFO - Initial checks done. Running the testcase now
2025-12-08 10:11:36,069 - INFO -
2025-12-08 10:11:36,606 - DEBUG - Response for create_network : {'network': {'id': 'f5d43a1c-3100-4238-9570-248149f39f9b', 'name': 'ctest-vn-30049501', 'tenant_id': 'e1daf4e62377467c9f759e5f53121b42', 'project_id': 'e1daf4e62377467c9f759e5f53121b42', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36969830', 'ctest-vn-30049501'], 'port_security_enabled': True, 'description': ''}}
2025-12-08 10:11:36,775 - DEBUG - Response for create_subnet : {'subnet': {'id': 'baa030c0-71c1-42c8-8e0d-342ca8d69b0d', 'name': '', 'tenant_id': 'e1daf4e62377467c9f759e5f53121b42', 'network_id': 'f5d43a1c-3100-4238-9570-248149f39f9b', 'ip_version': 4, 'cidr': '160.91.149.128/26', 'allocation_pools': [{'start': '160.91.149.130', 'end': '160.91.149.190'}], 'gateway_ip': '160.91.149.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '160.91.149.130', 'tags': [], 'project_id': 'e1daf4e62377467c9f759e5f53121b42'}}
2025-12-08 10:11:36,792 - INFO - Created VN ctest-vn-30049501
2025-12-08 10:11:36,847 - DEBUG - VN ctest-vn-30049501 UUID is f5d43a1c-3100-4238-9570-248149f39f9b
2025-12-08 10:11:37,167 - DEBUG - Response for create_network : {'network': {'id': '07e77e00-c3fc-46fd-aac7-fda7c92d1530', 'name': 'ctest-vn-88291203', 'tenant_id': 'e1daf4e62377467c9f759e5f53121b42', 'project_id': 'e1daf4e62377467c9f759e5f53121b42', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36969830', 'ctest-vn-88291203'], 'port_security_enabled': True, 'description': ''}}
2025-12-08 10:11:37,302 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a02ce69c-ca57-4723-a3a7-a41ecb2a4530', 'name': '', 'tenant_id': 'e1daf4e62377467c9f759e5f53121b42', 'network_id': '07e77e00-c3fc-46fd-aac7-fda7c92d1530', 'ip_version': 4, 'cidr': '60.165.113.128/26', 'allocation_pools': [{'start': '60.165.113.130', 'end': '60.165.113.190'}], 'gateway_ip': '60.165.113.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '60.165.113.130', 'tags': [], 'project_id': 'e1daf4e62377467c9f759e5f53121b42'}}
2025-12-08 10:11:37,318 - INFO - Created VN ctest-vn-88291203
2025-12-08 10:11:37,371 - DEBUG - VN ctest-vn-88291203 UUID is 07e77e00-c3fc-46fd-aac7-fda7c92d1530
2025-12-08 10:11:37,483 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-36969830:ctest-vn-30049501, 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-36969830:ctest-vn-88291203, 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-12-08 10:11:37,771 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f5d43a1c-3100-4238-9570-248149f39f9b', 'name': 'ctest-vn-30049501', 'tenant_id': 'e1daf4e62377467c9f759e5f53121b42', 'project_id': 'e1daf4e62377467c9f759e5f53121b42', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['baa030c0-71c1-42c8-8e0d-342ca8d69b0d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36969830', 'ctest-vn-30049501'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-36969830', 'ctest-policy-allow-all-25195310']], 'subnet_ipam': [{'subnet_cidr': '160.91.149.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-08 10:11:38,031 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '07e77e00-c3fc-46fd-aac7-fda7c92d1530', 'name': 'ctest-vn-88291203', 'tenant_id': 'e1daf4e62377467c9f759e5f53121b42', 'project_id': 'e1daf4e62377467c9f759e5f53121b42', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a02ce69c-ca57-4723-a3a7-a41ecb2a4530'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36969830', 'ctest-vn-88291203'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-36969830', 'ctest-policy-allow-all-25195310']], 'subnet_ipam': [{'subnet_cidr': '60.165.113.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-08 10:11:38,179 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-12-08 10:11:38,493 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-12-08 10:11:38,520 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9b8e0cd7-5ec5-4a6c-86dc-fdeae14f1c22
2025-12-08 10:11:38,531 - DEBUG - Requesting: http://10.0.0.22:8082/project/e1daf4e6-2377-467c-9f75-9e5f53121b42
2025-12-08 10:11:38,609 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f5d43a1c-3100-4238-9570-248149f39f9b
2025-12-08 10:11:38,618 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f5d43a1c-3100-4238-9570-248149f39f9b
2025-12-08 10:11:38,626 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5ccd83f0-e25c-4cfa-8b06-dd017eb21458
2025-12-08 10:11:38,633 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5ccd83f0-e25c-4cfa-8b06-dd017eb21458
2025-12-08 10:11:38,639 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/bea4aee5-7b85-4f02-bcd6-78d8602f33e7
2025-12-08 10:11:38,644 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-08 10:11:38,644 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f5d43a1c-3100-4238-9570-248149f39f9b
2025-12-08 10:11:38,652 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5ccd83f0-e25c-4cfa-8b06-dd017eb21458
2025-12-08 10:11:38,668 - INFO - Verified VN network id 11 for VN f5d43a1c-3100-4238-9570-248149f39f9b
2025-12-08 10:11:38,668 - INFO - Verifications in API Server for VN ctest-vn-30049501 passed
2025-12-08 10:11:38,668 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f5d43a1c-3100-4238-9570-248149f39f9b
2025-12-08 10:11:38,677 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5ccd83f0-e25c-4cfa-8b06-dd017eb21458
2025-12-08 10:11:38,683 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5ccd83f0-e25c-4cfa-8b06-dd017eb21458
2025-12-08 10:11:38,689 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/bea4aee5-7b85-4f02-bcd6-78d8602f33e7
2025-12-08 10:11:38,699 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-36969830:ctest-vn-30049501', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-36969830', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17713847127110599224', 'uuid-lslong': '10768146846752939931'}, 'enable': 'true', 'created': '2025-12-08T10:11:36', 'last-modified': '2025-12-08T10:11:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.956281'}
2025-12-08 10:11:38,705 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-08 10:11:38,705 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-30049501 passed
2025-12-08 10:11:38,705 - DEBUG - ====Verifying policy data for ctest-vn-30049501 in API_Server ======
2025-12-08 10:11:38,705 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-12-08 10:11:38,710 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9b8e0cd7-5ec5-4a6c-86dc-fdeae14f1c22
2025-12-08 10:11:38,721 - DEBUG - Requesting: http://10.0.0.22:8082/project/e1daf4e6-2377-467c-9f75-9e5f53121b42
2025-12-08 10:11:38,786 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f5d43a1c-3100-4238-9570-248149f39f9b
2025-12-08 10:11:38,795 - DEBUG - ==>Verifying data for policy with id: 5d1cd1ba-78fa-4861-a0dd-5b8a26986761, fqn: ['default-domain', 'ctest-TestBasicPolicy-36969830', 'ctest-policy-allow-all-25195310']
2025-12-08 10:11:38,795 - INFO - VN ctest-vn-30049501 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-08 10:11:38,795 - DEBUG - Verifying the vn in opserver
2025-12-08 10:11:38,795 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-36969830:ctest-vn-30049501 virtual network link through opserver 10.0.0.22
2025-12-08 10:11:38,795 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-12-08 10:11:39,085 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-12-08 10:11:39,148 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-36969830:ctest-vn-30049501', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-36969830:ctest-vn-30049501?flat'}
2025-12-08 10:11:39,148 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-36969830:ctest-vn-30049501 is found in opserver
2025-12-08 10:11:39,159 - DEBUG - Do not have enough data to verify VN in agent
2025-12-08 10:11:39,164 - DEBUG - VRF ids for VN ctest-vn-30049501: {}
2025-12-08 10:11:39,164 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-12-08 10:11:39,170 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9b8e0cd7-5ec5-4a6c-86dc-fdeae14f1c22
2025-12-08 10:11:39,180 - DEBUG - Requesting: http://10.0.0.22:8082/project/e1daf4e6-2377-467c-9f75-9e5f53121b42
2025-12-08 10:11:39,247 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/07e77e00-c3fc-46fd-aac7-fda7c92d1530
2025-12-08 10:11:39,258 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/07e77e00-c3fc-46fd-aac7-fda7c92d1530
2025-12-08 10:11:39,267 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1537a730-445a-4538-9a6d-439d5ebabba3
2025-12-08 10:11:39,274 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1537a730-445a-4538-9a6d-439d5ebabba3
2025-12-08 10:11:39,282 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/02446e7b-31d0-4804-8db9-4529eaead62c
2025-12-08 10:11:39,289 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-08 10:11:39,289 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/07e77e00-c3fc-46fd-aac7-fda7c92d1530
2025-12-08 10:11:39,297 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1537a730-445a-4538-9a6d-439d5ebabba3
2025-12-08 10:11:39,309 - INFO - Verified VN network id 12 for VN 07e77e00-c3fc-46fd-aac7-fda7c92d1530
2025-12-08 10:11:39,309 - INFO - Verifications in API Server for VN ctest-vn-88291203 passed
2025-12-08 10:11:39,310 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/07e77e00-c3fc-46fd-aac7-fda7c92d1530
2025-12-08 10:11:39,317 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1537a730-445a-4538-9a6d-439d5ebabba3
2025-12-08 10:11:39,323 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1537a730-445a-4538-9a6d-439d5ebabba3
2025-12-08 10:11:39,329 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/02446e7b-31d0-4804-8db9-4529eaead62c
2025-12-08 10:11:39,338 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-36969830:ctest-vn-88291203', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-36969830', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '569562419638847229', 'uuid-lslong': '12306083403889710384'}, 'enable': 'true', 'created': '2025-12-08T10:11:37', 'last-modified': '2025-12-08T10:11:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.371785'}
2025-12-08 10:11:39,344 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-08 10:11:39,344 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-88291203 passed
2025-12-08 10:11:39,344 - DEBUG - ====Verifying policy data for ctest-vn-88291203 in API_Server ======
2025-12-08 10:11:39,344 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-12-08 10:11:39,350 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9b8e0cd7-5ec5-4a6c-86dc-fdeae14f1c22
2025-12-08 10:11:39,360 - DEBUG - Requesting: http://10.0.0.22:8082/project/e1daf4e6-2377-467c-9f75-9e5f53121b42
2025-12-08 10:11:39,430 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/07e77e00-c3fc-46fd-aac7-fda7c92d1530
2025-12-08 10:11:39,438 - DEBUG - ==>Verifying data for policy with id: 5d1cd1ba-78fa-4861-a0dd-5b8a26986761, fqn: ['default-domain', 'ctest-TestBasicPolicy-36969830', 'ctest-policy-allow-all-25195310']
2025-12-08 10:11:39,438 - INFO - VN ctest-vn-88291203 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-08 10:11:39,438 - DEBUG - Verifying the vn in opserver
2025-12-08 10:11:39,438 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-36969830:ctest-vn-88291203 virtual network link through opserver 10.0.0.22
2025-12-08 10:11:39,438 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-12-08 10:11:39,447 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-36969830:ctest-vn-88291203', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-36969830:ctest-vn-88291203?flat'}
2025-12-08 10:11:39,447 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-36969830:ctest-vn-88291203 is found in opserver
2025-12-08 10:11:39,456 - DEBUG - Do not have enough data to verify VN in agent
2025-12-08 10:11:39,460 - DEBUG - VRF ids for VN ctest-vn-88291203: {}
2025-12-08 10:11:39,514 - DEBUG - Services list from nova: [