2026-09-07 15:31:11,186 - INFO - Domain Default found not creating 2026-09-07 15:31:11,337 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-55525870 not found, creating it 2026-09-07 15:31:11,807 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-55525870, ID : 04ef7755-a8a1-4ac4-965a-6cc3b407cc6c 2026-09-07 15:31:13,321 - INFO - ================================================================================ 2026-09-07 15:31:13,321 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-07 15:31:13,583 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.25': '0'}} with 2026-09-07 15:31:13,583 - INFO - Initial checks done. Running the testcase now 2026-09-07 15:31:13,583 - INFO - 2026-09-07 15:31:13,583 - INFO - ================================================================================ 2026-09-07 15:31:13,583 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-07 15:31:13,583 - 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 15:31:13,876 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.25': '0'}} with 2026-09-07 15:31:13,876 - INFO - Initial checks done. Running the testcase now 2026-09-07 15:31:13,876 - INFO - 2026-09-07 15:31:14,254 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55525870:ctest-vn4-96784156, 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-55525870:ctest-vn4-96784156, 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-55525870:ctest-vn4-96784156, 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-55525870:ctest-vn4-96784156, 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 15:31:14,776 - DEBUG - Response for create_network : {'network': {'id': '58391384-545d-4916-9384-888959e4eecc', 'name': 'ctest-vn4-96784156', 'tenant_id': '04ef7755a8a14ac4965a6cc3b407cc6c', 'project_id': '04ef7755a8a14ac4965a6cc3b407cc6c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-55525870', 'ctest-vn4-96784156'], 'port_security_enabled': True, 'description': ''}} 2026-09-07 15:31:15,007 - DEBUG - Response for create_subnet : {'subnet': {'id': '1e368b38-9396-45dd-9a8f-3115a9e8b6d7', 'name': '', 'tenant_id': '04ef7755a8a14ac4965a6cc3b407cc6c', 'network_id': '58391384-545d-4916-9384-888959e4eecc', 'ip_version': 4, 'cidr': '199.45.83.0/26', 'allocation_pools': [{'start': '199.45.83.2', 'end': '199.45.83.62'}], 'gateway_ip': '199.45.83.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '199.45.83.2', 'tags': [], 'project_id': '04ef7755a8a14ac4965a6cc3b407cc6c'}} 2026-09-07 15:31:15,153 - DEBUG - Response for create_subnet : {'subnet': {'id': '6083233f-71a8-49c5-9833-a392685dc52c', 'name': '', 'tenant_id': '04ef7755a8a14ac4965a6cc3b407cc6c', 'network_id': '58391384-545d-4916-9384-888959e4eecc', 'ip_version': 6, 'cidr': '3510:93a3:4bd5:f870:643e:b63e::/96', 'allocation_pools': [{'start': '3510:93a3:4bd5:f870:643e:b63e:0:2', 'end': '3510:93a3:4bd5:f870:643e:b63e:ffff:fffe'}], 'gateway_ip': '3510:93a3:4bd5:f870:643e:b63e:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3510:93a3:4bd5:f870:643e:b63e:0:2', 'tags': [], 'project_id': '04ef7755a8a14ac4965a6cc3b407cc6c'}} 2026-09-07 15:31:15,173 - INFO - Created VN ctest-vn4-96784156 2026-09-07 15:31:15,226 - DEBUG - VN ctest-vn4-96784156 UUID is 58391384-545d-4916-9384-888959e4eecc 2026-09-07 15:31:15,425 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '58391384-545d-4916-9384-888959e4eecc', 'name': 'ctest-vn4-96784156', 'tenant_id': '04ef7755a8a14ac4965a6cc3b407cc6c', 'project_id': '04ef7755a8a14ac4965a6cc3b407cc6c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['1e368b38-9396-45dd-9a8f-3115a9e8b6d7', '6083233f-71a8-49c5-9833-a392685dc52c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-55525870', 'ctest-vn4-96784156'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-55525870', 'ctest-policy1-76939194']], 'subnet_ipam': [{'subnet_cidr': '199.45.83.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3510:93a3:4bd5:f870:643e:b63e::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-07 15:31:15,586 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-09-07 15:31:15,908 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-09-07 15:31:15,933 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1239ee6e-d52c-4fb3-b772-900935cce62f 2026-09-07 15:31:15,944 - DEBUG - Requesting: http://10.0.0.50:8082/project/04ef7755-a8a1-4ac4-965a-6cc3b407cc6c 2026-09-07 15:31:16,018 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/58391384-545d-4916-9384-888959e4eecc 2026-09-07 15:31:16,030 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/58391384-545d-4916-9384-888959e4eecc 2026-09-07 15:31:16,039 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/50178984-cdca-49b6-9800-7db3f234a491 2026-09-07 15:31:16,046 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/50178984-cdca-49b6-9800-7db3f234a491 2026-09-07 15:31:16,052 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/4b95e783-5371-4a7c-a282-912b098ab3b9 2026-09-07 15:31:16,058 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-07 15:31:16,058 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/58391384-545d-4916-9384-888959e4eecc 2026-09-07 15:31:16,066 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/50178984-cdca-49b6-9800-7db3f234a491 2026-09-07 15:31:16,078 - INFO - Verified VN network id 12 for VN 58391384-545d-4916-9384-888959e4eecc 2026-09-07 15:31:16,079 - INFO - Verifications in API Server for VN ctest-vn4-96784156 passed 2026-09-07 15:31:16,079 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/58391384-545d-4916-9384-888959e4eecc 2026-09-07 15:31:16,087 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/50178984-cdca-49b6-9800-7db3f234a491 2026-09-07 15:31:16,094 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/50178984-cdca-49b6-9800-7db3f234a491 2026-09-07 15:31:16,099 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/4b95e783-5371-4a7c-a282-912b098ab3b9 2026-09-07 15:31:16,111 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55525870:ctest-vn4-96784156', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-55525870', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6357133808082176278', 'uuid-lslong': '10629771144001285836'}, 'enable': 'true', 'created': '2026-09-07T15:31:14', 'last-modified': '2026-09-07T15:31:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.712512'} 2026-09-07 15:31:16,117 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-07 15:31:16,118 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-96784156 passed 2026-09-07 15:31:16,118 - DEBUG - ====Verifying policy data for ctest-vn4-96784156 in API_Server ====== 2026-09-07 15:31:16,118 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-09-07 15:31:16,123 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1239ee6e-d52c-4fb3-b772-900935cce62f 2026-09-07 15:31:16,133 - DEBUG - Requesting: http://10.0.0.50:8082/project/04ef7755-a8a1-4ac4-965a-6cc3b407cc6c 2026-09-07 15:31:16,210 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/58391384-545d-4916-9384-888959e4eecc 2026-09-07 15:31:16,220 - DEBUG - ==>Verifying data for policy with id: d72cc305-1689-47bf-b4a1-82027564c977, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-55525870', 'ctest-policy1-76939194'] 2026-09-07 15:31:16,220 - INFO - VN ctest-vn4-96784156 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-07 15:31:16,220 - DEBUG - Verifying the vn in opserver 2026-09-07 15:31:16,220 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55525870:ctest-vn4-96784156 virtual network link through opserver 10.0.0.50 2026-09-07 15:31:16,220 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-09-07 15:31:16,540 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-09-07 15:31:16,591 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55525870:ctest-vn4-96784156', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55525870:ctest-vn4-96784156?flat'} 2026-09-07 15:31:16,591 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55525870:ctest-vn4-96784156 is found in opserver 2026-09-07 15:31:16,601 - DEBUG - Do not have enough data to verify VN in agent 2026-09-07 15:31:16,605 - DEBUG - VRF ids for VN ctest-vn4-96784156: {} 2026-09-07 15:31:16,606 - DEBUG - ====Verifying data for ctest-policy1-76939194 in API_Server ====== 2026-09-07 15:31:16,606 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-09-07 15:31:16,612 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1239ee6e-d52c-4fb3-b772-900935cce62f 2026-09-07 15:31:16,622 - DEBUG - Requesting: http://10.0.0.50:8082/project/04ef7755-a8a1-4ac4-965a-6cc3b407cc6c 2026-09-07 15:31:16,701 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/d72cc305-1689-47bf-b4a1-82027564c977 2026-09-07 15:31:16,712 - INFO - Verified policy ctest-policy1-76939194 in API Server, Result: True 2026-09-07 15:31:16,712 - INFO - Done with setup and verification, moving onto test .. 2026-09-07 15:31:16,721 - INFO - Deleting VN ctest-vn4-96784156 2026-09-07 15:31:16,837 - DEBUG - Response for deleting network () 2026-09-07 15:31:16,838 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/50178984-cdca-49b6-9800-7db3f234a491 2026-09-07 15:31:16,843 - DEBUG - Response Code: 404 2026-09-07 15:31:16,843 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-09-07 15:31:16,849 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1239ee6e-d52c-4fb3-b772-900935cce62f 2026-09-07 15:31:16,902 - DEBUG - Requesting: http://10.0.0.50:8082/project/04ef7755-a8a1-4ac4-965a-6cc3b407cc6c 2026-09-07 15:31:16,972 - INFO - Validated that VN ctest-vn4-96784156 is not found in API Server 2026-09-07 15:31:16,982 - DEBUG - VN ctest-vn4-96784156 is not present in Agent 10.0.0.50 2026-09-07 15:31:16,982 - INFO - Validated that VN ctest-vn4-96784156 is not in any agent 2026-09-07 15:31:16,996 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-96784156 info 2026-09-07 15:31:17,020 - INFO - Deleted policy ctest-policy1-76939194 2026-09-07 15:31:17,190 - DEBUG - policy ctest-policy1-76939194 is not found in API Server 2026-09-07 15:31:17,444 - DEBUG - No XMPP flaps were noticed during the test