2026-05-09 05:25:58,328 - INFO - Domain Default found not creating 2026-05-09 05:25:58,487 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-85144756 not found, creating it 2026-05-09 05:25:58,927 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-85144756, ID : 9071c3f2-814a-4da9-af3b-a669226c780d 2026-05-09 05:26:00,393 - INFO - ================================================================================ 2026-05-09 05:26:00,394 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-09 05:26:00,652 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-05-09 05:26:00,652 - INFO - Initial checks done. Running the testcase now 2026-05-09 05:26:00,652 - INFO - 2026-05-09 05:26:00,652 - INFO - ================================================================================ 2026-05-09 05:26:00,653 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-09 05:26:00,653 - 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-05-09 05:26:00,940 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-05-09 05:26:00,940 - INFO - Initial checks done. Running the testcase now 2026-05-09 05:26:00,940 - INFO - 2026-05-09 05:26:01,331 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85144756:ctest-vn4-30049544, 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-85144756:ctest-vn4-30049544, 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-85144756:ctest-vn4-30049544, 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-85144756:ctest-vn4-30049544, 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-05-09 05:26:01,844 - DEBUG - Response for create_network : {'network': {'id': '7998d57c-0daa-4bc6-8579-762b139da866', 'name': 'ctest-vn4-30049544', 'tenant_id': '9071c3f2814a4da9af3ba669226c780d', 'project_id': '9071c3f2814a4da9af3ba669226c780d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85144756', 'ctest-vn4-30049544'], 'port_security_enabled': True, 'description': ''}} 2026-05-09 05:26:01,999 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd1a69325-34ad-4c72-b419-e9cc8bbee0ed', 'name': '', 'tenant_id': '9071c3f2814a4da9af3ba669226c780d', 'network_id': '7998d57c-0daa-4bc6-8579-762b139da866', 'ip_version': 4, 'cidr': '109.190.180.128/26', 'allocation_pools': [{'start': '109.190.180.130', 'end': '109.190.180.190'}], 'gateway_ip': '109.190.180.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '109.190.180.130', 'tags': [], 'project_id': '9071c3f2814a4da9af3ba669226c780d'}} 2026-05-09 05:26:02,149 - DEBUG - Response for create_subnet : {'subnet': {'id': '4a8aa1fd-708b-42a8-8808-50bfd5bd9d3a', 'name': '', 'tenant_id': '9071c3f2814a4da9af3ba669226c780d', 'network_id': '7998d57c-0daa-4bc6-8579-762b139da866', 'ip_version': 6, 'cidr': '288a:9ebb:ca29:240e:3776:1aec::/96', 'allocation_pools': [{'start': '288a:9ebb:ca29:240e:3776:1aec:0:2', 'end': '288a:9ebb:ca29:240e:3776:1aec:ffff:fffe'}], 'gateway_ip': '288a:9ebb:ca29:240e:3776:1aec:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '288a:9ebb:ca29:240e:3776:1aec:0:2', 'tags': [], 'project_id': '9071c3f2814a4da9af3ba669226c780d'}} 2026-05-09 05:26:02,168 - INFO - Created VN ctest-vn4-30049544 2026-05-09 05:26:02,219 - DEBUG - VN ctest-vn4-30049544 UUID is 7998d57c-0daa-4bc6-8579-762b139da866 2026-05-09 05:26:02,428 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7998d57c-0daa-4bc6-8579-762b139da866', 'name': 'ctest-vn4-30049544', 'tenant_id': '9071c3f2814a4da9af3ba669226c780d', 'project_id': '9071c3f2814a4da9af3ba669226c780d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d1a69325-34ad-4c72-b419-e9cc8bbee0ed', '4a8aa1fd-708b-42a8-8808-50bfd5bd9d3a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85144756', 'ctest-vn4-30049544'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85144756', 'ctest-policy1-93746925']], 'subnet_ipam': [{'subnet_cidr': '109.190.180.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '288a:9ebb:ca29:240e:3776:1aec::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-09 05:26:02,599 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-09 05:26:02,899 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-09 05:26:02,942 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0f4cc49b-caa0-4380-9fe0-f297e809b403 2026-05-09 05:26:02,954 - DEBUG - Requesting: http://10.0.0.50:8082/project/9071c3f2-814a-4da9-af3b-a669226c780d 2026-05-09 05:26:03,072 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7998d57c-0daa-4bc6-8579-762b139da866 2026-05-09 05:26:03,100 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7998d57c-0daa-4bc6-8579-762b139da866 2026-05-09 05:26:03,110 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a40250ef-4c19-4d5f-be7a-6914455b0a45 2026-05-09 05:26:03,119 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a40250ef-4c19-4d5f-be7a-6914455b0a45 2026-05-09 05:26:03,128 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/9273a4dd-3dc9-4019-9de7-93473989f514 2026-05-09 05:26:03,136 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-09 05:26:03,137 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7998d57c-0daa-4bc6-8579-762b139da866 2026-05-09 05:26:03,146 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a40250ef-4c19-4d5f-be7a-6914455b0a45 2026-05-09 05:26:03,159 - INFO - Verified VN network id 10 for VN 7998d57c-0daa-4bc6-8579-762b139da866 2026-05-09 05:26:03,159 - INFO - Verifications in API Server for VN ctest-vn4-30049544 passed 2026-05-09 05:26:03,164 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7998d57c-0daa-4bc6-8579-762b139da866 2026-05-09 05:26:03,184 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a40250ef-4c19-4d5f-be7a-6914455b0a45 2026-05-09 05:26:03,191 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a40250ef-4c19-4d5f-be7a-6914455b0a45 2026-05-09 05:26:03,202 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/9273a4dd-3dc9-4019-9de7-93473989f514 2026-05-09 05:26:03,216 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85144756:ctest-vn4-30049544', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-85144756', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8761987803831225286', 'uuid-lslong': '9617848406611175526'}, 'enable': 'true', 'created': '2026-05-09T05:26:01', 'last-modified': '2026-05-09T05:26:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.817234'} 2026-05-09 05:26:03,222 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-09 05:26:03,222 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-30049544 passed 2026-05-09 05:26:03,222 - DEBUG - ====Verifying policy data for ctest-vn4-30049544 in API_Server ====== 2026-05-09 05:26:03,222 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-09 05:26:03,237 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0f4cc49b-caa0-4380-9fe0-f297e809b403 2026-05-09 05:26:03,256 - DEBUG - Requesting: http://10.0.0.50:8082/project/9071c3f2-814a-4da9-af3b-a669226c780d 2026-05-09 05:26:03,344 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7998d57c-0daa-4bc6-8579-762b139da866 2026-05-09 05:26:03,355 - DEBUG - ==>Verifying data for policy with id: 8f51dd74-28c6-49b1-b14a-24b109bf0b3f, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85144756', 'ctest-policy1-93746925'] 2026-05-09 05:26:03,355 - INFO - VN ctest-vn4-30049544 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-09 05:26:03,356 - DEBUG - Verifying the vn in opserver 2026-05-09 05:26:03,356 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85144756:ctest-vn4-30049544 virtual network link through opserver 10.0.0.50 2026-05-09 05:26:03,356 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-05-09 05:26:03,674 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-05-09 05:26:03,731 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85144756:ctest-vn4-30049544', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85144756:ctest-vn4-30049544?flat'} 2026-05-09 05:26:03,731 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85144756:ctest-vn4-30049544 is found in opserver 2026-05-09 05:26:03,740 - DEBUG - Do not have enough data to verify VN in agent 2026-05-09 05:26:03,745 - DEBUG - VRF ids for VN ctest-vn4-30049544: {} 2026-05-09 05:26:03,745 - DEBUG - ====Verifying data for ctest-policy1-93746925 in API_Server ====== 2026-05-09 05:26:03,745 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-09 05:26:03,751 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0f4cc49b-caa0-4380-9fe0-f297e809b403 2026-05-09 05:26:03,760 - DEBUG - Requesting: http://10.0.0.50:8082/project/9071c3f2-814a-4da9-af3b-a669226c780d 2026-05-09 05:26:03,829 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/8f51dd74-28c6-49b1-b14a-24b109bf0b3f 2026-05-09 05:26:03,837 - INFO - Verified policy ctest-policy1-93746925 in API Server, Result: True 2026-05-09 05:26:03,837 - INFO - Done with setup and verification, moving onto test .. 2026-05-09 05:26:03,844 - INFO - Deleting VN ctest-vn4-30049544 2026-05-09 05:26:03,956 - DEBUG - Response for deleting network () 2026-05-09 05:26:03,956 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a40250ef-4c19-4d5f-be7a-6914455b0a45 2026-05-09 05:26:03,961 - DEBUG - Response Code: 404 2026-05-09 05:26:03,961 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-09 05:26:03,966 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0f4cc49b-caa0-4380-9fe0-f297e809b403 2026-05-09 05:26:04,020 - DEBUG - Requesting: http://10.0.0.50:8082/project/9071c3f2-814a-4da9-af3b-a669226c780d 2026-05-09 05:26:04,096 - INFO - Validated that VN ctest-vn4-30049544 is not found in API Server 2026-05-09 05:26:04,107 - DEBUG - VN ctest-vn4-30049544 is not present in Agent 10.0.0.50 2026-05-09 05:26:04,107 - INFO - Validated that VN ctest-vn4-30049544 is not in any agent 2026-05-09 05:26:04,121 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-30049544 info 2026-05-09 05:26:04,145 - INFO - Deleted policy ctest-policy1-93746925 2026-05-09 05:26:04,311 - DEBUG - policy ctest-policy1-93746925 is not found in API Server 2026-05-09 05:26:04,564 - DEBUG - No XMPP flaps were noticed during the test