2025-12-22 02:13:05,661 - INFO - Domain Default found not creating 2025-12-22 02:13:05,854 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-75218686 not found, creating it 2025-12-22 02:13:06,341 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-75218686, ID : 8a1f342a-fd47-4a5e-949e-3f1a390a4f4f 2025-12-22 02:13:07,932 - INFO - ================================================================================ 2025-12-22 02:13:07,932 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-22 02:13:08,187 - DEBUG - Nothing to compare xmpp stats {'10.0.0.131': {'10.20.0.249': '0'}} with 2025-12-22 02:13:08,187 - INFO - Initial checks done. Running the testcase now 2025-12-22 02:13:08,187 - INFO - 2025-12-22 02:13:08,187 - INFO - ================================================================================ 2025-12-22 02:13:08,187 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-22 02:13:08,187 - 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. 2025-12-22 02:13:08,475 - DEBUG - Nothing to compare xmpp stats {'10.0.0.131': {'10.20.0.249': '0'}} with 2025-12-22 02:13:08,475 - INFO - Initial checks done. Running the testcase now 2025-12-22 02:13:08,475 - INFO - 2025-12-22 02:13:08,885 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75218686:ctest-vn4-57242642, 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-75218686:ctest-vn4-57242642, 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-75218686:ctest-vn4-57242642, 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-75218686:ctest-vn4-57242642, 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] 2025-12-22 02:13:09,405 - DEBUG - Response for create_network : {'network': {'id': '41715a8c-2689-4102-95ac-55965965f7cf', 'name': 'ctest-vn4-57242642', 'tenant_id': '8a1f342afd474a5e949e3f1a390a4f4f', 'project_id': '8a1f342afd474a5e949e3f1a390a4f4f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-75218686', 'ctest-vn4-57242642'], 'port_security_enabled': True, 'description': ''}} 2025-12-22 02:13:09,625 - DEBUG - Response for create_subnet : {'subnet': {'id': '92feedac-95a7-4868-bb36-839f0ae196c6', 'name': '', 'tenant_id': '8a1f342afd474a5e949e3f1a390a4f4f', 'network_id': '41715a8c-2689-4102-95ac-55965965f7cf', 'ip_version': 4, 'cidr': '63.6.45.64/26', 'allocation_pools': [{'start': '63.6.45.66', 'end': '63.6.45.126'}], 'gateway_ip': '63.6.45.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '63.6.45.66', 'tags': [], 'project_id': '8a1f342afd474a5e949e3f1a390a4f4f'}} 2025-12-22 02:13:09,808 - DEBUG - Response for create_subnet : {'subnet': {'id': '43fb5612-27de-4ca1-80dd-5731a4e4029f', 'name': '', 'tenant_id': '8a1f342afd474a5e949e3f1a390a4f4f', 'network_id': '41715a8c-2689-4102-95ac-55965965f7cf', 'ip_version': 6, 'cidr': '22aa:1464:37e9:a2c3:c3ad:483b::/96', 'allocation_pools': [{'start': '22aa:1464:37e9:a2c3:c3ad:483b:0:2', 'end': '22aa:1464:37e9:a2c3:c3ad:483b:ffff:fffe'}], 'gateway_ip': '22aa:1464:37e9:a2c3:c3ad:483b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '22aa:1464:37e9:a2c3:c3ad:483b:0:2', 'tags': [], 'project_id': '8a1f342afd474a5e949e3f1a390a4f4f'}} 2025-12-22 02:13:09,833 - INFO - Created VN ctest-vn4-57242642 2025-12-22 02:13:09,885 - DEBUG - VN ctest-vn4-57242642 UUID is 41715a8c-2689-4102-95ac-55965965f7cf 2025-12-22 02:13:10,113 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '41715a8c-2689-4102-95ac-55965965f7cf', 'name': 'ctest-vn4-57242642', 'tenant_id': '8a1f342afd474a5e949e3f1a390a4f4f', 'project_id': '8a1f342afd474a5e949e3f1a390a4f4f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['92feedac-95a7-4868-bb36-839f0ae196c6', '43fb5612-27de-4ca1-80dd-5731a4e4029f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-75218686', 'ctest-vn4-57242642'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-75218686', 'ctest-policy1-09102980']], 'subnet_ipam': [{'subnet_cidr': '63.6.45.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '22aa:1464:37e9:a2c3:c3ad:483b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-22 02:13:10,289 - DEBUG - Requesting: http://10.0.0.131:8082/domains 2025-12-22 02:13:10,596 - DEBUG - Requesting: http://10.0.0.131:8082/domains 2025-12-22 02:13:10,627 - DEBUG - Requesting: http://10.0.0.131:8082/domain/e63556d5-ccc7-4ac7-9e09-6f38f7aa70d0 2025-12-22 02:13:10,641 - DEBUG - Requesting: http://10.0.0.131:8082/project/8a1f342a-fd47-4a5e-949e-3f1a390a4f4f 2025-12-22 02:13:10,712 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/41715a8c-2689-4102-95ac-55965965f7cf 2025-12-22 02:13:10,724 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/41715a8c-2689-4102-95ac-55965965f7cf 2025-12-22 02:13:10,734 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/90bc3637-1e6a-462d-9604-a6b32e88d1fb 2025-12-22 02:13:10,740 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/90bc3637-1e6a-462d-9604-a6b32e88d1fb 2025-12-22 02:13:10,747 - DEBUG - Requesting: http://10.0.0.131:8082/route-target/81542520-56d6-4915-b3dd-e950b226239a 2025-12-22 02:13:10,755 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-22 02:13:10,756 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/41715a8c-2689-4102-95ac-55965965f7cf 2025-12-22 02:13:10,765 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/90bc3637-1e6a-462d-9604-a6b32e88d1fb 2025-12-22 02:13:10,781 - INFO - Verified VN network id 11 for VN 41715a8c-2689-4102-95ac-55965965f7cf 2025-12-22 02:13:10,781 - INFO - Verifications in API Server for VN ctest-vn4-57242642 passed 2025-12-22 02:13:10,781 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/41715a8c-2689-4102-95ac-55965965f7cf 2025-12-22 02:13:10,795 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/90bc3637-1e6a-462d-9604-a6b32e88d1fb 2025-12-22 02:13:10,802 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/90bc3637-1e6a-462d-9604-a6b32e88d1fb 2025-12-22 02:13:10,810 - DEBUG - Requesting: http://10.0.0.131:8082/route-target/81542520-56d6-4915-b3dd-e950b226239a 2025-12-22 02:13:10,823 - DEBUG - Control-node 10.0.0.131 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75218686:ctest-vn4-57242642', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-75218686', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4715649842822070530', 'uuid-lslong': '10785089311878805455'}, 'enable': 'true', 'created': '2025-12-22T02:13:09', 'last-modified': '2025-12-22T02:13:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.739885'} 2025-12-22 02:13:10,832 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-22 02:13:10,832 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-57242642 passed 2025-12-22 02:13:10,832 - DEBUG - ====Verifying policy data for ctest-vn4-57242642 in API_Server ====== 2025-12-22 02:13:10,832 - DEBUG - Requesting: http://10.0.0.131:8082/domains 2025-12-22 02:13:10,841 - DEBUG - Requesting: http://10.0.0.131:8082/domain/e63556d5-ccc7-4ac7-9e09-6f38f7aa70d0 2025-12-22 02:13:10,853 - DEBUG - Requesting: http://10.0.0.131:8082/project/8a1f342a-fd47-4a5e-949e-3f1a390a4f4f 2025-12-22 02:13:10,926 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/41715a8c-2689-4102-95ac-55965965f7cf 2025-12-22 02:13:10,938 - DEBUG - ==>Verifying data for policy with id: 5759926b-ce0c-418a-927f-cc8c7ba5007c, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-75218686', 'ctest-policy1-09102980'] 2025-12-22 02:13:10,938 - INFO - VN ctest-vn4-57242642 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-22 02:13:10,938 - DEBUG - Verifying the vn in opserver 2025-12-22 02:13:10,938 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75218686:ctest-vn4-57242642 virtual network link through opserver 10.0.0.131 2025-12-22 02:13:10,938 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks 2025-12-22 02:13:11,263 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks 2025-12-22 02:13:11,344 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75218686:ctest-vn4-57242642', 'href': 'http://10.0.0.131:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75218686:ctest-vn4-57242642?flat'} 2025-12-22 02:13:11,344 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75218686:ctest-vn4-57242642 is found in opserver 2025-12-22 02:13:11,355 - DEBUG - Do not have enough data to verify VN in agent 2025-12-22 02:13:11,361 - DEBUG - VRF ids for VN ctest-vn4-57242642: {} 2025-12-22 02:13:11,361 - DEBUG - ====Verifying data for ctest-policy1-09102980 in API_Server ====== 2025-12-22 02:13:11,362 - DEBUG - Requesting: http://10.0.0.131:8082/domains 2025-12-22 02:13:11,368 - DEBUG - Requesting: http://10.0.0.131:8082/domain/e63556d5-ccc7-4ac7-9e09-6f38f7aa70d0 2025-12-22 02:13:11,381 - DEBUG - Requesting: http://10.0.0.131:8082/project/8a1f342a-fd47-4a5e-949e-3f1a390a4f4f 2025-12-22 02:13:11,468 - DEBUG - Requesting: http://10.0.0.131:8082/network-policy/5759926b-ce0c-418a-927f-cc8c7ba5007c 2025-12-22 02:13:11,480 - INFO - Verified policy ctest-policy1-09102980 in API Server, Result: True 2025-12-22 02:13:11,480 - INFO - Done with setup and verification, moving onto test .. 2025-12-22 02:13:11,491 - INFO - Deleting VN ctest-vn4-57242642 2025-12-22 02:13:11,614 - DEBUG - Response for deleting network () 2025-12-22 02:13:11,614 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/90bc3637-1e6a-462d-9604-a6b32e88d1fb 2025-12-22 02:13:11,619 - DEBUG - Response Code: 404 2025-12-22 02:13:11,619 - DEBUG - Requesting: http://10.0.0.131:8082/domains 2025-12-22 02:13:11,625 - DEBUG - Requesting: http://10.0.0.131:8082/domain/e63556d5-ccc7-4ac7-9e09-6f38f7aa70d0 2025-12-22 02:13:11,678 - DEBUG - Requesting: http://10.0.0.131:8082/project/8a1f342a-fd47-4a5e-949e-3f1a390a4f4f 2025-12-22 02:13:11,750 - INFO - Validated that VN ctest-vn4-57242642 is not found in API Server 2025-12-22 02:13:11,763 - DEBUG - VN ctest-vn4-57242642 is not present in Agent 10.0.0.131 2025-12-22 02:13:11,763 - INFO - Validated that VN ctest-vn4-57242642 is not in any agent 2025-12-22 02:13:11,780 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-57242642 info 2025-12-22 02:13:11,806 - INFO - Deleted policy ctest-policy1-09102980 2025-12-22 02:13:11,965 - DEBUG - policy ctest-policy1-09102980 is not found in API Server 2025-12-22 02:13:12,223 - DEBUG - No XMPP flaps were noticed during the test
2025-12-22 02:13:12,223 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-12-22 02:13:12,223 - INFO - -------------------------------------------------------------------------------- 2025-12-22 02:13:12,538 - DEBUG - No XMPP flaps were noticed during the test
2025-12-22 02:13:12,538 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-12-22 02:13:12,538 - INFO - -------------------------------------------------------------------------------- 2025-12-22 02:13:13,243 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-75218686, ID : 8a1f342a-fd47-4a5e-949e-3f1a390a4f4f