2025-10-22 15:00:18,567 - INFO - Reading existing Domain with UUID 8c582771-8b31-4700-9720-69718950e5ce 2025-10-22 15:00:18,580 - INFO - Using existing domain ['admin_domain'](8c582771-8b31-4700-9720-69718950e5ce) 2025-10-22 15:00:18,811 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-26312151 not found, creating it 2025-10-22 15:00:19,344 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-26312151, ID : 4a555530-da52-4ff7-9e16-831ef3226a4d 2025-10-22 15:00:21,468 - INFO - ================================================================================ 2025-10-22 15:00:21,468 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-22 15:00:21,860 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.0.0.241': '0'}} with 2025-10-22 15:00:21,860 - INFO - Initial checks done. Running the testcase now 2025-10-22 15:00:21,860 - INFO - 2025-10-22 15:00:21,860 - INFO - ================================================================================ 2025-10-22 15:00:21,860 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-22 15:00:21,860 - 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-10-22 15:00:22,251 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.0.0.241': '0'}} with 2025-10-22 15:00:22,251 - INFO - Initial checks done. Running the testcase now 2025-10-22 15:00:22,251 - INFO - 2025-10-22 15:00:22,632 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-26312151:ctest-vn4-54091485, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-26312151:ctest-vn4-54091485, 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 = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-26312151:ctest-vn4-54091485, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-26312151:ctest-vn4-54091485, 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-22 15:00:23,375 - DEBUG - Response for create_network : {'network': {'id': '001ecb3a-37ef-4e3f-aa3d-37a255796221', 'name': 'ctest-vn4-54091485', 'tenant_id': '4a555530da524ff79e16831ef3226a4d', 'project_id': '4a555530da524ff79e16831ef3226a4d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-26312151', 'ctest-vn4-54091485'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2025-10-22 15:00:23,612 - DEBUG - Response for create_subnet : {'subnet': {'id': '510e1925-0ba2-4e61-af52-5b545ecf8431', 'name': '', 'tenant_id': '4a555530da524ff79e16831ef3226a4d', 'network_id': '001ecb3a-37ef-4e3f-aa3d-37a255796221', 'ip_version': 4, 'cidr': '204.155.1.0/26', 'allocation_pools': [{'start': '204.155.1.2', 'end': '204.155.1.62'}], 'gateway_ip': '204.155.1.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-10-22T15:00:23.512826', 'updated_at': '2025-10-22T15:00:23.512826', 'dns_server_address': '204.155.1.2', 'tags': [], 'project_id': '4a555530da524ff79e16831ef3226a4d'}} 2025-10-22 15:00:23,880 - DEBUG - Response for create_subnet : {'subnet': {'id': '196264c1-0e84-4b90-98ac-19e844346752', 'name': '', 'tenant_id': '4a555530da524ff79e16831ef3226a4d', 'network_id': '001ecb3a-37ef-4e3f-aa3d-37a255796221', 'ip_version': 6, 'cidr': '3dd4:925c:9679:bca8:2bf7:2187::/96', 'allocation_pools': [{'start': '3dd4:925c:9679:bca8:2bf7:2187:0:2', 'end': '3dd4:925c:9679:bca8:2bf7:2187:ffff:fffe'}], 'gateway_ip': '3dd4:925c:9679:bca8:2bf7:2187:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-10-22T15:00:23.773517', 'updated_at': '2025-10-22T15:00:23.773517', 'dns_server_address': '3dd4:925c:9679:bca8:2bf7:2187:0:2', 'tags': [], 'project_id': '4a555530da524ff79e16831ef3226a4d'}} 2025-10-22 15:00:23,953 - INFO - Created VN ctest-vn4-54091485 2025-10-22 15:00:24,006 - DEBUG - VN ctest-vn4-54091485 UUID is 001ecb3a-37ef-4e3f-aa3d-37a255796221 2025-10-22 15:00:24,470 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '001ecb3a-37ef-4e3f-aa3d-37a255796221', 'name': 'ctest-vn4-54091485', 'tenant_id': '4a555530da524ff79e16831ef3226a4d', 'project_id': '4a555530da524ff79e16831ef3226a4d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['510e1925-0ba2-4e61-af52-5b545ecf8431', '196264c1-0e84-4b90-98ac-19e844346752'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-26312151', 'ctest-vn4-54091485'], 'policys': [['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-26312151', 'ctest-policy1-54784380']], 'subnet_ipam': [{'subnet_cidr': '204.155.1.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3dd4:925c:9679:bca8:2bf7:2187::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-10-22T15:00:23.294033', 'updated_at': '2025-10-22T15:00:23.792658'}} 2025-10-22 15:00:24,654 - DEBUG - Requesting: https://10.0.0.241:8082/domains 2025-10-22 15:00:25,007 - DEBUG - Requesting: https://10.0.0.241:8082/domains 2025-10-22 15:00:25,087 - DEBUG - Requesting: https://10.0.0.241:8082/domain/8c582771-8b31-4700-9720-69718950e5ce 2025-10-22 15:00:25,144 - DEBUG - Requesting: https://10.0.0.241:8082/project/4a555530-da52-4ff7-9e16-831ef3226a4d 2025-10-22 15:00:25,223 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/001ecb3a-37ef-4e3f-aa3d-37a255796221 2025-10-22 15:00:25,288 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/001ecb3a-37ef-4e3f-aa3d-37a255796221 2025-10-22 15:00:25,344 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/c48bde36-ff07-406f-bdbe-bf743f17761d 2025-10-22 15:00:25,399 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/c48bde36-ff07-406f-bdbe-bf743f17761d 2025-10-22 15:00:25,455 - DEBUG - Requesting: https://10.0.0.241:8082/route-target/8a2f059b-6f4f-4afe-8b44-063c31851f0c 2025-10-22 15:00:25,507 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-22 15:00:25,507 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/001ecb3a-37ef-4e3f-aa3d-37a255796221 2025-10-22 15:00:25,565 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/c48bde36-ff07-406f-bdbe-bf743f17761d 2025-10-22 15:00:25,629 - INFO - Verified VN network id 11 for VN 001ecb3a-37ef-4e3f-aa3d-37a255796221 2025-10-22 15:00:25,629 - INFO - Verifications in API Server for VN ctest-vn4-54091485 passed 2025-10-22 15:00:25,629 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/001ecb3a-37ef-4e3f-aa3d-37a255796221 2025-10-22 15:00:25,689 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/c48bde36-ff07-406f-bdbe-bf743f17761d 2025-10-22 15:00:25,743 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/c48bde36-ff07-406f-bdbe-bf743f17761d 2025-10-22 15:00:25,795 - DEBUG - Requesting: https://10.0.0.241:8082/route-target/8a2f059b-6f4f-4afe-8b44-063c31851f0c 2025-10-22 15:00:25,899 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-26312151:ctest-vn4-54091485', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-26312151', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8667700208291391', 'uuid-lslong': '12267022130385347105'}, 'enable': 'true', 'created': '2025-10-22T15:00:23', 'last-modified': '2025-10-22T15:00:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.453806'} 2025-10-22 15:00:25,953 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-22 15:00:25,954 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-54091485 passed 2025-10-22 15:00:25,954 - DEBUG - ====Verifying policy data for ctest-vn4-54091485 in API_Server ====== 2025-10-22 15:00:25,954 - DEBUG - Requesting: https://10.0.0.241:8082/domains 2025-10-22 15:00:26,007 - DEBUG - Requesting: https://10.0.0.241:8082/domain/8c582771-8b31-4700-9720-69718950e5ce 2025-10-22 15:00:26,068 - DEBUG - Requesting: https://10.0.0.241:8082/project/4a555530-da52-4ff7-9e16-831ef3226a4d 2025-10-22 15:00:26,148 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/001ecb3a-37ef-4e3f-aa3d-37a255796221 2025-10-22 15:00:26,205 - DEBUG - ==>Verifying data for policy with id: bb815416-e154-4310-8bf1-d5e59d8ec4d3, fqn: ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-26312151', 'ctest-policy1-54784380'] 2025-10-22 15:00:26,205 - INFO - VN ctest-vn4-54091485 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-22 15:00:26,205 - DEBUG - Verifying the vn in opserver 2025-10-22 15:00:26,205 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-26312151:ctest-vn4-54091485 virtual network link through opserver 10.0.0.241 2025-10-22 15:00:26,205 - DEBUG - Requesting: https://10.0.0.241:8081/analytics/uves/virtual-networks 2025-10-22 15:00:26,552 - DEBUG - Requesting: https://10.0.0.241:8081/analytics/uves/virtual-networks 2025-10-22 15:00:26,667 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-26312151:ctest-vn4-54091485', 'href': 'https://10.0.0.241:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-26312151:ctest-vn4-54091485?flat'} 2025-10-22 15:00:26,667 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-26312151:ctest-vn4-54091485 is found in opserver 2025-10-22 15:00:26,763 - DEBUG - Do not have enough data to verify VN in agent 2025-10-22 15:00:26,811 - DEBUG - VRF ids for VN ctest-vn4-54091485: {} 2025-10-22 15:00:26,812 - DEBUG - ====Verifying data for ctest-policy1-54784380 in API_Server ====== 2025-10-22 15:00:26,812 - DEBUG - Requesting: https://10.0.0.241:8082/domains 2025-10-22 15:00:26,863 - DEBUG - Requesting: https://10.0.0.241:8082/domain/8c582771-8b31-4700-9720-69718950e5ce 2025-10-22 15:00:26,920 - DEBUG - Requesting: https://10.0.0.241:8082/project/4a555530-da52-4ff7-9e16-831ef3226a4d 2025-10-22 15:00:27,004 - DEBUG - Requesting: https://10.0.0.241:8082/network-policy/bb815416-e154-4310-8bf1-d5e59d8ec4d3 2025-10-22 15:00:27,061 - INFO - Verified policy ctest-policy1-54784380 in API Server, Result: True 2025-10-22 15:00:27,061 - INFO - Done with setup and verification, moving onto test .. 2025-10-22 15:00:27,072 - INFO - Deleting VN ctest-vn4-54091485 2025-10-22 15:00:27,287 - DEBUG - Response for deleting network () 2025-10-22 15:00:27,287 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/c48bde36-ff07-406f-bdbe-bf743f17761d 2025-10-22 15:00:27,342 - DEBUG - Response Code: 404 2025-10-22 15:00:27,343 - DEBUG - Requesting: https://10.0.0.241:8082/domains 2025-10-22 15:00:27,395 - DEBUG - Requesting: https://10.0.0.241:8082/domain/8c582771-8b31-4700-9720-69718950e5ce 2025-10-22 15:00:27,452 - DEBUG - Requesting: https://10.0.0.241:8082/project/4a555530-da52-4ff7-9e16-831ef3226a4d 2025-10-22 15:00:27,531 - INFO - Validated that VN ctest-vn4-54091485 is not found in API Server 2025-10-22 15:00:27,631 - DEBUG - VN ctest-vn4-54091485 is not present in Agent 10.0.0.241 2025-10-22 15:00:27,631 - INFO - Validated that VN ctest-vn4-54091485 is not in any agent 2025-10-22 15:00:27,784 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-54091485 info 2025-10-22 15:00:27,814 - INFO - Deleted policy ctest-policy1-54784380 2025-10-22 15:00:27,982 - DEBUG - policy ctest-policy1-54784380 is not found in API Server 2025-10-22 15:00:28,376 - DEBUG - No XMPP flaps were noticed during the test