2026-03-05 01:58:03,528 - INFO - Domain Default found not creating 2026-03-05 01:58:03,707 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-80427218 not found, creating it 2026-03-05 01:58:04,152 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-80427218, ID : 12c67613-3a6c-4c59-a757-e346cf620915 2026-03-05 01:58:05,595 - INFO - ================================================================================ 2026-03-05 01:58:05,595 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-05 01:58:05,850 - DEBUG - Nothing to compare xmpp stats {'10.0.0.131': {'10.20.0.193': '0'}} with 2026-03-05 01:58:05,850 - INFO - Initial checks done. Running the testcase now 2026-03-05 01:58:05,851 - INFO - 2026-03-05 01:58:05,851 - INFO - ================================================================================ 2026-03-05 01:58:05,851 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-05 01:58:05,851 - 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. 2026-03-05 01:58:06,141 - DEBUG - Nothing to compare xmpp stats {'10.0.0.131': {'10.20.0.193': '0'}} with 2026-03-05 01:58:06,141 - INFO - Initial checks done. Running the testcase now 2026-03-05 01:58:06,141 - INFO - 2026-03-05 01:58:06,501 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80427218:ctest-vn4-94918912, 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-80427218:ctest-vn4-94918912, 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-80427218:ctest-vn4-94918912, 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-80427218:ctest-vn4-94918912, 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-03-05 01:58:07,002 - DEBUG - Response for create_network : {'network': {'id': 'b42efdac-a815-4abf-88d0-d939a4e67d62', 'name': 'ctest-vn4-94918912', 'tenant_id': '12c676133a6c4c59a757e346cf620915', 'project_id': '12c676133a6c4c59a757e346cf620915', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80427218', 'ctest-vn4-94918912'], 'port_security_enabled': True, 'description': ''}} 2026-03-05 01:58:07,247 - DEBUG - Response for create_subnet : {'subnet': {'id': '7280e8c7-7315-42ed-bdb8-d6ae31b0901a', 'name': '', 'tenant_id': '12c676133a6c4c59a757e346cf620915', 'network_id': 'b42efdac-a815-4abf-88d0-d939a4e67d62', 'ip_version': 4, 'cidr': '190.164.49.192/26', 'allocation_pools': [{'start': '190.164.49.194', 'end': '190.164.49.254'}], 'gateway_ip': '190.164.49.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '190.164.49.194', 'tags': [], 'project_id': '12c676133a6c4c59a757e346cf620915'}} 2026-03-05 01:58:07,404 - DEBUG - Response for create_subnet : {'subnet': {'id': '85e363cd-c26c-4bda-b685-75938cd0eeae', 'name': '', 'tenant_id': '12c676133a6c4c59a757e346cf620915', 'network_id': 'b42efdac-a815-4abf-88d0-d939a4e67d62', 'ip_version': 6, 'cidr': '2a3f:65ac:ab29:733:eb6f:cbf1::/96', 'allocation_pools': [{'start': '2a3f:65ac:ab29:733:eb6f:cbf1:0:2', 'end': '2a3f:65ac:ab29:733:eb6f:cbf1:ffff:fffe'}], 'gateway_ip': '2a3f:65ac:ab29:733:eb6f:cbf1:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2a3f:65ac:ab29:733:eb6f:cbf1:0:2', 'tags': [], 'project_id': '12c676133a6c4c59a757e346cf620915'}} 2026-03-05 01:58:07,425 - INFO - Created VN ctest-vn4-94918912 2026-03-05 01:58:07,477 - DEBUG - VN ctest-vn4-94918912 UUID is b42efdac-a815-4abf-88d0-d939a4e67d62 2026-03-05 01:58:07,658 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b42efdac-a815-4abf-88d0-d939a4e67d62', 'name': 'ctest-vn4-94918912', 'tenant_id': '12c676133a6c4c59a757e346cf620915', 'project_id': '12c676133a6c4c59a757e346cf620915', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7280e8c7-7315-42ed-bdb8-d6ae31b0901a', '85e363cd-c26c-4bda-b685-75938cd0eeae'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80427218', 'ctest-vn4-94918912'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80427218', 'ctest-policy1-32950359']], 'subnet_ipam': [{'subnet_cidr': '190.164.49.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2a3f:65ac:ab29:733:eb6f:cbf1::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-05 01:58:07,821 - DEBUG - Requesting: http://10.0.0.131:8082/domains 2026-03-05 01:58:08,116 - DEBUG - Requesting: http://10.0.0.131:8082/domains 2026-03-05 01:58:08,150 - DEBUG - Requesting: http://10.0.0.131:8082/domain/ae3906f1-fab8-4987-bab9-45ca75cb796e 2026-03-05 01:58:08,160 - DEBUG - Requesting: http://10.0.0.131:8082/project/12c67613-3a6c-4c59-a757-e346cf620915 2026-03-05 01:58:08,226 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/b42efdac-a815-4abf-88d0-d939a4e67d62 2026-03-05 01:58:08,236 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/b42efdac-a815-4abf-88d0-d939a4e67d62 2026-03-05 01:58:08,244 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/2d308fd6-62d2-4bdf-8f06-7ffd3bfc49a3 2026-03-05 01:58:08,250 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/2d308fd6-62d2-4bdf-8f06-7ffd3bfc49a3 2026-03-05 01:58:08,255 - DEBUG - Requesting: http://10.0.0.131:8082/route-target/4a7aa8e7-b9eb-49ba-8acb-6152197053b9 2026-03-05 01:58:08,260 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-05 01:58:08,260 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/b42efdac-a815-4abf-88d0-d939a4e67d62 2026-03-05 01:58:08,268 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/2d308fd6-62d2-4bdf-8f06-7ffd3bfc49a3 2026-03-05 01:58:08,278 - INFO - Verified VN network id 11 for VN b42efdac-a815-4abf-88d0-d939a4e67d62 2026-03-05 01:58:08,278 - INFO - Verifications in API Server for VN ctest-vn4-94918912 passed 2026-03-05 01:58:08,278 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/b42efdac-a815-4abf-88d0-d939a4e67d62 2026-03-05 01:58:08,286 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/2d308fd6-62d2-4bdf-8f06-7ffd3bfc49a3 2026-03-05 01:58:08,291 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/2d308fd6-62d2-4bdf-8f06-7ffd3bfc49a3 2026-03-05 01:58:08,295 - DEBUG - Requesting: http://10.0.0.131:8082/route-target/4a7aa8e7-b9eb-49ba-8acb-6152197053b9 2026-03-05 01:58:08,304 - DEBUG - Control-node 10.0.0.131 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80427218:ctest-vn4-94918912', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-80427218', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12983593693751888575', 'uuid-lslong': '9858618425916947810'}, 'enable': 'true', 'created': '2026-03-05T01:58:06', 'last-modified': '2026-03-05T01:58:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.666048'} 2026-03-05 01:58:08,309 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-05 01:58:08,309 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-94918912 passed 2026-03-05 01:58:08,310 - DEBUG - ====Verifying policy data for ctest-vn4-94918912 in API_Server ====== 2026-03-05 01:58:08,310 - DEBUG - Requesting: http://10.0.0.131:8082/domains 2026-03-05 01:58:08,314 - DEBUG - Requesting: http://10.0.0.131:8082/domain/ae3906f1-fab8-4987-bab9-45ca75cb796e 2026-03-05 01:58:08,322 - DEBUG - Requesting: http://10.0.0.131:8082/project/12c67613-3a6c-4c59-a757-e346cf620915 2026-03-05 01:58:08,390 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/b42efdac-a815-4abf-88d0-d939a4e67d62 2026-03-05 01:58:08,398 - DEBUG - ==>Verifying data for policy with id: c71d4bdc-c56a-4ebb-ab2a-81cddf0d856c, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80427218', 'ctest-policy1-32950359'] 2026-03-05 01:58:08,398 - INFO - VN ctest-vn4-94918912 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-05 01:58:08,398 - DEBUG - Verifying the vn in opserver 2026-03-05 01:58:08,398 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80427218:ctest-vn4-94918912 virtual network link through opserver 10.0.0.131 2026-03-05 01:58:08,398 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks 2026-03-05 01:58:08,692 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks 2026-03-05 01:58:08,755 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80427218:ctest-vn4-94918912', 'href': 'http://10.0.0.131:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80427218:ctest-vn4-94918912?flat'} 2026-03-05 01:58:08,755 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80427218:ctest-vn4-94918912 is found in opserver 2026-03-05 01:58:08,763 - DEBUG - Do not have enough data to verify VN in agent 2026-03-05 01:58:08,767 - DEBUG - VRF ids for VN ctest-vn4-94918912: {} 2026-03-05 01:58:08,767 - DEBUG - ====Verifying data for ctest-policy1-32950359 in API_Server ====== 2026-03-05 01:58:08,767 - DEBUG - Requesting: http://10.0.0.131:8082/domains 2026-03-05 01:58:08,772 - DEBUG - Requesting: http://10.0.0.131:8082/domain/ae3906f1-fab8-4987-bab9-45ca75cb796e 2026-03-05 01:58:08,781 - DEBUG - Requesting: http://10.0.0.131:8082/project/12c67613-3a6c-4c59-a757-e346cf620915 2026-03-05 01:58:08,852 - DEBUG - Requesting: http://10.0.0.131:8082/network-policy/c71d4bdc-c56a-4ebb-ab2a-81cddf0d856c 2026-03-05 01:58:08,861 - INFO - Verified policy ctest-policy1-32950359 in API Server, Result: True 2026-03-05 01:58:08,861 - INFO - Done with setup and verification, moving onto test .. 2026-03-05 01:58:08,867 - INFO - Deleting VN ctest-vn4-94918912 2026-03-05 01:58:08,967 - DEBUG - Response for deleting network () 2026-03-05 01:58:08,967 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/2d308fd6-62d2-4bdf-8f06-7ffd3bfc49a3 2026-03-05 01:58:08,971 - DEBUG - Response Code: 404 2026-03-05 01:58:08,971 - DEBUG - Requesting: http://10.0.0.131:8082/domains 2026-03-05 01:58:08,975 - DEBUG - Requesting: http://10.0.0.131:8082/domain/ae3906f1-fab8-4987-bab9-45ca75cb796e 2026-03-05 01:58:09,025 - DEBUG - Requesting: http://10.0.0.131:8082/project/12c67613-3a6c-4c59-a757-e346cf620915 2026-03-05 01:58:09,093 - INFO - Validated that VN ctest-vn4-94918912 is not found in API Server 2026-03-05 01:58:09,101 - DEBUG - VN ctest-vn4-94918912 is not present in Agent 10.0.0.131 2026-03-05 01:58:09,101 - INFO - Validated that VN ctest-vn4-94918912 is not in any agent 2026-03-05 01:58:09,115 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-94918912 info 2026-03-05 01:58:09,141 - INFO - Deleted policy ctest-policy1-32950359 2026-03-05 01:58:09,309 - DEBUG - policy ctest-policy1-32950359 is not found in API Server 2026-03-05 01:58:09,561 - DEBUG - No XMPP flaps were noticed during the test
2026-03-05 01:58:09,561 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-03-05 01:58:09,561 - INFO - -------------------------------------------------------------------------------- 2026-03-05 01:58:09,853 - DEBUG - No XMPP flaps were noticed during the test
2026-03-05 01:58:09,853 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-03-05 01:58:09,854 - INFO - -------------------------------------------------------------------------------- 2026-03-05 01:58:10,499 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-80427218, ID : 12c67613-3a6c-4c59-a757-e346cf620915