2025-11-05 10:21:36,992 - INFO - Domain Default found not creating
2025-11-05 10:21:37,139 - INFO - Project ctest-TestBasicPolicy-39404949 not found, creating it
2025-11-05 10:21:37,589 - INFO - Created Project:ctest-TestBasicPolicy-39404949, ID : bf8db1ec-7826-446c-bb91-2ef94a9563b6
2025-11-05 10:21:38,998 - INFO - ================================================================================
2025-11-05 10:21:38,998 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-05 10:21:38,998 - 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-05 10:21:39,253 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with
2025-11-05 10:21:39,253 - INFO - Initial checks done. Running the testcase now
2025-11-05 10:21:39,253 - INFO -
2025-11-05 10:21:39,795 - DEBUG - Response for create_network : {'network': {'id': 'f97403d7-4f68-40e5-9224-536412004887', 'name': 'ctest-vn-29237582', 'tenant_id': 'bf8db1ec7826446cbb912ef94a9563b6', 'project_id': 'bf8db1ec7826446cbb912ef94a9563b6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39404949', 'ctest-vn-29237582'], 'port_security_enabled': True, 'description': ''}}
2025-11-05 10:21:40,129 - DEBUG - Response for create_subnet : {'subnet': {'id': '6b04230d-3643-4567-a0c3-e9b6828162d6', 'name': '', 'tenant_id': 'bf8db1ec7826446cbb912ef94a9563b6', 'network_id': 'f97403d7-4f68-40e5-9224-536412004887', 'ip_version': 4, 'cidr': '4.27.143.192/26', 'allocation_pools': [{'start': '4.27.143.194', 'end': '4.27.143.254'}], 'gateway_ip': '4.27.143.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '4.27.143.194', 'tags': [], 'project_id': 'bf8db1ec7826446cbb912ef94a9563b6'}}
2025-11-05 10:21:40,156 - INFO - Created VN ctest-vn-29237582
2025-11-05 10:21:40,216 - DEBUG - VN ctest-vn-29237582 UUID is f97403d7-4f68-40e5-9224-536412004887
2025-11-05 10:21:40,603 - DEBUG - Response for create_network : {'network': {'id': '8fc6f472-a778-40e9-b7be-95ed9917f737', 'name': 'ctest-vn-48029681', 'tenant_id': 'bf8db1ec7826446cbb912ef94a9563b6', 'project_id': 'bf8db1ec7826446cbb912ef94a9563b6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39404949', 'ctest-vn-48029681'], 'port_security_enabled': True, 'description': ''}}
2025-11-05 10:21:40,771 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b333bdd7-6835-4eb0-b7d9-b43e958e3749', 'name': '', 'tenant_id': 'bf8db1ec7826446cbb912ef94a9563b6', 'network_id': '8fc6f472-a778-40e9-b7be-95ed9917f737', 'ip_version': 4, 'cidr': '176.208.255.0/26', 'allocation_pools': [{'start': '176.208.255.2', 'end': '176.208.255.62'}], 'gateway_ip': '176.208.255.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '176.208.255.2', 'tags': [], 'project_id': 'bf8db1ec7826446cbb912ef94a9563b6'}}
2025-11-05 10:21:40,788 - INFO - Created VN ctest-vn-48029681
2025-11-05 10:21:40,840 - DEBUG - VN ctest-vn-48029681 UUID is 8fc6f472-a778-40e9-b7be-95ed9917f737
2025-11-05 10:21:40,992 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-39404949:ctest-vn-29237582, 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-39404949:ctest-vn-48029681, 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-05 10:21:41,281 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f97403d7-4f68-40e5-9224-536412004887', 'name': 'ctest-vn-29237582', 'tenant_id': 'bf8db1ec7826446cbb912ef94a9563b6', 'project_id': 'bf8db1ec7826446cbb912ef94a9563b6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6b04230d-3643-4567-a0c3-e9b6828162d6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39404949', 'ctest-vn-29237582'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-39404949', 'ctest-policy-allow-all-97636789']], 'subnet_ipam': [{'subnet_cidr': '4.27.143.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-05 10:21:41,501 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8fc6f472-a778-40e9-b7be-95ed9917f737', 'name': 'ctest-vn-48029681', 'tenant_id': 'bf8db1ec7826446cbb912ef94a9563b6', 'project_id': 'bf8db1ec7826446cbb912ef94a9563b6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b333bdd7-6835-4eb0-b7d9-b43e958e3749'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39404949', 'ctest-vn-48029681'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-39404949', 'ctest-policy-allow-all-97636789']], 'subnet_ipam': [{'subnet_cidr': '176.208.255.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-05 10:21:41,664 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-05 10:21:41,959 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-05 10:21:41,992 - DEBUG - Requesting: http://10.0.0.22:8082/domain/dc9eb001-0a20-4e7f-a58b-b9d10f002181
2025-11-05 10:21:42,003 - DEBUG - Requesting: http://10.0.0.22:8082/project/bf8db1ec-7826-446c-bb91-2ef94a9563b6
2025-11-05 10:21:42,076 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f97403d7-4f68-40e5-9224-536412004887
2025-11-05 10:21:42,085 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f97403d7-4f68-40e5-9224-536412004887
2025-11-05 10:21:42,093 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/fcb0ea14-297c-4537-9c7f-ed4a9faaa68f
2025-11-05 10:21:42,101 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/fcb0ea14-297c-4537-9c7f-ed4a9faaa68f
2025-11-05 10:21:42,107 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/52e84d5b-c414-46fa-af89-e773b6c4aa0f
2025-11-05 10:21:42,112 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-05 10:21:42,112 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f97403d7-4f68-40e5-9224-536412004887
2025-11-05 10:21:42,119 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/fcb0ea14-297c-4537-9c7f-ed4a9faaa68f
2025-11-05 10:21:42,131 - INFO - Verified VN network id 11 for VN f97403d7-4f68-40e5-9224-536412004887
2025-11-05 10:21:42,131 - INFO - Verifications in API Server for VN ctest-vn-29237582 passed
2025-11-05 10:21:42,131 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f97403d7-4f68-40e5-9224-536412004887
2025-11-05 10:21:42,140 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/fcb0ea14-297c-4537-9c7f-ed4a9faaa68f
2025-11-05 10:21:42,148 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/fcb0ea14-297c-4537-9c7f-ed4a9faaa68f
2025-11-05 10:21:42,158 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/52e84d5b-c414-46fa-af89-e773b6c4aa0f
2025-11-05 10:21:42,168 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-39404949:ctest-vn-29237582', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-39404949', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17974996236027576549', 'uuid-lslong': '10530633517962905735'}, 'enable': 'true', 'created': '2025-11-05T10:21:39', 'last-modified': '2025-11-05T10:21:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.909979'}
2025-11-05 10:21:42,177 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-05 10:21:42,177 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-29237582 passed
2025-11-05 10:21:42,177 - DEBUG - ====Verifying policy data for ctest-vn-29237582 in API_Server ======
2025-11-05 10:21:42,177 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-05 10:21:42,182 - DEBUG - Requesting: http://10.0.0.22:8082/domain/dc9eb001-0a20-4e7f-a58b-b9d10f002181
2025-11-05 10:21:42,192 - DEBUG - Requesting: http://10.0.0.22:8082/project/bf8db1ec-7826-446c-bb91-2ef94a9563b6
2025-11-05 10:21:42,264 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f97403d7-4f68-40e5-9224-536412004887
2025-11-05 10:21:42,273 - DEBUG - ==>Verifying data for policy with id: 688c3ef2-b8ca-4a07-8220-fc33486ae2bc, fqn: ['default-domain', 'ctest-TestBasicPolicy-39404949', 'ctest-policy-allow-all-97636789']
2025-11-05 10:21:42,273 - INFO - VN ctest-vn-29237582 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-05 10:21:42,273 - DEBUG - Verifying the vn in opserver
2025-11-05 10:21:42,273 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-39404949:ctest-vn-29237582 virtual network link through opserver 10.0.0.22
2025-11-05 10:21:42,274 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-05 10:21:42,588 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-05 10:21:42,650 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-39404949:ctest-vn-29237582', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-39404949:ctest-vn-29237582?flat'}
2025-11-05 10:21:42,650 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-39404949:ctest-vn-29237582 is found in opserver
2025-11-05 10:21:42,659 - DEBUG - Do not have enough data to verify VN in agent
2025-11-05 10:21:42,663 - DEBUG - VRF ids for VN ctest-vn-29237582: {}
2025-11-05 10:21:42,663 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-05 10:21:42,668 - DEBUG - Requesting: http://10.0.0.22:8082/domain/dc9eb001-0a20-4e7f-a58b-b9d10f002181
2025-11-05 10:21:42,678 - DEBUG - Requesting: http://10.0.0.22:8082/project/bf8db1ec-7826-446c-bb91-2ef94a9563b6
2025-11-05 10:21:42,753 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/8fc6f472-a778-40e9-b7be-95ed9917f737
2025-11-05 10:21:42,762 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/8fc6f472-a778-40e9-b7be-95ed9917f737
2025-11-05 10:21:42,770 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0c343960-ee85-46b8-99b0-a24e238fd811
2025-11-05 10:21:42,776 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0c343960-ee85-46b8-99b0-a24e238fd811
2025-11-05 10:21:42,781 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/e5bb4897-4a51-4bdf-bdf3-5af89cbf17c1
2025-11-05 10:21:42,786 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-05 10:21:42,786 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/8fc6f472-a778-40e9-b7be-95ed9917f737
2025-11-05 10:21:42,794 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0c343960-ee85-46b8-99b0-a24e238fd811
2025-11-05 10:21:42,806 - INFO - Verified VN network id 12 for VN 8fc6f472-a778-40e9-b7be-95ed9917f737
2025-11-05 10:21:42,806 - INFO - Verifications in API Server for VN ctest-vn-48029681 passed
2025-11-05 10:21:42,806 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/8fc6f472-a778-40e9-b7be-95ed9917f737
2025-11-05 10:21:42,815 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0c343960-ee85-46b8-99b0-a24e238fd811
2025-11-05 10:21:42,821 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0c343960-ee85-46b8-99b0-a24e238fd811
2025-11-05 10:21:42,827 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/e5bb4897-4a51-4bdf-bdf3-5af89cbf17c1
2025-11-05 10:21:42,838 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-39404949:ctest-vn-48029681', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-39404949', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10360236766085529833', 'uuid-lslong': '13240184802224109367'}, 'enable': 'true', 'created': '2025-11-05T10:21:40', 'last-modified': '2025-11-05T10:21:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.358831'}
2025-11-05 10:21:42,844 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-05 10:21:42,844 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48029681 passed
2025-11-05 10:21:42,844 - DEBUG - ====Verifying policy data for ctest-vn-48029681 in API_Server ======
2025-11-05 10:21:42,844 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-05 10:21:42,850 - DEBUG - Requesting: http://10.0.0.22:8082/domain/dc9eb001-0a20-4e7f-a58b-b9d10f002181
2025-11-05 10:21:42,861 - DEBUG - Requesting: http://10.0.0.22:8082/project/bf8db1ec-7826-446c-bb91-2ef94a9563b6
2025-11-05 10:21:42,928 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/8fc6f472-a778-40e9-b7be-95ed9917f737
2025-11-05 10:21:42,935 - DEBUG - ==>Verifying data for policy with id: 688c3ef2-b8ca-4a07-8220-fc33486ae2bc, fqn: ['default-domain', 'ctest-TestBasicPolicy-39404949', 'ctest-policy-allow-all-97636789']
2025-11-05 10:21:42,936 - INFO - VN ctest-vn-48029681 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-05 10:21:42,936 - DEBUG - Verifying the vn in opserver
2025-11-05 10:21:42,936 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-39404949:ctest-vn-48029681 virtual network link through opserver 10.0.0.22
2025-11-05 10:21:42,936 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-05 10:21:42,945 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-39404949:ctest-vn-48029681', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-39404949:ctest-vn-48029681?flat'}
2025-11-05 10:21:42,945 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-39404949:ctest-vn-48029681 is found in opserver
2025-11-05 10:21:42,956 - DEBUG - Do not have enough data to verify VN in agent
2025-11-05 10:21:42,960 - DEBUG - VRF ids for VN ctest-vn-48029681: {}
2025-11-05 10:21:43,013 - DEBUG - Services list from nova: [