2025-09-03 12:02:38,223 - INFO - Domain Default found not creating 2025-09-03 12:02:38,356 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-07370262 not found, creating it 2025-09-03 12:02:38,783 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-07370262, ID : 07ce3830-2af9-454d-b3b7-82c66188a992 2025-09-03 12:02:40,220 - INFO - ================================================================================ 2025-09-03 12:02:40,221 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-03 12:02:40,475 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-09-03 12:02:40,475 - INFO - Initial checks done. Running the testcase now 2025-09-03 12:02:40,475 - INFO - 2025-09-03 12:02:40,475 - INFO - ================================================================================ 2025-09-03 12:02:40,475 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-03 12:02:40,475 - 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-03 12:02:40,767 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-09-03 12:02:40,767 - INFO - Initial checks done. Running the testcase now 2025-09-03 12:02:40,767 - INFO - 2025-09-03 12:02:41,107 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07370262:ctest-vn4-88847800, 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-07370262:ctest-vn4-88847800, 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-07370262:ctest-vn4-88847800, 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-07370262:ctest-vn4-88847800, 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-03 12:02:41,615 - DEBUG - Response for create_network : {'network': {'id': 'c9df7d33-6af8-4b64-a00a-2dd28dfcb7c2', 'name': 'ctest-vn4-88847800', 'tenant_id': '07ce38302af9454db3b782c66188a992', 'project_id': '07ce38302af9454db3b782c66188a992', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07370262', 'ctest-vn4-88847800'], 'port_security_enabled': True, 'description': ''}} 2025-09-03 12:02:41,775 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c65e6c2d-e078-4d4a-9493-06c0fe43f7b3', 'name': '', 'tenant_id': '07ce38302af9454db3b782c66188a992', 'network_id': 'c9df7d33-6af8-4b64-a00a-2dd28dfcb7c2', 'ip_version': 4, 'cidr': '93.63.35.192/26', 'allocation_pools': [{'start': '93.63.35.194', 'end': '93.63.35.254'}], 'gateway_ip': '93.63.35.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '93.63.35.194', 'tags': [], 'project_id': '07ce38302af9454db3b782c66188a992'}} 2025-09-03 12:02:41,976 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aa7fd201-40be-4b88-bce5-969c25265cec', 'name': '', 'tenant_id': '07ce38302af9454db3b782c66188a992', 'network_id': 'c9df7d33-6af8-4b64-a00a-2dd28dfcb7c2', 'ip_version': 6, 'cidr': '2724:2dc2:20ae:2d71:1acc:1f7b::/96', 'allocation_pools': [{'start': '2724:2dc2:20ae:2d71:1acc:1f7b:0:2', 'end': '2724:2dc2:20ae:2d71:1acc:1f7b:ffff:fffe'}], 'gateway_ip': '2724:2dc2:20ae:2d71:1acc:1f7b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2724:2dc2:20ae:2d71:1acc:1f7b:0:2', 'tags': [], 'project_id': '07ce38302af9454db3b782c66188a992'}} 2025-09-03 12:02:41,996 - INFO - Created VN ctest-vn4-88847800 2025-09-03 12:02:42,050 - DEBUG - VN ctest-vn4-88847800 UUID is c9df7d33-6af8-4b64-a00a-2dd28dfcb7c2 2025-09-03 12:02:42,234 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c9df7d33-6af8-4b64-a00a-2dd28dfcb7c2', 'name': 'ctest-vn4-88847800', 'tenant_id': '07ce38302af9454db3b782c66188a992', 'project_id': '07ce38302af9454db3b782c66188a992', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c65e6c2d-e078-4d4a-9493-06c0fe43f7b3', 'aa7fd201-40be-4b88-bce5-969c25265cec'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07370262', 'ctest-vn4-88847800'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07370262', 'ctest-policy1-54914710']], 'subnet_ipam': [{'subnet_cidr': '93.63.35.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2724:2dc2:20ae:2d71:1acc:1f7b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-03 12:02:42,398 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-03 12:02:42,686 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-03 12:02:42,719 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f193d709-4fe1-491f-b580-1d86eb9a8299 2025-09-03 12:02:42,730 - DEBUG - Requesting: http://10.0.0.254:8082/project/07ce3830-2af9-454d-b3b7-82c66188a992 2025-09-03 12:02:42,800 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c9df7d33-6af8-4b64-a00a-2dd28dfcb7c2 2025-09-03 12:02:42,810 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c9df7d33-6af8-4b64-a00a-2dd28dfcb7c2 2025-09-03 12:02:42,819 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1ee32cc6-9297-4229-99d4-abc5a16367ff 2025-09-03 12:02:42,825 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1ee32cc6-9297-4229-99d4-abc5a16367ff 2025-09-03 12:02:42,832 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/aa0a04fd-ebf6-4dd4-b934-719417733ea5 2025-09-03 12:02:42,839 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-03 12:02:42,839 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c9df7d33-6af8-4b64-a00a-2dd28dfcb7c2 2025-09-03 12:02:42,847 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1ee32cc6-9297-4229-99d4-abc5a16367ff 2025-09-03 12:02:42,860 - INFO - Verified VN network id 12 for VN c9df7d33-6af8-4b64-a00a-2dd28dfcb7c2 2025-09-03 12:02:42,860 - INFO - Verifications in API Server for VN ctest-vn4-88847800 passed 2025-09-03 12:02:42,860 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c9df7d33-6af8-4b64-a00a-2dd28dfcb7c2 2025-09-03 12:02:42,868 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1ee32cc6-9297-4229-99d4-abc5a16367ff 2025-09-03 12:02:42,875 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1ee32cc6-9297-4229-99d4-abc5a16367ff 2025-09-03 12:02:42,881 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/aa0a04fd-ebf6-4dd4-b934-719417733ea5 2025-09-03 12:02:42,892 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07370262:ctest-vn4-88847800', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-07370262', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14546482981221452644', 'uuid-lslong': '11532080178184107970'}, 'enable': 'true', 'created': '2025-09-03T12:02:41', 'last-modified': '2025-09-03T12:02:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.677915'} 2025-09-03 12:02:42,899 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-03 12:02:42,899 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-88847800 passed 2025-09-03 12:02:42,899 - DEBUG - ====Verifying policy data for ctest-vn4-88847800 in API_Server ====== 2025-09-03 12:02:42,900 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-03 12:02:42,905 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f193d709-4fe1-491f-b580-1d86eb9a8299 2025-09-03 12:02:42,916 - DEBUG - Requesting: http://10.0.0.254:8082/project/07ce3830-2af9-454d-b3b7-82c66188a992 2025-09-03 12:02:42,983 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c9df7d33-6af8-4b64-a00a-2dd28dfcb7c2 2025-09-03 12:02:42,992 - DEBUG - ==>Verifying data for policy with id: 82d358c7-ea28-4257-bb7f-40b3cf9bc5b8, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07370262', 'ctest-policy1-54914710'] 2025-09-03 12:02:42,992 - INFO - VN ctest-vn4-88847800 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-03 12:02:42,992 - DEBUG - Verifying the vn in opserver 2025-09-03 12:02:42,992 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07370262:ctest-vn4-88847800 virtual network link through opserver 10.0.0.254 2025-09-03 12:02:42,992 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-09-03 12:02:43,281 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-09-03 12:02:43,332 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07370262:ctest-vn4-88847800', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07370262:ctest-vn4-88847800?flat'} 2025-09-03 12:02:43,332 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07370262:ctest-vn4-88847800 is found in opserver 2025-09-03 12:02:43,342 - DEBUG - Do not have enough data to verify VN in agent 2025-09-03 12:02:43,346 - DEBUG - VRF ids for VN ctest-vn4-88847800: {} 2025-09-03 12:02:43,347 - DEBUG - ====Verifying data for ctest-policy1-54914710 in API_Server ====== 2025-09-03 12:02:43,347 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-03 12:02:43,352 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f193d709-4fe1-491f-b580-1d86eb9a8299 2025-09-03 12:02:43,362 - DEBUG - Requesting: http://10.0.0.254:8082/project/07ce3830-2af9-454d-b3b7-82c66188a992 2025-09-03 12:02:43,432 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/82d358c7-ea28-4257-bb7f-40b3cf9bc5b8 2025-09-03 12:02:43,442 - INFO - Verified policy ctest-policy1-54914710 in API Server, Result: True 2025-09-03 12:02:43,442 - INFO - Done with setup and verification, moving onto test .. 2025-09-03 12:02:43,451 - INFO - Deleting VN ctest-vn4-88847800 2025-09-03 12:02:43,569 - DEBUG - Response for deleting network () 2025-09-03 12:02:43,569 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1ee32cc6-9297-4229-99d4-abc5a16367ff 2025-09-03 12:02:43,574 - DEBUG - Response Code: 404 2025-09-03 12:02:43,574 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-03 12:02:43,579 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f193d709-4fe1-491f-b580-1d86eb9a8299 2025-09-03 12:02:43,631 - DEBUG - Requesting: http://10.0.0.254:8082/project/07ce3830-2af9-454d-b3b7-82c66188a992 2025-09-03 12:02:43,699 - INFO - Validated that VN ctest-vn4-88847800 is not found in API Server 2025-09-03 12:02:43,708 - DEBUG - VN ctest-vn4-88847800 is not present in Agent 10.0.0.254 2025-09-03 12:02:43,708 - INFO - Validated that VN ctest-vn4-88847800 is not in any agent 2025-09-03 12:02:43,721 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-88847800 info 2025-09-03 12:02:43,745 - INFO - Deleted policy ctest-policy1-54914710 2025-09-03 12:02:43,910 - DEBUG - policy ctest-policy1-54914710 is not found in API Server 2025-09-03 12:02:44,161 - DEBUG - No XMPP flaps were noticed during the test