2026-02-10 01:30:11,559 - INFO - Domain Default found not creating 2026-02-10 01:30:11,694 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-53242193 not found, creating it 2026-02-10 01:30:12,129 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-53242193, ID : e70e82d4-3b1c-456c-b92c-f61942239609 2026-02-10 01:30:13,518 - INFO - ================================================================================ 2026-02-10 01:30:13,518 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-10 01:30:13,772 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.254': '0'}} with 2026-02-10 01:30:13,772 - INFO - Initial checks done. Running the testcase now 2026-02-10 01:30:13,772 - INFO - 2026-02-10 01:30:13,772 - INFO - ================================================================================ 2026-02-10 01:30:13,772 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-10 01:30:13,772 - 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-10 01:30:14,062 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.254': '0'}} with 2026-02-10 01:30:14,062 - INFO - Initial checks done. Running the testcase now 2026-02-10 01:30:14,062 - INFO - 2026-02-10 01:30:14,410 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53242193:ctest-vn4-44993563, 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-53242193:ctest-vn4-44993563, 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-53242193:ctest-vn4-44993563, 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-53242193:ctest-vn4-44993563, 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-10 01:30:14,919 - DEBUG - Response for create_network : {'network': {'id': '86e06343-c684-43ab-97d3-18d7a25d1cd9', 'name': 'ctest-vn4-44993563', 'tenant_id': 'e70e82d43b1c456cb92cf61942239609', 'project_id': 'e70e82d43b1c456cb92cf61942239609', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-53242193', 'ctest-vn4-44993563'], 'port_security_enabled': True, 'description': ''}} 2026-02-10 01:30:15,120 - DEBUG - Response for create_subnet : {'subnet': {'id': '5ef5f9b4-7e15-4fc7-b448-954b012669d8', 'name': '', 'tenant_id': 'e70e82d43b1c456cb92cf61942239609', 'network_id': '86e06343-c684-43ab-97d3-18d7a25d1cd9', 'ip_version': 4, 'cidr': '219.220.180.192/26', 'allocation_pools': [{'start': '219.220.180.194', 'end': '219.220.180.254'}], 'gateway_ip': '219.220.180.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '219.220.180.194', 'tags': [], 'project_id': 'e70e82d43b1c456cb92cf61942239609'}} 2026-02-10 01:30:15,288 - DEBUG - Response for create_subnet : {'subnet': {'id': '8d8ad8e7-4704-40a3-8368-735d1bf59a45', 'name': '', 'tenant_id': 'e70e82d43b1c456cb92cf61942239609', 'network_id': '86e06343-c684-43ab-97d3-18d7a25d1cd9', 'ip_version': 6, 'cidr': '3e10:7d61:fb4:e095:c76f:6d34::/96', 'allocation_pools': [{'start': '3e10:7d61:fb4:e095:c76f:6d34:0:2', 'end': '3e10:7d61:fb4:e095:c76f:6d34:ffff:fffe'}], 'gateway_ip': '3e10:7d61:fb4:e095:c76f:6d34:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3e10:7d61:fb4:e095:c76f:6d34:0:2', 'tags': [], 'project_id': 'e70e82d43b1c456cb92cf61942239609'}} 2026-02-10 01:30:15,307 - INFO - Created VN ctest-vn4-44993563 2026-02-10 01:30:15,362 - DEBUG - VN ctest-vn4-44993563 UUID is 86e06343-c684-43ab-97d3-18d7a25d1cd9 2026-02-10 01:30:15,552 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '86e06343-c684-43ab-97d3-18d7a25d1cd9', 'name': 'ctest-vn4-44993563', 'tenant_id': 'e70e82d43b1c456cb92cf61942239609', 'project_id': 'e70e82d43b1c456cb92cf61942239609', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5ef5f9b4-7e15-4fc7-b448-954b012669d8', '8d8ad8e7-4704-40a3-8368-735d1bf59a45'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-53242193', 'ctest-vn4-44993563'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-53242193', 'ctest-policy1-41577134']], 'subnet_ipam': [{'subnet_cidr': '219.220.180.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3e10:7d61:fb4:e095:c76f:6d34::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-10 01:30:15,718 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2026-02-10 01:30:16,013 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2026-02-10 01:30:16,047 - DEBUG - Requesting: http://10.0.0.48:8082/domain/22fecad9-9753-4b63-8ac7-7b005e491a11 2026-02-10 01:30:16,060 - DEBUG - Requesting: http://10.0.0.48:8082/project/e70e82d4-3b1c-456c-b92c-f61942239609 2026-02-10 01:30:16,133 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/86e06343-c684-43ab-97d3-18d7a25d1cd9 2026-02-10 01:30:16,144 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/86e06343-c684-43ab-97d3-18d7a25d1cd9 2026-02-10 01:30:16,153 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/801236bf-9a08-433a-9466-572659bb53ec 2026-02-10 01:30:16,159 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/801236bf-9a08-433a-9466-572659bb53ec 2026-02-10 01:30:16,165 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/987353f1-5521-470b-8ef8-7622046323c6 2026-02-10 01:30:16,171 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-10 01:30:16,171 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/86e06343-c684-43ab-97d3-18d7a25d1cd9 2026-02-10 01:30:16,180 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/801236bf-9a08-433a-9466-572659bb53ec 2026-02-10 01:30:16,194 - INFO - Verified VN network id 11 for VN 86e06343-c684-43ab-97d3-18d7a25d1cd9 2026-02-10 01:30:16,194 - INFO - Verifications in API Server for VN ctest-vn4-44993563 passed 2026-02-10 01:30:16,194 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/86e06343-c684-43ab-97d3-18d7a25d1cd9 2026-02-10 01:30:16,202 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/801236bf-9a08-433a-9466-572659bb53ec 2026-02-10 01:30:16,207 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/801236bf-9a08-433a-9466-572659bb53ec 2026-02-10 01:30:16,212 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/987353f1-5521-470b-8ef8-7622046323c6 2026-02-10 01:30:16,221 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53242193:ctest-vn4-44993563', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-53242193', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9718877138610045867', 'uuid-lslong': '10940115234234113241'}, 'enable': 'true', 'created': '2026-02-10T01:30:14', 'last-modified': '2026-02-10T01:30:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.693125'} 2026-02-10 01:30:16,227 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-10 01:30:16,227 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-44993563 passed 2026-02-10 01:30:16,227 - DEBUG - ====Verifying policy data for ctest-vn4-44993563 in API_Server ====== 2026-02-10 01:30:16,227 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2026-02-10 01:30:16,232 - DEBUG - Requesting: http://10.0.0.48:8082/domain/22fecad9-9753-4b63-8ac7-7b005e491a11 2026-02-10 01:30:16,242 - DEBUG - Requesting: http://10.0.0.48:8082/project/e70e82d4-3b1c-456c-b92c-f61942239609 2026-02-10 01:30:16,316 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/86e06343-c684-43ab-97d3-18d7a25d1cd9 2026-02-10 01:30:16,325 - DEBUG - ==>Verifying data for policy with id: fee23692-0d3c-4031-bbf5-a730852cd69d, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-53242193', 'ctest-policy1-41577134'] 2026-02-10 01:30:16,325 - INFO - VN ctest-vn4-44993563 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-10 01:30:16,325 - DEBUG - Verifying the vn in opserver 2026-02-10 01:30:16,325 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53242193:ctest-vn4-44993563 virtual network link through opserver 10.0.0.48 2026-02-10 01:30:16,326 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2026-02-10 01:30:16,640 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2026-02-10 01:30:16,703 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53242193:ctest-vn4-44993563', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53242193:ctest-vn4-44993563?flat'} 2026-02-10 01:30:16,703 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53242193:ctest-vn4-44993563 is found in opserver 2026-02-10 01:30:16,712 - DEBUG - Do not have enough data to verify VN in agent 2026-02-10 01:30:16,716 - DEBUG - VRF ids for VN ctest-vn4-44993563: {} 2026-02-10 01:30:16,716 - DEBUG - ====Verifying data for ctest-policy1-41577134 in API_Server ====== 2026-02-10 01:30:16,716 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2026-02-10 01:30:16,721 - DEBUG - Requesting: http://10.0.0.48:8082/domain/22fecad9-9753-4b63-8ac7-7b005e491a11 2026-02-10 01:30:16,731 - DEBUG - Requesting: http://10.0.0.48:8082/project/e70e82d4-3b1c-456c-b92c-f61942239609 2026-02-10 01:30:16,807 - DEBUG - Requesting: http://10.0.0.48:8082/network-policy/fee23692-0d3c-4031-bbf5-a730852cd69d 2026-02-10 01:30:16,817 - INFO - Verified policy ctest-policy1-41577134 in API Server, Result: True 2026-02-10 01:30:16,817 - INFO - Done with setup and verification, moving onto test .. 2026-02-10 01:30:16,825 - INFO - Deleting VN ctest-vn4-44993563 2026-02-10 01:30:16,943 - DEBUG - Response for deleting network () 2026-02-10 01:30:16,943 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/801236bf-9a08-433a-9466-572659bb53ec 2026-02-10 01:30:16,947 - DEBUG - Response Code: 404 2026-02-10 01:30:16,947 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2026-02-10 01:30:16,952 - DEBUG - Requesting: http://10.0.0.48:8082/domain/22fecad9-9753-4b63-8ac7-7b005e491a11 2026-02-10 01:30:17,002 - DEBUG - Requesting: http://10.0.0.48:8082/project/e70e82d4-3b1c-456c-b92c-f61942239609 2026-02-10 01:30:17,075 - INFO - Validated that VN ctest-vn4-44993563 is not found in API Server 2026-02-10 01:30:17,084 - DEBUG - VN ctest-vn4-44993563 is not present in Agent 10.0.0.48 2026-02-10 01:30:17,084 - INFO - Validated that VN ctest-vn4-44993563 is not in any agent 2026-02-10 01:30:17,097 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-44993563 info 2026-02-10 01:30:17,121 - INFO - Deleted policy ctest-policy1-41577134 2026-02-10 01:30:17,289 - DEBUG - policy ctest-policy1-41577134 is not found in API Server 2026-02-10 01:30:17,542 - DEBUG - No XMPP flaps were noticed during the test 2026-02-10 01:30:17,542 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-10 01:30:17,542 - INFO - -------------------------------------------------------------------------------- 2026-02-10 01:30:17,830 - DEBUG - No XMPP flaps were noticed during the test 2026-02-10 01:30:17,830 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-10 01:30:17,830 - INFO - -------------------------------------------------------------------------------- 2026-02-10 01:30:18,513 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-53242193, ID : e70e82d4-3b1c-456c-b92c-f61942239609