2025-10-21 18:43:58,182 - INFO - Domain Default found not creating
2025-10-21 18:43:58,348 - INFO - Project ctest-TestBasicPolicy-92108118 not found, creating it
2025-10-21 18:43:58,805 - INFO - Created Project:ctest-TestBasicPolicy-92108118, ID : c3c34781-3c93-4fc8-bb9b-d47a2635a939
2025-10-21 18:44:00,264 - INFO - ================================================================================
2025-10-21 18:44:00,264 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-21 18:44:00,264 - 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-21 18:44:00,520 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.17': '0'}} with
2025-10-21 18:44:00,520 - INFO - Initial checks done. Running the testcase now
2025-10-21 18:44:00,520 - INFO -
2025-10-21 18:44:01,080 - DEBUG - Response for create_network : {'network': {'id': '147da0e1-635a-467b-b292-aff08e233935', 'name': 'ctest-vn-12407317', 'tenant_id': 'c3c347813c934fc8bb9bd47a2635a939', 'project_id': 'c3c347813c934fc8bb9bd47a2635a939', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92108118', 'ctest-vn-12407317'], 'port_security_enabled': True, 'description': ''}}
2025-10-21 18:44:01,248 - DEBUG - Response for create_subnet : {'subnet': {'id': '0002efed-160d-4b97-bc2b-9852a34a02cc', 'name': '', 'tenant_id': 'c3c347813c934fc8bb9bd47a2635a939', 'network_id': '147da0e1-635a-467b-b292-aff08e233935', 'ip_version': 4, 'cidr': '160.52.14.64/26', 'allocation_pools': [{'start': '160.52.14.66', 'end': '160.52.14.126'}], 'gateway_ip': '160.52.14.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '160.52.14.66', 'tags': [], 'project_id': 'c3c347813c934fc8bb9bd47a2635a939'}}
2025-10-21 18:44:01,271 - INFO - Created VN ctest-vn-12407317
2025-10-21 18:44:01,326 - DEBUG - VN ctest-vn-12407317 UUID is 147da0e1-635a-467b-b292-aff08e233935
2025-10-21 18:44:01,611 - DEBUG - Response for create_network : {'network': {'id': '055ace96-f6c0-4122-8356-9c1a4c3132f6', 'name': 'ctest-vn-76873817', 'tenant_id': 'c3c347813c934fc8bb9bd47a2635a939', 'project_id': 'c3c347813c934fc8bb9bd47a2635a939', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92108118', 'ctest-vn-76873817'], 'port_security_enabled': True, 'description': ''}}
2025-10-21 18:44:01,837 - DEBUG - Response for create_subnet : {'subnet': {'id': '0f1c3dc2-debb-4303-ad25-c57d1736f0b9', 'name': '', 'tenant_id': 'c3c347813c934fc8bb9bd47a2635a939', 'network_id': '055ace96-f6c0-4122-8356-9c1a4c3132f6', 'ip_version': 4, 'cidr': '189.43.156.192/26', 'allocation_pools': [{'start': '189.43.156.194', 'end': '189.43.156.254'}], 'gateway_ip': '189.43.156.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '189.43.156.194', 'tags': [], 'project_id': 'c3c347813c934fc8bb9bd47a2635a939'}}
2025-10-21 18:44:01,855 - INFO - Created VN ctest-vn-76873817
2025-10-21 18:44:01,910 - DEBUG - VN ctest-vn-76873817 UUID is 055ace96-f6c0-4122-8356-9c1a4c3132f6
2025-10-21 18:44:02,023 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-92108118:ctest-vn-12407317, 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-92108118:ctest-vn-76873817, 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-21 18:44:02,324 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '147da0e1-635a-467b-b292-aff08e233935', 'name': 'ctest-vn-12407317', 'tenant_id': 'c3c347813c934fc8bb9bd47a2635a939', 'project_id': 'c3c347813c934fc8bb9bd47a2635a939', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0002efed-160d-4b97-bc2b-9852a34a02cc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92108118', 'ctest-vn-12407317'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-92108118', 'ctest-policy-allow-all-46203367']], 'subnet_ipam': [{'subnet_cidr': '160.52.14.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-21 18:44:02,569 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '055ace96-f6c0-4122-8356-9c1a4c3132f6', 'name': 'ctest-vn-76873817', 'tenant_id': 'c3c347813c934fc8bb9bd47a2635a939', 'project_id': 'c3c347813c934fc8bb9bd47a2635a939', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0f1c3dc2-debb-4303-ad25-c57d1736f0b9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92108118', 'ctest-vn-76873817'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-92108118', 'ctest-policy-allow-all-46203367']], 'subnet_ipam': [{'subnet_cidr': '189.43.156.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-21 18:44:02,742 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-10-21 18:44:03,040 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-10-21 18:44:03,071 - DEBUG - Requesting: http://10.0.0.141:8082/domain/b545ca9b-a7ee-4b6c-ba99-749b252af2f8
2025-10-21 18:44:03,083 - DEBUG - Requesting: http://10.0.0.141:8082/project/c3c34781-3c93-4fc8-bb9b-d47a2635a939
2025-10-21 18:44:03,153 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/147da0e1-635a-467b-b292-aff08e233935
2025-10-21 18:44:03,164 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/147da0e1-635a-467b-b292-aff08e233935
2025-10-21 18:44:03,172 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2ff2950a-cf7d-4e63-9a9c-3a0ee57184ee
2025-10-21 18:44:03,179 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2ff2950a-cf7d-4e63-9a9c-3a0ee57184ee
2025-10-21 18:44:03,185 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/e16ae230-8d05-491d-811f-6ddc5f72f70f
2025-10-21 18:44:03,191 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-21 18:44:03,191 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/147da0e1-635a-467b-b292-aff08e233935
2025-10-21 18:44:03,200 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2ff2950a-cf7d-4e63-9a9c-3a0ee57184ee
2025-10-21 18:44:03,215 - INFO - Verified VN network id 11 for VN 147da0e1-635a-467b-b292-aff08e233935
2025-10-21 18:44:03,215 - INFO - Verifications in API Server for VN ctest-vn-12407317 passed
2025-10-21 18:44:03,215 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/147da0e1-635a-467b-b292-aff08e233935
2025-10-21 18:44:03,224 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2ff2950a-cf7d-4e63-9a9c-3a0ee57184ee
2025-10-21 18:44:03,232 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2ff2950a-cf7d-4e63-9a9c-3a0ee57184ee
2025-10-21 18:44:03,239 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/e16ae230-8d05-491d-811f-6ddc5f72f70f
2025-10-21 18:44:03,251 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-92108118:ctest-vn-12407317', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-92108118', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1476513142742337147', 'uuid-lslong': '12867540533062613301'}, 'enable': 'true', 'created': '2025-10-21T18:44:01', 'last-modified': '2025-10-21T18:44:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.953716'}
2025-10-21 18:44:03,258 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-21 18:44:03,258 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-12407317 passed
2025-10-21 18:44:03,258 - DEBUG - ====Verifying policy data for ctest-vn-12407317 in API_Server ======
2025-10-21 18:44:03,258 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-10-21 18:44:03,264 - DEBUG - Requesting: http://10.0.0.141:8082/domain/b545ca9b-a7ee-4b6c-ba99-749b252af2f8
2025-10-21 18:44:03,275 - DEBUG - Requesting: http://10.0.0.141:8082/project/c3c34781-3c93-4fc8-bb9b-d47a2635a939
2025-10-21 18:44:03,342 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/147da0e1-635a-467b-b292-aff08e233935
2025-10-21 18:44:03,351 - DEBUG - ==>Verifying data for policy with id: c56762dd-7548-4ba9-b0d6-de5f33b547e5, fqn: ['default-domain', 'ctest-TestBasicPolicy-92108118', 'ctest-policy-allow-all-46203367']
2025-10-21 18:44:03,351 - INFO - VN ctest-vn-12407317 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-21 18:44:03,351 - DEBUG - Verifying the vn in opserver
2025-10-21 18:44:03,351 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-92108118:ctest-vn-12407317 virtual network link through opserver 10.0.0.141
2025-10-21 18:44:03,351 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-10-21 18:44:03,641 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-10-21 18:44:03,700 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-92108118:ctest-vn-12407317', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-92108118:ctest-vn-12407317?flat'}
2025-10-21 18:44:03,700 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-92108118:ctest-vn-12407317 is found in opserver
2025-10-21 18:44:03,711 - DEBUG - Do not have enough data to verify VN in agent
2025-10-21 18:44:03,717 - DEBUG - VRF ids for VN ctest-vn-12407317: {}
2025-10-21 18:44:03,717 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-10-21 18:44:03,723 - DEBUG - Requesting: http://10.0.0.141:8082/domain/b545ca9b-a7ee-4b6c-ba99-749b252af2f8
2025-10-21 18:44:03,735 - DEBUG - Requesting: http://10.0.0.141:8082/project/c3c34781-3c93-4fc8-bb9b-d47a2635a939
2025-10-21 18:44:03,809 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/055ace96-f6c0-4122-8356-9c1a4c3132f6
2025-10-21 18:44:03,822 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/055ace96-f6c0-4122-8356-9c1a4c3132f6
2025-10-21 18:44:03,831 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/a367dd23-4fe5-4e8b-a2f8-b808995266cf
2025-10-21 18:44:03,839 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/a367dd23-4fe5-4e8b-a2f8-b808995266cf
2025-10-21 18:44:03,846 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/a15af151-32fd-42e7-9820-1deb6e7d8b3c
2025-10-21 18:44:03,853 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-21 18:44:03,853 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/055ace96-f6c0-4122-8356-9c1a4c3132f6
2025-10-21 18:44:03,862 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/a367dd23-4fe5-4e8b-a2f8-b808995266cf
2025-10-21 18:44:03,877 - INFO - Verified VN network id 12 for VN 055ace96-f6c0-4122-8356-9c1a4c3132f6
2025-10-21 18:44:03,878 - INFO - Verifications in API Server for VN ctest-vn-76873817 passed
2025-10-21 18:44:03,878 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/055ace96-f6c0-4122-8356-9c1a4c3132f6
2025-10-21 18:44:03,887 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/a367dd23-4fe5-4e8b-a2f8-b808995266cf
2025-10-21 18:44:03,894 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/a367dd23-4fe5-4e8b-a2f8-b808995266cf
2025-10-21 18:44:03,900 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/a15af151-32fd-42e7-9820-1deb6e7d8b3c
2025-10-21 18:44:03,913 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-92108118:ctest-vn-76873817', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-92108118', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '385847865873809698', 'uuid-lslong': '9463923303727051510'}, 'enable': 'true', 'created': '2025-10-21T18:44:01', 'last-modified': '2025-10-21T18:44:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.370956'}
2025-10-21 18:44:03,919 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-21 18:44:03,919 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76873817 passed
2025-10-21 18:44:03,919 - DEBUG - ====Verifying policy data for ctest-vn-76873817 in API_Server ======
2025-10-21 18:44:03,919 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-10-21 18:44:03,926 - DEBUG - Requesting: http://10.0.0.141:8082/domain/b545ca9b-a7ee-4b6c-ba99-749b252af2f8
2025-10-21 18:44:03,937 - DEBUG - Requesting: http://10.0.0.141:8082/project/c3c34781-3c93-4fc8-bb9b-d47a2635a939
2025-10-21 18:44:04,007 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/055ace96-f6c0-4122-8356-9c1a4c3132f6
2025-10-21 18:44:04,017 - DEBUG - ==>Verifying data for policy with id: c56762dd-7548-4ba9-b0d6-de5f33b547e5, fqn: ['default-domain', 'ctest-TestBasicPolicy-92108118', 'ctest-policy-allow-all-46203367']
2025-10-21 18:44:04,017 - INFO - VN ctest-vn-76873817 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-21 18:44:04,017 - DEBUG - Verifying the vn in opserver
2025-10-21 18:44:04,017 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-92108118:ctest-vn-76873817 virtual network link through opserver 10.0.0.141
2025-10-21 18:44:04,017 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-10-21 18:44:04,027 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-92108118:ctest-vn-76873817', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-92108118:ctest-vn-76873817?flat'}
2025-10-21 18:44:04,027 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-92108118:ctest-vn-76873817 is found in opserver
2025-10-21 18:44:04,035 - DEBUG - Do not have enough data to verify VN in agent
2025-10-21 18:44:04,039 - DEBUG - VRF ids for VN ctest-vn-76873817: {}
2025-10-21 18:44:04,093 - DEBUG - Services list from nova: [