2026-04-02 17:53:40,589 - INFO - Domain Default found not creating 2026-04-02 17:53:40,762 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-53991704 not found, creating it 2026-04-02 17:53:41,254 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-53991704, ID : c3328670-f88c-4a9d-a8ac-4463477e5fb5 2026-04-02 17:53:42,796 - INFO - ================================================================================ 2026-04-02 17:53:42,796 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-02 17:53:43,051 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-04-02 17:53:43,051 - INFO - Initial checks done. Running the testcase now 2026-04-02 17:53:43,051 - INFO - 2026-04-02 17:53:43,052 - INFO - ================================================================================ 2026-04-02 17:53:43,052 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-02 17:53:43,052 - 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-04-02 17:53:43,338 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-04-02 17:53:43,338 - INFO - Initial checks done. Running the testcase now 2026-04-02 17:53:43,338 - INFO - 2026-04-02 17:53:43,696 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53991704:ctest-vn4-96981322, 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-53991704:ctest-vn4-96981322, 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-53991704:ctest-vn4-96981322, 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-53991704:ctest-vn4-96981322, 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-04-02 17:53:44,211 - DEBUG - Response for create_network : {'network': {'id': '29b7d944-9f3b-4006-aa66-5e6abe7f0a3c', 'name': 'ctest-vn4-96981322', 'tenant_id': 'c3328670f88c4a9da8ac4463477e5fb5', 'project_id': 'c3328670f88c4a9da8ac4463477e5fb5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-53991704', 'ctest-vn4-96981322'], 'port_security_enabled': True, 'description': ''}} 2026-04-02 17:53:44,388 - DEBUG - Response for create_subnet : {'subnet': {'id': '4e7c8c20-c00d-483c-99c8-b0fb9fffa50f', 'name': '', 'tenant_id': 'c3328670f88c4a9da8ac4463477e5fb5', 'network_id': '29b7d944-9f3b-4006-aa66-5e6abe7f0a3c', 'ip_version': 4, 'cidr': '182.67.110.192/26', 'allocation_pools': [{'start': '182.67.110.194', 'end': '182.67.110.254'}], 'gateway_ip': '182.67.110.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '182.67.110.194', 'tags': [], 'project_id': 'c3328670f88c4a9da8ac4463477e5fb5'}} 2026-04-02 17:53:44,538 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f33050cf-4133-464b-a51a-c455d4d18421', 'name': '', 'tenant_id': 'c3328670f88c4a9da8ac4463477e5fb5', 'network_id': '29b7d944-9f3b-4006-aa66-5e6abe7f0a3c', 'ip_version': 6, 'cidr': '3063:6fb7:c638:e987:2adc:c3cf::/96', 'allocation_pools': [{'start': '3063:6fb7:c638:e987:2adc:c3cf:0:2', 'end': '3063:6fb7:c638:e987:2adc:c3cf:ffff:fffe'}], 'gateway_ip': '3063:6fb7:c638:e987:2adc:c3cf:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3063:6fb7:c638:e987:2adc:c3cf:0:2', 'tags': [], 'project_id': 'c3328670f88c4a9da8ac4463477e5fb5'}} 2026-04-02 17:53:44,559 - INFO - Created VN ctest-vn4-96981322 2026-04-02 17:53:44,610 - DEBUG - VN ctest-vn4-96981322 UUID is 29b7d944-9f3b-4006-aa66-5e6abe7f0a3c 2026-04-02 17:53:44,812 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '29b7d944-9f3b-4006-aa66-5e6abe7f0a3c', 'name': 'ctest-vn4-96981322', 'tenant_id': 'c3328670f88c4a9da8ac4463477e5fb5', 'project_id': 'c3328670f88c4a9da8ac4463477e5fb5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4e7c8c20-c00d-483c-99c8-b0fb9fffa50f', 'f33050cf-4133-464b-a51a-c455d4d18421'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-53991704', 'ctest-vn4-96981322'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-53991704', 'ctest-policy1-79103298']], 'subnet_ipam': [{'subnet_cidr': '182.67.110.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3063:6fb7:c638:e987:2adc:c3cf::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-02 17:53:44,977 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-02 17:53:45,271 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-02 17:53:45,303 - DEBUG - Requesting: http://10.0.0.50:8082/domain/dfeab000-f59b-47ef-9f0e-fcf45df100a0 2026-04-02 17:53:45,316 - DEBUG - Requesting: http://10.0.0.50:8082/project/c3328670-f88c-4a9d-a8ac-4463477e5fb5 2026-04-02 17:53:45,392 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/29b7d944-9f3b-4006-aa66-5e6abe7f0a3c 2026-04-02 17:53:45,405 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/29b7d944-9f3b-4006-aa66-5e6abe7f0a3c 2026-04-02 17:53:45,417 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2eefafd1-7545-44c2-822c-80d1488c6117 2026-04-02 17:53:45,425 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2eefafd1-7545-44c2-822c-80d1488c6117 2026-04-02 17:53:45,433 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/2b69171f-bc95-4406-a4f1-107fad9a9bdd 2026-04-02 17:53:45,441 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-02 17:53:45,441 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/29b7d944-9f3b-4006-aa66-5e6abe7f0a3c 2026-04-02 17:53:45,450 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2eefafd1-7545-44c2-822c-80d1488c6117 2026-04-02 17:53:45,464 - INFO - Verified VN network id 11 for VN 29b7d944-9f3b-4006-aa66-5e6abe7f0a3c 2026-04-02 17:53:45,464 - INFO - Verifications in API Server for VN ctest-vn4-96981322 passed 2026-04-02 17:53:45,464 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/29b7d944-9f3b-4006-aa66-5e6abe7f0a3c 2026-04-02 17:53:45,473 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2eefafd1-7545-44c2-822c-80d1488c6117 2026-04-02 17:53:45,480 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2eefafd1-7545-44c2-822c-80d1488c6117 2026-04-02 17:53:45,490 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/2b69171f-bc95-4406-a4f1-107fad9a9bdd 2026-04-02 17:53:45,509 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53991704:ctest-vn4-96981322', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-53991704', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3006110165045559302', 'uuid-lslong': '12278605246627777084'}, 'enable': 'true', 'created': '2026-04-02T17:53:44', 'last-modified': '2026-04-02T17:53:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.727349'} 2026-04-02 17:53:45,515 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-02 17:53:45,515 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-96981322 passed 2026-04-02 17:53:45,516 - DEBUG - ====Verifying policy data for ctest-vn4-96981322 in API_Server ====== 2026-04-02 17:53:45,516 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-02 17:53:45,521 - DEBUG - Requesting: http://10.0.0.50:8082/domain/dfeab000-f59b-47ef-9f0e-fcf45df100a0 2026-04-02 17:53:45,533 - DEBUG - Requesting: http://10.0.0.50:8082/project/c3328670-f88c-4a9d-a8ac-4463477e5fb5 2026-04-02 17:53:45,605 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/29b7d944-9f3b-4006-aa66-5e6abe7f0a3c 2026-04-02 17:53:45,616 - DEBUG - ==>Verifying data for policy with id: 4474b591-47cd-41b7-9018-19c24f91a71d, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-53991704', 'ctest-policy1-79103298'] 2026-04-02 17:53:45,616 - INFO - VN ctest-vn4-96981322 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-02 17:53:45,616 - DEBUG - Verifying the vn in opserver 2026-04-02 17:53:45,616 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53991704:ctest-vn4-96981322 virtual network link through opserver 10.0.0.50 2026-04-02 17:53:45,617 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-04-02 17:53:45,908 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-04-02 17:53:45,972 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53991704:ctest-vn4-96981322', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53991704:ctest-vn4-96981322?flat'} 2026-04-02 17:53:45,972 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53991704:ctest-vn4-96981322 is found in opserver 2026-04-02 17:53:45,982 - DEBUG - Do not have enough data to verify VN in agent 2026-04-02 17:53:45,986 - DEBUG - VRF ids for VN ctest-vn4-96981322: {} 2026-04-02 17:53:45,987 - DEBUG - ====Verifying data for ctest-policy1-79103298 in API_Server ====== 2026-04-02 17:53:45,987 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-02 17:53:45,993 - DEBUG - Requesting: http://10.0.0.50:8082/domain/dfeab000-f59b-47ef-9f0e-fcf45df100a0 2026-04-02 17:53:46,003 - DEBUG - Requesting: http://10.0.0.50:8082/project/c3328670-f88c-4a9d-a8ac-4463477e5fb5 2026-04-02 17:53:46,072 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/4474b591-47cd-41b7-9018-19c24f91a71d 2026-04-02 17:53:46,082 - INFO - Verified policy ctest-policy1-79103298 in API Server, Result: True 2026-04-02 17:53:46,082 - INFO - Done with setup and verification, moving onto test .. 2026-04-02 17:53:46,091 - INFO - Deleting VN ctest-vn4-96981322 2026-04-02 17:53:46,206 - DEBUG - Response for deleting network () 2026-04-02 17:53:46,206 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2eefafd1-7545-44c2-822c-80d1488c6117 2026-04-02 17:53:46,211 - DEBUG - Response Code: 404 2026-04-02 17:53:46,211 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-02 17:53:46,217 - DEBUG - Requesting: http://10.0.0.50:8082/domain/dfeab000-f59b-47ef-9f0e-fcf45df100a0 2026-04-02 17:53:46,270 - DEBUG - Requesting: http://10.0.0.50:8082/project/c3328670-f88c-4a9d-a8ac-4463477e5fb5 2026-04-02 17:53:46,335 - INFO - Validated that VN ctest-vn4-96981322 is not found in API Server 2026-04-02 17:53:46,344 - DEBUG - VN ctest-vn4-96981322 is not present in Agent 10.0.0.50 2026-04-02 17:53:46,344 - INFO - Validated that VN ctest-vn4-96981322 is not in any agent 2026-04-02 17:53:46,357 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-96981322 info 2026-04-02 17:53:46,379 - INFO - Deleted policy ctest-policy1-79103298 2026-04-02 17:53:46,541 - DEBUG - policy ctest-policy1-79103298 is not found in API Server 2026-04-02 17:53:46,795 - DEBUG - No XMPP flaps were noticed during the test