2026-09-07 02:53:29,796 - INFO - Domain Default found not creating 2026-09-07 02:53:29,998 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-66454873 not found, creating it 2026-09-07 02:53:30,576 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-66454873, ID : 0e9ecda2-1717-4a7a-a553-f5682c8bb687 2026-09-07 02:53:32,361 - INFO - ================================================================================ 2026-09-07 02:53:32,361 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-07 02:53:33,658 - DEBUG - Nothing to compare xmpp stats {'10.0.0.189': {'10.20.0.25': '0', '10.20.0.29': '0'}, '10.0.0.190': {'10.20.0.254': '0', '10.20.0.25': '0'}} with 2026-09-07 02:53:33,658 - INFO - Initial checks done. Running the testcase now 2026-09-07 02:53:33,658 - INFO - 2026-09-07 02:53:33,658 - INFO - ================================================================================ 2026-09-07 02:53:33,658 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-07 02:53:33,658 - 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-07 02:53:34,953 - DEBUG - Nothing to compare xmpp stats {'10.0.0.189': {'10.20.0.25': '0', '10.20.0.29': '0'}, '10.0.0.190': {'10.20.0.254': '0', '10.20.0.25': '0'}} with 2026-09-07 02:53:34,953 - INFO - Initial checks done. Running the testcase now 2026-09-07 02:53:34,953 - INFO - 2026-09-07 02:53:35,372 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66454873:ctest-vn4-09884518, 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-66454873:ctest-vn4-09884518, 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-66454873:ctest-vn4-09884518, 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-66454873:ctest-vn4-09884518, 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-07 02:53:36,074 - DEBUG - Response for create_network : {'network': {'id': '3a550466-ff0f-454b-b0b9-7cfd97a98417', 'name': 'ctest-vn4-09884518', 'tenant_id': '0e9ecda217174a7aa553f5682c8bb687', 'project_id': '0e9ecda217174a7aa553f5682c8bb687', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-66454873', 'ctest-vn4-09884518'], 'port_security_enabled': True, 'description': ''}} 2026-09-07 02:53:36,421 - DEBUG - Response for create_subnet : {'subnet': {'id': '7fa066e2-4414-4acf-8674-32a35a300636', 'name': '', 'tenant_id': '0e9ecda217174a7aa553f5682c8bb687', 'network_id': '3a550466-ff0f-454b-b0b9-7cfd97a98417', 'ip_version': 4, 'cidr': '20.221.90.128/26', 'allocation_pools': [{'start': '20.221.90.130', 'end': '20.221.90.190'}], 'gateway_ip': '20.221.90.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '20.221.90.130', 'tags': [], 'project_id': '0e9ecda217174a7aa553f5682c8bb687'}} 2026-09-07 02:53:36,708 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f7f221b3-13da-4954-9eb2-c4ab6f7c0750', 'name': '', 'tenant_id': '0e9ecda217174a7aa553f5682c8bb687', 'network_id': '3a550466-ff0f-454b-b0b9-7cfd97a98417', 'ip_version': 6, 'cidr': '207f:4c74:f6a7:d56b:6811:19cf::/96', 'allocation_pools': [{'start': '207f:4c74:f6a7:d56b:6811:19cf:0:2', 'end': '207f:4c74:f6a7:d56b:6811:19cf:ffff:fffe'}], 'gateway_ip': '207f:4c74:f6a7:d56b:6811:19cf:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '207f:4c74:f6a7:d56b:6811:19cf:0:2', 'tags': [], 'project_id': '0e9ecda217174a7aa553f5682c8bb687'}} 2026-09-07 02:53:36,745 - INFO - Created VN ctest-vn4-09884518 2026-09-07 02:53:36,756 - DEBUG - VN ctest-vn4-09884518 UUID is 3a550466-ff0f-454b-b0b9-7cfd97a98417 2026-09-07 02:53:37,028 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3a550466-ff0f-454b-b0b9-7cfd97a98417', 'name': 'ctest-vn4-09884518', 'tenant_id': '0e9ecda217174a7aa553f5682c8bb687', 'project_id': '0e9ecda217174a7aa553f5682c8bb687', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['7fa066e2-4414-4acf-8674-32a35a300636', 'f7f221b3-13da-4954-9eb2-c4ab6f7c0750'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-66454873', 'ctest-vn4-09884518'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-66454873', 'ctest-policy1-39973286']], 'subnet_ipam': [{'subnet_cidr': '20.221.90.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '207f:4c74:f6a7:d56b:6811:19cf::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-07 02:53:37,122 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-09-07 02:53:37,496 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-09-07 02:53:37,526 - DEBUG - Requesting: http://10.0.0.185:8082/domain/c4abf38b-4fc4-41a0-99cf-13229ed4f15e 2026-09-07 02:53:37,547 - DEBUG - Requesting: http://10.0.0.185:8082/project/0e9ecda2-1717-4a7a-a553-f5682c8bb687 2026-09-07 02:53:37,663 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/3a550466-ff0f-454b-b0b9-7cfd97a98417 2026-09-07 02:53:37,682 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/3a550466-ff0f-454b-b0b9-7cfd97a98417 2026-09-07 02:53:37,697 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/8fe56d4c-fa11-4ad9-8811-cf122501d01d 2026-09-07 02:53:37,707 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/8fe56d4c-fa11-4ad9-8811-cf122501d01d 2026-09-07 02:53:37,718 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/42e696bd-ea44-4455-be10-14243422c94e 2026-09-07 02:53:37,728 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-07 02:53:37,728 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/3a550466-ff0f-454b-b0b9-7cfd97a98417 2026-09-07 02:53:37,740 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/8fe56d4c-fa11-4ad9-8811-cf122501d01d 2026-09-07 02:53:37,758 - INFO - Verified VN network id 16 for VN 3a550466-ff0f-454b-b0b9-7cfd97a98417 2026-09-07 02:53:37,758 - INFO - Verifications in API Server for VN ctest-vn4-09884518 passed 2026-09-07 02:53:37,758 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/3a550466-ff0f-454b-b0b9-7cfd97a98417 2026-09-07 02:53:37,772 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/8fe56d4c-fa11-4ad9-8811-cf122501d01d 2026-09-07 02:53:37,782 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/8fe56d4c-fa11-4ad9-8811-cf122501d01d 2026-09-07 02:53:37,791 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/42e696bd-ea44-4455-be10-14243422c94e 2026-09-07 02:53:37,809 - DEBUG - Control-node 10.0.0.185 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66454873:ctest-vn4-09884518', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-66454873', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4203270667632592203', 'uuid-lslong': '12734346849979827223'}, 'enable': 'true', 'created': '2026-09-07T02:53:35', 'last-modified': '2026-09-07T02:53:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.856205'} 2026-09-07 02:53:37,818 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-07 02:53:37,824 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66454873:ctest-vn4-09884518', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-66454873', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4203270667632592203', 'uuid-lslong': '12734346849979827223'}, 'enable': 'true', 'created': '2026-09-07T02:53:35', 'last-modified': '2026-09-07T02:53:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.859550'} 2026-09-07 02:53:37,830 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-07 02:53:37,836 - DEBUG - Control-node 10.0.0.186 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66454873:ctest-vn4-09884518', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-66454873', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4203270667632592203', 'uuid-lslong': '12734346849979827223'}, 'enable': 'true', 'created': '2026-09-07T02:53:35', 'last-modified': '2026-09-07T02:53:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.890805'} 2026-09-07 02:53:37,842 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-07 02:53:37,842 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-09884518 passed 2026-09-07 02:53:37,842 - DEBUG - ====Verifying policy data for ctest-vn4-09884518 in API_Server ====== 2026-09-07 02:53:37,842 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-09-07 02:53:37,849 - DEBUG - Requesting: http://10.0.0.185:8082/domain/c4abf38b-4fc4-41a0-99cf-13229ed4f15e 2026-09-07 02:53:37,861 - DEBUG - Requesting: http://10.0.0.185:8082/project/0e9ecda2-1717-4a7a-a553-f5682c8bb687 2026-09-07 02:53:37,968 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/3a550466-ff0f-454b-b0b9-7cfd97a98417 2026-09-07 02:53:37,979 - DEBUG - ==>Verifying data for policy with id: 9ba2cded-87e0-4fa3-9034-ec5188e810cb, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-66454873', 'ctest-policy1-39973286'] 2026-09-07 02:53:37,979 - INFO - VN ctest-vn4-09884518 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-07 02:53:37,979 - DEBUG - Verifying the vn in opserver 2026-09-07 02:53:37,979 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66454873:ctest-vn4-09884518 virtual network link through opserver 10.0.0.185 2026-09-07 02:53:37,979 - DEBUG - Requesting: http://10.0.0.185:8081/analytics/uves/virtual-networks 2026-09-07 02:53:38,353 - DEBUG - Requesting: http://10.0.0.185:8081/analytics/uves/virtual-networks 2026-09-07 02:53:38,408 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66454873:ctest-vn4-09884518', 'href': 'http://10.0.0.185:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66454873:ctest-vn4-09884518?flat'} 2026-09-07 02:53:38,408 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66454873:ctest-vn4-09884518 virtual network link through opserver 10.0.0.38 2026-09-07 02:53:38,408 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-09-07 02:53:38,776 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-09-07 02:53:38,835 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66454873:ctest-vn4-09884518', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66454873:ctest-vn4-09884518?flat'} 2026-09-07 02:53:38,836 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66454873:ctest-vn4-09884518 virtual network link through opserver 10.0.0.186 2026-09-07 02:53:38,836 - DEBUG - Requesting: http://10.0.0.186:8081/analytics/uves/virtual-networks 2026-09-07 02:53:39,207 - DEBUG - Requesting: http://10.0.0.186:8081/analytics/uves/virtual-networks 2026-09-07 02:53:39,275 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66454873:ctest-vn4-09884518', 'href': 'http://10.0.0.186:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66454873:ctest-vn4-09884518?flat'} 2026-09-07 02:53:39,275 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66454873:ctest-vn4-09884518 is found in opserver 2026-09-07 02:53:39,299 - DEBUG - Do not have enough data to verify VN in agent 2026-09-07 02:53:39,311 - DEBUG - VRF ids for VN ctest-vn4-09884518: {} 2026-09-07 02:53:39,311 - DEBUG - ====Verifying data for ctest-policy1-39973286 in API_Server ====== 2026-09-07 02:53:39,311 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-09-07 02:53:39,318 - DEBUG - Requesting: http://10.0.0.185:8082/domain/c4abf38b-4fc4-41a0-99cf-13229ed4f15e 2026-09-07 02:53:39,329 - DEBUG - Requesting: http://10.0.0.185:8082/project/0e9ecda2-1717-4a7a-a553-f5682c8bb687 2026-09-07 02:53:39,435 - DEBUG - Requesting: http://10.0.0.185:8082/network-policy/9ba2cded-87e0-4fa3-9034-ec5188e810cb 2026-09-07 02:53:39,448 - INFO - Verified policy ctest-policy1-39973286 in API Server, Result: True 2026-09-07 02:53:39,448 - INFO - Done with setup and verification, moving onto test .. 2026-09-07 02:53:39,460 - INFO - Deleting VN ctest-vn4-09884518 2026-09-07 02:53:39,680 - DEBUG - Response for deleting network () 2026-09-07 02:53:39,680 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/8fe56d4c-fa11-4ad9-8811-cf122501d01d 2026-09-07 02:53:39,687 - DEBUG - Response Code: 404 2026-09-07 02:53:39,687 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-09-07 02:53:39,694 - DEBUG - Requesting: http://10.0.0.185:8082/domain/c4abf38b-4fc4-41a0-99cf-13229ed4f15e 2026-09-07 02:53:39,716 - DEBUG - Requesting: http://10.0.0.185:8082/project/0e9ecda2-1717-4a7a-a553-f5682c8bb687 2026-09-07 02:53:39,832 - INFO - Validated that VN ctest-vn4-09884518 is not found in API Server 2026-09-07 02:53:39,844 - DEBUG - VN ctest-vn4-09884518 is not present in Agent 10.0.0.189 2026-09-07 02:53:39,858 - DEBUG - VN ctest-vn4-09884518 is not present in Agent 10.0.0.190 2026-09-07 02:53:39,858 - INFO - Validated that VN ctest-vn4-09884518 is not in any agent 2026-09-07 02:53:39,895 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-09884518 info 2026-09-07 02:53:39,933 - INFO - Deleted policy ctest-policy1-39973286 2026-09-07 02:53:40,132 - DEBUG - policy ctest-policy1-39973286 is not found in API Server 2026-09-07 02:53:41,429 - DEBUG - No XMPP flaps were noticed during the test