2026-01-12 02:07:27,998 - INFO - Domain Default found not creating 2026-01-12 02:07:28,190 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-85202384 not found, creating it 2026-01-12 02:07:28,681 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-85202384, ID : bf201d16-a786-4d08-9671-c872f11ec452 2026-01-12 02:07:30,440 - INFO - ================================================================================ 2026-01-12 02:07:30,440 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-12 02:07:30,700 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.192': '0'}} with 2026-01-12 02:07:30,700 - INFO - Initial checks done. Running the testcase now 2026-01-12 02:07:30,700 - INFO - 2026-01-12 02:07:30,700 - INFO - ================================================================================ 2026-01-12 02:07:30,700 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-12 02:07:30,700 - 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-01-12 02:07:31,006 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.192': '0'}} with 2026-01-12 02:07:31,006 - INFO - Initial checks done. Running the testcase now 2026-01-12 02:07:31,006 - INFO - 2026-01-12 02:07:31,404 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85202384:ctest-vn4-99266747, 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-85202384:ctest-vn4-99266747, 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-85202384:ctest-vn4-99266747, 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-85202384:ctest-vn4-99266747, 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-01-12 02:07:31,926 - DEBUG - Response for create_network : {'network': {'id': 'ae928433-c6d3-4e5d-9cd8-5d6071db33d0', 'name': 'ctest-vn4-99266747', 'tenant_id': 'bf201d16a7864d089671c872f11ec452', 'project_id': 'bf201d16a7864d089671c872f11ec452', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85202384', 'ctest-vn4-99266747'], 'port_security_enabled': True, 'description': ''}} 2026-01-12 02:07:32,124 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fa133743-121f-42d6-b4b3-2472253673c3', 'name': '', 'tenant_id': 'bf201d16a7864d089671c872f11ec452', 'network_id': 'ae928433-c6d3-4e5d-9cd8-5d6071db33d0', 'ip_version': 4, 'cidr': '93.206.185.64/26', 'allocation_pools': [{'start': '93.206.185.66', 'end': '93.206.185.126'}], 'gateway_ip': '93.206.185.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '93.206.185.66', 'tags': [], 'project_id': 'bf201d16a7864d089671c872f11ec452'}} 2026-01-12 02:07:32,332 - DEBUG - Response for create_subnet : {'subnet': {'id': '9ca33878-b755-421f-86e2-47f4e8cc5994', 'name': '', 'tenant_id': 'bf201d16a7864d089671c872f11ec452', 'network_id': 'ae928433-c6d3-4e5d-9cd8-5d6071db33d0', 'ip_version': 6, 'cidr': '37a2:4664:1409:39ad:9ecb:4aae::/96', 'allocation_pools': [{'start': '37a2:4664:1409:39ad:9ecb:4aae:0:2', 'end': '37a2:4664:1409:39ad:9ecb:4aae:ffff:fffe'}], 'gateway_ip': '37a2:4664:1409:39ad:9ecb:4aae:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '37a2:4664:1409:39ad:9ecb:4aae:0:2', 'tags': [], 'project_id': 'bf201d16a7864d089671c872f11ec452'}} 2026-01-12 02:07:32,353 - INFO - Created VN ctest-vn4-99266747 2026-01-12 02:07:32,406 - DEBUG - VN ctest-vn4-99266747 UUID is ae928433-c6d3-4e5d-9cd8-5d6071db33d0 2026-01-12 02:07:32,641 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ae928433-c6d3-4e5d-9cd8-5d6071db33d0', 'name': 'ctest-vn4-99266747', 'tenant_id': 'bf201d16a7864d089671c872f11ec452', 'project_id': 'bf201d16a7864d089671c872f11ec452', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fa133743-121f-42d6-b4b3-2472253673c3', '9ca33878-b755-421f-86e2-47f4e8cc5994'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85202384', 'ctest-vn4-99266747'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85202384', 'ctest-policy1-54378044']], 'subnet_ipam': [{'subnet_cidr': '93.206.185.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '37a2:4664:1409:39ad:9ecb:4aae::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-12 02:07:32,802 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-01-12 02:07:33,153 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-01-12 02:07:33,188 - DEBUG - Requesting: http://10.0.0.141:8082/domain/d749fb7f-152a-44bd-a047-307afc2e3811 2026-01-12 02:07:33,204 - DEBUG - Requesting: http://10.0.0.141:8082/project/bf201d16-a786-4d08-9671-c872f11ec452 2026-01-12 02:07:33,282 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/ae928433-c6d3-4e5d-9cd8-5d6071db33d0 2026-01-12 02:07:33,295 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/ae928433-c6d3-4e5d-9cd8-5d6071db33d0 2026-01-12 02:07:33,306 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/51782c3c-2313-4f62-b548-a574ad0d31f1 2026-01-12 02:07:33,313 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/51782c3c-2313-4f62-b548-a574ad0d31f1 2026-01-12 02:07:33,321 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/6e9e0c9a-a075-441f-a00e-83b735de04c1 2026-01-12 02:07:33,329 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-12 02:07:33,329 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/ae928433-c6d3-4e5d-9cd8-5d6071db33d0 2026-01-12 02:07:33,340 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/51782c3c-2313-4f62-b548-a574ad0d31f1 2026-01-12 02:07:33,357 - INFO - Verified VN network id 12 for VN ae928433-c6d3-4e5d-9cd8-5d6071db33d0 2026-01-12 02:07:33,357 - INFO - Verifications in API Server for VN ctest-vn4-99266747 passed 2026-01-12 02:07:33,357 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/ae928433-c6d3-4e5d-9cd8-5d6071db33d0 2026-01-12 02:07:33,367 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/51782c3c-2313-4f62-b548-a574ad0d31f1 2026-01-12 02:07:33,377 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/51782c3c-2313-4f62-b548-a574ad0d31f1 2026-01-12 02:07:33,385 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/6e9e0c9a-a075-441f-a00e-83b735de04c1 2026-01-12 02:07:33,399 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85202384:ctest-vn4-99266747', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-85202384', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12579262067113152093', 'uuid-lslong': '11301885933694694352'}, 'enable': 'true', 'created': '2026-01-12T02:07:31', 'last-modified': '2026-01-12T02:07:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.795915'} 2026-01-12 02:07:33,405 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-12 02:07:33,406 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-99266747 passed 2026-01-12 02:07:33,406 - DEBUG - ====Verifying policy data for ctest-vn4-99266747 in API_Server ====== 2026-01-12 02:07:33,406 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-01-12 02:07:33,413 - DEBUG - Requesting: http://10.0.0.141:8082/domain/d749fb7f-152a-44bd-a047-307afc2e3811 2026-01-12 02:07:33,445 - DEBUG - Requesting: http://10.0.0.141:8082/project/bf201d16-a786-4d08-9671-c872f11ec452 2026-01-12 02:07:33,517 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/ae928433-c6d3-4e5d-9cd8-5d6071db33d0 2026-01-12 02:07:33,537 - DEBUG - ==>Verifying data for policy with id: 3b34b429-9b21-41b6-a440-48b88ba7b1a1, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85202384', 'ctest-policy1-54378044'] 2026-01-12 02:07:33,537 - INFO - VN ctest-vn4-99266747 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-12 02:07:33,537 - DEBUG - Verifying the vn in opserver 2026-01-12 02:07:33,537 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85202384:ctest-vn4-99266747 virtual network link through opserver 10.0.0.141 2026-01-12 02:07:33,537 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-01-12 02:07:33,930 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-01-12 02:07:34,045 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85202384:ctest-vn4-99266747', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85202384:ctest-vn4-99266747?flat'} 2026-01-12 02:07:34,045 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85202384:ctest-vn4-99266747 is found in opserver 2026-01-12 02:07:34,055 - DEBUG - Do not have enough data to verify VN in agent 2026-01-12 02:07:34,060 - DEBUG - VRF ids for VN ctest-vn4-99266747: {} 2026-01-12 02:07:34,060 - DEBUG - ====Verifying data for ctest-policy1-54378044 in API_Server ====== 2026-01-12 02:07:34,060 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-01-12 02:07:34,066 - DEBUG - Requesting: http://10.0.0.141:8082/domain/d749fb7f-152a-44bd-a047-307afc2e3811 2026-01-12 02:07:34,077 - DEBUG - Requesting: http://10.0.0.141:8082/project/bf201d16-a786-4d08-9671-c872f11ec452 2026-01-12 02:07:34,155 - DEBUG - Requesting: http://10.0.0.141:8082/network-policy/3b34b429-9b21-41b6-a440-48b88ba7b1a1 2026-01-12 02:07:34,165 - INFO - Verified policy ctest-policy1-54378044 in API Server, Result: True 2026-01-12 02:07:34,165 - INFO - Done with setup and verification, moving onto test .. 2026-01-12 02:07:34,173 - INFO - Deleting VN ctest-vn4-99266747 2026-01-12 02:07:34,322 - DEBUG - Response for deleting network () 2026-01-12 02:07:34,322 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/51782c3c-2313-4f62-b548-a574ad0d31f1 2026-01-12 02:07:34,329 - DEBUG - Response Code: 404 2026-01-12 02:07:34,329 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-01-12 02:07:34,335 - DEBUG - Requesting: http://10.0.0.141:8082/domain/d749fb7f-152a-44bd-a047-307afc2e3811 2026-01-12 02:07:34,387 - DEBUG - Requesting: http://10.0.0.141:8082/project/bf201d16-a786-4d08-9671-c872f11ec452 2026-01-12 02:07:34,457 - INFO - Validated that VN ctest-vn4-99266747 is not found in API Server 2026-01-12 02:07:34,469 - DEBUG - VN ctest-vn4-99266747 is not present in Agent 10.0.0.141 2026-01-12 02:07:34,469 - INFO - Validated that VN ctest-vn4-99266747 is not in any agent 2026-01-12 02:07:34,494 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-99266747 info 2026-01-12 02:07:34,520 - INFO - Deleted policy ctest-policy1-54378044 2026-01-12 02:07:34,702 - DEBUG - policy ctest-policy1-54378044 is not found in API Server 2026-01-12 02:07:34,960 - DEBUG - No XMPP flaps were noticed during the test 2026-01-12 02:07:34,960 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-01-12 02:07:34,960 - INFO - -------------------------------------------------------------------------------- 2026-01-12 02:07:35,247 - DEBUG - No XMPP flaps were noticed during the test 2026-01-12 02:07:35,247 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-01-12 02:07:35,247 - INFO - -------------------------------------------------------------------------------- 2026-01-12 02:07:36,024 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-85202384, ID : bf201d16-a786-4d08-9671-c872f11ec452