2026-10-05 03:12:47,935 - INFO - Domain Default found not creating 2026-10-05 03:12:48,142 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-58892711 not found, creating it 2026-10-05 03:12:48,939 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-58892711, ID : af202c0c-ebf3-4755-a281-3dabdf3d4384 2026-10-05 03:12:50,846 - INFO - ================================================================================ 2026-10-05 03:12:50,846 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-05 03:12:52,151 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0', '10.20.0.25': '0'}, '10.0.0.191': {'10.20.0.254': '0', '10.20.0.25': '0'}} with 2026-10-05 03:12:52,151 - INFO - Initial checks done. Running the testcase now 2026-10-05 03:12:52,151 - INFO - 2026-10-05 03:12:52,151 - INFO - ================================================================================ 2026-10-05 03:12:52,151 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-05 03:12:52,151 - 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-10-05 03:12:53,486 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0', '10.20.0.25': '0'}, '10.0.0.191': {'10.20.0.254': '0', '10.20.0.25': '0'}} with 2026-10-05 03:12:53,486 - INFO - Initial checks done. Running the testcase now 2026-10-05 03:12:53,486 - INFO - 2026-10-05 03:12:53,938 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58892711:ctest-vn4-17650642, 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-58892711:ctest-vn4-17650642, 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-58892711:ctest-vn4-17650642, 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-58892711:ctest-vn4-17650642, 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-10-05 03:12:54,607 - DEBUG - Response for create_network : {'network': {'id': '46c1e6fe-9133-468f-9829-7fb7bd55dd82', 'name': 'ctest-vn4-17650642', 'tenant_id': 'af202c0cebf34755a2813dabdf3d4384', 'project_id': 'af202c0cebf34755a2813dabdf3d4384', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-58892711', 'ctest-vn4-17650642'], 'port_security_enabled': True, 'description': ''}} 2026-10-05 03:12:54,960 - DEBUG - Response for create_subnet : {'subnet': {'id': '11942bb6-23f8-42fd-922b-4cd793f400f8', 'name': '', 'tenant_id': 'af202c0cebf34755a2813dabdf3d4384', 'network_id': '46c1e6fe-9133-468f-9829-7fb7bd55dd82', 'ip_version': 4, 'cidr': '21.127.28.0/26', 'allocation_pools': [{'start': '21.127.28.2', 'end': '21.127.28.62'}], 'gateway_ip': '21.127.28.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '21.127.28.2', 'tags': [], 'project_id': 'af202c0cebf34755a2813dabdf3d4384'}} 2026-10-05 03:12:55,200 - DEBUG - Response for create_subnet : {'subnet': {'id': '45ff0529-6f6b-46f4-8e6e-ab73223704fb', 'name': '', 'tenant_id': 'af202c0cebf34755a2813dabdf3d4384', 'network_id': '46c1e6fe-9133-468f-9829-7fb7bd55dd82', 'ip_version': 6, 'cidr': '2199:daad:c8f2:516a:f1cf:427f::/96', 'allocation_pools': [{'start': '2199:daad:c8f2:516a:f1cf:427f:0:2', 'end': '2199:daad:c8f2:516a:f1cf:427f:ffff:fffe'}], 'gateway_ip': '2199:daad:c8f2:516a:f1cf:427f:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2199:daad:c8f2:516a:f1cf:427f:0:2', 'tags': [], 'project_id': 'af202c0cebf34755a2813dabdf3d4384'}} 2026-10-05 03:12:55,232 - INFO - Created VN ctest-vn4-17650642 2026-10-05 03:12:55,253 - DEBUG - VN ctest-vn4-17650642 UUID is 46c1e6fe-9133-468f-9829-7fb7bd55dd82 2026-10-05 03:12:55,508 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '46c1e6fe-9133-468f-9829-7fb7bd55dd82', 'name': 'ctest-vn4-17650642', 'tenant_id': 'af202c0cebf34755a2813dabdf3d4384', 'project_id': 'af202c0cebf34755a2813dabdf3d4384', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['11942bb6-23f8-42fd-922b-4cd793f400f8', '45ff0529-6f6b-46f4-8e6e-ab73223704fb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-58892711', 'ctest-vn4-17650642'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-58892711', 'ctest-policy1-60672840']], 'subnet_ipam': [{'subnet_cidr': '21.127.28.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2199:daad:c8f2:516a:f1cf:427f::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-10-05 03:12:55,606 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-10-05 03:12:55,992 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-10-05 03:12:56,026 - DEBUG - Requesting: http://10.0.0.177:8082/domain/6850e378-7089-4036-8f54-55c0ed1b9054 2026-10-05 03:12:56,044 - DEBUG - Requesting: http://10.0.0.177:8082/project/af202c0c-ebf3-4755-a281-3dabdf3d4384 2026-10-05 03:12:56,155 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/46c1e6fe-9133-468f-9829-7fb7bd55dd82 2026-10-05 03:12:56,177 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/46c1e6fe-9133-468f-9829-7fb7bd55dd82 2026-10-05 03:12:56,191 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/551c6f52-d2fd-4435-bf48-0472a6f02c80 2026-10-05 03:12:56,201 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/551c6f52-d2fd-4435-bf48-0472a6f02c80 2026-10-05 03:12:56,211 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/ec4eb98b-eeb5-4947-8f64-729fa21cc835 2026-10-05 03:12:56,221 - DEBUG - Route Targets: ['target:64512:8000006'] 2026-10-05 03:12:56,221 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/46c1e6fe-9133-468f-9829-7fb7bd55dd82 2026-10-05 03:12:56,234 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/551c6f52-d2fd-4435-bf48-0472a6f02c80 2026-10-05 03:12:56,253 - INFO - Verified VN network id 15 for VN 46c1e6fe-9133-468f-9829-7fb7bd55dd82 2026-10-05 03:12:56,253 - INFO - Verifications in API Server for VN ctest-vn4-17650642 passed 2026-10-05 03:12:56,253 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/46c1e6fe-9133-468f-9829-7fb7bd55dd82 2026-10-05 03:12:56,265 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/551c6f52-d2fd-4435-bf48-0472a6f02c80 2026-10-05 03:12:56,275 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/551c6f52-d2fd-4435-bf48-0472a6f02c80 2026-10-05 03:12:56,284 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/ec4eb98b-eeb5-4947-8f64-729fa21cc835 2026-10-05 03:12:56,299 - DEBUG - Control-node 10.0.0.177 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58892711:ctest-vn4-17650642', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-58892711', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5098610234192250511', 'uuid-lslong': '10964435194942446978'}, 'enable': 'true', 'created': '2026-10-05T03:12:54', 'last-modified': '2026-10-05T03:12:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.842847'} 2026-10-05 03:12:56,310 - DEBUG - Route Targets: ['target:64512:8000006'] 2026-10-05 03:12:56,318 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58892711:ctest-vn4-17650642', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-58892711', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5098610234192250511', 'uuid-lslong': '10964435194942446978'}, 'enable': 'true', 'created': '2026-10-05T03:12:54', 'last-modified': '2026-10-05T03:12:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.867890'} 2026-10-05 03:12:56,327 - DEBUG - Route Targets: ['target:64512:8000006'] 2026-10-05 03:12:56,335 - DEBUG - Control-node 10.0.0.190 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58892711:ctest-vn4-17650642', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-58892711', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5098610234192250511', 'uuid-lslong': '10964435194942446978'}, 'enable': 'true', 'created': '2026-10-05T03:12:54', 'last-modified': '2026-10-05T03:12:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.884532'} 2026-10-05 03:12:56,343 - DEBUG - Route Targets: ['target:64512:8000006'] 2026-10-05 03:12:56,343 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-17650642 passed 2026-10-05 03:12:56,344 - DEBUG - ====Verifying policy data for ctest-vn4-17650642 in API_Server ====== 2026-10-05 03:12:56,344 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-10-05 03:12:56,351 - DEBUG - Requesting: http://10.0.0.177:8082/domain/6850e378-7089-4036-8f54-55c0ed1b9054 2026-10-05 03:12:56,366 - DEBUG - Requesting: http://10.0.0.177:8082/project/af202c0c-ebf3-4755-a281-3dabdf3d4384 2026-10-05 03:12:56,480 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/46c1e6fe-9133-468f-9829-7fb7bd55dd82 2026-10-05 03:12:56,495 - DEBUG - ==>Verifying data for policy with id: 0cd955e2-39a1-480d-85a0-4ffbcc26d1d0, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-58892711', 'ctest-policy1-60672840'] 2026-10-05 03:12:56,495 - INFO - VN ctest-vn4-17650642 Policy verification: verify_vn_policy_in_api_server, status: True 2026-10-05 03:12:56,496 - DEBUG - Verifying the vn in opserver 2026-10-05 03:12:56,496 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58892711:ctest-vn4-17650642 virtual network link through opserver 10.0.0.177 2026-10-05 03:12:56,496 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks 2026-10-05 03:12:56,876 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks 2026-10-05 03:12:56,945 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58892711:ctest-vn4-17650642', 'href': 'http://10.0.0.177:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58892711:ctest-vn4-17650642?flat'} 2026-10-05 03:12:56,945 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58892711:ctest-vn4-17650642 virtual network link through opserver 10.0.0.38 2026-10-05 03:12:56,945 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-10-05 03:12:57,348 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-10-05 03:12:57,414 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58892711:ctest-vn4-17650642', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58892711:ctest-vn4-17650642?flat'} 2026-10-05 03:12:57,414 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58892711:ctest-vn4-17650642 virtual network link through opserver 10.0.0.190 2026-10-05 03:12:57,414 - DEBUG - Requesting: http://10.0.0.190:8081/analytics/uves/virtual-networks 2026-10-05 03:12:57,788 - DEBUG - Requesting: http://10.0.0.190:8081/analytics/uves/virtual-networks 2026-10-05 03:12:57,860 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58892711:ctest-vn4-17650642', 'href': 'http://10.0.0.190:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58892711:ctest-vn4-17650642?flat'} 2026-10-05 03:12:57,860 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58892711:ctest-vn4-17650642 is found in opserver 2026-10-05 03:12:57,885 - DEBUG - Do not have enough data to verify VN in agent 2026-10-05 03:12:57,897 - DEBUG - VRF ids for VN ctest-vn4-17650642: {} 2026-10-05 03:12:57,897 - DEBUG - ====Verifying data for ctest-policy1-60672840 in API_Server ====== 2026-10-05 03:12:57,897 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-10-05 03:12:57,905 - DEBUG - Requesting: http://10.0.0.177:8082/domain/6850e378-7089-4036-8f54-55c0ed1b9054 2026-10-05 03:12:57,919 - DEBUG - Requesting: http://10.0.0.177:8082/project/af202c0c-ebf3-4755-a281-3dabdf3d4384 2026-10-05 03:12:58,020 - DEBUG - Requesting: http://10.0.0.177:8082/network-policy/0cd955e2-39a1-480d-85a0-4ffbcc26d1d0 2026-10-05 03:12:58,032 - INFO - Verified policy ctest-policy1-60672840 in API Server, Result: True 2026-10-05 03:12:58,033 - INFO - Done with setup and verification, moving onto test .. 2026-10-05 03:12:58,049 - INFO - Deleting VN ctest-vn4-17650642 2026-10-05 03:12:58,272 - DEBUG - Response for deleting network () 2026-10-05 03:12:58,273 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/551c6f52-d2fd-4435-bf48-0472a6f02c80 2026-10-05 03:12:58,287 - DEBUG - Response Code: 404 2026-10-05 03:12:58,288 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-10-05 03:12:58,296 - DEBUG - Requesting: http://10.0.0.177:8082/domain/6850e378-7089-4036-8f54-55c0ed1b9054 2026-10-05 03:12:58,352 - DEBUG - Requesting: http://10.0.0.177:8082/project/af202c0c-ebf3-4755-a281-3dabdf3d4384 2026-10-05 03:12:58,453 - INFO - Validated that VN ctest-vn4-17650642 is not found in API Server 2026-10-05 03:12:58,466 - DEBUG - VN ctest-vn4-17650642 is not present in Agent 10.0.0.50 2026-10-05 03:12:58,477 - DEBUG - VN ctest-vn4-17650642 is not present in Agent 10.0.0.191 2026-10-05 03:12:58,478 - INFO - Validated that VN ctest-vn4-17650642 is not in any agent 2026-10-05 03:12:58,517 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-17650642 info 2026-10-05 03:12:58,564 - INFO - Deleted policy ctest-policy1-60672840 2026-10-05 03:12:58,766 - DEBUG - policy ctest-policy1-60672840 is not found in API Server 2026-10-05 03:13:00,084 - DEBUG - No XMPP flaps were noticed during the test
2026-10-05 03:13:00,085 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:08]
2026-10-05 03:13:00,085 - INFO - -------------------------------------------------------------------------------- 2026-10-05 03:13:01,411 - DEBUG - No XMPP flaps were noticed during the test
2026-10-05 03:13:01,411 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:11]
2026-10-05 03:13:01,411 - INFO - -------------------------------------------------------------------------------- 2026-10-05 03:13:02,366 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-58892711, ID : af202c0c-ebf3-4755-a281-3dabdf3d4384