2025-09-11 12:05:18,637 - INFO - Domain Default found not creating 2025-09-11 12:05:18,796 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-07225644 not found, creating it 2025-09-11 12:05:19,249 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-07225644, ID : ce956047-c6f4-496e-9902-a1b40da98fbd 2025-09-11 12:05:20,685 - INFO - ================================================================================ 2025-09-11 12:05:20,685 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-11 12:05:20,945 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with 2025-09-11 12:05:20,945 - INFO - Initial checks done. Running the testcase now 2025-09-11 12:05:20,945 - INFO - 2025-09-11 12:05:20,945 - INFO - ================================================================================ 2025-09-11 12:05:20,945 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-11 12:05:20,945 - INFO - TEST DESCRIPTION : This tests the following scenarios. 1. Test to validate that policy removal will fail when it referenced with VN. 2. validate vn_policy data in api-s against quantum-vn data, when created and unbind policy from VN thru quantum APIs. 3. validate policy data in api-s against quantum-policy data, when created and deleted thru quantum APIs. 2025-09-11 12:05:21,233 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with 2025-09-11 12:05:21,233 - INFO - Initial checks done. Running the testcase now 2025-09-11 12:05:21,233 - INFO - 2025-09-11 12:05:21,580 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07225644:ctest-vn4-85514232, 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-TestBasicPolicyNegativeIpv4v6-07225644:ctest-vn4-85514232, 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, rule_sequence = None, rule_uuid = None, direction = <>, protocol = 58, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07225644:ctest-vn4-85514232, 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-TestBasicPolicyNegativeIpv4v6-07225644:ctest-vn4-85514232, 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-09-11 12:05:22,101 - DEBUG - Response for create_network : {'network': {'id': '0cdb1def-4645-487a-ae47-491f0c15864f', 'name': 'ctest-vn4-85514232', 'tenant_id': 'ce956047c6f4496e9902a1b40da98fbd', 'project_id': 'ce956047c6f4496e9902a1b40da98fbd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07225644', 'ctest-vn4-85514232'], 'port_security_enabled': True, 'description': ''}} 2025-09-11 12:05:22,334 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ad176172-0b9c-4ec3-982a-3074d6aedc79', 'name': '', 'tenant_id': 'ce956047c6f4496e9902a1b40da98fbd', 'network_id': '0cdb1def-4645-487a-ae47-491f0c15864f', 'ip_version': 4, 'cidr': '207.231.143.192/26', 'allocation_pools': [{'start': '207.231.143.194', 'end': '207.231.143.254'}], 'gateway_ip': '207.231.143.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '207.231.143.194', 'tags': [], 'project_id': 'ce956047c6f4496e9902a1b40da98fbd'}} 2025-09-11 12:05:22,496 - DEBUG - Response for create_subnet : {'subnet': {'id': '4af860ae-7d07-48da-ae17-cc57a353e64a', 'name': '', 'tenant_id': 'ce956047c6f4496e9902a1b40da98fbd', 'network_id': '0cdb1def-4645-487a-ae47-491f0c15864f', 'ip_version': 6, 'cidr': '3c40:6b65:f8cf:5dd8:b407:e26::/96', 'allocation_pools': [{'start': '3c40:6b65:f8cf:5dd8:b407:e26:0:2', 'end': '3c40:6b65:f8cf:5dd8:b407:e26:ffff:fffe'}], 'gateway_ip': '3c40:6b65:f8cf:5dd8:b407:e26:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3c40:6b65:f8cf:5dd8:b407:e26:0:2', 'tags': [], 'project_id': 'ce956047c6f4496e9902a1b40da98fbd'}} 2025-09-11 12:05:22,517 - INFO - Created VN ctest-vn4-85514232 2025-09-11 12:05:22,571 - DEBUG - VN ctest-vn4-85514232 UUID is 0cdb1def-4645-487a-ae47-491f0c15864f 2025-09-11 12:05:22,781 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0cdb1def-4645-487a-ae47-491f0c15864f', 'name': 'ctest-vn4-85514232', 'tenant_id': 'ce956047c6f4496e9902a1b40da98fbd', 'project_id': 'ce956047c6f4496e9902a1b40da98fbd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ad176172-0b9c-4ec3-982a-3074d6aedc79', '4af860ae-7d07-48da-ae17-cc57a353e64a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07225644', 'ctest-vn4-85514232'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07225644', 'ctest-policy1-51498486']], 'subnet_ipam': [{'subnet_cidr': '207.231.143.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3c40:6b65:f8cf:5dd8:b407:e26::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-11 12:05:22,943 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-11 12:05:23,236 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-11 12:05:23,264 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4fb5838d-32cc-41f1-a228-fe62c48cd237 2025-09-11 12:05:23,276 - DEBUG - Requesting: http://10.0.0.22:8082/project/ce956047-c6f4-496e-9902-a1b40da98fbd 2025-09-11 12:05:23,347 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0cdb1def-4645-487a-ae47-491f0c15864f 2025-09-11 12:05:23,359 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0cdb1def-4645-487a-ae47-491f0c15864f 2025-09-11 12:05:23,368 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/de70b735-c32d-417e-9447-3ba3bdad171b 2025-09-11 12:05:23,375 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/de70b735-c32d-417e-9447-3ba3bdad171b 2025-09-11 12:05:23,381 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/73b0f8e7-a09c-4be2-9527-40dff9a7817d 2025-09-11 12:05:23,387 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-11 12:05:23,387 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0cdb1def-4645-487a-ae47-491f0c15864f 2025-09-11 12:05:23,396 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/de70b735-c32d-417e-9447-3ba3bdad171b 2025-09-11 12:05:23,410 - INFO - Verified VN network id 12 for VN 0cdb1def-4645-487a-ae47-491f0c15864f 2025-09-11 12:05:23,410 - INFO - Verifications in API Server for VN ctest-vn4-85514232 passed 2025-09-11 12:05:23,411 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0cdb1def-4645-487a-ae47-491f0c15864f 2025-09-11 12:05:23,419 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/de70b735-c32d-417e-9447-3ba3bdad171b 2025-09-11 12:05:23,425 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/de70b735-c32d-417e-9447-3ba3bdad171b 2025-09-11 12:05:23,432 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/73b0f8e7-a09c-4be2-9527-40dff9a7817d 2025-09-11 12:05:23,442 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07225644:ctest-vn4-85514232', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-07225644', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '926367061868103802', 'uuid-lslong': '12558086483641468495'}, 'enable': 'true', 'created': '2025-09-11T12:05:22', 'last-modified': '2025-09-11T12:05:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.689059'} 2025-09-11 12:05:23,449 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-11 12:05:23,449 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-85514232 passed 2025-09-11 12:05:23,449 - DEBUG - ====Verifying policy data for ctest-vn4-85514232 in API_Server ====== 2025-09-11 12:05:23,449 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-11 12:05:23,454 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4fb5838d-32cc-41f1-a228-fe62c48cd237 2025-09-11 12:05:23,468 - DEBUG - Requesting: http://10.0.0.22:8082/project/ce956047-c6f4-496e-9902-a1b40da98fbd 2025-09-11 12:05:23,534 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0cdb1def-4645-487a-ae47-491f0c15864f 2025-09-11 12:05:23,543 - DEBUG - ==>Verifying data for policy with id: 1271ca1d-6fc2-4ae4-a4a2-f182fe0597a1, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07225644', 'ctest-policy1-51498486'] 2025-09-11 12:05:23,543 - INFO - VN ctest-vn4-85514232 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-11 12:05:23,543 - DEBUG - Verifying the vn in opserver 2025-09-11 12:05:23,543 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07225644:ctest-vn4-85514232 virtual network link through opserver 10.0.0.22 2025-09-11 12:05:23,544 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-09-11 12:05:23,838 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-09-11 12:05:23,891 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07225644:ctest-vn4-85514232', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07225644:ctest-vn4-85514232?flat'} 2025-09-11 12:05:23,891 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07225644:ctest-vn4-85514232 is found in opserver 2025-09-11 12:05:23,900 - DEBUG - Do not have enough data to verify VN in agent 2025-09-11 12:05:23,904 - DEBUG - VRF ids for VN ctest-vn4-85514232: {} 2025-09-11 12:05:23,905 - DEBUG - ====Verifying data for ctest-policy1-51498486 in API_Server ====== 2025-09-11 12:05:23,905 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-11 12:05:23,910 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4fb5838d-32cc-41f1-a228-fe62c48cd237 2025-09-11 12:05:23,979 - DEBUG - Requesting: http://10.0.0.22:8082/project/ce956047-c6f4-496e-9902-a1b40da98fbd 2025-09-11 12:05:24,048 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/1271ca1d-6fc2-4ae4-a4a2-f182fe0597a1 2025-09-11 12:05:24,058 - INFO - Verified policy ctest-policy1-51498486 in API Server, Result: True 2025-09-11 12:05:24,058 - INFO - Done with setup and verification, moving onto test .. 2025-09-11 12:05:24,067 - INFO - Deleting VN ctest-vn4-85514232 2025-09-11 12:05:24,187 - DEBUG - Response for deleting network () 2025-09-11 12:05:24,187 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/de70b735-c32d-417e-9447-3ba3bdad171b 2025-09-11 12:05:24,192 - DEBUG - Response Code: 404 2025-09-11 12:05:24,192 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-11 12:05:24,197 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4fb5838d-32cc-41f1-a228-fe62c48cd237 2025-09-11 12:05:24,252 - DEBUG - Requesting: http://10.0.0.22:8082/project/ce956047-c6f4-496e-9902-a1b40da98fbd 2025-09-11 12:05:24,322 - INFO - Validated that VN ctest-vn4-85514232 is not found in API Server 2025-09-11 12:05:24,332 - DEBUG - VN ctest-vn4-85514232 is not present in Agent 10.0.0.22 2025-09-11 12:05:24,332 - INFO - Validated that VN ctest-vn4-85514232 is not in any agent 2025-09-11 12:05:24,347 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-85514232 info 2025-09-11 12:05:24,377 - INFO - Deleted policy ctest-policy1-51498486 2025-09-11 12:05:24,547 - DEBUG - policy ctest-policy1-51498486 is not found in API Server 2025-09-11 12:05:24,800 - DEBUG - No XMPP flaps were noticed during the test 2025-09-11 12:05:24,800 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-09-11 12:05:24,800 - INFO - -------------------------------------------------------------------------------- 2025-09-11 12:05:25,100 - DEBUG - No XMPP flaps were noticed during the test 2025-09-11 12:05:25,100 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-09-11 12:05:25,100 - INFO - -------------------------------------------------------------------------------- 2025-09-11 12:05:25,775 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-07225644, ID : ce956047-c6f4-496e-9902-a1b40da98fbd