2026-02-10 15:06:30,789 - INFO - Domain Default found not creating 2026-02-10 15:06:30,980 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-51637575 not found, creating it 2026-02-10 15:06:31,455 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-51637575, ID : 913758e6-44b3-40b1-a528-acb3d8642187 2026-02-10 15:06:33,115 - INFO - ================================================================================ 2026-02-10 15:06:33,115 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-10 15:06:33,377 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.209': '0'}} with 2026-02-10 15:06:33,377 - INFO - Initial checks done. Running the testcase now 2026-02-10 15:06:33,377 - INFO - 2026-02-10 15:06:33,377 - INFO - ================================================================================ 2026-02-10 15:06:33,377 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-10 15:06:33,377 - 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 15:06:33,662 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.209': '0'}} with 2026-02-10 15:06:33,662 - INFO - Initial checks done. Running the testcase now 2026-02-10 15:06:33,662 - INFO - 2026-02-10 15:06:34,071 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51637575:ctest-vn4-57856419, 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-51637575:ctest-vn4-57856419, 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-51637575:ctest-vn4-57856419, 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-51637575:ctest-vn4-57856419, 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 15:06:34,585 - DEBUG - Response for create_network : {'network': {'id': '9b748335-b3f0-472f-b680-43065009ddb0', 'name': 'ctest-vn4-57856419', 'tenant_id': '913758e644b340b1a528acb3d8642187', 'project_id': '913758e644b340b1a528acb3d8642187', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51637575', 'ctest-vn4-57856419'], 'port_security_enabled': True, 'description': ''}} 2026-02-10 15:06:34,782 - DEBUG - Response for create_subnet : {'subnet': {'id': '8d47f5a6-52c6-40be-af51-08a9604e5707', 'name': '', 'tenant_id': '913758e644b340b1a528acb3d8642187', 'network_id': '9b748335-b3f0-472f-b680-43065009ddb0', 'ip_version': 4, 'cidr': '4.40.208.0/26', 'allocation_pools': [{'start': '4.40.208.2', 'end': '4.40.208.62'}], 'gateway_ip': '4.40.208.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '4.40.208.2', 'tags': [], 'project_id': '913758e644b340b1a528acb3d8642187'}} 2026-02-10 15:06:34,989 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b9c27e26-493c-4bec-8749-d810c47a780e', 'name': '', 'tenant_id': '913758e644b340b1a528acb3d8642187', 'network_id': '9b748335-b3f0-472f-b680-43065009ddb0', 'ip_version': 6, 'cidr': '3a82:54ab:2cd4:a82f:ca61:4b01::/96', 'allocation_pools': [{'start': '3a82:54ab:2cd4:a82f:ca61:4b01:0:2', 'end': '3a82:54ab:2cd4:a82f:ca61:4b01:ffff:fffe'}], 'gateway_ip': '3a82:54ab:2cd4:a82f:ca61:4b01:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3a82:54ab:2cd4:a82f:ca61:4b01:0:2', 'tags': [], 'project_id': '913758e644b340b1a528acb3d8642187'}} 2026-02-10 15:06:35,010 - INFO - Created VN ctest-vn4-57856419 2026-02-10 15:06:35,061 - DEBUG - VN ctest-vn4-57856419 UUID is 9b748335-b3f0-472f-b680-43065009ddb0 2026-02-10 15:06:35,272 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9b748335-b3f0-472f-b680-43065009ddb0', 'name': 'ctest-vn4-57856419', 'tenant_id': '913758e644b340b1a528acb3d8642187', 'project_id': '913758e644b340b1a528acb3d8642187', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8d47f5a6-52c6-40be-af51-08a9604e5707', 'b9c27e26-493c-4bec-8749-d810c47a780e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51637575', 'ctest-vn4-57856419'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51637575', 'ctest-policy1-46277230']], 'subnet_ipam': [{'subnet_cidr': '4.40.208.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3a82:54ab:2cd4:a82f:ca61:4b01::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-10 15:06:35,430 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-10 15:06:35,765 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-10 15:06:35,796 - DEBUG - Requesting: http://10.0.0.38:8082/domain/656b6544-98b3-40b6-b2ce-307497398b17 2026-02-10 15:06:35,810 - DEBUG - Requesting: http://10.0.0.38:8082/project/913758e6-44b3-40b1-a528-acb3d8642187 2026-02-10 15:06:35,879 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9b748335-b3f0-472f-b680-43065009ddb0 2026-02-10 15:06:35,891 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9b748335-b3f0-472f-b680-43065009ddb0 2026-02-10 15:06:35,901 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9c9ae3fb-c921-40a9-b5e7-475d192d220c 2026-02-10 15:06:35,908 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9c9ae3fb-c921-40a9-b5e7-475d192d220c 2026-02-10 15:06:35,915 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1697e5ed-d2a7-4abc-a7f0-b693e5fa8845 2026-02-10 15:06:35,922 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-10 15:06:35,922 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9b748335-b3f0-472f-b680-43065009ddb0 2026-02-10 15:06:35,932 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9c9ae3fb-c921-40a9-b5e7-475d192d220c 2026-02-10 15:06:35,945 - INFO - Verified VN network id 11 for VN 9b748335-b3f0-472f-b680-43065009ddb0 2026-02-10 15:06:35,945 - INFO - Verifications in API Server for VN ctest-vn4-57856419 passed 2026-02-10 15:06:35,946 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9b748335-b3f0-472f-b680-43065009ddb0 2026-02-10 15:06:35,954 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9c9ae3fb-c921-40a9-b5e7-475d192d220c 2026-02-10 15:06:35,961 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9c9ae3fb-c921-40a9-b5e7-475d192d220c 2026-02-10 15:06:35,967 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1697e5ed-d2a7-4abc-a7f0-b693e5fa8845 2026-02-10 15:06:35,979 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51637575:ctest-vn4-57856419', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-51637575', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11201722439852640047', 'uuid-lslong': '13150584606313536944'}, 'enable': 'true', 'created': '2026-02-10T15:06:34', 'last-modified': '2026-02-10T15:06:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.733919'} 2026-02-10 15:06:35,985 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-10 15:06:35,985 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-57856419 passed 2026-02-10 15:06:35,986 - DEBUG - ====Verifying policy data for ctest-vn4-57856419 in API_Server ====== 2026-02-10 15:06:35,986 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-10 15:06:35,991 - DEBUG - Requesting: http://10.0.0.38:8082/domain/656b6544-98b3-40b6-b2ce-307497398b17 2026-02-10 15:06:36,000 - DEBUG - Requesting: http://10.0.0.38:8082/project/913758e6-44b3-40b1-a528-acb3d8642187 2026-02-10 15:06:36,069 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9b748335-b3f0-472f-b680-43065009ddb0 2026-02-10 15:06:36,078 - DEBUG - ==>Verifying data for policy with id: c4dfb597-ea93-40fb-8a30-e6a6724f7662, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51637575', 'ctest-policy1-46277230'] 2026-02-10 15:06:36,078 - INFO - VN ctest-vn4-57856419 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-10 15:06:36,078 - DEBUG - Verifying the vn in opserver 2026-02-10 15:06:36,078 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51637575:ctest-vn4-57856419 virtual network link through opserver 10.0.0.38 2026-02-10 15:06:36,079 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-10 15:06:36,413 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-10 15:06:36,478 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51637575:ctest-vn4-57856419', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51637575:ctest-vn4-57856419?flat'} 2026-02-10 15:06:36,478 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51637575:ctest-vn4-57856419 is found in opserver 2026-02-10 15:06:36,489 - DEBUG - Do not have enough data to verify VN in agent 2026-02-10 15:06:36,493 - DEBUG - VRF ids for VN ctest-vn4-57856419: {} 2026-02-10 15:06:36,494 - DEBUG - ====Verifying data for ctest-policy1-46277230 in API_Server ====== 2026-02-10 15:06:36,494 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-10 15:06:36,499 - DEBUG - Requesting: http://10.0.0.38:8082/domain/656b6544-98b3-40b6-b2ce-307497398b17 2026-02-10 15:06:36,510 - DEBUG - Requesting: http://10.0.0.38:8082/project/913758e6-44b3-40b1-a528-acb3d8642187 2026-02-10 15:06:36,578 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/c4dfb597-ea93-40fb-8a30-e6a6724f7662 2026-02-10 15:06:36,588 - INFO - Verified policy ctest-policy1-46277230 in API Server, Result: True 2026-02-10 15:06:36,588 - INFO - Done with setup and verification, moving onto test .. 2026-02-10 15:06:36,598 - INFO - Deleting VN ctest-vn4-57856419 2026-02-10 15:06:36,715 - DEBUG - Response for deleting network () 2026-02-10 15:06:36,715 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9c9ae3fb-c921-40a9-b5e7-475d192d220c 2026-02-10 15:06:36,720 - DEBUG - Response Code: 404 2026-02-10 15:06:36,720 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-10 15:06:36,725 - DEBUG - Requesting: http://10.0.0.38:8082/domain/656b6544-98b3-40b6-b2ce-307497398b17 2026-02-10 15:06:36,779 - DEBUG - Requesting: http://10.0.0.38:8082/project/913758e6-44b3-40b1-a528-acb3d8642187 2026-02-10 15:06:36,852 - INFO - Validated that VN ctest-vn4-57856419 is not found in API Server 2026-02-10 15:06:36,861 - DEBUG - VN ctest-vn4-57856419 is not present in Agent 10.0.0.38 2026-02-10 15:06:36,861 - INFO - Validated that VN ctest-vn4-57856419 is not in any agent 2026-02-10 15:06:36,874 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-57856419 info 2026-02-10 15:06:36,897 - INFO - Deleted policy ctest-policy1-46277230 2026-02-10 15:06:37,057 - DEBUG - policy ctest-policy1-46277230 is not found in API Server 2026-02-10 15:06:37,310 - DEBUG - No XMPP flaps were noticed during the test
2026-02-10 15:06:37,310 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-10 15:06:37,311 - INFO - -------------------------------------------------------------------------------- 2026-02-10 15:06:37,599 - DEBUG - No XMPP flaps were noticed during the test
2026-02-10 15:06:37,599 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-10 15:06:37,599 - INFO - -------------------------------------------------------------------------------- 2026-02-10 15:06:38,329 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-51637575, ID : 913758e6-44b3-40b1-a528-acb3d8642187