2026-09-17 17:21:46,263 - INFO - Domain Default found not creating 2026-09-17 17:21:46,429 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-00437965 not found, creating it 2026-09-17 17:21:46,936 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-00437965, ID : 910960f1-b60d-41d6-b631-8c7e95510fda 2026-09-17 17:21:48,669 - INFO - ================================================================================ 2026-09-17 17:21:48,669 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-17 17:21:48,942 - DEBUG - Nothing to compare xmpp stats {'10.0.0.176': {'10.20.0.25': '0'}} with 2026-09-17 17:21:48,942 - INFO - Initial checks done. Running the testcase now 2026-09-17 17:21:48,942 - INFO - 2026-09-17 17:21:48,942 - INFO - ================================================================================ 2026-09-17 17:21:48,942 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-17 17:21:48,942 - 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-09-17 17:21:49,237 - DEBUG - Nothing to compare xmpp stats {'10.0.0.176': {'10.20.0.25': '0'}} with 2026-09-17 17:21:49,237 - INFO - Initial checks done. Running the testcase now 2026-09-17 17:21:49,237 - INFO - 2026-09-17 17:21:49,676 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00437965:ctest-vn4-17428463, 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-00437965:ctest-vn4-17428463, 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-00437965:ctest-vn4-17428463, 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-00437965:ctest-vn4-17428463, 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-09-17 17:21:50,242 - DEBUG - Response for create_network : {'network': {'id': 'f4280007-182c-4f2e-917b-51a01144b05b', 'name': 'ctest-vn4-17428463', 'tenant_id': '910960f1b60d41d6b6318c7e95510fda', 'project_id': '910960f1b60d41d6b6318c7e95510fda', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-00437965', 'ctest-vn4-17428463'], 'port_security_enabled': True, 'description': ''}} 2026-09-17 17:21:50,429 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b1086915-fd03-4eed-958a-a9d6070c3455', 'name': '', 'tenant_id': '910960f1b60d41d6b6318c7e95510fda', 'network_id': 'f4280007-182c-4f2e-917b-51a01144b05b', 'ip_version': 4, 'cidr': '188.108.76.128/26', 'allocation_pools': [{'start': '188.108.76.130', 'end': '188.108.76.190'}], 'gateway_ip': '188.108.76.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '188.108.76.130', 'tags': [], 'project_id': '910960f1b60d41d6b6318c7e95510fda'}} 2026-09-17 17:21:50,588 - DEBUG - Response for create_subnet : {'subnet': {'id': '290132f6-9a48-4c12-bfdd-8004307d28f4', 'name': '', 'tenant_id': '910960f1b60d41d6b6318c7e95510fda', 'network_id': 'f4280007-182c-4f2e-917b-51a01144b05b', 'ip_version': 6, 'cidr': '32ee:b788:5cb2:8546:61ab:521::/96', 'allocation_pools': [{'start': '32ee:b788:5cb2:8546:61ab:521:0:2', 'end': '32ee:b788:5cb2:8546:61ab:521:ffff:fffe'}], 'gateway_ip': '32ee:b788:5cb2:8546:61ab:521:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '32ee:b788:5cb2:8546:61ab:521:0:2', 'tags': [], 'project_id': '910960f1b60d41d6b6318c7e95510fda'}} 2026-09-17 17:21:50,613 - INFO - Created VN ctest-vn4-17428463 2026-09-17 17:21:50,674 - DEBUG - VN ctest-vn4-17428463 UUID is f4280007-182c-4f2e-917b-51a01144b05b 2026-09-17 17:21:50,906 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f4280007-182c-4f2e-917b-51a01144b05b', 'name': 'ctest-vn4-17428463', 'tenant_id': '910960f1b60d41d6b6318c7e95510fda', 'project_id': '910960f1b60d41d6b6318c7e95510fda', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['b1086915-fd03-4eed-958a-a9d6070c3455', '290132f6-9a48-4c12-bfdd-8004307d28f4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-00437965', 'ctest-vn4-17428463'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-00437965', 'ctest-policy1-87163562']], 'subnet_ipam': [{'subnet_cidr': '188.108.76.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '32ee:b788:5cb2:8546:61ab:521::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-17 17:21:51,070 - DEBUG - Requesting: http://10.0.0.176:8082/domains 2026-09-17 17:21:51,438 - DEBUG - Requesting: http://10.0.0.176:8082/domains 2026-09-17 17:21:51,472 - DEBUG - Requesting: http://10.0.0.176:8082/domain/ca88d154-4617-4aa9-93a0-97f03c4498d2 2026-09-17 17:21:51,486 - DEBUG - Requesting: http://10.0.0.176:8082/project/910960f1-b60d-41d6-b631-8c7e95510fda 2026-09-17 17:21:51,566 - DEBUG - Requesting: http://10.0.0.176:8082/virtual-network/f4280007-182c-4f2e-917b-51a01144b05b 2026-09-17 17:21:51,580 - DEBUG - Requesting: http://10.0.0.176:8082/virtual-network/f4280007-182c-4f2e-917b-51a01144b05b 2026-09-17 17:21:51,592 - DEBUG - Requesting: http://10.0.0.176:8082/routing-instance/c7e01b7c-1ae7-4d6d-9def-eb4ff5b228a7 2026-09-17 17:21:51,601 - DEBUG - Requesting: http://10.0.0.176:8082/routing-instance/c7e01b7c-1ae7-4d6d-9def-eb4ff5b228a7 2026-09-17 17:21:51,610 - DEBUG - Requesting: http://10.0.0.176:8082/route-target/0488f37e-57f0-44e4-9594-4c11f08886fa 2026-09-17 17:21:51,618 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-17 17:21:51,618 - DEBUG - Requesting: http://10.0.0.176:8082/virtual-network/f4280007-182c-4f2e-917b-51a01144b05b 2026-09-17 17:21:51,630 - DEBUG - Requesting: http://10.0.0.176:8082/routing-instance/c7e01b7c-1ae7-4d6d-9def-eb4ff5b228a7 2026-09-17 17:21:51,650 - INFO - Verified VN network id 12 for VN f4280007-182c-4f2e-917b-51a01144b05b 2026-09-17 17:21:51,650 - INFO - Verifications in API Server for VN ctest-vn4-17428463 passed 2026-09-17 17:21:51,650 - DEBUG - Requesting: http://10.0.0.176:8082/virtual-network/f4280007-182c-4f2e-917b-51a01144b05b 2026-09-17 17:21:51,664 - DEBUG - Requesting: http://10.0.0.176:8082/routing-instance/c7e01b7c-1ae7-4d6d-9def-eb4ff5b228a7 2026-09-17 17:21:51,673 - DEBUG - Requesting: http://10.0.0.176:8082/routing-instance/c7e01b7c-1ae7-4d6d-9def-eb4ff5b228a7 2026-09-17 17:21:51,681 - DEBUG - Requesting: http://10.0.0.176:8082/route-target/0488f37e-57f0-44e4-9594-4c11f08886fa 2026-09-17 17:21:51,698 - DEBUG - Control-node 10.0.0.176 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00437965:ctest-vn4-17428463', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-00437965', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17593311974793170734', 'uuid-lslong': '10483062305561292891'}, 'enable': 'true', 'created': '2026-09-17T17:21:50', 'last-modified': '2026-09-17T17:21:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.835660'} 2026-09-17 17:21:51,705 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-17 17:21:51,705 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-17428463 passed 2026-09-17 17:21:51,705 - DEBUG - ====Verifying policy data for ctest-vn4-17428463 in API_Server ====== 2026-09-17 17:21:51,705 - DEBUG - Requesting: http://10.0.0.176:8082/domains 2026-09-17 17:21:51,712 - DEBUG - Requesting: http://10.0.0.176:8082/domain/ca88d154-4617-4aa9-93a0-97f03c4498d2 2026-09-17 17:21:51,725 - DEBUG - Requesting: http://10.0.0.176:8082/project/910960f1-b60d-41d6-b631-8c7e95510fda 2026-09-17 17:21:51,810 - DEBUG - Requesting: http://10.0.0.176:8082/virtual-network/f4280007-182c-4f2e-917b-51a01144b05b 2026-09-17 17:21:51,821 - DEBUG - ==>Verifying data for policy with id: 1405d6d5-0cdd-4a90-a30f-f3a390c63172, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-00437965', 'ctest-policy1-87163562'] 2026-09-17 17:21:51,821 - INFO - VN ctest-vn4-17428463 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-17 17:21:51,821 - DEBUG - Verifying the vn in opserver 2026-09-17 17:21:51,821 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00437965:ctest-vn4-17428463 virtual network link through opserver 10.0.0.176 2026-09-17 17:21:51,821 - DEBUG - Requesting: http://10.0.0.176:8081/analytics/uves/virtual-networks 2026-09-17 17:21:52,186 - DEBUG - Requesting: http://10.0.0.176:8081/analytics/uves/virtual-networks 2026-09-17 17:21:52,249 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00437965:ctest-vn4-17428463', 'href': 'http://10.0.0.176:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00437965:ctest-vn4-17428463?flat'} 2026-09-17 17:21:52,249 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00437965:ctest-vn4-17428463 is found in opserver 2026-09-17 17:21:52,260 - DEBUG - Do not have enough data to verify VN in agent 2026-09-17 17:21:52,267 - DEBUG - VRF ids for VN ctest-vn4-17428463: {} 2026-09-17 17:21:52,267 - DEBUG - ====Verifying data for ctest-policy1-87163562 in API_Server ====== 2026-09-17 17:21:52,268 - DEBUG - Requesting: http://10.0.0.176:8082/domains 2026-09-17 17:21:52,281 - DEBUG - Requesting: http://10.0.0.176:8082/domain/ca88d154-4617-4aa9-93a0-97f03c4498d2 2026-09-17 17:21:52,345 - DEBUG - Requesting: http://10.0.0.176:8082/project/910960f1-b60d-41d6-b631-8c7e95510fda 2026-09-17 17:21:52,430 - DEBUG - Requesting: http://10.0.0.176:8082/network-policy/1405d6d5-0cdd-4a90-a30f-f3a390c63172 2026-09-17 17:21:52,442 - INFO - Verified policy ctest-policy1-87163562 in API Server, Result: True 2026-09-17 17:21:52,443 - INFO - Done with setup and verification, moving onto test .. 2026-09-17 17:21:52,452 - INFO - Deleting VN ctest-vn4-17428463 2026-09-17 17:21:52,601 - DEBUG - Response for deleting network () 2026-09-17 17:21:52,601 - DEBUG - Requesting: http://10.0.0.176:8082/routing-instance/c7e01b7c-1ae7-4d6d-9def-eb4ff5b228a7 2026-09-17 17:21:52,608 - DEBUG - Response Code: 404 2026-09-17 17:21:52,608 - DEBUG - Requesting: http://10.0.0.176:8082/domains 2026-09-17 17:21:52,616 - DEBUG - Requesting: http://10.0.0.176:8082/domain/ca88d154-4617-4aa9-93a0-97f03c4498d2 2026-09-17 17:21:52,677 - DEBUG - Requesting: http://10.0.0.176:8082/project/910960f1-b60d-41d6-b631-8c7e95510fda 2026-09-17 17:21:52,763 - INFO - Validated that VN ctest-vn4-17428463 is not found in API Server 2026-09-17 17:21:52,775 - DEBUG - VN ctest-vn4-17428463 is not present in Agent 10.0.0.176 2026-09-17 17:21:52,776 - INFO - Validated that VN ctest-vn4-17428463 is not in any agent 2026-09-17 17:21:52,794 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-17428463 info 2026-09-17 17:21:52,823 - INFO - Deleted policy ctest-policy1-87163562 2026-09-17 17:21:53,002 - DEBUG - policy ctest-policy1-87163562 is not found in API Server 2026-09-17 17:21:53,260 - DEBUG - No XMPP flaps were noticed during the test
2026-09-17 17:21:53,260 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-09-17 17:21:53,260 - INFO - -------------------------------------------------------------------------------- 2026-09-17 17:21:53,563 - DEBUG - No XMPP flaps were noticed during the test
2026-09-17 17:21:53,563 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-09-17 17:21:53,563 - INFO - -------------------------------------------------------------------------------- 2026-09-17 17:21:54,378 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-00437965, ID : 910960f1-b60d-41d6-b631-8c7e95510fda