2026-02-09 23:06:45,137 - INFO - Domain Default found not creating 2026-02-09 23:06:45,311 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-74356743 not found, creating it 2026-02-09 23:06:45,827 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-74356743, ID : 2e831a88-5144-4909-88dc-ef3a100684ad 2026-02-09 23:06:47,480 - INFO - ================================================================================ 2026-02-09 23:06:47,480 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-09 23:06:47,733 - DEBUG - Nothing to compare xmpp stats {'10.0.0.40': {'10.20.0.17': '0'}} with 2026-02-09 23:06:47,733 - INFO - Initial checks done. Running the testcase now 2026-02-09 23:06:47,733 - INFO - 2026-02-09 23:06:47,734 - INFO - ================================================================================ 2026-02-09 23:06:47,734 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-09 23:06:47,734 - 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-02-09 23:06:48,030 - DEBUG - Nothing to compare xmpp stats {'10.0.0.40': {'10.20.0.17': '0'}} with 2026-02-09 23:06:48,030 - INFO - Initial checks done. Running the testcase now 2026-02-09 23:06:48,030 - INFO - 2026-02-09 23:06:48,420 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74356743:ctest-vn4-86422840, 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-74356743:ctest-vn4-86422840, 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-74356743:ctest-vn4-86422840, 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-74356743:ctest-vn4-86422840, 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-02-09 23:06:48,954 - DEBUG - Response for create_network : {'network': {'id': 'bd14382e-ba55-4ad1-89d7-1647559b42bc', 'name': 'ctest-vn4-86422840', 'tenant_id': '2e831a885144490988dcef3a100684ad', 'project_id': '2e831a885144490988dcef3a100684ad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74356743', 'ctest-vn4-86422840'], 'port_security_enabled': True, 'description': ''}} 2026-02-09 23:06:49,098 - DEBUG - Response for create_subnet : {'subnet': {'id': '4e14d3e6-5185-406f-b086-e212bbd9f294', 'name': '', 'tenant_id': '2e831a885144490988dcef3a100684ad', 'network_id': 'bd14382e-ba55-4ad1-89d7-1647559b42bc', 'ip_version': 4, 'cidr': '83.5.152.128/26', 'allocation_pools': [{'start': '83.5.152.130', 'end': '83.5.152.190'}], 'gateway_ip': '83.5.152.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '83.5.152.130', 'tags': [], 'project_id': '2e831a885144490988dcef3a100684ad'}} 2026-02-09 23:06:49,252 - DEBUG - Response for create_subnet : {'subnet': {'id': 'efb98e1a-73b5-4ad7-bda4-919902ed4460', 'name': '', 'tenant_id': '2e831a885144490988dcef3a100684ad', 'network_id': 'bd14382e-ba55-4ad1-89d7-1647559b42bc', 'ip_version': 6, 'cidr': '3678:f84:76d1:cd9e:f8d7:35c4::/96', 'allocation_pools': [{'start': '3678:f84:76d1:cd9e:f8d7:35c4:0:2', 'end': '3678:f84:76d1:cd9e:f8d7:35c4:ffff:fffe'}], 'gateway_ip': '3678:f84:76d1:cd9e:f8d7:35c4:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3678:f84:76d1:cd9e:f8d7:35c4:0:2', 'tags': [], 'project_id': '2e831a885144490988dcef3a100684ad'}} 2026-02-09 23:06:49,274 - INFO - Created VN ctest-vn4-86422840 2026-02-09 23:06:49,328 - DEBUG - VN ctest-vn4-86422840 UUID is bd14382e-ba55-4ad1-89d7-1647559b42bc 2026-02-09 23:06:49,545 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bd14382e-ba55-4ad1-89d7-1647559b42bc', 'name': 'ctest-vn4-86422840', 'tenant_id': '2e831a885144490988dcef3a100684ad', 'project_id': '2e831a885144490988dcef3a100684ad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4e14d3e6-5185-406f-b086-e212bbd9f294', 'efb98e1a-73b5-4ad7-bda4-919902ed4460'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74356743', 'ctest-vn4-86422840'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74356743', 'ctest-policy1-76282679']], 'subnet_ipam': [{'subnet_cidr': '83.5.152.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3678:f84:76d1:cd9e:f8d7:35c4::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-09 23:06:49,720 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2026-02-09 23:06:50,058 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2026-02-09 23:06:50,091 - DEBUG - Requesting: http://10.0.0.40:8082/domain/71b280c5-2fb5-49fe-8d3c-63acfdcc2871 2026-02-09 23:06:50,106 - DEBUG - Requesting: http://10.0.0.40:8082/project/2e831a88-5144-4909-88dc-ef3a100684ad 2026-02-09 23:06:50,181 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/bd14382e-ba55-4ad1-89d7-1647559b42bc 2026-02-09 23:06:50,195 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/bd14382e-ba55-4ad1-89d7-1647559b42bc 2026-02-09 23:06:50,208 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/0ca90a82-50a6-4173-96fb-62ddfc200fe7 2026-02-09 23:06:50,217 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/0ca90a82-50a6-4173-96fb-62ddfc200fe7 2026-02-09 23:06:50,225 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/d23e15bf-5aec-449f-80fe-448df20ec206 2026-02-09 23:06:50,232 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-09 23:06:50,232 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/bd14382e-ba55-4ad1-89d7-1647559b42bc 2026-02-09 23:06:50,243 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/0ca90a82-50a6-4173-96fb-62ddfc200fe7 2026-02-09 23:06:50,261 - INFO - Verified VN network id 11 for VN bd14382e-ba55-4ad1-89d7-1647559b42bc 2026-02-09 23:06:50,261 - INFO - Verifications in API Server for VN ctest-vn4-86422840 passed 2026-02-09 23:06:50,261 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/bd14382e-ba55-4ad1-89d7-1647559b42bc 2026-02-09 23:06:50,272 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/0ca90a82-50a6-4173-96fb-62ddfc200fe7 2026-02-09 23:06:50,281 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/0ca90a82-50a6-4173-96fb-62ddfc200fe7 2026-02-09 23:06:50,288 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/d23e15bf-5aec-449f-80fe-448df20ec206 2026-02-09 23:06:50,302 - DEBUG - Control-node 10.0.0.40 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74356743:ctest-vn4-86422840', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-74356743', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13624576546048395985', 'uuid-lslong': '9932431998823645884'}, 'enable': 'true', 'created': '2026-02-09T23:06:48', 'last-modified': '2026-02-09T23:06:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.791700'} 2026-02-09 23:06:50,308 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-09 23:06:50,308 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-86422840 passed 2026-02-09 23:06:50,308 - DEBUG - ====Verifying policy data for ctest-vn4-86422840 in API_Server ====== 2026-02-09 23:06:50,309 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2026-02-09 23:06:50,315 - DEBUG - Requesting: http://10.0.0.40:8082/domain/71b280c5-2fb5-49fe-8d3c-63acfdcc2871 2026-02-09 23:06:50,329 - DEBUG - Requesting: http://10.0.0.40:8082/project/2e831a88-5144-4909-88dc-ef3a100684ad 2026-02-09 23:06:50,406 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/bd14382e-ba55-4ad1-89d7-1647559b42bc 2026-02-09 23:06:50,418 - DEBUG - ==>Verifying data for policy with id: 536f3e50-9b2c-4156-8ec2-60c5c9f9444a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74356743', 'ctest-policy1-76282679'] 2026-02-09 23:06:50,418 - INFO - VN ctest-vn4-86422840 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-09 23:06:50,418 - DEBUG - Verifying the vn in opserver 2026-02-09 23:06:50,418 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74356743:ctest-vn4-86422840 virtual network link through opserver 10.0.0.40 2026-02-09 23:06:50,418 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks 2026-02-09 23:06:50,758 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks 2026-02-09 23:06:50,823 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74356743:ctest-vn4-86422840', 'href': 'http://10.0.0.40:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74356743:ctest-vn4-86422840?flat'} 2026-02-09 23:06:50,823 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74356743:ctest-vn4-86422840 is found in opserver 2026-02-09 23:06:50,833 - DEBUG - Do not have enough data to verify VN in agent 2026-02-09 23:06:50,838 - DEBUG - VRF ids for VN ctest-vn4-86422840: {} 2026-02-09 23:06:50,838 - DEBUG - ====Verifying data for ctest-policy1-76282679 in API_Server ====== 2026-02-09 23:06:50,838 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2026-02-09 23:06:50,844 - DEBUG - Requesting: http://10.0.0.40:8082/domain/71b280c5-2fb5-49fe-8d3c-63acfdcc2871 2026-02-09 23:06:50,856 - DEBUG - Requesting: http://10.0.0.40:8082/project/2e831a88-5144-4909-88dc-ef3a100684ad 2026-02-09 23:06:50,932 - DEBUG - Requesting: http://10.0.0.40:8082/network-policy/536f3e50-9b2c-4156-8ec2-60c5c9f9444a 2026-02-09 23:06:50,945 - INFO - Verified policy ctest-policy1-76282679 in API Server, Result: True 2026-02-09 23:06:50,946 - INFO - Done with setup and verification, moving onto test .. 2026-02-09 23:06:50,954 - INFO - Deleting VN ctest-vn4-86422840 2026-02-09 23:06:51,084 - DEBUG - Response for deleting network () 2026-02-09 23:06:51,084 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/0ca90a82-50a6-4173-96fb-62ddfc200fe7 2026-02-09 23:06:51,090 - DEBUG - Response Code: 404 2026-02-09 23:06:51,091 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2026-02-09 23:06:51,097 - DEBUG - Requesting: http://10.0.0.40:8082/domain/71b280c5-2fb5-49fe-8d3c-63acfdcc2871 2026-02-09 23:06:51,149 - DEBUG - Requesting: http://10.0.0.40:8082/project/2e831a88-5144-4909-88dc-ef3a100684ad 2026-02-09 23:06:51,223 - INFO - Validated that VN ctest-vn4-86422840 is not found in API Server 2026-02-09 23:06:51,234 - DEBUG - VN ctest-vn4-86422840 is not present in Agent 10.0.0.40 2026-02-09 23:06:51,234 - INFO - Validated that VN ctest-vn4-86422840 is not in any agent 2026-02-09 23:06:51,249 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-86422840 info 2026-02-09 23:06:51,276 - INFO - Deleted policy ctest-policy1-76282679 2026-02-09 23:06:51,444 - DEBUG - policy ctest-policy1-76282679 is not found in API Server 2026-02-09 23:06:51,702 - DEBUG - No XMPP flaps were noticed during the test
2026-02-09 23:06:51,702 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-09 23:06:51,702 - INFO - -------------------------------------------------------------------------------- 2026-02-09 23:06:51,999 - DEBUG - No XMPP flaps were noticed during the test
2026-02-09 23:06:51,999 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-09 23:06:51,999 - INFO - -------------------------------------------------------------------------------- 2026-02-09 23:06:52,737 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-74356743, ID : 2e831a88-5144-4909-88dc-ef3a100684ad