2026-09-30 13:29:57,898 - INFO - Domain Default found not creating 2026-09-30 13:29:58,087 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-06649406 not found, creating it 2026-09-30 13:29:58,623 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-06649406, ID : df7881ad-7346-4f1c-bb4f-307141fd215e 2026-09-30 13:30:00,433 - INFO - ================================================================================ 2026-09-30 13:30:00,433 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-30 13:30:00,709 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.25': '0'}} with 2026-09-30 13:30:00,709 - INFO - Initial checks done. Running the testcase now 2026-09-30 13:30:00,709 - INFO - 2026-09-30 13:30:00,709 - INFO - ================================================================================ 2026-09-30 13:30:00,709 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-30 13:30:00,709 - 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-30 13:30:01,004 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.25': '0'}} with 2026-09-30 13:30:01,004 - INFO - Initial checks done. Running the testcase now 2026-09-30 13:30:01,005 - INFO - 2026-09-30 13:30:01,459 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06649406:ctest-vn4-16093970, 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-06649406:ctest-vn4-16093970, 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-06649406:ctest-vn4-16093970, 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-06649406:ctest-vn4-16093970, 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-30 13:30:02,038 - DEBUG - Response for create_network : {'network': {'id': '4d1dc078-854c-4dcf-95a4-99284c710cba', 'name': 'ctest-vn4-16093970', 'tenant_id': 'df7881ad73464f1cbb4f307141fd215e', 'project_id': 'df7881ad73464f1cbb4f307141fd215e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06649406', 'ctest-vn4-16093970'], 'port_security_enabled': True, 'description': ''}} 2026-09-30 13:30:02,256 - DEBUG - Response for create_subnet : {'subnet': {'id': '14ea7ccd-7777-4d7e-a520-57ca4c12a391', 'name': '', 'tenant_id': 'df7881ad73464f1cbb4f307141fd215e', 'network_id': '4d1dc078-854c-4dcf-95a4-99284c710cba', 'ip_version': 4, 'cidr': '168.143.77.64/26', 'allocation_pools': [{'start': '168.143.77.66', 'end': '168.143.77.126'}], 'gateway_ip': '168.143.77.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '168.143.77.66', 'tags': [], 'project_id': 'df7881ad73464f1cbb4f307141fd215e'}} 2026-09-30 13:30:02,503 - DEBUG - Response for create_subnet : {'subnet': {'id': '72023c59-3b44-4514-9802-89a7f5cf79c5', 'name': '', 'tenant_id': 'df7881ad73464f1cbb4f307141fd215e', 'network_id': '4d1dc078-854c-4dcf-95a4-99284c710cba', 'ip_version': 6, 'cidr': '2414:8b01:4ec6:713f:1b2c:e163::/96', 'allocation_pools': [{'start': '2414:8b01:4ec6:713f:1b2c:e163:0:2', 'end': '2414:8b01:4ec6:713f:1b2c:e163:ffff:fffe'}], 'gateway_ip': '2414:8b01:4ec6:713f:1b2c:e163:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2414:8b01:4ec6:713f:1b2c:e163:0:2', 'tags': [], 'project_id': 'df7881ad73464f1cbb4f307141fd215e'}} 2026-09-30 13:30:02,525 - INFO - Created VN ctest-vn4-16093970 2026-09-30 13:30:02,579 - DEBUG - VN ctest-vn4-16093970 UUID is 4d1dc078-854c-4dcf-95a4-99284c710cba 2026-09-30 13:30:02,827 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4d1dc078-854c-4dcf-95a4-99284c710cba', 'name': 'ctest-vn4-16093970', 'tenant_id': 'df7881ad73464f1cbb4f307141fd215e', 'project_id': 'df7881ad73464f1cbb4f307141fd215e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['14ea7ccd-7777-4d7e-a520-57ca4c12a391', '72023c59-3b44-4514-9802-89a7f5cf79c5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06649406', 'ctest-vn4-16093970'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06649406', 'ctest-policy1-74229678']], 'subnet_ipam': [{'subnet_cidr': '168.143.77.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2414:8b01:4ec6:713f:1b2c:e163::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-30 13:30:02,995 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-09-30 13:30:03,380 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-09-30 13:30:03,417 - DEBUG - Requesting: http://10.0.0.33:8082/domain/0431b643-207a-45d3-8ba3-28f8daa797b9 2026-09-30 13:30:03,438 - DEBUG - Requesting: http://10.0.0.33:8082/project/df7881ad-7346-4f1c-bb4f-307141fd215e 2026-09-30 13:30:03,523 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/4d1dc078-854c-4dcf-95a4-99284c710cba 2026-09-30 13:30:03,537 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/4d1dc078-854c-4dcf-95a4-99284c710cba 2026-09-30 13:30:03,551 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/71872cbc-265b-4862-a05d-776ed4eeefcb 2026-09-30 13:30:03,560 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/71872cbc-265b-4862-a05d-776ed4eeefcb 2026-09-30 13:30:03,569 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/83e5abfb-8dfc-4eb6-a200-7af9c4642c9f 2026-09-30 13:30:03,578 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-30 13:30:03,579 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/4d1dc078-854c-4dcf-95a4-99284c710cba 2026-09-30 13:30:03,592 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/71872cbc-265b-4862-a05d-776ed4eeefcb 2026-09-30 13:30:03,610 - INFO - Verified VN network id 12 for VN 4d1dc078-854c-4dcf-95a4-99284c710cba 2026-09-30 13:30:03,610 - INFO - Verifications in API Server for VN ctest-vn4-16093970 passed 2026-09-30 13:30:03,610 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/4d1dc078-854c-4dcf-95a4-99284c710cba 2026-09-30 13:30:03,626 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/71872cbc-265b-4862-a05d-776ed4eeefcb 2026-09-30 13:30:03,635 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/71872cbc-265b-4862-a05d-776ed4eeefcb 2026-09-30 13:30:03,646 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/83e5abfb-8dfc-4eb6-a200-7af9c4642c9f 2026-09-30 13:30:03,664 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06649406:ctest-vn4-16093970', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-06649406', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5556809139110038991', 'uuid-lslong': '10782911806192028858'}, 'enable': 'true', 'created': '2026-09-30T13:30:01', 'last-modified': '2026-09-30T13:30:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.884698'} 2026-09-30 13:30:03,673 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-30 13:30:03,674 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-16093970 passed 2026-09-30 13:30:03,674 - DEBUG - ====Verifying policy data for ctest-vn4-16093970 in API_Server ====== 2026-09-30 13:30:03,674 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-09-30 13:30:03,681 - DEBUG - Requesting: http://10.0.0.33:8082/domain/0431b643-207a-45d3-8ba3-28f8daa797b9 2026-09-30 13:30:03,694 - DEBUG - Requesting: http://10.0.0.33:8082/project/df7881ad-7346-4f1c-bb4f-307141fd215e 2026-09-30 13:30:03,778 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/4d1dc078-854c-4dcf-95a4-99284c710cba 2026-09-30 13:30:03,792 - DEBUG - ==>Verifying data for policy with id: 8b69a168-7748-4f91-ad30-0fe6caba2f08, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06649406', 'ctest-policy1-74229678'] 2026-09-30 13:30:03,792 - INFO - VN ctest-vn4-16093970 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-30 13:30:03,792 - DEBUG - Verifying the vn in opserver 2026-09-30 13:30:03,792 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06649406:ctest-vn4-16093970 virtual network link through opserver 10.0.0.33 2026-09-30 13:30:03,793 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-09-30 13:30:04,170 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-09-30 13:30:04,243 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06649406:ctest-vn4-16093970', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06649406:ctest-vn4-16093970?flat'} 2026-09-30 13:30:04,243 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06649406:ctest-vn4-16093970 is found in opserver 2026-09-30 13:30:04,258 - DEBUG - Do not have enough data to verify VN in agent 2026-09-30 13:30:04,265 - DEBUG - VRF ids for VN ctest-vn4-16093970: {} 2026-09-30 13:30:04,265 - DEBUG - ====Verifying data for ctest-policy1-74229678 in API_Server ====== 2026-09-30 13:30:04,265 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-09-30 13:30:04,272 - DEBUG - Requesting: http://10.0.0.33:8082/domain/0431b643-207a-45d3-8ba3-28f8daa797b9 2026-09-30 13:30:04,287 - DEBUG - Requesting: http://10.0.0.33:8082/project/df7881ad-7346-4f1c-bb4f-307141fd215e 2026-09-30 13:30:04,381 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/8b69a168-7748-4f91-ad30-0fe6caba2f08 2026-09-30 13:30:04,394 - INFO - Verified policy ctest-policy1-74229678 in API Server, Result: True 2026-09-30 13:30:04,394 - INFO - Done with setup and verification, moving onto test .. 2026-09-30 13:30:04,411 - INFO - Deleting VN ctest-vn4-16093970 2026-09-30 13:30:04,597 - DEBUG - Response for deleting network () 2026-09-30 13:30:04,597 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/71872cbc-265b-4862-a05d-776ed4eeefcb 2026-09-30 13:30:04,604 - DEBUG - Response Code: 404 2026-09-30 13:30:04,604 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-09-30 13:30:04,611 - DEBUG - Requesting: http://10.0.0.33:8082/domain/0431b643-207a-45d3-8ba3-28f8daa797b9 2026-09-30 13:30:04,670 - DEBUG - Requesting: http://10.0.0.33:8082/project/df7881ad-7346-4f1c-bb4f-307141fd215e 2026-09-30 13:30:04,754 - INFO - Validated that VN ctest-vn4-16093970 is not found in API Server 2026-09-30 13:30:04,768 - DEBUG - VN ctest-vn4-16093970 is not present in Agent 10.0.0.33 2026-09-30 13:30:04,768 - INFO - Validated that VN ctest-vn4-16093970 is not in any agent 2026-09-30 13:30:04,787 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-16093970 info 2026-09-30 13:30:04,822 - INFO - Deleted policy ctest-policy1-74229678 2026-09-30 13:30:05,003 - DEBUG - policy ctest-policy1-74229678 is not found in API Server 2026-09-30 13:30:05,273 - DEBUG - No XMPP flaps were noticed during the test
2026-09-30 13:30:05,273 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-09-30 13:30:05,273 - INFO - -------------------------------------------------------------------------------- 2026-09-30 13:30:05,567 - DEBUG - No XMPP flaps were noticed during the test
2026-09-30 13:30:05,567 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-09-30 13:30:05,567 - INFO - -------------------------------------------------------------------------------- 2026-09-30 13:30:06,399 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-06649406, ID : df7881ad-7346-4f1c-bb4f-307141fd215e