2026-08-25 08:27:49,787 - INFO - Domain Default found not creating
2026-08-25 08:27:49,963 - INFO - Project ctest-TestBasicPolicy-04379317 not found, creating it
2026-08-25 08:27:50,463 - INFO - Created Project:ctest-TestBasicPolicy-04379317, ID : a815d60c-c12d-4bb3-9291-0f348bf13715
2026-08-25 08:27:52,013 - INFO - ================================================================================
2026-08-25 08:27:52,013 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-08-25 08:27:52,013 - 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
2026-08-25 08:27:52,274 - DEBUG - Nothing to compare xmpp stats {'10.0.0.185': {'10.20.0.25': '0'}} with
2026-08-25 08:27:52,274 - INFO - Initial checks done. Running the testcase now
2026-08-25 08:27:52,274 - INFO -
2026-08-25 08:27:52,920 - DEBUG - Response for create_network : {'network': {'id': '55702cad-e696-4e32-b778-54ee8bafe769', 'name': 'ctest-vn-75793995', 'tenant_id': 'a815d60cc12d4bb392910f348bf13715', 'project_id': 'a815d60cc12d4bb392910f348bf13715', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04379317', 'ctest-vn-75793995'], 'port_security_enabled': True, 'description': ''}}
2026-08-25 08:27:53,134 - DEBUG - Response for create_subnet : {'subnet': {'id': '10bf8ed4-d23f-462b-bf46-9a98f04c86ec', 'name': '', 'tenant_id': 'a815d60cc12d4bb392910f348bf13715', 'network_id': '55702cad-e696-4e32-b778-54ee8bafe769', 'ip_version': 4, 'cidr': '212.37.38.128/26', 'allocation_pools': [{'start': '212.37.38.130', 'end': '212.37.38.190'}], 'gateway_ip': '212.37.38.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '212.37.38.130', 'tags': [], 'project_id': 'a815d60cc12d4bb392910f348bf13715'}}
2026-08-25 08:27:53,153 - INFO - Created VN ctest-vn-75793995
2026-08-25 08:27:53,207 - DEBUG - VN ctest-vn-75793995 UUID is 55702cad-e696-4e32-b778-54ee8bafe769
2026-08-25 08:27:53,521 - DEBUG - Response for create_network : {'network': {'id': '1c76fa48-42e0-498a-a84f-435f819b07f1', 'name': 'ctest-vn-74189194', 'tenant_id': 'a815d60cc12d4bb392910f348bf13715', 'project_id': 'a815d60cc12d4bb392910f348bf13715', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04379317', 'ctest-vn-74189194'], 'port_security_enabled': True, 'description': ''}}
2026-08-25 08:27:53,742 - DEBUG - Response for create_subnet : {'subnet': {'id': '568716d7-7231-4133-b38d-e23d3d3d00f3', 'name': '', 'tenant_id': 'a815d60cc12d4bb392910f348bf13715', 'network_id': '1c76fa48-42e0-498a-a84f-435f819b07f1', 'ip_version': 4, 'cidr': '55.32.138.128/26', 'allocation_pools': [{'start': '55.32.138.130', 'end': '55.32.138.190'}], 'gateway_ip': '55.32.138.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '55.32.138.130', 'tags': [], 'project_id': 'a815d60cc12d4bb392910f348bf13715'}}
2026-08-25 08:27:53,761 - INFO - Created VN ctest-vn-74189194
2026-08-25 08:27:53,815 - DEBUG - VN ctest-vn-74189194 UUID is 1c76fa48-42e0-498a-a84f-435f819b07f1
2026-08-25 08:27:53,935 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-04379317:ctest-vn-75793995, 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-04379317:ctest-vn-74189194, 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]
2026-08-25 08:27:54,282 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '55702cad-e696-4e32-b778-54ee8bafe769', 'name': 'ctest-vn-75793995', 'tenant_id': 'a815d60cc12d4bb392910f348bf13715', 'project_id': 'a815d60cc12d4bb392910f348bf13715', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['10bf8ed4-d23f-462b-bf46-9a98f04c86ec'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04379317', 'ctest-vn-75793995'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04379317', 'ctest-policy-allow-all-55520825']], 'subnet_ipam': [{'subnet_cidr': '212.37.38.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-25 08:27:54,521 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1c76fa48-42e0-498a-a84f-435f819b07f1', 'name': 'ctest-vn-74189194', 'tenant_id': 'a815d60cc12d4bb392910f348bf13715', 'project_id': 'a815d60cc12d4bb392910f348bf13715', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['568716d7-7231-4133-b38d-e23d3d3d00f3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04379317', 'ctest-vn-74189194'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04379317', 'ctest-policy-allow-all-55520825']], 'subnet_ipam': [{'subnet_cidr': '55.32.138.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-25 08:27:54,699 - DEBUG - Requesting: http://10.0.0.185:8082/domains
2026-08-25 08:27:55,029 - DEBUG - Requesting: http://10.0.0.185:8082/domains
2026-08-25 08:27:55,054 - DEBUG - Requesting: http://10.0.0.185:8082/domain/126f7144-136b-4926-a8f5-7d8835c99790
2026-08-25 08:27:55,066 - DEBUG - Requesting: http://10.0.0.185:8082/project/a815d60c-c12d-4bb3-9291-0f348bf13715
2026-08-25 08:27:55,146 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/55702cad-e696-4e32-b778-54ee8bafe769
2026-08-25 08:27:55,159 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/55702cad-e696-4e32-b778-54ee8bafe769
2026-08-25 08:27:55,169 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/c6688089-b07b-4131-8c07-7772a5ab2320
2026-08-25 08:27:55,177 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/c6688089-b07b-4131-8c07-7772a5ab2320
2026-08-25 08:27:55,184 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/3d6b79db-382a-4621-a775-8b4f98cd88ab
2026-08-25 08:27:55,191 - DEBUG - Route Targets: ['target:64512:8000004']
2026-08-25 08:27:55,191 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/55702cad-e696-4e32-b778-54ee8bafe769
2026-08-25 08:27:55,201 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/c6688089-b07b-4131-8c07-7772a5ab2320
2026-08-25 08:27:55,215 - INFO - Verified VN network id 11 for VN 55702cad-e696-4e32-b778-54ee8bafe769
2026-08-25 08:27:55,215 - INFO - Verifications in API Server for VN ctest-vn-75793995 passed
2026-08-25 08:27:55,215 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/55702cad-e696-4e32-b778-54ee8bafe769
2026-08-25 08:27:55,225 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/c6688089-b07b-4131-8c07-7772a5ab2320
2026-08-25 08:27:55,232 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/c6688089-b07b-4131-8c07-7772a5ab2320
2026-08-25 08:27:55,239 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/3d6b79db-382a-4621-a775-8b4f98cd88ab
2026-08-25 08:27:55,252 - DEBUG - Control-node 10.0.0.185 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04379317:ctest-vn-75793995', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04379317', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6156469816025042482', 'uuid-lslong': '13220410089668601705'}, 'enable': 'true', 'created': '2026-08-25T08:27:52', 'last-modified': '2026-08-25T08:27:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.001052'}
2026-08-25 08:27:55,259 - DEBUG - Route Targets: ['target:64512:8000004']
2026-08-25 08:27:55,259 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75793995 passed
2026-08-25 08:27:55,259 - DEBUG - ====Verifying policy data for ctest-vn-75793995 in API_Server ======
2026-08-25 08:27:55,259 - DEBUG - Requesting: http://10.0.0.185:8082/domains
2026-08-25 08:27:55,265 - DEBUG - Requesting: http://10.0.0.185:8082/domain/126f7144-136b-4926-a8f5-7d8835c99790
2026-08-25 08:27:55,276 - DEBUG - Requesting: http://10.0.0.185:8082/project/a815d60c-c12d-4bb3-9291-0f348bf13715
2026-08-25 08:27:55,354 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/55702cad-e696-4e32-b778-54ee8bafe769
2026-08-25 08:27:55,363 - DEBUG - ==>Verifying data for policy with id: d4ddb3c3-b962-4017-9c6a-0182b80ee6fe, fqn: ['default-domain', 'ctest-TestBasicPolicy-04379317', 'ctest-policy-allow-all-55520825']
2026-08-25 08:27:55,363 - INFO - VN ctest-vn-75793995 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-25 08:27:55,363 - DEBUG - Verifying the vn in opserver
2026-08-25 08:27:55,363 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04379317:ctest-vn-75793995 virtual network link through opserver 10.0.0.185
2026-08-25 08:27:55,363 - DEBUG - Requesting: http://10.0.0.185:8081/analytics/uves/virtual-networks
2026-08-25 08:27:55,687 - DEBUG - Requesting: http://10.0.0.185:8081/analytics/uves/virtual-networks
2026-08-25 08:27:55,743 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04379317:ctest-vn-75793995', 'href': 'http://10.0.0.185:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04379317:ctest-vn-75793995?flat'}
2026-08-25 08:27:55,743 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04379317:ctest-vn-75793995 is found in opserver
2026-08-25 08:27:55,754 - DEBUG - Do not have enough data to verify VN in agent
2026-08-25 08:27:55,760 - DEBUG - VRF ids for VN ctest-vn-75793995: {}
2026-08-25 08:27:55,760 - DEBUG - Requesting: http://10.0.0.185:8082/domains
2026-08-25 08:27:55,766 - DEBUG - Requesting: http://10.0.0.185:8082/domain/126f7144-136b-4926-a8f5-7d8835c99790
2026-08-25 08:27:55,777 - DEBUG - Requesting: http://10.0.0.185:8082/project/a815d60c-c12d-4bb3-9291-0f348bf13715
2026-08-25 08:27:55,853 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/1c76fa48-42e0-498a-a84f-435f819b07f1
2026-08-25 08:27:55,868 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/1c76fa48-42e0-498a-a84f-435f819b07f1
2026-08-25 08:27:55,879 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/125eccc7-7653-41d8-8b0e-64b23c5f827c
2026-08-25 08:27:55,886 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/125eccc7-7653-41d8-8b0e-64b23c5f827c
2026-08-25 08:27:55,893 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/fdc4f0c6-4a33-4136-ad0e-adeca5dd2379
2026-08-25 08:27:55,900 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-25 08:27:55,900 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/1c76fa48-42e0-498a-a84f-435f819b07f1
2026-08-25 08:27:55,910 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/125eccc7-7653-41d8-8b0e-64b23c5f827c
2026-08-25 08:27:55,927 - INFO - Verified VN network id 12 for VN 1c76fa48-42e0-498a-a84f-435f819b07f1
2026-08-25 08:27:55,927 - INFO - Verifications in API Server for VN ctest-vn-74189194 passed
2026-08-25 08:27:55,927 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/1c76fa48-42e0-498a-a84f-435f819b07f1
2026-08-25 08:27:55,938 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/125eccc7-7653-41d8-8b0e-64b23c5f827c
2026-08-25 08:27:55,947 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/125eccc7-7653-41d8-8b0e-64b23c5f827c
2026-08-25 08:27:55,955 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/fdc4f0c6-4a33-4136-ad0e-adeca5dd2379
2026-08-25 08:27:55,970 - DEBUG - Control-node 10.0.0.185 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04379317:ctest-vn-74189194', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04379317', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2051101868580424074', 'uuid-lslong': '12127986399007410161'}, 'enable': 'true', 'created': '2026-08-25T08:27:53', 'last-modified': '2026-08-25T08:27:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.473057'}
2026-08-25 08:27:55,978 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-25 08:27:55,978 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-74189194 passed
2026-08-25 08:27:55,979 - DEBUG - ====Verifying policy data for ctest-vn-74189194 in API_Server ======
2026-08-25 08:27:55,979 - DEBUG - Requesting: http://10.0.0.185:8082/domains
2026-08-25 08:27:55,989 - DEBUG - Requesting: http://10.0.0.185:8082/domain/126f7144-136b-4926-a8f5-7d8835c99790
2026-08-25 08:27:56,004 - DEBUG - Requesting: http://10.0.0.185:8082/project/a815d60c-c12d-4bb3-9291-0f348bf13715
2026-08-25 08:27:56,088 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/1c76fa48-42e0-498a-a84f-435f819b07f1
2026-08-25 08:27:56,098 - DEBUG - ==>Verifying data for policy with id: d4ddb3c3-b962-4017-9c6a-0182b80ee6fe, fqn: ['default-domain', 'ctest-TestBasicPolicy-04379317', 'ctest-policy-allow-all-55520825']
2026-08-25 08:27:56,098 - INFO - VN ctest-vn-74189194 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-25 08:27:56,098 - DEBUG - Verifying the vn in opserver
2026-08-25 08:27:56,098 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04379317:ctest-vn-74189194 virtual network link through opserver 10.0.0.185
2026-08-25 08:27:56,099 - DEBUG - Requesting: http://10.0.0.185:8081/analytics/uves/virtual-networks
2026-08-25 08:27:56,110 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04379317:ctest-vn-74189194', 'href': 'http://10.0.0.185:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04379317:ctest-vn-74189194?flat'}
2026-08-25 08:27:56,110 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04379317:ctest-vn-74189194 is found in opserver
2026-08-25 08:27:56,119 - DEBUG - Do not have enough data to verify VN in agent
2026-08-25 08:27:56,124 - DEBUG - VRF ids for VN ctest-vn-74189194: {}
2026-08-25 08:27:56,181 - DEBUG - Services list from nova: [