2026-03-19 02:13:04,564 - INFO - Reading existing Domain with UUID 935bc1a1-2451-4f6c-b0bc-2e43d3120885 2026-03-19 02:13:04,576 - INFO - Using existing domain ['admin_domain'](935bc1a1-2451-4f6c-b0bc-2e43d3120885) 2026-03-19 02:13:04,784 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-64807064 not found, creating it 2026-03-19 02:13:05,316 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-64807064, ID : df5fe5bf-9c6f-409c-a200-88af0cd8050b 2026-03-19 02:13:07,096 - INFO - ================================================================================ 2026-03-19 02:13:07,096 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-19 02:13:07,486 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.0.0.129': '0'}} with 2026-03-19 02:13:07,486 - INFO - Initial checks done. Running the testcase now 2026-03-19 02:13:07,486 - INFO - 2026-03-19 02:13:07,486 - INFO - ================================================================================ 2026-03-19 02:13:07,487 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-19 02:13:07,487 - 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-03-19 02:13:07,878 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.0.0.129': '0'}} with 2026-03-19 02:13:07,878 - INFO - Initial checks done. Running the testcase now 2026-03-19 02:13:07,878 - INFO - 2026-03-19 02:13:08,253 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-64807064:ctest-vn4-45566412, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-64807064:ctest-vn4-45566412, 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 = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-64807064:ctest-vn4-45566412, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-64807064:ctest-vn4-45566412, 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-03-19 02:13:08,970 - DEBUG - Response for create_network : {'network': {'id': '985976e4-354d-445c-93b6-1c63c4cf4d0f', 'name': 'ctest-vn4-45566412', 'tenant_id': 'df5fe5bf9c6f409ca20088af0cd8050b', 'project_id': 'df5fe5bf9c6f409ca20088af0cd8050b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-64807064', 'ctest-vn4-45566412'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2026-03-19 02:13:09,213 - DEBUG - Response for create_subnet : {'subnet': {'id': '960c62c9-cf81-4423-a99e-590ba809b0c9', 'name': '', 'tenant_id': 'df5fe5bf9c6f409ca20088af0cd8050b', 'network_id': '985976e4-354d-445c-93b6-1c63c4cf4d0f', 'ip_version': 4, 'cidr': '178.149.155.0/26', 'allocation_pools': [{'start': '178.149.155.2', 'end': '178.149.155.62'}], 'gateway_ip': '178.149.155.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-03-19T02:13:09.080967', 'updated_at': '2026-03-19T02:13:09.080967', 'dns_server_address': '178.149.155.2', 'tags': [], 'project_id': 'df5fe5bf9c6f409ca20088af0cd8050b'}} 2026-03-19 02:13:09,429 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c9528f60-68c8-499c-b502-6ee88bde59c3', 'name': '', 'tenant_id': 'df5fe5bf9c6f409ca20088af0cd8050b', 'network_id': '985976e4-354d-445c-93b6-1c63c4cf4d0f', 'ip_version': 6, 'cidr': '3141:567:814:3df6:2e92:fe2f::/96', 'allocation_pools': [{'start': '3141:567:814:3df6:2e92:fe2f:0:2', 'end': '3141:567:814:3df6:2e92:fe2f:ffff:fffe'}], 'gateway_ip': '3141:567:814:3df6:2e92:fe2f:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-03-19T02:13:09.325025', 'updated_at': '2026-03-19T02:13:09.325025', 'dns_server_address': '3141:567:814:3df6:2e92:fe2f:0:2', 'tags': [], 'project_id': 'df5fe5bf9c6f409ca20088af0cd8050b'}} 2026-03-19 02:13:09,495 - INFO - Created VN ctest-vn4-45566412 2026-03-19 02:13:09,549 - DEBUG - VN ctest-vn4-45566412 UUID is 985976e4-354d-445c-93b6-1c63c4cf4d0f 2026-03-19 02:13:10,005 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '985976e4-354d-445c-93b6-1c63c4cf4d0f', 'name': 'ctest-vn4-45566412', 'tenant_id': 'df5fe5bf9c6f409ca20088af0cd8050b', 'project_id': 'df5fe5bf9c6f409ca20088af0cd8050b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['960c62c9-cf81-4423-a99e-590ba809b0c9', 'c9528f60-68c8-499c-b502-6ee88bde59c3'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-64807064', 'ctest-vn4-45566412'], 'policys': [['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-64807064', 'ctest-policy1-51463245']], 'subnet_ipam': [{'subnet_cidr': '178.149.155.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3141:567:814:3df6:2e92:fe2f::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2026-03-19T02:13:08.886295', 'updated_at': '2026-03-19T02:13:09.339398'}} 2026-03-19 02:13:10,197 - DEBUG - Requesting: https://10.0.0.129:8082/domains 2026-03-19 02:13:10,543 - DEBUG - Requesting: https://10.0.0.129:8082/domains 2026-03-19 02:13:10,629 - DEBUG - Requesting: https://10.0.0.129:8082/domain/935bc1a1-2451-4f6c-b0bc-2e43d3120885 2026-03-19 02:13:10,690 - DEBUG - Requesting: https://10.0.0.129:8082/project/df5fe5bf-9c6f-409c-a200-88af0cd8050b 2026-03-19 02:13:10,766 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/985976e4-354d-445c-93b6-1c63c4cf4d0f 2026-03-19 02:13:10,831 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/985976e4-354d-445c-93b6-1c63c4cf4d0f 2026-03-19 02:13:10,887 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/1fae8fb1-e937-447d-acdb-8dcbc13320f1 2026-03-19 02:13:10,941 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/1fae8fb1-e937-447d-acdb-8dcbc13320f1 2026-03-19 02:13:10,993 - DEBUG - Requesting: https://10.0.0.129:8082/route-target/88033769-154c-42fd-a2ef-b80e7e1c0e6c 2026-03-19 02:13:11,050 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-19 02:13:11,050 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/985976e4-354d-445c-93b6-1c63c4cf4d0f 2026-03-19 02:13:11,111 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/1fae8fb1-e937-447d-acdb-8dcbc13320f1 2026-03-19 02:13:11,173 - INFO - Verified VN network id 11 for VN 985976e4-354d-445c-93b6-1c63c4cf4d0f 2026-03-19 02:13:11,174 - INFO - Verifications in API Server for VN ctest-vn4-45566412 passed 2026-03-19 02:13:11,174 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/985976e4-354d-445c-93b6-1c63c4cf4d0f 2026-03-19 02:13:11,231 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/1fae8fb1-e937-447d-acdb-8dcbc13320f1 2026-03-19 02:13:11,293 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/1fae8fb1-e937-447d-acdb-8dcbc13320f1 2026-03-19 02:13:11,346 - DEBUG - Requesting: https://10.0.0.129:8082/route-target/88033769-154c-42fd-a2ef-b80e7e1c0e6c 2026-03-19 02:13:11,454 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-64807064:ctest-vn4-45566412', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-64807064', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10977936289211171932', 'uuid-lslong': '10643725984166006031'}, 'enable': 'true', 'created': '2026-03-19T02:13:08', 'last-modified': '2026-03-19T02:13:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.484701'} 2026-03-19 02:13:11,507 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-19 02:13:11,507 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-45566412 passed 2026-03-19 02:13:11,507 - DEBUG - ====Verifying policy data for ctest-vn4-45566412 in API_Server ====== 2026-03-19 02:13:11,507 - DEBUG - Requesting: https://10.0.0.129:8082/domains 2026-03-19 02:13:11,562 - DEBUG - Requesting: https://10.0.0.129:8082/domain/935bc1a1-2451-4f6c-b0bc-2e43d3120885 2026-03-19 02:13:11,622 - DEBUG - Requesting: https://10.0.0.129:8082/project/df5fe5bf-9c6f-409c-a200-88af0cd8050b 2026-03-19 02:13:11,698 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/985976e4-354d-445c-93b6-1c63c4cf4d0f 2026-03-19 02:13:11,755 - DEBUG - ==>Verifying data for policy with id: a9af80b4-e977-4da0-b4e0-66ea40197b10, fqn: ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-64807064', 'ctest-policy1-51463245'] 2026-03-19 02:13:11,755 - INFO - VN ctest-vn4-45566412 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-19 02:13:11,755 - DEBUG - Verifying the vn in opserver 2026-03-19 02:13:11,755 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-64807064:ctest-vn4-45566412 virtual network link through opserver 10.0.0.129 2026-03-19 02:13:11,755 - DEBUG - Requesting: https://10.0.0.129:8081/analytics/uves/virtual-networks 2026-03-19 02:13:12,104 - DEBUG - Requesting: https://10.0.0.129:8081/analytics/uves/virtual-networks 2026-03-19 02:13:12,237 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-64807064:ctest-vn4-45566412', 'href': 'https://10.0.0.129:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-64807064:ctest-vn4-45566412?flat'} 2026-03-19 02:13:12,237 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-64807064:ctest-vn4-45566412 is found in opserver 2026-03-19 02:13:12,349 - DEBUG - Do not have enough data to verify VN in agent 2026-03-19 02:13:12,397 - DEBUG - VRF ids for VN ctest-vn4-45566412: {} 2026-03-19 02:13:12,398 - DEBUG - ====Verifying data for ctest-policy1-51463245 in API_Server ====== 2026-03-19 02:13:12,398 - DEBUG - Requesting: https://10.0.0.129:8082/domains 2026-03-19 02:13:12,453 - DEBUG - Requesting: https://10.0.0.129:8082/domain/935bc1a1-2451-4f6c-b0bc-2e43d3120885 2026-03-19 02:13:12,510 - DEBUG - Requesting: https://10.0.0.129:8082/project/df5fe5bf-9c6f-409c-a200-88af0cd8050b 2026-03-19 02:13:12,586 - DEBUG - Requesting: https://10.0.0.129:8082/network-policy/a9af80b4-e977-4da0-b4e0-66ea40197b10 2026-03-19 02:13:12,645 - INFO - Verified policy ctest-policy1-51463245 in API Server, Result: True 2026-03-19 02:13:12,645 - INFO - Done with setup and verification, moving onto test .. 2026-03-19 02:13:12,655 - INFO - Deleting VN ctest-vn4-45566412 2026-03-19 02:13:12,842 - DEBUG - Response for deleting network () 2026-03-19 02:13:12,843 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/1fae8fb1-e937-447d-acdb-8dcbc13320f1 2026-03-19 02:13:12,893 - DEBUG - Response Code: 404 2026-03-19 02:13:12,893 - DEBUG - Requesting: https://10.0.0.129:8082/domains 2026-03-19 02:13:12,945 - DEBUG - Requesting: https://10.0.0.129:8082/domain/935bc1a1-2451-4f6c-b0bc-2e43d3120885 2026-03-19 02:13:13,006 - DEBUG - Requesting: https://10.0.0.129:8082/project/df5fe5bf-9c6f-409c-a200-88af0cd8050b 2026-03-19 02:13:13,086 - INFO - Validated that VN ctest-vn4-45566412 is not found in API Server 2026-03-19 02:13:13,194 - DEBUG - VN ctest-vn4-45566412 is not present in Agent 10.0.0.129 2026-03-19 02:13:13,194 - INFO - Validated that VN ctest-vn4-45566412 is not in any agent 2026-03-19 02:13:13,346 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-45566412 info 2026-03-19 02:13:13,375 - INFO - Deleted policy ctest-policy1-51463245 2026-03-19 02:13:13,541 - DEBUG - policy ctest-policy1-51463245 is not found in API Server 2026-03-19 02:13:13,922 - DEBUG - No XMPP flaps were noticed during the test
2026-03-19 02:13:13,922 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:06]
2026-03-19 02:13:13,922 - INFO - -------------------------------------------------------------------------------- 2026-03-19 02:13:14,310 - DEBUG - No XMPP flaps were noticed during the test
2026-03-19 02:13:14,310 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07]
2026-03-19 02:13:14,310 - INFO - -------------------------------------------------------------------------------- 2026-03-19 02:13:15,060 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-64807064, ID : df5fe5bf-9c6f-409c-a200-88af0cd8050b