2026-01-08 02:27:36,653 - INFO - Domain Default found not creating 2026-01-08 02:27:36,837 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-71724328 not found, creating it 2026-01-08 02:27:37,316 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-71724328, ID : 1c22540c-b96b-468e-80ee-15ba2f564fa8 2026-01-08 02:27:38,987 - INFO - ================================================================================ 2026-01-08 02:27:38,988 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-08 02:27:39,241 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.201': '0'}} with 2026-01-08 02:27:39,241 - INFO - Initial checks done. Running the testcase now 2026-01-08 02:27:39,241 - INFO - 2026-01-08 02:27:39,241 - INFO - ================================================================================ 2026-01-08 02:27:39,241 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-08 02:27:39,241 - 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-01-08 02:27:39,541 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.201': '0'}} with 2026-01-08 02:27:39,541 - INFO - Initial checks done. Running the testcase now 2026-01-08 02:27:39,541 - INFO - 2026-01-08 02:27:39,949 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71724328:ctest-vn4-43781021, 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-71724328:ctest-vn4-43781021, 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-71724328:ctest-vn4-43781021, 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-71724328:ctest-vn4-43781021, 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-01-08 02:27:40,477 - DEBUG - Response for create_network : {'network': {'id': 'b40cd656-b98d-4527-b822-887acbb4690d', 'name': 'ctest-vn4-43781021', 'tenant_id': '1c22540cb96b468e80ee15ba2f564fa8', 'project_id': '1c22540cb96b468e80ee15ba2f564fa8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71724328', 'ctest-vn4-43781021'], 'port_security_enabled': True, 'description': ''}} 2026-01-08 02:27:40,642 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ed9e3afb-f117-4f41-afc2-94ad79881a11', 'name': '', 'tenant_id': '1c22540cb96b468e80ee15ba2f564fa8', 'network_id': 'b40cd656-b98d-4527-b822-887acbb4690d', 'ip_version': 4, 'cidr': '216.70.94.64/26', 'allocation_pools': [{'start': '216.70.94.66', 'end': '216.70.94.126'}], 'gateway_ip': '216.70.94.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '216.70.94.66', 'tags': [], 'project_id': '1c22540cb96b468e80ee15ba2f564fa8'}} 2026-01-08 02:27:40,797 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ebfe1325-5a94-4f36-bbdf-ac927d54dfc8', 'name': '', 'tenant_id': '1c22540cb96b468e80ee15ba2f564fa8', 'network_id': 'b40cd656-b98d-4527-b822-887acbb4690d', 'ip_version': 6, 'cidr': '3db6:52c9:210d:9794:18f4:298c::/96', 'allocation_pools': [{'start': '3db6:52c9:210d:9794:18f4:298c:0:2', 'end': '3db6:52c9:210d:9794:18f4:298c:ffff:fffe'}], 'gateway_ip': '3db6:52c9:210d:9794:18f4:298c:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3db6:52c9:210d:9794:18f4:298c:0:2', 'tags': [], 'project_id': '1c22540cb96b468e80ee15ba2f564fa8'}} 2026-01-08 02:27:40,819 - INFO - Created VN ctest-vn4-43781021 2026-01-08 02:27:40,871 - DEBUG - VN ctest-vn4-43781021 UUID is b40cd656-b98d-4527-b822-887acbb4690d 2026-01-08 02:27:41,075 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b40cd656-b98d-4527-b822-887acbb4690d', 'name': 'ctest-vn4-43781021', 'tenant_id': '1c22540cb96b468e80ee15ba2f564fa8', 'project_id': '1c22540cb96b468e80ee15ba2f564fa8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ed9e3afb-f117-4f41-afc2-94ad79881a11', 'ebfe1325-5a94-4f36-bbdf-ac927d54dfc8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71724328', 'ctest-vn4-43781021'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71724328', 'ctest-policy1-98252424']], 'subnet_ipam': [{'subnet_cidr': '216.70.94.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3db6:52c9:210d:9794:18f4:298c::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-08 02:27:41,244 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-01-08 02:27:41,590 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-01-08 02:27:41,624 - DEBUG - Requesting: http://10.0.0.33:8082/domain/3e3b6851-b16f-4499-946a-67f986caa9e0 2026-01-08 02:27:41,638 - DEBUG - Requesting: http://10.0.0.33:8082/project/1c22540c-b96b-468e-80ee-15ba2f564fa8 2026-01-08 02:27:41,712 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b40cd656-b98d-4527-b822-887acbb4690d 2026-01-08 02:27:41,724 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b40cd656-b98d-4527-b822-887acbb4690d 2026-01-08 02:27:41,735 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f5102ce7-9d38-4a35-bf85-77c8c7efffbc 2026-01-08 02:27:41,742 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f5102ce7-9d38-4a35-bf85-77c8c7efffbc 2026-01-08 02:27:41,749 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/a0629aa2-12a5-4504-b669-36763d55179c 2026-01-08 02:27:41,755 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-08 02:27:41,756 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b40cd656-b98d-4527-b822-887acbb4690d 2026-01-08 02:27:41,765 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f5102ce7-9d38-4a35-bf85-77c8c7efffbc 2026-01-08 02:27:41,778 - INFO - Verified VN network id 11 for VN b40cd656-b98d-4527-b822-887acbb4690d 2026-01-08 02:27:41,778 - INFO - Verifications in API Server for VN ctest-vn4-43781021 passed 2026-01-08 02:27:41,778 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b40cd656-b98d-4527-b822-887acbb4690d 2026-01-08 02:27:41,787 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f5102ce7-9d38-4a35-bf85-77c8c7efffbc 2026-01-08 02:27:41,794 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f5102ce7-9d38-4a35-bf85-77c8c7efffbc 2026-01-08 02:27:41,802 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/a0629aa2-12a5-4504-b669-36763d55179c 2026-01-08 02:27:41,813 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71724328:ctest-vn4-43781021', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-71724328', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12973980294516131111', 'uuid-lslong': '13268317513171888397'}, 'enable': 'true', 'created': '2026-01-08T02:27:40', 'last-modified': '2026-01-08T02:27:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.762211'} 2026-01-08 02:27:41,820 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-08 02:27:41,820 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-43781021 passed 2026-01-08 02:27:41,820 - DEBUG - ====Verifying policy data for ctest-vn4-43781021 in API_Server ====== 2026-01-08 02:27:41,820 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-01-08 02:27:41,825 - DEBUG - Requesting: http://10.0.0.33:8082/domain/3e3b6851-b16f-4499-946a-67f986caa9e0 2026-01-08 02:27:41,835 - DEBUG - Requesting: http://10.0.0.33:8082/project/1c22540c-b96b-468e-80ee-15ba2f564fa8 2026-01-08 02:27:41,919 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b40cd656-b98d-4527-b822-887acbb4690d 2026-01-08 02:27:41,929 - DEBUG - ==>Verifying data for policy with id: d20ad481-5431-4b39-9e84-66ca78ffbd86, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71724328', 'ctest-policy1-98252424'] 2026-01-08 02:27:41,929 - INFO - VN ctest-vn4-43781021 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-08 02:27:41,929 - DEBUG - Verifying the vn in opserver 2026-01-08 02:27:41,929 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71724328:ctest-vn4-43781021 virtual network link through opserver 10.0.0.33 2026-01-08 02:27:41,929 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-01-08 02:27:42,301 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-01-08 02:27:42,367 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71724328:ctest-vn4-43781021', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71724328:ctest-vn4-43781021?flat'} 2026-01-08 02:27:42,367 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71724328:ctest-vn4-43781021 is found in opserver 2026-01-08 02:27:42,378 - DEBUG - Do not have enough data to verify VN in agent 2026-01-08 02:27:42,382 - DEBUG - VRF ids for VN ctest-vn4-43781021: {} 2026-01-08 02:27:42,383 - DEBUG - ====Verifying data for ctest-policy1-98252424 in API_Server ====== 2026-01-08 02:27:42,383 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-01-08 02:27:42,388 - DEBUG - Requesting: http://10.0.0.33:8082/domain/3e3b6851-b16f-4499-946a-67f986caa9e0 2026-01-08 02:27:42,398 - DEBUG - Requesting: http://10.0.0.33:8082/project/1c22540c-b96b-468e-80ee-15ba2f564fa8 2026-01-08 02:27:42,471 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/d20ad481-5431-4b39-9e84-66ca78ffbd86 2026-01-08 02:27:42,481 - INFO - Verified policy ctest-policy1-98252424 in API Server, Result: True 2026-01-08 02:27:42,481 - INFO - Done with setup and verification, moving onto test .. 2026-01-08 02:27:42,489 - INFO - Deleting VN ctest-vn4-43781021 2026-01-08 02:27:42,613 - DEBUG - Response for deleting network () 2026-01-08 02:27:42,614 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f5102ce7-9d38-4a35-bf85-77c8c7efffbc 2026-01-08 02:27:42,620 - DEBUG - Response Code: 404 2026-01-08 02:27:42,620 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-01-08 02:27:42,627 - DEBUG - Requesting: http://10.0.0.33:8082/domain/3e3b6851-b16f-4499-946a-67f986caa9e0 2026-01-08 02:27:42,681 - DEBUG - Requesting: http://10.0.0.33:8082/project/1c22540c-b96b-468e-80ee-15ba2f564fa8 2026-01-08 02:27:42,749 - INFO - Validated that VN ctest-vn4-43781021 is not found in API Server 2026-01-08 02:27:42,760 - DEBUG - VN ctest-vn4-43781021 is not present in Agent 10.0.0.33 2026-01-08 02:27:42,760 - INFO - Validated that VN ctest-vn4-43781021 is not in any agent 2026-01-08 02:27:42,775 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-43781021 info 2026-01-08 02:27:42,800 - INFO - Deleted policy ctest-policy1-98252424 2026-01-08 02:27:42,967 - DEBUG - policy ctest-policy1-98252424 is not found in API Server 2026-01-08 02:27:43,225 - DEBUG - No XMPP flaps were noticed during the test 2026-01-08 02:27:43,225 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-01-08 02:27:43,225 - INFO - -------------------------------------------------------------------------------- 2026-01-08 02:27:43,517 - DEBUG - No XMPP flaps were noticed during the test 2026-01-08 02:27:43,517 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-01-08 02:27:43,517 - INFO - -------------------------------------------------------------------------------- 2026-01-08 02:27:44,284 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-71724328, ID : 1c22540c-b96b-468e-80ee-15ba2f564fa8