2026-09-09 11:04:55,184 - INFO - Domain Default found not creating 2026-09-09 11:04:55,366 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-29883319 not found, creating it 2026-09-09 11:04:55,893 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-29883319, ID : adbe66f7-3648-4606-a4b7-fd0a92be91e8 2026-09-09 11:04:57,717 - INFO - ================================================================================ 2026-09-09 11:04:57,717 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-09 11:04:57,991 - DEBUG - Nothing to compare xmpp stats {'10.0.0.250': {'10.20.0.254': '0'}} with 2026-09-09 11:04:57,991 - INFO - Initial checks done. Running the testcase now 2026-09-09 11:04:57,991 - INFO - 2026-09-09 11:04:57,991 - INFO - ================================================================================ 2026-09-09 11:04:57,992 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-09 11:04:57,992 - 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-09 11:04:58,288 - DEBUG - Nothing to compare xmpp stats {'10.0.0.250': {'10.20.0.254': '0'}} with 2026-09-09 11:04:58,288 - INFO - Initial checks done. Running the testcase now 2026-09-09 11:04:58,288 - INFO - 2026-09-09 11:04:58,724 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29883319:ctest-vn4-90124844, 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-29883319:ctest-vn4-90124844, 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-29883319:ctest-vn4-90124844, 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-29883319:ctest-vn4-90124844, 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-09 11:04:59,289 - DEBUG - Response for create_network : {'network': {'id': 'ca8c999a-9e4a-4a8c-8146-2ecc01e5e1c4', 'name': 'ctest-vn4-90124844', 'tenant_id': 'adbe66f736484606a4b7fd0a92be91e8', 'project_id': 'adbe66f736484606a4b7fd0a92be91e8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29883319', 'ctest-vn4-90124844'], 'port_security_enabled': True, 'description': ''}} 2026-09-09 11:04:59,500 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd2216225-f15c-4d55-a9bd-a4d1e3e575fc', 'name': '', 'tenant_id': 'adbe66f736484606a4b7fd0a92be91e8', 'network_id': 'ca8c999a-9e4a-4a8c-8146-2ecc01e5e1c4', 'ip_version': 4, 'cidr': '89.70.222.0/26', 'allocation_pools': [{'start': '89.70.222.2', 'end': '89.70.222.62'}], 'gateway_ip': '89.70.222.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '89.70.222.2', 'tags': [], 'project_id': 'adbe66f736484606a4b7fd0a92be91e8'}} 2026-09-09 11:04:59,719 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd0bc7cc5-77b2-4d12-be83-8b549ea276fc', 'name': '', 'tenant_id': 'adbe66f736484606a4b7fd0a92be91e8', 'network_id': 'ca8c999a-9e4a-4a8c-8146-2ecc01e5e1c4', 'ip_version': 6, 'cidr': '2cdf:f78f:721e:66d5:db6f:1ffa::/96', 'allocation_pools': [{'start': '2cdf:f78f:721e:66d5:db6f:1ffa:0:2', 'end': '2cdf:f78f:721e:66d5:db6f:1ffa:ffff:fffe'}], 'gateway_ip': '2cdf:f78f:721e:66d5:db6f:1ffa:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2cdf:f78f:721e:66d5:db6f:1ffa:0:2', 'tags': [], 'project_id': 'adbe66f736484606a4b7fd0a92be91e8'}} 2026-09-09 11:04:59,745 - INFO - Created VN ctest-vn4-90124844 2026-09-09 11:04:59,798 - DEBUG - VN ctest-vn4-90124844 UUID is ca8c999a-9e4a-4a8c-8146-2ecc01e5e1c4 2026-09-09 11:05:00,055 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ca8c999a-9e4a-4a8c-8146-2ecc01e5e1c4', 'name': 'ctest-vn4-90124844', 'tenant_id': 'adbe66f736484606a4b7fd0a92be91e8', 'project_id': 'adbe66f736484606a4b7fd0a92be91e8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['d2216225-f15c-4d55-a9bd-a4d1e3e575fc', 'd0bc7cc5-77b2-4d12-be83-8b549ea276fc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29883319', 'ctest-vn4-90124844'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29883319', 'ctest-policy1-83222773']], 'subnet_ipam': [{'subnet_cidr': '89.70.222.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2cdf:f78f:721e:66d5:db6f:1ffa::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-09 11:05:00,278 - DEBUG - Requesting: http://10.0.0.250:8082/domains 2026-09-09 11:05:00,674 - DEBUG - Requesting: http://10.0.0.250:8082/domains 2026-09-09 11:05:00,712 - DEBUG - Requesting: http://10.0.0.250:8082/domain/8bbb7c25-989c-4100-9771-0b0c233d2e27 2026-09-09 11:05:00,727 - DEBUG - Requesting: http://10.0.0.250:8082/project/adbe66f7-3648-4606-a4b7-fd0a92be91e8 2026-09-09 11:05:00,809 - DEBUG - Requesting: http://10.0.0.250:8082/virtual-network/ca8c999a-9e4a-4a8c-8146-2ecc01e5e1c4 2026-09-09 11:05:00,824 - DEBUG - Requesting: http://10.0.0.250:8082/virtual-network/ca8c999a-9e4a-4a8c-8146-2ecc01e5e1c4 2026-09-09 11:05:00,835 - DEBUG - Requesting: http://10.0.0.250:8082/routing-instance/8d65b28f-e6ec-46c4-8260-04b28886facd 2026-09-09 11:05:00,844 - DEBUG - Requesting: http://10.0.0.250:8082/routing-instance/8d65b28f-e6ec-46c4-8260-04b28886facd 2026-09-09 11:05:00,853 - DEBUG - Requesting: http://10.0.0.250:8082/route-target/208786e5-eaa3-46d1-ae1c-0427ca3fcf26 2026-09-09 11:05:00,861 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-09 11:05:00,861 - DEBUG - Requesting: http://10.0.0.250:8082/virtual-network/ca8c999a-9e4a-4a8c-8146-2ecc01e5e1c4 2026-09-09 11:05:00,876 - DEBUG - Requesting: http://10.0.0.250:8082/routing-instance/8d65b28f-e6ec-46c4-8260-04b28886facd 2026-09-09 11:05:00,897 - INFO - Verified VN network id 12 for VN ca8c999a-9e4a-4a8c-8146-2ecc01e5e1c4 2026-09-09 11:05:00,898 - INFO - Verifications in API Server for VN ctest-vn4-90124844 passed 2026-09-09 11:05:00,898 - DEBUG - Requesting: http://10.0.0.250:8082/virtual-network/ca8c999a-9e4a-4a8c-8146-2ecc01e5e1c4 2026-09-09 11:05:00,910 - DEBUG - Requesting: http://10.0.0.250:8082/routing-instance/8d65b28f-e6ec-46c4-8260-04b28886facd 2026-09-09 11:05:00,918 - DEBUG - Requesting: http://10.0.0.250:8082/routing-instance/8d65b28f-e6ec-46c4-8260-04b28886facd 2026-09-09 11:05:00,926 - DEBUG - Requesting: http://10.0.0.250:8082/route-target/208786e5-eaa3-46d1-ae1c-0427ca3fcf26 2026-09-09 11:05:00,942 - DEBUG - Control-node 10.0.0.250 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29883319:ctest-vn4-90124844', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-29883319', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14595209381760617100', 'uuid-lslong': '9315184333002498500'}, 'enable': 'true', 'created': '2026-09-09T11:04:59', 'last-modified': '2026-09-09T11:04:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.944122'} 2026-09-09 11:05:00,950 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-09 11:05:00,950 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-90124844 passed 2026-09-09 11:05:00,950 - DEBUG - ====Verifying policy data for ctest-vn4-90124844 in API_Server ====== 2026-09-09 11:05:00,950 - DEBUG - Requesting: http://10.0.0.250:8082/domains 2026-09-09 11:05:00,956 - DEBUG - Requesting: http://10.0.0.250:8082/domain/8bbb7c25-989c-4100-9771-0b0c233d2e27 2026-09-09 11:05:00,969 - DEBUG - Requesting: http://10.0.0.250:8082/project/adbe66f7-3648-4606-a4b7-fd0a92be91e8 2026-09-09 11:05:01,054 - DEBUG - Requesting: http://10.0.0.250:8082/virtual-network/ca8c999a-9e4a-4a8c-8146-2ecc01e5e1c4 2026-09-09 11:05:01,065 - DEBUG - ==>Verifying data for policy with id: 7f04bc58-29f1-4535-966c-8ed407e314bf, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29883319', 'ctest-policy1-83222773'] 2026-09-09 11:05:01,065 - INFO - VN ctest-vn4-90124844 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-09 11:05:01,065 - DEBUG - Verifying the vn in opserver 2026-09-09 11:05:01,065 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29883319:ctest-vn4-90124844 virtual network link through opserver 10.0.0.250 2026-09-09 11:05:01,065 - DEBUG - Requesting: http://10.0.0.250:8081/analytics/uves/virtual-networks 2026-09-09 11:05:01,433 - DEBUG - Requesting: http://10.0.0.250:8081/analytics/uves/virtual-networks 2026-09-09 11:05:01,500 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29883319:ctest-vn4-90124844', 'href': 'http://10.0.0.250:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29883319:ctest-vn4-90124844?flat'} 2026-09-09 11:05:01,500 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29883319:ctest-vn4-90124844 is found in opserver 2026-09-09 11:05:01,511 - DEBUG - Do not have enough data to verify VN in agent 2026-09-09 11:05:01,516 - DEBUG - VRF ids for VN ctest-vn4-90124844: {} 2026-09-09 11:05:01,517 - DEBUG - ====Verifying data for ctest-policy1-83222773 in API_Server ====== 2026-09-09 11:05:01,517 - DEBUG - Requesting: http://10.0.0.250:8082/domains 2026-09-09 11:05:01,523 - DEBUG - Requesting: http://10.0.0.250:8082/domain/8bbb7c25-989c-4100-9771-0b0c233d2e27 2026-09-09 11:05:01,537 - DEBUG - Requesting: http://10.0.0.250:8082/project/adbe66f7-3648-4606-a4b7-fd0a92be91e8 2026-09-09 11:05:01,646 - DEBUG - Requesting: http://10.0.0.250:8082/network-policy/7f04bc58-29f1-4535-966c-8ed407e314bf 2026-09-09 11:05:01,665 - INFO - Verified policy ctest-policy1-83222773 in API Server, Result: True 2026-09-09 11:05:01,665 - INFO - Done with setup and verification, moving onto test .. 2026-09-09 11:05:01,681 - INFO - Deleting VN ctest-vn4-90124844 2026-09-09 11:05:01,872 - DEBUG - Response for deleting network () 2026-09-09 11:05:01,872 - DEBUG - Requesting: http://10.0.0.250:8082/routing-instance/8d65b28f-e6ec-46c4-8260-04b28886facd 2026-09-09 11:05:01,881 - DEBUG - Response Code: 404 2026-09-09 11:05:01,881 - DEBUG - Requesting: http://10.0.0.250:8082/domains 2026-09-09 11:05:01,891 - DEBUG - Requesting: http://10.0.0.250:8082/domain/8bbb7c25-989c-4100-9771-0b0c233d2e27 2026-09-09 11:05:01,952 - DEBUG - Requesting: http://10.0.0.250:8082/project/adbe66f7-3648-4606-a4b7-fd0a92be91e8 2026-09-09 11:05:02,034 - INFO - Validated that VN ctest-vn4-90124844 is not found in API Server 2026-09-09 11:05:02,048 - DEBUG - VN ctest-vn4-90124844 is not present in Agent 10.0.0.250 2026-09-09 11:05:02,048 - INFO - Validated that VN ctest-vn4-90124844 is not in any agent 2026-09-09 11:05:02,067 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-90124844 info 2026-09-09 11:05:02,102 - INFO - Deleted policy ctest-policy1-83222773 2026-09-09 11:05:02,286 - DEBUG - policy ctest-policy1-83222773 is not found in API Server 2026-09-09 11:05:02,564 - DEBUG - No XMPP flaps were noticed during the test