2026-05-15 17:21:27,708 - INFO - Domain Default found not creating 2026-05-15 17:21:27,884 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-95603611 not found, creating it 2026-05-15 17:21:28,561 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-95603611, ID : d4b90e35-06c5-4ff0-95ec-399e9ab35baa 2026-05-15 17:21:30,041 - INFO - ================================================================================ 2026-05-15 17:21:30,041 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-15 17:21:30,307 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0'}} with 2026-05-15 17:21:30,307 - INFO - Initial checks done. Running the testcase now 2026-05-15 17:21:30,307 - INFO - 2026-05-15 17:21:30,307 - INFO - ================================================================================ 2026-05-15 17:21:30,307 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-15 17:21:30,308 - 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-05-15 17:21:30,594 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0'}} with 2026-05-15 17:21:30,595 - INFO - Initial checks done. Running the testcase now 2026-05-15 17:21:30,595 - INFO - 2026-05-15 17:21:30,944 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95603611:ctest-vn4-21828406, 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-95603611:ctest-vn4-21828406, 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-95603611:ctest-vn4-21828406, 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-95603611:ctest-vn4-21828406, 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-05-15 17:21:31,452 - DEBUG - Response for create_network : {'network': {'id': 'd1203a10-df2b-4a40-92e7-65daba94a1f5', 'name': 'ctest-vn4-21828406', 'tenant_id': 'd4b90e3506c54ff095ec399e9ab35baa', 'project_id': 'd4b90e3506c54ff095ec399e9ab35baa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95603611', 'ctest-vn4-21828406'], 'port_security_enabled': True, 'description': ''}} 2026-05-15 17:21:31,608 - DEBUG - Response for create_subnet : {'subnet': {'id': '4b2f0a35-174d-4a12-8913-a84f23e47c52', 'name': '', 'tenant_id': 'd4b90e3506c54ff095ec399e9ab35baa', 'network_id': 'd1203a10-df2b-4a40-92e7-65daba94a1f5', 'ip_version': 4, 'cidr': '167.50.175.192/26', 'allocation_pools': [{'start': '167.50.175.194', 'end': '167.50.175.254'}], 'gateway_ip': '167.50.175.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '167.50.175.194', 'tags': [], 'project_id': 'd4b90e3506c54ff095ec399e9ab35baa'}} 2026-05-15 17:21:31,784 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c5efb6ac-bd99-4e26-a247-b10e00f3dc3c', 'name': '', 'tenant_id': 'd4b90e3506c54ff095ec399e9ab35baa', 'network_id': 'd1203a10-df2b-4a40-92e7-65daba94a1f5', 'ip_version': 6, 'cidr': '3628:67f:3dad:9ee9:9647:b206::/96', 'allocation_pools': [{'start': '3628:67f:3dad:9ee9:9647:b206:0:2', 'end': '3628:67f:3dad:9ee9:9647:b206:ffff:fffe'}], 'gateway_ip': '3628:67f:3dad:9ee9:9647:b206:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3628:67f:3dad:9ee9:9647:b206:0:2', 'tags': [], 'project_id': 'd4b90e3506c54ff095ec399e9ab35baa'}} 2026-05-15 17:21:31,812 - INFO - Created VN ctest-vn4-21828406 2026-05-15 17:21:31,863 - DEBUG - VN ctest-vn4-21828406 UUID is d1203a10-df2b-4a40-92e7-65daba94a1f5 2026-05-15 17:21:32,097 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd1203a10-df2b-4a40-92e7-65daba94a1f5', 'name': 'ctest-vn4-21828406', 'tenant_id': 'd4b90e3506c54ff095ec399e9ab35baa', 'project_id': 'd4b90e3506c54ff095ec399e9ab35baa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4b2f0a35-174d-4a12-8913-a84f23e47c52', 'c5efb6ac-bd99-4e26-a247-b10e00f3dc3c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95603611', 'ctest-vn4-21828406'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95603611', 'ctest-policy1-45692284']], 'subnet_ipam': [{'subnet_cidr': '167.50.175.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3628:67f:3dad:9ee9:9647:b206::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-15 17:21:32,267 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-05-15 17:21:32,566 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-05-15 17:21:32,597 - DEBUG - Requesting: http://10.0.0.33:8082/domain/73d90680-ed4e-44c1-86de-f6277c11dafe 2026-05-15 17:21:32,609 - DEBUG - Requesting: http://10.0.0.33:8082/project/d4b90e35-06c5-4ff0-95ec-399e9ab35baa 2026-05-15 17:21:32,679 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/d1203a10-df2b-4a40-92e7-65daba94a1f5 2026-05-15 17:21:32,691 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/d1203a10-df2b-4a40-92e7-65daba94a1f5 2026-05-15 17:21:32,701 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/bb6fda7e-856c-48bf-9407-4edd7da93508 2026-05-15 17:21:32,708 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/bb6fda7e-856c-48bf-9407-4edd7da93508 2026-05-15 17:21:32,714 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/221bfd88-27f1-4cac-b2a5-c580004e7d04 2026-05-15 17:21:32,721 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-15 17:21:32,721 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/d1203a10-df2b-4a40-92e7-65daba94a1f5 2026-05-15 17:21:32,731 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/bb6fda7e-856c-48bf-9407-4edd7da93508 2026-05-15 17:21:32,745 - INFO - Verified VN network id 10 for VN d1203a10-df2b-4a40-92e7-65daba94a1f5 2026-05-15 17:21:32,745 - INFO - Verifications in API Server for VN ctest-vn4-21828406 passed 2026-05-15 17:21:32,745 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/d1203a10-df2b-4a40-92e7-65daba94a1f5 2026-05-15 17:21:32,755 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/bb6fda7e-856c-48bf-9407-4edd7da93508 2026-05-15 17:21:32,762 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/bb6fda7e-856c-48bf-9407-4edd7da93508 2026-05-15 17:21:32,769 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/221bfd88-27f1-4cac-b2a5-c580004e7d04 2026-05-15 17:21:32,780 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95603611:ctest-vn4-21828406', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-95603611', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15069108197319723584', 'uuid-lslong': '10585541439265219061'}, 'enable': 'true', 'created': '2026-05-15T17:21:31', 'last-modified': '2026-05-15T17:21:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.722060'} 2026-05-15 17:21:32,787 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-15 17:21:32,787 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-21828406 passed 2026-05-15 17:21:32,787 - DEBUG - ====Verifying policy data for ctest-vn4-21828406 in API_Server ====== 2026-05-15 17:21:32,787 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-05-15 17:21:32,794 - DEBUG - Requesting: http://10.0.0.33:8082/domain/73d90680-ed4e-44c1-86de-f6277c11dafe 2026-05-15 17:21:32,806 - DEBUG - Requesting: http://10.0.0.33:8082/project/d4b90e35-06c5-4ff0-95ec-399e9ab35baa 2026-05-15 17:21:32,890 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/d1203a10-df2b-4a40-92e7-65daba94a1f5 2026-05-15 17:21:32,899 - DEBUG - ==>Verifying data for policy with id: 24f78bb5-d831-44a9-9d2f-3c3d12723777, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95603611', 'ctest-policy1-45692284'] 2026-05-15 17:21:32,899 - INFO - VN ctest-vn4-21828406 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-15 17:21:32,899 - DEBUG - Verifying the vn in opserver 2026-05-15 17:21:32,899 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95603611:ctest-vn4-21828406 virtual network link through opserver 10.0.0.33 2026-05-15 17:21:32,899 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-05-15 17:21:33,192 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-05-15 17:21:33,259 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95603611:ctest-vn4-21828406', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95603611:ctest-vn4-21828406?flat'} 2026-05-15 17:21:33,259 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95603611:ctest-vn4-21828406 is found in opserver 2026-05-15 17:21:33,269 - DEBUG - Do not have enough data to verify VN in agent 2026-05-15 17:21:33,273 - DEBUG - VRF ids for VN ctest-vn4-21828406: {} 2026-05-15 17:21:33,273 - DEBUG - ====Verifying data for ctest-policy1-45692284 in API_Server ====== 2026-05-15 17:21:33,273 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-05-15 17:21:33,279 - DEBUG - Requesting: http://10.0.0.33:8082/domain/73d90680-ed4e-44c1-86de-f6277c11dafe 2026-05-15 17:21:33,290 - DEBUG - Requesting: http://10.0.0.33:8082/project/d4b90e35-06c5-4ff0-95ec-399e9ab35baa 2026-05-15 17:21:33,365 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/24f78bb5-d831-44a9-9d2f-3c3d12723777 2026-05-15 17:21:33,373 - INFO - Verified policy ctest-policy1-45692284 in API Server, Result: True 2026-05-15 17:21:33,373 - INFO - Done with setup and verification, moving onto test .. 2026-05-15 17:21:33,381 - INFO - Deleting VN ctest-vn4-21828406 2026-05-15 17:21:33,507 - DEBUG - Response for deleting network () 2026-05-15 17:21:33,507 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/bb6fda7e-856c-48bf-9407-4edd7da93508 2026-05-15 17:21:33,513 - DEBUG - Response Code: 404 2026-05-15 17:21:33,513 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-05-15 17:21:33,518 - DEBUG - Requesting: http://10.0.0.33:8082/domain/73d90680-ed4e-44c1-86de-f6277c11dafe 2026-05-15 17:21:33,572 - DEBUG - Requesting: http://10.0.0.33:8082/project/d4b90e35-06c5-4ff0-95ec-399e9ab35baa 2026-05-15 17:21:33,647 - INFO - Validated that VN ctest-vn4-21828406 is not found in API Server 2026-05-15 17:21:33,657 - DEBUG - VN ctest-vn4-21828406 is not present in Agent 10.0.0.33 2026-05-15 17:21:33,658 - INFO - Validated that VN ctest-vn4-21828406 is not in any agent 2026-05-15 17:21:33,673 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-21828406 info 2026-05-15 17:21:33,708 - INFO - Deleted policy ctest-policy1-45692284 2026-05-15 17:21:33,871 - DEBUG - policy ctest-policy1-45692284 is not found in API Server 2026-05-15 17:21:34,133 - DEBUG - No XMPP flaps were noticed during the test 2026-05-15 17:21:34,133 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-05-15 17:21:34,133 - INFO - -------------------------------------------------------------------------------- 2026-05-15 17:21:34,421 - DEBUG - No XMPP flaps were noticed during the test 2026-05-15 17:21:34,421 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-05-15 17:21:34,422 - INFO - -------------------------------------------------------------------------------- 2026-05-15 17:21:35,106 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-95603611, ID : d4b90e35-06c5-4ff0-95ec-399e9ab35baa