2026-04-01 16:11:12,504 - INFO - Domain Default found not creating 2026-04-01 16:11:12,686 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-34037144 not found, creating it 2026-04-01 16:11:13,132 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-34037144, ID : d04f1090-0403-4f44-b6c9-968eb151c831 2026-04-01 16:11:14,679 - INFO - ================================================================================ 2026-04-01 16:11:14,679 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-01 16:11:14,943 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.254': '0'}} with 2026-04-01 16:11:14,943 - INFO - Initial checks done. Running the testcase now 2026-04-01 16:11:14,943 - INFO - 2026-04-01 16:11:14,943 - INFO - ================================================================================ 2026-04-01 16:11:14,943 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-01 16:11:14,943 - 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-04-01 16:11:15,230 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.254': '0'}} with 2026-04-01 16:11:15,230 - INFO - Initial checks done. Running the testcase now 2026-04-01 16:11:15,230 - INFO - 2026-04-01 16:11:15,603 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34037144:ctest-vn4-96788772, 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-34037144:ctest-vn4-96788772, 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-34037144:ctest-vn4-96788772, 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-34037144:ctest-vn4-96788772, 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-04-01 16:11:16,114 - DEBUG - Response for create_network : {'network': {'id': '715765da-d3dc-4d4f-9f66-48412aa92b94', 'name': 'ctest-vn4-96788772', 'tenant_id': 'd04f109004034f44b6c9968eb151c831', 'project_id': 'd04f109004034f44b6c9968eb151c831', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-34037144', 'ctest-vn4-96788772'], 'port_security_enabled': True, 'description': ''}} 2026-04-01 16:11:16,286 - DEBUG - Response for create_subnet : {'subnet': {'id': '61406b69-5f9d-49c0-aab1-25f58bfe3226', 'name': '', 'tenant_id': 'd04f109004034f44b6c9968eb151c831', 'network_id': '715765da-d3dc-4d4f-9f66-48412aa92b94', 'ip_version': 4, 'cidr': '99.12.203.128/26', 'allocation_pools': [{'start': '99.12.203.130', 'end': '99.12.203.190'}], 'gateway_ip': '99.12.203.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '99.12.203.130', 'tags': [], 'project_id': 'd04f109004034f44b6c9968eb151c831'}} 2026-04-01 16:11:16,464 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fc3f7638-280c-459e-94cc-298810dd3579', 'name': '', 'tenant_id': 'd04f109004034f44b6c9968eb151c831', 'network_id': '715765da-d3dc-4d4f-9f66-48412aa92b94', 'ip_version': 6, 'cidr': '341a:afaf:7b58:9e92:ad2f:543b::/96', 'allocation_pools': [{'start': '341a:afaf:7b58:9e92:ad2f:543b:0:2', 'end': '341a:afaf:7b58:9e92:ad2f:543b:ffff:fffe'}], 'gateway_ip': '341a:afaf:7b58:9e92:ad2f:543b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '341a:afaf:7b58:9e92:ad2f:543b:0:2', 'tags': [], 'project_id': 'd04f109004034f44b6c9968eb151c831'}} 2026-04-01 16:11:16,484 - INFO - Created VN ctest-vn4-96788772 2026-04-01 16:11:16,537 - DEBUG - VN ctest-vn4-96788772 UUID is 715765da-d3dc-4d4f-9f66-48412aa92b94 2026-04-01 16:11:16,736 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '715765da-d3dc-4d4f-9f66-48412aa92b94', 'name': 'ctest-vn4-96788772', 'tenant_id': 'd04f109004034f44b6c9968eb151c831', 'project_id': 'd04f109004034f44b6c9968eb151c831', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['61406b69-5f9d-49c0-aab1-25f58bfe3226', 'fc3f7638-280c-459e-94cc-298810dd3579'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-34037144', 'ctest-vn4-96788772'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-34037144', 'ctest-policy1-90399081']], 'subnet_ipam': [{'subnet_cidr': '99.12.203.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '341a:afaf:7b58:9e92:ad2f:543b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-01 16:11:16,897 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-04-01 16:11:17,205 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-04-01 16:11:17,241 - DEBUG - Requesting: http://10.0.0.241:8082/domain/07cba0db-e356-4ae3-86e6-afdec7545eab 2026-04-01 16:11:17,254 - DEBUG - Requesting: http://10.0.0.241:8082/project/d04f1090-0403-4f44-b6c9-968eb151c831 2026-04-01 16:11:17,336 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/715765da-d3dc-4d4f-9f66-48412aa92b94 2026-04-01 16:11:17,351 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/715765da-d3dc-4d4f-9f66-48412aa92b94 2026-04-01 16:11:17,363 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/2126289b-f0ac-415a-8f27-352a4e6c4b2d 2026-04-01 16:11:17,372 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/2126289b-f0ac-415a-8f27-352a4e6c4b2d 2026-04-01 16:11:17,381 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/60260c54-3a2a-4a12-a484-0b23fe7c02c9 2026-04-01 16:11:17,389 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-01 16:11:17,389 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/715765da-d3dc-4d4f-9f66-48412aa92b94 2026-04-01 16:11:17,400 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/2126289b-f0ac-415a-8f27-352a4e6c4b2d 2026-04-01 16:11:17,414 - INFO - Verified VN network id 11 for VN 715765da-d3dc-4d4f-9f66-48412aa92b94 2026-04-01 16:11:17,414 - INFO - Verifications in API Server for VN ctest-vn4-96788772 passed 2026-04-01 16:11:17,415 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/715765da-d3dc-4d4f-9f66-48412aa92b94 2026-04-01 16:11:17,423 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/2126289b-f0ac-415a-8f27-352a4e6c4b2d 2026-04-01 16:11:17,433 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/2126289b-f0ac-415a-8f27-352a4e6c4b2d 2026-04-01 16:11:17,440 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/60260c54-3a2a-4a12-a484-0b23fe7c02c9 2026-04-01 16:11:17,451 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34037144:ctest-vn4-96788772', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-34037144', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8167108439791390031', 'uuid-lslong': '11485947344380832660'}, 'enable': 'true', 'created': '2026-04-01T16:11:16', 'last-modified': '2026-04-01T16:11:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.737075'} 2026-04-01 16:11:17,458 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-01 16:11:17,458 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-96788772 passed 2026-04-01 16:11:17,458 - DEBUG - ====Verifying policy data for ctest-vn4-96788772 in API_Server ====== 2026-04-01 16:11:17,458 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-04-01 16:11:17,463 - DEBUG - Requesting: http://10.0.0.241:8082/domain/07cba0db-e356-4ae3-86e6-afdec7545eab 2026-04-01 16:11:17,475 - DEBUG - Requesting: http://10.0.0.241:8082/project/d04f1090-0403-4f44-b6c9-968eb151c831 2026-04-01 16:11:17,547 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/715765da-d3dc-4d4f-9f66-48412aa92b94 2026-04-01 16:11:17,557 - DEBUG - ==>Verifying data for policy with id: 69eddf6e-24b2-4766-88eb-5100cd826cf5, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-34037144', 'ctest-policy1-90399081'] 2026-04-01 16:11:17,557 - INFO - VN ctest-vn4-96788772 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-01 16:11:17,558 - DEBUG - Verifying the vn in opserver 2026-04-01 16:11:17,558 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34037144:ctest-vn4-96788772 virtual network link through opserver 10.0.0.241 2026-04-01 16:11:17,558 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks 2026-04-01 16:11:17,867 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks 2026-04-01 16:11:17,935 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34037144:ctest-vn4-96788772', 'href': 'http://10.0.0.241:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34037144:ctest-vn4-96788772?flat'} 2026-04-01 16:11:17,935 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34037144:ctest-vn4-96788772 is found in opserver 2026-04-01 16:11:17,944 - DEBUG - Do not have enough data to verify VN in agent 2026-04-01 16:11:17,949 - DEBUG - VRF ids for VN ctest-vn4-96788772: {} 2026-04-01 16:11:17,950 - DEBUG - ====Verifying data for ctest-policy1-90399081 in API_Server ====== 2026-04-01 16:11:17,950 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-04-01 16:11:17,956 - DEBUG - Requesting: http://10.0.0.241:8082/domain/07cba0db-e356-4ae3-86e6-afdec7545eab 2026-04-01 16:11:17,969 - DEBUG - Requesting: http://10.0.0.241:8082/project/d04f1090-0403-4f44-b6c9-968eb151c831 2026-04-01 16:11:18,051 - DEBUG - Requesting: http://10.0.0.241:8082/network-policy/69eddf6e-24b2-4766-88eb-5100cd826cf5 2026-04-01 16:11:18,064 - INFO - Verified policy ctest-policy1-90399081 in API Server, Result: True 2026-04-01 16:11:18,064 - INFO - Done with setup and verification, moving onto test .. 2026-04-01 16:11:18,072 - INFO - Deleting VN ctest-vn4-96788772 2026-04-01 16:11:18,194 - DEBUG - Response for deleting network () 2026-04-01 16:11:18,194 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/2126289b-f0ac-415a-8f27-352a4e6c4b2d 2026-04-01 16:11:18,200 - DEBUG - Response Code: 404 2026-04-01 16:11:18,200 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-04-01 16:11:18,208 - DEBUG - Requesting: http://10.0.0.241:8082/domain/07cba0db-e356-4ae3-86e6-afdec7545eab 2026-04-01 16:11:18,262 - DEBUG - Requesting: http://10.0.0.241:8082/project/d04f1090-0403-4f44-b6c9-968eb151c831 2026-04-01 16:11:18,334 - INFO - Validated that VN ctest-vn4-96788772 is not found in API Server 2026-04-01 16:11:18,343 - DEBUG - VN ctest-vn4-96788772 is not present in Agent 10.0.0.241 2026-04-01 16:11:18,343 - INFO - Validated that VN ctest-vn4-96788772 is not in any agent 2026-04-01 16:11:18,357 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-96788772 info 2026-04-01 16:11:18,382 - INFO - Deleted policy ctest-policy1-90399081 2026-04-01 16:11:18,545 - DEBUG - policy ctest-policy1-90399081 is not found in API Server 2026-04-01 16:11:18,802 - DEBUG - No XMPP flaps were noticed during the test
2026-04-01 16:11:18,802 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-04-01 16:11:18,802 - INFO - -------------------------------------------------------------------------------- 2026-04-01 16:11:19,094 - DEBUG - No XMPP flaps were noticed during the test
2026-04-01 16:11:19,094 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-04-01 16:11:19,094 - INFO - -------------------------------------------------------------------------------- 2026-04-01 16:11:19,794 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-34037144, ID : d04f1090-0403-4f44-b6c9-968eb151c831