2026-08-31 02:51:38,131 - INFO - Domain Default found not creating 2026-08-31 02:51:38,287 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-33950583 not found, creating it 2026-08-31 02:51:38,917 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-33950583, ID : bbc8a8d1-b9be-499a-8b51-1f073babad88 2026-08-31 02:51:40,479 - INFO - ================================================================================ 2026-08-31 02:51:40,480 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-31 02:51:41,783 - DEBUG - Nothing to compare xmpp stats {'10.0.0.186': {'10.20.0.14': '0', '10.20.0.254': '0'}, '10.0.0.176': {'10.20.0.14': '0', '10.20.0.25': '0'}} with 2026-08-31 02:51:41,784 - INFO - Initial checks done. Running the testcase now 2026-08-31 02:51:41,784 - INFO - 2026-08-31 02:51:41,784 - INFO - ================================================================================ 2026-08-31 02:51:41,784 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-31 02:51:41,784 - 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-08-31 02:51:43,095 - DEBUG - Nothing to compare xmpp stats {'10.0.0.186': {'10.20.0.14': '0', '10.20.0.254': '0'}, '10.0.0.176': {'10.20.0.14': '0', '10.20.0.25': '0'}} with 2026-08-31 02:51:43,095 - INFO - Initial checks done. Running the testcase now 2026-08-31 02:51:43,095 - INFO - 2026-08-31 02:51:43,500 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33950583:ctest-vn4-69788245, 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-33950583:ctest-vn4-69788245, 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-33950583:ctest-vn4-69788245, 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-33950583:ctest-vn4-69788245, 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-08-31 02:51:44,178 - DEBUG - Response for create_network : {'network': {'id': '86d786c9-8ae8-4c41-bc74-ee556e527796', 'name': 'ctest-vn4-69788245', 'tenant_id': 'bbc8a8d1b9be499a8b511f073babad88', 'project_id': 'bbc8a8d1b9be499a8b511f073babad88', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33950583', 'ctest-vn4-69788245'], 'port_security_enabled': True, 'description': ''}} 2026-08-31 02:51:44,524 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd6073960-4091-42ff-92c5-813a4f0008ec', 'name': '', 'tenant_id': 'bbc8a8d1b9be499a8b511f073babad88', 'network_id': '86d786c9-8ae8-4c41-bc74-ee556e527796', 'ip_version': 4, 'cidr': '105.32.107.64/26', 'allocation_pools': [{'start': '105.32.107.66', 'end': '105.32.107.126'}], 'gateway_ip': '105.32.107.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '105.32.107.66', 'tags': [], 'project_id': 'bbc8a8d1b9be499a8b511f073babad88'}} 2026-08-31 02:51:44,780 - DEBUG - Response for create_subnet : {'subnet': {'id': '8466a824-e175-4b64-a272-7f837fe30e31', 'name': '', 'tenant_id': 'bbc8a8d1b9be499a8b511f073babad88', 'network_id': '86d786c9-8ae8-4c41-bc74-ee556e527796', 'ip_version': 6, 'cidr': '30d4:ee73:e2cd:7f92:27a0:889e::/96', 'allocation_pools': [{'start': '30d4:ee73:e2cd:7f92:27a0:889e:0:2', 'end': '30d4:ee73:e2cd:7f92:27a0:889e:ffff:fffe'}], 'gateway_ip': '30d4:ee73:e2cd:7f92:27a0:889e:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '30d4:ee73:e2cd:7f92:27a0:889e:0:2', 'tags': [], 'project_id': 'bbc8a8d1b9be499a8b511f073babad88'}} 2026-08-31 02:51:44,807 - INFO - Created VN ctest-vn4-69788245 2026-08-31 02:51:44,818 - DEBUG - VN ctest-vn4-69788245 UUID is 86d786c9-8ae8-4c41-bc74-ee556e527796 2026-08-31 02:51:45,074 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '86d786c9-8ae8-4c41-bc74-ee556e527796', 'name': 'ctest-vn4-69788245', 'tenant_id': 'bbc8a8d1b9be499a8b511f073babad88', 'project_id': 'bbc8a8d1b9be499a8b511f073babad88', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['d6073960-4091-42ff-92c5-813a4f0008ec', '8466a824-e175-4b64-a272-7f837fe30e31'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33950583', 'ctest-vn4-69788245'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33950583', 'ctest-policy1-29603854']], 'subnet_ipam': [{'subnet_cidr': '105.32.107.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '30d4:ee73:e2cd:7f92:27a0:889e::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-08-31 02:51:45,183 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-08-31 02:51:45,517 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-08-31 02:51:45,549 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e2dd173c-f32f-4272-81b1-e77dae6a5597 2026-08-31 02:51:45,567 - DEBUG - Requesting: http://10.0.0.50:8082/project/bbc8a8d1-b9be-499a-8b51-1f073babad88 2026-08-31 02:51:45,698 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/86d786c9-8ae8-4c41-bc74-ee556e527796 2026-08-31 02:51:45,726 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/86d786c9-8ae8-4c41-bc74-ee556e527796 2026-08-31 02:51:45,740 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/762b6a72-9339-4592-974b-d43b1b567c01 2026-08-31 02:51:45,750 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/762b6a72-9339-4592-974b-d43b1b567c01 2026-08-31 02:51:45,758 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/7122ca64-7ab6-4234-abfa-ae601a3de77f 2026-08-31 02:51:45,769 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-08-31 02:51:45,769 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/86d786c9-8ae8-4c41-bc74-ee556e527796 2026-08-31 02:51:45,780 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/762b6a72-9339-4592-974b-d43b1b567c01 2026-08-31 02:51:45,798 - INFO - Verified VN network id 16 for VN 86d786c9-8ae8-4c41-bc74-ee556e527796 2026-08-31 02:51:45,798 - INFO - Verifications in API Server for VN ctest-vn4-69788245 passed 2026-08-31 02:51:45,798 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/86d786c9-8ae8-4c41-bc74-ee556e527796 2026-08-31 02:51:45,819 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/762b6a72-9339-4592-974b-d43b1b567c01 2026-08-31 02:51:45,830 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/762b6a72-9339-4592-974b-d43b1b567c01 2026-08-31 02:51:45,838 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/7122ca64-7ab6-4234-abfa-ae601a3de77f 2026-08-31 02:51:45,862 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33950583:ctest-vn4-69788245', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-33950583', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9716382921252162625', 'uuid-lslong': '13579740827119417238'}, 'enable': 'true', 'created': '2026-08-31T02:51:44', 'last-modified': '2026-08-31T02:51:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.859790'} 2026-08-31 02:51:45,874 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-08-31 02:51:45,881 - DEBUG - Control-node 10.0.0.185 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33950583:ctest-vn4-69788245', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-33950583', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9716382921252162625', 'uuid-lslong': '13579740827119417238'}, 'enable': 'true', 'created': '2026-08-31T02:51:44', 'last-modified': '2026-08-31T02:51:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.875991'} 2026-08-31 02:51:45,887 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-08-31 02:51:45,893 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33950583:ctest-vn4-69788245', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-33950583', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9716382921252162625', 'uuid-lslong': '13579740827119417238'}, 'enable': 'true', 'created': '2026-08-31T02:51:44', 'last-modified': '2026-08-31T02:51:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.895504'} 2026-08-31 02:51:45,900 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-08-31 02:51:45,900 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-69788245 passed 2026-08-31 02:51:45,900 - DEBUG - ====Verifying policy data for ctest-vn4-69788245 in API_Server ====== 2026-08-31 02:51:45,900 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-08-31 02:51:45,906 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e2dd173c-f32f-4272-81b1-e77dae6a5597 2026-08-31 02:51:45,917 - DEBUG - Requesting: http://10.0.0.50:8082/project/bbc8a8d1-b9be-499a-8b51-1f073babad88 2026-08-31 02:51:46,025 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/86d786c9-8ae8-4c41-bc74-ee556e527796 2026-08-31 02:51:46,036 - DEBUG - ==>Verifying data for policy with id: 9b10792d-13cf-4b03-93e4-385c6a044b7d, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33950583', 'ctest-policy1-29603854'] 2026-08-31 02:51:46,036 - INFO - VN ctest-vn4-69788245 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-31 02:51:46,036 - DEBUG - Verifying the vn in opserver 2026-08-31 02:51:46,036 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33950583:ctest-vn4-69788245 virtual network link through opserver 10.0.0.50 2026-08-31 02:51:46,036 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-08-31 02:51:46,481 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-08-31 02:51:46,554 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33950583:ctest-vn4-69788245', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33950583:ctest-vn4-69788245?flat'} 2026-08-31 02:51:46,554 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33950583:ctest-vn4-69788245 virtual network link through opserver 10.0.0.185 2026-08-31 02:51:46,554 - DEBUG - Requesting: http://10.0.0.185:8081/analytics/uves/virtual-networks 2026-08-31 02:51:46,890 - DEBUG - Requesting: http://10.0.0.185:8081/analytics/uves/virtual-networks 2026-08-31 02:51:46,957 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33950583:ctest-vn4-69788245', 'href': 'http://10.0.0.185:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33950583:ctest-vn4-69788245?flat'} 2026-08-31 02:51:46,957 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33950583:ctest-vn4-69788245 virtual network link through opserver 10.0.0.38 2026-08-31 02:51:46,957 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-08-31 02:51:47,304 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-08-31 02:51:47,369 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33950583:ctest-vn4-69788245', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33950583:ctest-vn4-69788245?flat'} 2026-08-31 02:51:47,369 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33950583:ctest-vn4-69788245 is found in opserver 2026-08-31 02:51:47,403 - DEBUG - Do not have enough data to verify VN in agent 2026-08-31 02:51:47,414 - DEBUG - VRF ids for VN ctest-vn4-69788245: {} 2026-08-31 02:51:47,414 - DEBUG - ====Verifying data for ctest-policy1-29603854 in API_Server ====== 2026-08-31 02:51:47,414 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-08-31 02:51:47,421 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e2dd173c-f32f-4272-81b1-e77dae6a5597 2026-08-31 02:51:47,433 - DEBUG - Requesting: http://10.0.0.50:8082/project/bbc8a8d1-b9be-499a-8b51-1f073babad88 2026-08-31 02:51:47,541 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/9b10792d-13cf-4b03-93e4-385c6a044b7d 2026-08-31 02:51:47,553 - INFO - Verified policy ctest-policy1-29603854 in API Server, Result: True 2026-08-31 02:51:47,553 - INFO - Done with setup and verification, moving onto test .. 2026-08-31 02:51:47,569 - INFO - Deleting VN ctest-vn4-69788245 2026-08-31 02:51:47,878 - DEBUG - Response for deleting network () 2026-08-31 02:51:47,879 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/762b6a72-9339-4592-974b-d43b1b567c01 2026-08-31 02:51:47,903 - DEBUG - Response Code: 404 2026-08-31 02:51:47,903 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-08-31 02:51:47,916 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e2dd173c-f32f-4272-81b1-e77dae6a5597 2026-08-31 02:51:47,932 - DEBUG - Requesting: http://10.0.0.50:8082/project/bbc8a8d1-b9be-499a-8b51-1f073babad88 2026-08-31 02:51:48,069 - INFO - Validated that VN ctest-vn4-69788245 is not found in API Server 2026-08-31 02:51:48,089 - DEBUG - VN ctest-vn4-69788245 is not present in Agent 10.0.0.186 2026-08-31 02:51:48,113 - DEBUG - VN ctest-vn4-69788245 is not present in Agent 10.0.0.176 2026-08-31 02:51:48,113 - INFO - Validated that VN ctest-vn4-69788245 is not in any agent 2026-08-31 02:51:48,173 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-69788245 info 2026-08-31 02:51:48,223 - INFO - Deleted policy ctest-policy1-29603854 2026-08-31 02:51:48,474 - DEBUG - policy ctest-policy1-29603854 is not found in API Server 2026-08-31 02:51:49,767 - DEBUG - No XMPP flaps were noticed during the test
2026-08-31 02:51:49,767 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:08]
2026-08-31 02:51:49,767 - INFO - -------------------------------------------------------------------------------- 2026-08-31 02:51:51,051 - DEBUG - No XMPP flaps were noticed during the test
2026-08-31 02:51:51,052 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:11]
2026-08-31 02:51:51,052 - INFO - -------------------------------------------------------------------------------- 2026-08-31 02:51:51,918 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-33950583, ID : bbc8a8d1-b9be-499a-8b51-1f073babad88