2026-04-23 02:05:26,902 - INFO - Domain Default found not creating 2026-04-23 02:05:27,090 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-47653494 not found, creating it 2026-04-23 02:05:27,557 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-47653494, ID : ea2833f6-54ed-4166-a4c2-353800ec35de 2026-04-23 02:05:29,125 - INFO - ================================================================================ 2026-04-23 02:05:29,126 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-23 02:05:29,385 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.14': '0'}} with 2026-04-23 02:05:29,385 - INFO - Initial checks done. Running the testcase now 2026-04-23 02:05:29,385 - INFO - 2026-04-23 02:05:29,385 - INFO - ================================================================================ 2026-04-23 02:05:29,385 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-23 02:05:29,385 - 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-04-23 02:05:29,692 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.14': '0'}} with 2026-04-23 02:05:29,692 - INFO - Initial checks done. Running the testcase now 2026-04-23 02:05:29,692 - INFO - 2026-04-23 02:05:30,059 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47653494:ctest-vn4-48908615, 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-47653494:ctest-vn4-48908615, 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-47653494:ctest-vn4-48908615, 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-47653494:ctest-vn4-48908615, 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-04-23 02:05:30,609 - DEBUG - Response for create_network : {'network': {'id': '1bb5b0f7-3eb0-431d-97ca-3e3b3308f33e', 'name': 'ctest-vn4-48908615', 'tenant_id': 'ea2833f654ed4166a4c2353800ec35de', 'project_id': 'ea2833f654ed4166a4c2353800ec35de', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-47653494', 'ctest-vn4-48908615'], 'port_security_enabled': True, 'description': ''}} 2026-04-23 02:05:30,798 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bf83552d-e21a-45e5-ac5b-eb7c171c6ad9', 'name': '', 'tenant_id': 'ea2833f654ed4166a4c2353800ec35de', 'network_id': '1bb5b0f7-3eb0-431d-97ca-3e3b3308f33e', 'ip_version': 4, 'cidr': '108.87.136.128/26', 'allocation_pools': [{'start': '108.87.136.130', 'end': '108.87.136.190'}], 'gateway_ip': '108.87.136.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '108.87.136.130', 'tags': [], 'project_id': 'ea2833f654ed4166a4c2353800ec35de'}} 2026-04-23 02:05:30,995 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b2b22737-fcab-43ae-b675-d00c374578ca', 'name': '', 'tenant_id': 'ea2833f654ed4166a4c2353800ec35de', 'network_id': '1bb5b0f7-3eb0-431d-97ca-3e3b3308f33e', 'ip_version': 6, 'cidr': '3df6:b033:6a3a:1eaf:7a85:777a::/96', 'allocation_pools': [{'start': '3df6:b033:6a3a:1eaf:7a85:777a:0:2', 'end': '3df6:b033:6a3a:1eaf:7a85:777a:ffff:fffe'}], 'gateway_ip': '3df6:b033:6a3a:1eaf:7a85:777a:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3df6:b033:6a3a:1eaf:7a85:777a:0:2', 'tags': [], 'project_id': 'ea2833f654ed4166a4c2353800ec35de'}} 2026-04-23 02:05:31,019 - INFO - Created VN ctest-vn4-48908615 2026-04-23 02:05:31,075 - DEBUG - VN ctest-vn4-48908615 UUID is 1bb5b0f7-3eb0-431d-97ca-3e3b3308f33e 2026-04-23 02:05:31,301 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1bb5b0f7-3eb0-431d-97ca-3e3b3308f33e', 'name': 'ctest-vn4-48908615', 'tenant_id': 'ea2833f654ed4166a4c2353800ec35de', 'project_id': 'ea2833f654ed4166a4c2353800ec35de', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bf83552d-e21a-45e5-ac5b-eb7c171c6ad9', 'b2b22737-fcab-43ae-b675-d00c374578ca'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-47653494', 'ctest-vn4-48908615'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-47653494', 'ctest-policy1-58680860']], 'subnet_ipam': [{'subnet_cidr': '108.87.136.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3df6:b033:6a3a:1eaf:7a85:777a::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-23 02:05:31,467 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2026-04-23 02:05:31,772 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2026-04-23 02:05:31,809 - DEBUG - Requesting: http://10.0.0.65:8082/domain/80bd9db2-2b8e-4dfe-951a-366b305c1b55 2026-04-23 02:05:31,823 - DEBUG - Requesting: http://10.0.0.65:8082/project/ea2833f6-54ed-4166-a4c2-353800ec35de 2026-04-23 02:05:31,899 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/1bb5b0f7-3eb0-431d-97ca-3e3b3308f33e 2026-04-23 02:05:31,914 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/1bb5b0f7-3eb0-431d-97ca-3e3b3308f33e 2026-04-23 02:05:31,924 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/c87d8523-5c6f-4b10-9605-75f577788b01 2026-04-23 02:05:31,931 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/c87d8523-5c6f-4b10-9605-75f577788b01 2026-04-23 02:05:31,938 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/80c880c4-9c93-49d5-80bc-775555656041 2026-04-23 02:05:31,944 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-23 02:05:31,944 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/1bb5b0f7-3eb0-431d-97ca-3e3b3308f33e 2026-04-23 02:05:31,953 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/c87d8523-5c6f-4b10-9605-75f577788b01 2026-04-23 02:05:31,968 - INFO - Verified VN network id 11 for VN 1bb5b0f7-3eb0-431d-97ca-3e3b3308f33e 2026-04-23 02:05:31,968 - INFO - Verifications in API Server for VN ctest-vn4-48908615 passed 2026-04-23 02:05:31,969 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/1bb5b0f7-3eb0-431d-97ca-3e3b3308f33e 2026-04-23 02:05:31,980 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/c87d8523-5c6f-4b10-9605-75f577788b01 2026-04-23 02:05:31,989 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/c87d8523-5c6f-4b10-9605-75f577788b01 2026-04-23 02:05:31,997 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/80c880c4-9c93-49d5-80bc-775555656041 2026-04-23 02:05:32,011 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47653494:ctest-vn4-48908615', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-47653494', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1996696585763832605', 'uuid-lslong': '10937623069002887998'}, 'enable': 'true', 'created': '2026-04-23T02:05:30', 'last-modified': '2026-04-23T02:05:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.742912'} 2026-04-23 02:05:32,018 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-23 02:05:32,018 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-48908615 passed 2026-04-23 02:05:32,018 - DEBUG - ====Verifying policy data for ctest-vn4-48908615 in API_Server ====== 2026-04-23 02:05:32,019 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2026-04-23 02:05:32,026 - DEBUG - Requesting: http://10.0.0.65:8082/domain/80bd9db2-2b8e-4dfe-951a-366b305c1b55 2026-04-23 02:05:32,041 - DEBUG - Requesting: http://10.0.0.65:8082/project/ea2833f6-54ed-4166-a4c2-353800ec35de 2026-04-23 02:05:32,116 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/1bb5b0f7-3eb0-431d-97ca-3e3b3308f33e 2026-04-23 02:05:32,127 - DEBUG - ==>Verifying data for policy with id: d001b5fa-5251-40d3-b014-e84023e2b393, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-47653494', 'ctest-policy1-58680860'] 2026-04-23 02:05:32,127 - INFO - VN ctest-vn4-48908615 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-23 02:05:32,127 - DEBUG - Verifying the vn in opserver 2026-04-23 02:05:32,127 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47653494:ctest-vn4-48908615 virtual network link through opserver 10.0.0.65 2026-04-23 02:05:32,127 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2026-04-23 02:05:32,445 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2026-04-23 02:05:32,525 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47653494:ctest-vn4-48908615', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47653494:ctest-vn4-48908615?flat'} 2026-04-23 02:05:32,525 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47653494:ctest-vn4-48908615 is found in opserver 2026-04-23 02:05:32,534 - DEBUG - Do not have enough data to verify VN in agent 2026-04-23 02:05:32,539 - DEBUG - VRF ids for VN ctest-vn4-48908615: {} 2026-04-23 02:05:32,540 - DEBUG - ====Verifying data for ctest-policy1-58680860 in API_Server ====== 2026-04-23 02:05:32,540 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2026-04-23 02:05:32,546 - DEBUG - Requesting: http://10.0.0.65:8082/domain/80bd9db2-2b8e-4dfe-951a-366b305c1b55 2026-04-23 02:05:32,559 - DEBUG - Requesting: http://10.0.0.65:8082/project/ea2833f6-54ed-4166-a4c2-353800ec35de 2026-04-23 02:05:32,639 - DEBUG - Requesting: http://10.0.0.65:8082/network-policy/d001b5fa-5251-40d3-b014-e84023e2b393 2026-04-23 02:05:32,653 - INFO - Verified policy ctest-policy1-58680860 in API Server, Result: True 2026-04-23 02:05:32,653 - INFO - Done with setup and verification, moving onto test .. 2026-04-23 02:05:32,665 - INFO - Deleting VN ctest-vn4-48908615 2026-04-23 02:05:32,809 - DEBUG - Response for deleting network () 2026-04-23 02:05:32,809 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/c87d8523-5c6f-4b10-9605-75f577788b01 2026-04-23 02:05:32,814 - DEBUG - Response Code: 404 2026-04-23 02:05:32,814 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2026-04-23 02:05:32,820 - DEBUG - Requesting: http://10.0.0.65:8082/domain/80bd9db2-2b8e-4dfe-951a-366b305c1b55 2026-04-23 02:05:32,876 - DEBUG - Requesting: http://10.0.0.65:8082/project/ea2833f6-54ed-4166-a4c2-353800ec35de 2026-04-23 02:05:32,951 - INFO - Validated that VN ctest-vn4-48908615 is not found in API Server 2026-04-23 02:05:32,961 - DEBUG - VN ctest-vn4-48908615 is not present in Agent 10.0.0.65 2026-04-23 02:05:32,961 - INFO - Validated that VN ctest-vn4-48908615 is not in any agent 2026-04-23 02:05:32,977 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-48908615 info 2026-04-23 02:05:33,003 - INFO - Deleted policy ctest-policy1-58680860 2026-04-23 02:05:33,170 - DEBUG - policy ctest-policy1-58680860 is not found in API Server 2026-04-23 02:05:33,444 - DEBUG - No XMPP flaps were noticed during the test
2026-04-23 02:05:33,444 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-04-23 02:05:33,444 - INFO - -------------------------------------------------------------------------------- 2026-04-23 02:05:33,746 - DEBUG - No XMPP flaps were noticed during the test
2026-04-23 02:05:33,746 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-04-23 02:05:33,746 - INFO - -------------------------------------------------------------------------------- 2026-04-23 02:05:34,496 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-47653494, ID : ea2833f6-54ed-4166-a4c2-353800ec35de