2026-10-29 22:19:04,406 - INFO - Domain Default found not creating 2026-10-29 22:19:04,661 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-29457994 not found, creating it 2026-10-29 22:19:05,234 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-29457994, ID : de511aad-1a84-4119-a0c4-1b339d9c4642 2026-10-29 22:19:07,272 - INFO - ================================================================================ 2026-10-29 22:19:07,272 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-29 22:19:07,557 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.29': '0'}} with 2026-10-29 22:19:07,557 - INFO - Initial checks done. Running the testcase now 2026-10-29 22:19:07,557 - INFO - 2026-10-29 22:19:07,557 - INFO - ================================================================================ 2026-10-29 22:19:07,557 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-29 22:19:07,557 - 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-10-29 22:19:07,862 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.29': '0'}} with 2026-10-29 22:19:07,863 - INFO - Initial checks done. Running the testcase now 2026-10-29 22:19:07,863 - INFO - 2026-10-29 22:19:08,329 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29457994:ctest-vn4-15909572, 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-29457994:ctest-vn4-15909572, 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-29457994:ctest-vn4-15909572, 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-29457994:ctest-vn4-15909572, 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-10-29 22:19:08,907 - DEBUG - Response for create_network : {'network': {'id': '8313a382-78a2-4d73-b46d-724d3fc29ac7', 'name': 'ctest-vn4-15909572', 'tenant_id': 'de511aad1a844119a0c41b339d9c4642', 'project_id': 'de511aad1a844119a0c41b339d9c4642', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29457994', 'ctest-vn4-15909572'], 'port_security_enabled': True, 'description': ''}} 2026-10-29 22:19:09,113 - DEBUG - Response for create_subnet : {'subnet': {'id': '4c583e5d-633f-4527-b58c-e23fa6ab5203', 'name': '', 'tenant_id': 'de511aad1a844119a0c41b339d9c4642', 'network_id': '8313a382-78a2-4d73-b46d-724d3fc29ac7', 'ip_version': 4, 'cidr': '134.15.81.192/26', 'allocation_pools': [{'start': '134.15.81.194', 'end': '134.15.81.254'}], 'gateway_ip': '134.15.81.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '134.15.81.194', 'tags': [], 'project_id': 'de511aad1a844119a0c41b339d9c4642'}} 2026-10-29 22:19:09,326 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bd9fc167-c055-438b-8e24-4216b3468a54', 'name': '', 'tenant_id': 'de511aad1a844119a0c41b339d9c4642', 'network_id': '8313a382-78a2-4d73-b46d-724d3fc29ac7', 'ip_version': 6, 'cidr': '3415:2a85:c2:7e3:4437:b822::/96', 'allocation_pools': [{'start': '3415:2a85:c2:7e3:4437:b822:0:2', 'end': '3415:2a85:c2:7e3:4437:b822:ffff:fffe'}], 'gateway_ip': '3415:2a85:c2:7e3:4437:b822:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3415:2a85:c2:7e3:4437:b822:0:2', 'tags': [], 'project_id': 'de511aad1a844119a0c41b339d9c4642'}} 2026-10-29 22:19:09,351 - INFO - Created VN ctest-vn4-15909572 2026-10-29 22:19:09,406 - DEBUG - VN ctest-vn4-15909572 UUID is 8313a382-78a2-4d73-b46d-724d3fc29ac7 2026-10-29 22:19:09,655 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8313a382-78a2-4d73-b46d-724d3fc29ac7', 'name': 'ctest-vn4-15909572', 'tenant_id': 'de511aad1a844119a0c41b339d9c4642', 'project_id': 'de511aad1a844119a0c41b339d9c4642', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['4c583e5d-633f-4527-b58c-e23fa6ab5203', 'bd9fc167-c055-438b-8e24-4216b3468a54'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29457994', 'ctest-vn4-15909572'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29457994', 'ctest-policy1-65290287']], 'subnet_ipam': [{'subnet_cidr': '134.15.81.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3415:2a85:c2:7e3:4437:b822::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-10-29 22:19:09,834 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-10-29 22:19:10,235 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-10-29 22:19:10,271 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e7701ae3-4f9a-4a48-b88d-70299ab9f79b 2026-10-29 22:19:10,285 - DEBUG - Requesting: http://10.0.0.33:8082/project/de511aad-1a84-4119-a0c4-1b339d9c4642 2026-10-29 22:19:10,365 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/8313a382-78a2-4d73-b46d-724d3fc29ac7 2026-10-29 22:19:10,381 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/8313a382-78a2-4d73-b46d-724d3fc29ac7 2026-10-29 22:19:10,393 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/be92bab4-afff-422f-a9a0-07df0fe236d1 2026-10-29 22:19:10,402 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/be92bab4-afff-422f-a9a0-07df0fe236d1 2026-10-29 22:19:10,412 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/0017a150-e45a-4c8a-83d3-3ee422136766 2026-10-29 22:19:10,422 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-29 22:19:10,423 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/8313a382-78a2-4d73-b46d-724d3fc29ac7 2026-10-29 22:19:10,436 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/be92bab4-afff-422f-a9a0-07df0fe236d1 2026-10-29 22:19:10,457 - INFO - Verified VN network id 12 for VN 8313a382-78a2-4d73-b46d-724d3fc29ac7 2026-10-29 22:19:10,457 - INFO - Verifications in API Server for VN ctest-vn4-15909572 passed 2026-10-29 22:19:10,457 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/8313a382-78a2-4d73-b46d-724d3fc29ac7 2026-10-29 22:19:10,468 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/be92bab4-afff-422f-a9a0-07df0fe236d1 2026-10-29 22:19:10,476 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/be92bab4-afff-422f-a9a0-07df0fe236d1 2026-10-29 22:19:10,483 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/0017a150-e45a-4c8a-83d3-3ee422136766 2026-10-29 22:19:10,497 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29457994:ctest-vn4-15909572', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-29457994', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9445072624291040627', 'uuid-lslong': '13001173375396256455'}, 'enable': 'true', 'created': '2026-10-29T22:19:08', 'last-modified': '2026-10-29T22:19:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.884658'} 2026-10-29 22:19:10,508 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-29 22:19:10,508 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-15909572 passed 2026-10-29 22:19:10,508 - DEBUG - ====Verifying policy data for ctest-vn4-15909572 in API_Server ====== 2026-10-29 22:19:10,508 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-10-29 22:19:10,517 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e7701ae3-4f9a-4a48-b88d-70299ab9f79b 2026-10-29 22:19:10,535 - DEBUG - Requesting: http://10.0.0.33:8082/project/de511aad-1a84-4119-a0c4-1b339d9c4642 2026-10-29 22:19:10,617 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/8313a382-78a2-4d73-b46d-724d3fc29ac7 2026-10-29 22:19:10,631 - DEBUG - ==>Verifying data for policy with id: bddfbfc4-3fbf-4b09-b87a-bfbbad98e119, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29457994', 'ctest-policy1-65290287'] 2026-10-29 22:19:10,631 - INFO - VN ctest-vn4-15909572 Policy verification: verify_vn_policy_in_api_server, status: True 2026-10-29 22:19:10,631 - DEBUG - Verifying the vn in opserver 2026-10-29 22:19:10,631 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29457994:ctest-vn4-15909572 virtual network link through opserver 10.0.0.33 2026-10-29 22:19:10,632 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-10-29 22:19:11,031 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-10-29 22:19:11,097 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29457994:ctest-vn4-15909572', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29457994:ctest-vn4-15909572?flat'} 2026-10-29 22:19:11,097 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29457994:ctest-vn4-15909572 is found in opserver 2026-10-29 22:19:11,114 - DEBUG - Do not have enough data to verify VN in agent 2026-10-29 22:19:11,121 - DEBUG - VRF ids for VN ctest-vn4-15909572: {} 2026-10-29 22:19:11,122 - DEBUG - ====Verifying data for ctest-policy1-65290287 in API_Server ====== 2026-10-29 22:19:11,122 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-10-29 22:19:11,131 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e7701ae3-4f9a-4a48-b88d-70299ab9f79b 2026-10-29 22:19:11,149 - DEBUG - Requesting: http://10.0.0.33:8082/project/de511aad-1a84-4119-a0c4-1b339d9c4642 2026-10-29 22:19:11,232 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/bddfbfc4-3fbf-4b09-b87a-bfbbad98e119 2026-10-29 22:19:11,248 - INFO - Verified policy ctest-policy1-65290287 in API Server, Result: True 2026-10-29 22:19:11,248 - INFO - Done with setup and verification, moving onto test .. 2026-10-29 22:19:11,260 - INFO - Deleting VN ctest-vn4-15909572 2026-10-29 22:19:11,432 - DEBUG - Response for deleting network () 2026-10-29 22:19:11,432 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/be92bab4-afff-422f-a9a0-07df0fe236d1 2026-10-29 22:19:11,441 - DEBUG - Response Code: 404 2026-10-29 22:19:11,441 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-10-29 22:19:11,449 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e7701ae3-4f9a-4a48-b88d-70299ab9f79b 2026-10-29 22:19:11,509 - DEBUG - Requesting: http://10.0.0.33:8082/project/de511aad-1a84-4119-a0c4-1b339d9c4642 2026-10-29 22:19:11,591 - INFO - Validated that VN ctest-vn4-15909572 is not found in API Server 2026-10-29 22:19:11,603 - DEBUG - VN ctest-vn4-15909572 is not present in Agent 10.0.0.33 2026-10-29 22:19:11,603 - INFO - Validated that VN ctest-vn4-15909572 is not in any agent 2026-10-29 22:19:11,628 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-15909572 info 2026-10-29 22:19:11,664 - INFO - Deleted policy ctest-policy1-65290287 2026-10-29 22:19:11,849 - DEBUG - policy ctest-policy1-65290287 is not found in API Server 2026-10-29 22:19:12,121 - DEBUG - No XMPP flaps were noticed during the test
2026-10-29 22:19:12,121 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-10-29 22:19:12,121 - INFO - -------------------------------------------------------------------------------- 2026-10-29 22:19:12,416 - DEBUG - No XMPP flaps were noticed during the test
2026-10-29 22:19:12,416 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-10-29 22:19:12,417 - INFO - -------------------------------------------------------------------------------- 2026-10-29 22:19:13,257 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-29457994, ID : de511aad-1a84-4119-a0c4-1b339d9c4642