2025-10-27 13:57:10,820 - INFO - Domain Default found not creating 2025-10-27 13:57:10,996 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-08522061 not found, creating it 2025-10-27 13:57:11,490 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-08522061, ID : a56ada8a-2459-4794-9a1b-65bf26055379 2025-10-27 13:57:13,033 - INFO - ================================================================================ 2025-10-27 13:57:13,034 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-27 13:57:13,291 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with 2025-10-27 13:57:13,291 - INFO - Initial checks done. Running the testcase now 2025-10-27 13:57:13,292 - INFO - 2025-10-27 13:57:13,292 - INFO - ================================================================================ 2025-10-27 13:57:13,292 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-27 13:57:13,292 - 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-10-27 13:57:13,582 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with 2025-10-27 13:57:13,582 - INFO - Initial checks done. Running the testcase now 2025-10-27 13:57:13,582 - INFO - 2025-10-27 13:57:13,944 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08522061:ctest-vn4-27032595, 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-08522061:ctest-vn4-27032595, 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-08522061:ctest-vn4-27032595, 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-08522061:ctest-vn4-27032595, 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-10-27 13:57:14,465 - DEBUG - Response for create_network : {'network': {'id': '10223c28-a690-4165-b7e5-ced162e51ea2', 'name': 'ctest-vn4-27032595', 'tenant_id': 'a56ada8a245947949a1b65bf26055379', 'project_id': 'a56ada8a245947949a1b65bf26055379', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-08522061', 'ctest-vn4-27032595'], 'port_security_enabled': True, 'description': ''}} 2025-10-27 13:57:14,641 - DEBUG - Response for create_subnet : {'subnet': {'id': '2190a07a-c1cf-4a7d-ad13-19b7e28739c2', 'name': '', 'tenant_id': 'a56ada8a245947949a1b65bf26055379', 'network_id': '10223c28-a690-4165-b7e5-ced162e51ea2', 'ip_version': 4, 'cidr': '11.76.61.128/26', 'allocation_pools': [{'start': '11.76.61.130', 'end': '11.76.61.190'}], 'gateway_ip': '11.76.61.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '11.76.61.130', 'tags': [], 'project_id': 'a56ada8a245947949a1b65bf26055379'}} 2025-10-27 13:57:14,849 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e924c4f2-f054-4fa0-bad3-2e9cb2677e4a', 'name': '', 'tenant_id': 'a56ada8a245947949a1b65bf26055379', 'network_id': '10223c28-a690-4165-b7e5-ced162e51ea2', 'ip_version': 6, 'cidr': '3410:8690:fc6c:398f:d43c:e44d::/96', 'allocation_pools': [{'start': '3410:8690:fc6c:398f:d43c:e44d:0:2', 'end': '3410:8690:fc6c:398f:d43c:e44d:ffff:fffe'}], 'gateway_ip': '3410:8690:fc6c:398f:d43c:e44d:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3410:8690:fc6c:398f:d43c:e44d:0:2', 'tags': [], 'project_id': 'a56ada8a245947949a1b65bf26055379'}} 2025-10-27 13:57:14,871 - INFO - Created VN ctest-vn4-27032595 2025-10-27 13:57:14,925 - DEBUG - VN ctest-vn4-27032595 UUID is 10223c28-a690-4165-b7e5-ced162e51ea2 2025-10-27 13:57:15,130 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '10223c28-a690-4165-b7e5-ced162e51ea2', 'name': 'ctest-vn4-27032595', 'tenant_id': 'a56ada8a245947949a1b65bf26055379', 'project_id': 'a56ada8a245947949a1b65bf26055379', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2190a07a-c1cf-4a7d-ad13-19b7e28739c2', 'e924c4f2-f054-4fa0-bad3-2e9cb2677e4a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-08522061', 'ctest-vn4-27032595'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-08522061', 'ctest-policy1-85144112']], 'subnet_ipam': [{'subnet_cidr': '11.76.61.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3410:8690:fc6c:398f:d43c:e44d::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-27 13:57:15,362 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-27 13:57:15,669 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-27 13:57:15,700 - DEBUG - Requesting: http://10.0.0.242:8082/domain/c8788a6e-59cc-401c-9c15-61ceece4ce05 2025-10-27 13:57:15,713 - DEBUG - Requesting: http://10.0.0.242:8082/project/a56ada8a-2459-4794-9a1b-65bf26055379 2025-10-27 13:57:15,788 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/10223c28-a690-4165-b7e5-ced162e51ea2 2025-10-27 13:57:15,800 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/10223c28-a690-4165-b7e5-ced162e51ea2 2025-10-27 13:57:15,810 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/088ec7ba-5b89-4030-8545-00f78fda2189 2025-10-27 13:57:15,817 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/088ec7ba-5b89-4030-8545-00f78fda2189 2025-10-27 13:57:15,825 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/221c7b54-ea2f-483d-92b9-8488b0a8a094 2025-10-27 13:57:15,831 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-27 13:57:15,831 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/10223c28-a690-4165-b7e5-ced162e51ea2 2025-10-27 13:57:15,840 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/088ec7ba-5b89-4030-8545-00f78fda2189 2025-10-27 13:57:15,856 - INFO - Verified VN network id 12 for VN 10223c28-a690-4165-b7e5-ced162e51ea2 2025-10-27 13:57:15,856 - INFO - Verifications in API Server for VN ctest-vn4-27032595 passed 2025-10-27 13:57:15,856 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/10223c28-a690-4165-b7e5-ced162e51ea2 2025-10-27 13:57:15,867 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/088ec7ba-5b89-4030-8545-00f78fda2189 2025-10-27 13:57:15,875 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/088ec7ba-5b89-4030-8545-00f78fda2189 2025-10-27 13:57:15,885 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/221c7b54-ea2f-483d-92b9-8488b0a8a094 2025-10-27 13:57:15,899 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08522061:ctest-vn4-27032595', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-08522061', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1162557799105839461', 'uuid-lslong': '13251224877310221986'}, 'enable': 'true', 'created': '2025-10-27T13:57:14', 'last-modified': '2025-10-27T13:57:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.792998'} 2025-10-27 13:57:15,906 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-27 13:57:15,906 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-27032595 passed 2025-10-27 13:57:15,906 - DEBUG - ====Verifying policy data for ctest-vn4-27032595 in API_Server ====== 2025-10-27 13:57:15,906 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-27 13:57:15,913 - DEBUG - Requesting: http://10.0.0.242:8082/domain/c8788a6e-59cc-401c-9c15-61ceece4ce05 2025-10-27 13:57:15,925 - DEBUG - Requesting: http://10.0.0.242:8082/project/a56ada8a-2459-4794-9a1b-65bf26055379 2025-10-27 13:57:15,996 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/10223c28-a690-4165-b7e5-ced162e51ea2 2025-10-27 13:57:16,006 - DEBUG - ==>Verifying data for policy with id: e90dd305-df7a-48bb-8e72-730b3326d3eb, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-08522061', 'ctest-policy1-85144112'] 2025-10-27 13:57:16,007 - INFO - VN ctest-vn4-27032595 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-27 13:57:16,007 - DEBUG - Verifying the vn in opserver 2025-10-27 13:57:16,007 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08522061:ctest-vn4-27032595 virtual network link through opserver 10.0.0.242 2025-10-27 13:57:16,007 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-10-27 13:57:16,303 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-10-27 13:57:16,365 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08522061:ctest-vn4-27032595', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08522061:ctest-vn4-27032595?flat'} 2025-10-27 13:57:16,365 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08522061:ctest-vn4-27032595 is found in opserver 2025-10-27 13:57:16,376 - DEBUG - Do not have enough data to verify VN in agent 2025-10-27 13:57:16,381 - DEBUG - VRF ids for VN ctest-vn4-27032595: {} 2025-10-27 13:57:16,381 - DEBUG - ====Verifying data for ctest-policy1-85144112 in API_Server ====== 2025-10-27 13:57:16,381 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-27 13:57:16,388 - DEBUG - Requesting: http://10.0.0.242:8082/domain/c8788a6e-59cc-401c-9c15-61ceece4ce05 2025-10-27 13:57:16,399 - DEBUG - Requesting: http://10.0.0.242:8082/project/a56ada8a-2459-4794-9a1b-65bf26055379 2025-10-27 13:57:16,476 - DEBUG - Requesting: http://10.0.0.242:8082/network-policy/e90dd305-df7a-48bb-8e72-730b3326d3eb 2025-10-27 13:57:16,487 - INFO - Verified policy ctest-policy1-85144112 in API Server, Result: True 2025-10-27 13:57:16,487 - INFO - Done with setup and verification, moving onto test .. 2025-10-27 13:57:16,496 - INFO - Deleting VN ctest-vn4-27032595 2025-10-27 13:57:16,622 - DEBUG - Response for deleting network () 2025-10-27 13:57:16,622 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/088ec7ba-5b89-4030-8545-00f78fda2189 2025-10-27 13:57:16,628 - DEBUG - Response Code: 404 2025-10-27 13:57:16,628 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-27 13:57:16,633 - DEBUG - Requesting: http://10.0.0.242:8082/domain/c8788a6e-59cc-401c-9c15-61ceece4ce05 2025-10-27 13:57:16,686 - DEBUG - Requesting: http://10.0.0.242:8082/project/a56ada8a-2459-4794-9a1b-65bf26055379 2025-10-27 13:57:16,763 - INFO - Validated that VN ctest-vn4-27032595 is not found in API Server 2025-10-27 13:57:16,774 - DEBUG - VN ctest-vn4-27032595 is not present in Agent 10.0.0.242 2025-10-27 13:57:16,774 - INFO - Validated that VN ctest-vn4-27032595 is not in any agent 2025-10-27 13:57:16,789 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-27032595 info 2025-10-27 13:57:16,813 - INFO - Deleted policy ctest-policy1-85144112 2025-10-27 13:57:16,985 - DEBUG - policy ctest-policy1-85144112 is not found in API Server 2025-10-27 13:57:17,243 - DEBUG - No XMPP flaps were noticed during the test 2025-10-27 13:57:17,243 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-27 13:57:17,243 - INFO - -------------------------------------------------------------------------------- 2025-10-27 13:57:17,532 - DEBUG - No XMPP flaps were noticed during the test 2025-10-27 13:57:17,532 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-27 13:57:17,533 - INFO - -------------------------------------------------------------------------------- 2025-10-27 13:57:18,239 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-08522061, ID : a56ada8a-2459-4794-9a1b-65bf26055379