2026-06-02 15:43:47,141 - INFO - Domain Default found not creating 2026-06-02 15:43:47,333 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-49455810 not found, creating it 2026-06-02 15:43:47,928 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-49455810, ID : 04e18720-056f-4de6-b635-52cc1550b75b 2026-06-02 15:43:49,454 - INFO - ================================================================================ 2026-06-02 15:43:49,454 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-02 15:43:50,741 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.192': '0', '10.20.0.18': '0'}, '10.0.0.129': {'10.20.0.201': '0', '10.20.0.192': '0'}} with 2026-06-02 15:43:50,742 - INFO - Initial checks done. Running the testcase now 2026-06-02 15:43:50,742 - INFO - 2026-06-02 15:43:50,742 - INFO - ================================================================================ 2026-06-02 15:43:50,742 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-02 15:43:50,742 - 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-06-02 15:43:52,013 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.192': '0', '10.20.0.18': '0'}, '10.0.0.129': {'10.20.0.201': '0', '10.20.0.192': '0'}} with 2026-06-02 15:43:52,013 - INFO - Initial checks done. Running the testcase now 2026-06-02 15:43:52,013 - INFO - 2026-06-02 15:43:52,384 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49455810:ctest-vn4-37102747, 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-49455810:ctest-vn4-37102747, 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-49455810:ctest-vn4-37102747, 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-49455810:ctest-vn4-37102747, 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-06-02 15:43:53,079 - DEBUG - Response for create_network : {'network': {'id': '3c959221-aa1c-4335-93cc-fabe8d91bc88', 'name': 'ctest-vn4-37102747', 'tenant_id': '04e18720056f4de6b63552cc1550b75b', 'project_id': '04e18720056f4de6b63552cc1550b75b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-49455810', 'ctest-vn4-37102747'], 'port_security_enabled': True, 'description': ''}} 2026-06-02 15:43:53,421 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd17eafe1-4717-45d2-b0f4-9a64c15b7a53', 'name': '', 'tenant_id': '04e18720056f4de6b63552cc1550b75b', 'network_id': '3c959221-aa1c-4335-93cc-fabe8d91bc88', 'ip_version': 4, 'cidr': '197.203.50.0/26', 'allocation_pools': [{'start': '197.203.50.2', 'end': '197.203.50.62'}], 'gateway_ip': '197.203.50.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '197.203.50.2', 'tags': [], 'project_id': '04e18720056f4de6b63552cc1550b75b'}} 2026-06-02 15:43:53,641 - DEBUG - Response for create_subnet : {'subnet': {'id': '2ac3d34e-f76e-4b20-b58e-0cc0efbeeb4b', 'name': '', 'tenant_id': '04e18720056f4de6b63552cc1550b75b', 'network_id': '3c959221-aa1c-4335-93cc-fabe8d91bc88', 'ip_version': 6, 'cidr': '3934:67b:4569:9340:f311:5db9::/96', 'allocation_pools': [{'start': '3934:67b:4569:9340:f311:5db9:0:2', 'end': '3934:67b:4569:9340:f311:5db9:ffff:fffe'}], 'gateway_ip': '3934:67b:4569:9340:f311:5db9:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3934:67b:4569:9340:f311:5db9:0:2', 'tags': [], 'project_id': '04e18720056f4de6b63552cc1550b75b'}} 2026-06-02 15:43:53,676 - INFO - Created VN ctest-vn4-37102747 2026-06-02 15:43:53,690 - DEBUG - VN ctest-vn4-37102747 UUID is 3c959221-aa1c-4335-93cc-fabe8d91bc88 2026-06-02 15:43:53,957 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3c959221-aa1c-4335-93cc-fabe8d91bc88', 'name': 'ctest-vn4-37102747', 'tenant_id': '04e18720056f4de6b63552cc1550b75b', 'project_id': '04e18720056f4de6b63552cc1550b75b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d17eafe1-4717-45d2-b0f4-9a64c15b7a53', '2ac3d34e-f76e-4b20-b58e-0cc0efbeeb4b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-49455810', 'ctest-vn4-37102747'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-49455810', 'ctest-policy1-49679511']], 'subnet_ipam': [{'subnet_cidr': '197.203.50.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3934:67b:4569:9340:f311:5db9::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-02 15:43:54,053 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-02 15:43:54,348 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-02 15:43:54,378 - DEBUG - Requesting: http://10.0.0.50:8082/domain/7b3274cd-f8c5-477e-8178-a770ba371c22 2026-06-02 15:43:54,403 - DEBUG - Requesting: http://10.0.0.50:8082/project/04e18720-056f-4de6-b635-52cc1550b75b 2026-06-02 15:43:54,500 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3c959221-aa1c-4335-93cc-fabe8d91bc88 2026-06-02 15:43:54,516 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3c959221-aa1c-4335-93cc-fabe8d91bc88 2026-06-02 15:43:54,531 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c74310ec-458d-4a8f-8502-08eed3da13ec 2026-06-02 15:43:54,541 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c74310ec-458d-4a8f-8502-08eed3da13ec 2026-06-02 15:43:54,550 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/b297f2fb-5ed2-4806-8f76-8cec05666be8 2026-06-02 15:43:54,558 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-02 15:43:54,559 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3c959221-aa1c-4335-93cc-fabe8d91bc88 2026-06-02 15:43:54,568 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c74310ec-458d-4a8f-8502-08eed3da13ec 2026-06-02 15:43:54,588 - INFO - Verified VN network id 15 for VN 3c959221-aa1c-4335-93cc-fabe8d91bc88 2026-06-02 15:43:54,588 - INFO - Verifications in API Server for VN ctest-vn4-37102747 passed 2026-06-02 15:43:54,588 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3c959221-aa1c-4335-93cc-fabe8d91bc88 2026-06-02 15:43:54,602 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c74310ec-458d-4a8f-8502-08eed3da13ec 2026-06-02 15:43:54,612 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c74310ec-458d-4a8f-8502-08eed3da13ec 2026-06-02 15:43:54,621 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/b297f2fb-5ed2-4806-8f76-8cec05666be8 2026-06-02 15:43:54,637 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49455810:ctest-vn4-37102747', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-49455810', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4365556087091118901', 'uuid-lslong': '10650162915150249096'}, 'enable': 'true', 'created': '2026-06-02T15:43:52', 'last-modified': '2026-06-02T15:43:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.748790'} 2026-06-02 15:43:54,645 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-02 15:43:54,653 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49455810:ctest-vn4-37102747', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-49455810', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4365556087091118901', 'uuid-lslong': '10650162915150249096'}, 'enable': 'true', 'created': '2026-06-02T15:43:52', 'last-modified': '2026-06-02T15:43:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.757605'} 2026-06-02 15:43:54,661 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-02 15:43:54,669 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49455810:ctest-vn4-37102747', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-49455810', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4365556087091118901', 'uuid-lslong': '10650162915150249096'}, 'enable': 'true', 'created': '2026-06-02T15:43:52', 'last-modified': '2026-06-02T15:43:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.781085'} 2026-06-02 15:43:54,677 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-02 15:43:54,677 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-37102747 passed 2026-06-02 15:43:54,678 - DEBUG - ====Verifying policy data for ctest-vn4-37102747 in API_Server ====== 2026-06-02 15:43:54,678 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-02 15:43:54,687 - DEBUG - Requesting: http://10.0.0.50:8082/domain/7b3274cd-f8c5-477e-8178-a770ba371c22 2026-06-02 15:43:54,704 - DEBUG - Requesting: http://10.0.0.50:8082/project/04e18720-056f-4de6-b635-52cc1550b75b 2026-06-02 15:43:54,826 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3c959221-aa1c-4335-93cc-fabe8d91bc88 2026-06-02 15:43:54,848 - DEBUG - ==>Verifying data for policy with id: 67e695ef-8616-4f2b-8cc8-2dd4ce121114, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-49455810', 'ctest-policy1-49679511'] 2026-06-02 15:43:54,848 - INFO - VN ctest-vn4-37102747 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-02 15:43:54,849 - DEBUG - Verifying the vn in opserver 2026-06-02 15:43:54,849 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49455810:ctest-vn4-37102747 virtual network link through opserver 10.0.0.50 2026-06-02 15:43:54,849 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-06-02 15:43:55,148 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-06-02 15:43:55,213 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49455810:ctest-vn4-37102747', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49455810:ctest-vn4-37102747?flat'} 2026-06-02 15:43:55,213 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49455810:ctest-vn4-37102747 virtual network link through opserver 10.0.0.38 2026-06-02 15:43:55,214 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-06-02 15:43:55,508 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-06-02 15:43:55,570 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49455810:ctest-vn4-37102747', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49455810:ctest-vn4-37102747?flat'} 2026-06-02 15:43:55,571 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49455810:ctest-vn4-37102747 virtual network link through opserver 10.0.0.33 2026-06-02 15:43:55,571 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-06-02 15:43:55,874 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-06-02 15:43:55,944 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49455810:ctest-vn4-37102747', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49455810:ctest-vn4-37102747?flat'} 2026-06-02 15:43:55,944 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49455810:ctest-vn4-37102747 is found in opserver 2026-06-02 15:43:55,967 - DEBUG - Do not have enough data to verify VN in agent 2026-06-02 15:43:55,975 - DEBUG - VRF ids for VN ctest-vn4-37102747: {} 2026-06-02 15:43:55,976 - DEBUG - ====Verifying data for ctest-policy1-49679511 in API_Server ====== 2026-06-02 15:43:55,976 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-02 15:43:55,982 - DEBUG - Requesting: http://10.0.0.50:8082/domain/7b3274cd-f8c5-477e-8178-a770ba371c22 2026-06-02 15:43:56,023 - DEBUG - Requesting: http://10.0.0.50:8082/project/04e18720-056f-4de6-b635-52cc1550b75b 2026-06-02 15:43:56,121 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/67e695ef-8616-4f2b-8cc8-2dd4ce121114 2026-06-02 15:43:56,139 - INFO - Verified policy ctest-policy1-49679511 in API Server, Result: True 2026-06-02 15:43:56,139 - INFO - Done with setup and verification, moving onto test .. 2026-06-02 15:43:56,155 - INFO - Deleting VN ctest-vn4-37102747 2026-06-02 15:43:56,444 - DEBUG - Response for deleting network () 2026-06-02 15:43:56,444 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c74310ec-458d-4a8f-8502-08eed3da13ec 2026-06-02 15:43:56,461 - DEBUG - Response Code: 404 2026-06-02 15:43:56,461 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-02 15:43:56,470 - DEBUG - Requesting: http://10.0.0.50:8082/domain/7b3274cd-f8c5-477e-8178-a770ba371c22 2026-06-02 15:43:56,496 - DEBUG - Requesting: http://10.0.0.50:8082/project/04e18720-056f-4de6-b635-52cc1550b75b 2026-06-02 15:43:56,581 - INFO - Validated that VN ctest-vn4-37102747 is not found in API Server 2026-06-02 15:43:56,592 - DEBUG - VN ctest-vn4-37102747 is not present in Agent 10.0.0.249 2026-06-02 15:43:56,603 - DEBUG - VN ctest-vn4-37102747 is not present in Agent 10.0.0.129 2026-06-02 15:43:56,603 - INFO - Validated that VN ctest-vn4-37102747 is not in any agent 2026-06-02 15:43:56,637 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-37102747 info 2026-06-02 15:43:56,685 - INFO - Deleted policy ctest-policy1-49679511 2026-06-02 15:43:56,882 - DEBUG - policy ctest-policy1-49679511 is not found in API Server 2026-06-02 15:43:58,143 - DEBUG - No XMPP flaps were noticed during the test