2026-02-09 02:05:59,021 - INFO - Domain Default found not creating 2026-02-09 02:05:59,213 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-98339769 not found, creating it 2026-02-09 02:05:59,683 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-98339769, ID : 4173575e-c66e-4b07-914d-8186b71cc124 2026-02-09 02:06:01,245 - INFO - ================================================================================ 2026-02-09 02:06:01,245 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-09 02:06:01,501 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.193': '0'}} with 2026-02-09 02:06:01,501 - INFO - Initial checks done. Running the testcase now 2026-02-09 02:06:01,501 - INFO - 2026-02-09 02:06:01,501 - INFO - ================================================================================ 2026-02-09 02:06:01,501 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-09 02:06:01,501 - 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-02-09 02:06:01,786 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.193': '0'}} with 2026-02-09 02:06:01,786 - INFO - Initial checks done. Running the testcase now 2026-02-09 02:06:01,787 - INFO - 2026-02-09 02:06:02,140 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98339769:ctest-vn4-56305012, 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-98339769:ctest-vn4-56305012, 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-98339769:ctest-vn4-56305012, 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-98339769:ctest-vn4-56305012, 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-02-09 02:06:02,644 - DEBUG - Response for create_network : {'network': {'id': '42593706-e910-4ee5-9f74-f8b679af8bf4', 'name': 'ctest-vn4-56305012', 'tenant_id': '4173575ec66e4b07914d8186b71cc124', 'project_id': '4173575ec66e4b07914d8186b71cc124', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98339769', 'ctest-vn4-56305012'], 'port_security_enabled': True, 'description': ''}} 2026-02-09 02:06:02,841 - DEBUG - Response for create_subnet : {'subnet': {'id': '84b4784a-f549-4a19-970d-3e47a6b31430', 'name': '', 'tenant_id': '4173575ec66e4b07914d8186b71cc124', 'network_id': '42593706-e910-4ee5-9f74-f8b679af8bf4', 'ip_version': 4, 'cidr': '9.235.80.192/26', 'allocation_pools': [{'start': '9.235.80.194', 'end': '9.235.80.254'}], 'gateway_ip': '9.235.80.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '9.235.80.194', 'tags': [], 'project_id': '4173575ec66e4b07914d8186b71cc124'}} 2026-02-09 02:06:02,985 - DEBUG - Response for create_subnet : {'subnet': {'id': '0cf3b41c-d7f2-40f0-a7c8-d44c24371b6d', 'name': '', 'tenant_id': '4173575ec66e4b07914d8186b71cc124', 'network_id': '42593706-e910-4ee5-9f74-f8b679af8bf4', 'ip_version': 6, 'cidr': '3ceb:955f:920b:2aa2:6cb1:63e6::/96', 'allocation_pools': [{'start': '3ceb:955f:920b:2aa2:6cb1:63e6:0:2', 'end': '3ceb:955f:920b:2aa2:6cb1:63e6:ffff:fffe'}], 'gateway_ip': '3ceb:955f:920b:2aa2:6cb1:63e6:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3ceb:955f:920b:2aa2:6cb1:63e6:0:2', 'tags': [], 'project_id': '4173575ec66e4b07914d8186b71cc124'}} 2026-02-09 02:06:03,006 - INFO - Created VN ctest-vn4-56305012 2026-02-09 02:06:03,055 - DEBUG - VN ctest-vn4-56305012 UUID is 42593706-e910-4ee5-9f74-f8b679af8bf4 2026-02-09 02:06:03,243 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '42593706-e910-4ee5-9f74-f8b679af8bf4', 'name': 'ctest-vn4-56305012', 'tenant_id': '4173575ec66e4b07914d8186b71cc124', 'project_id': '4173575ec66e4b07914d8186b71cc124', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['84b4784a-f549-4a19-970d-3e47a6b31430', '0cf3b41c-d7f2-40f0-a7c8-d44c24371b6d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98339769', 'ctest-vn4-56305012'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98339769', 'ctest-policy1-81821127']], 'subnet_ipam': [{'subnet_cidr': '9.235.80.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3ceb:955f:920b:2aa2:6cb1:63e6::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-09 02:06:03,403 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-09 02:06:03,701 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-09 02:06:03,730 - DEBUG - Requesting: http://10.0.0.22:8082/domain/af71baa0-b59d-4e76-bfaf-b7fe7d879437 2026-02-09 02:06:03,741 - DEBUG - Requesting: http://10.0.0.22:8082/project/4173575e-c66e-4b07-914d-8186b71cc124 2026-02-09 02:06:03,808 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/42593706-e910-4ee5-9f74-f8b679af8bf4 2026-02-09 02:06:03,818 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/42593706-e910-4ee5-9f74-f8b679af8bf4 2026-02-09 02:06:03,827 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b36092f5-d229-4851-884c-46be197c8f0c 2026-02-09 02:06:03,833 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b36092f5-d229-4851-884c-46be197c8f0c 2026-02-09 02:06:03,839 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/cfb24ce9-4170-49eb-bd46-3109ecd7381a 2026-02-09 02:06:03,844 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-09 02:06:03,844 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/42593706-e910-4ee5-9f74-f8b679af8bf4 2026-02-09 02:06:03,852 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b36092f5-d229-4851-884c-46be197c8f0c 2026-02-09 02:06:03,864 - INFO - Verified VN network id 12 for VN 42593706-e910-4ee5-9f74-f8b679af8bf4 2026-02-09 02:06:03,864 - INFO - Verifications in API Server for VN ctest-vn4-56305012 passed 2026-02-09 02:06:03,864 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/42593706-e910-4ee5-9f74-f8b679af8bf4 2026-02-09 02:06:03,873 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b36092f5-d229-4851-884c-46be197c8f0c 2026-02-09 02:06:03,879 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b36092f5-d229-4851-884c-46be197c8f0c 2026-02-09 02:06:03,886 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/cfb24ce9-4170-49eb-bd46-3109ecd7381a 2026-02-09 02:06:03,896 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98339769:ctest-vn4-56305012', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-98339769', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4780912982249983717', 'uuid-lslong': '11490082011938262004'}, 'enable': 'true', 'created': '2026-02-09T02:06:02', 'last-modified': '2026-02-09T02:06:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.677521'} 2026-02-09 02:06:03,901 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-09 02:06:03,901 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-56305012 passed 2026-02-09 02:06:03,902 - DEBUG - ====Verifying policy data for ctest-vn4-56305012 in API_Server ====== 2026-02-09 02:06:03,902 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-09 02:06:03,907 - DEBUG - Requesting: http://10.0.0.22:8082/domain/af71baa0-b59d-4e76-bfaf-b7fe7d879437 2026-02-09 02:06:03,916 - DEBUG - Requesting: http://10.0.0.22:8082/project/4173575e-c66e-4b07-914d-8186b71cc124 2026-02-09 02:06:03,986 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/42593706-e910-4ee5-9f74-f8b679af8bf4 2026-02-09 02:06:03,995 - DEBUG - ==>Verifying data for policy with id: e080abd8-f03a-4986-b1c3-c6a1d676aaad, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98339769', 'ctest-policy1-81821127'] 2026-02-09 02:06:03,995 - INFO - VN ctest-vn4-56305012 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-09 02:06:03,995 - DEBUG - Verifying the vn in opserver 2026-02-09 02:06:03,995 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98339769:ctest-vn4-56305012 virtual network link through opserver 10.0.0.22 2026-02-09 02:06:03,995 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-02-09 02:06:04,300 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-02-09 02:06:04,365 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98339769:ctest-vn4-56305012', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98339769:ctest-vn4-56305012?flat'} 2026-02-09 02:06:04,365 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98339769:ctest-vn4-56305012 is found in opserver 2026-02-09 02:06:04,375 - DEBUG - Do not have enough data to verify VN in agent 2026-02-09 02:06:04,380 - DEBUG - VRF ids for VN ctest-vn4-56305012: {} 2026-02-09 02:06:04,381 - DEBUG - ====Verifying data for ctest-policy1-81821127 in API_Server ====== 2026-02-09 02:06:04,381 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-09 02:06:04,386 - DEBUG - Requesting: http://10.0.0.22:8082/domain/af71baa0-b59d-4e76-bfaf-b7fe7d879437 2026-02-09 02:06:04,400 - DEBUG - Requesting: http://10.0.0.22:8082/project/4173575e-c66e-4b07-914d-8186b71cc124 2026-02-09 02:06:04,470 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/e080abd8-f03a-4986-b1c3-c6a1d676aaad 2026-02-09 02:06:04,479 - INFO - Verified policy ctest-policy1-81821127 in API Server, Result: True 2026-02-09 02:06:04,479 - INFO - Done with setup and verification, moving onto test .. 2026-02-09 02:06:04,486 - INFO - Deleting VN ctest-vn4-56305012 2026-02-09 02:06:04,594 - DEBUG - Response for deleting network () 2026-02-09 02:06:04,594 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b36092f5-d229-4851-884c-46be197c8f0c 2026-02-09 02:06:04,598 - DEBUG - Response Code: 404 2026-02-09 02:06:04,598 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-09 02:06:04,604 - DEBUG - Requesting: http://10.0.0.22:8082/domain/af71baa0-b59d-4e76-bfaf-b7fe7d879437 2026-02-09 02:06:04,655 - DEBUG - Requesting: http://10.0.0.22:8082/project/4173575e-c66e-4b07-914d-8186b71cc124 2026-02-09 02:06:04,728 - INFO - Validated that VN ctest-vn4-56305012 is not found in API Server 2026-02-09 02:06:04,736 - DEBUG - VN ctest-vn4-56305012 is not present in Agent 10.0.0.22 2026-02-09 02:06:04,736 - INFO - Validated that VN ctest-vn4-56305012 is not in any agent 2026-02-09 02:06:04,749 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-56305012 info 2026-02-09 02:06:04,770 - INFO - Deleted policy ctest-policy1-81821127 2026-02-09 02:06:04,934 - DEBUG - policy ctest-policy1-81821127 is not found in API Server 2026-02-09 02:06:05,202 - DEBUG - No XMPP flaps were noticed during the test