2025-10-20 02:12:27,853 - INFO - Domain Default found not creating 2025-10-20 02:12:28,011 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-49555663 not found, creating it 2025-10-20 02:12:28,490 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-49555663, ID : 4d3c68c5-3ef4-4b59-bc52-12daf9d54fd3 2025-10-20 02:12:30,079 - INFO - ================================================================================ 2025-10-20 02:12:30,079 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-20 02:12:30,334 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.129': '0'}} with 2025-10-20 02:12:30,334 - INFO - Initial checks done. Running the testcase now 2025-10-20 02:12:30,335 - INFO - 2025-10-20 02:12:30,335 - INFO - ================================================================================ 2025-10-20 02:12:30,335 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-20 02:12:30,335 - 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-20 02:12:30,623 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.129': '0'}} with 2025-10-20 02:12:30,623 - INFO - Initial checks done. Running the testcase now 2025-10-20 02:12:30,623 - INFO - 2025-10-20 02:12:31,007 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49555663:ctest-vn4-37526690, 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-49555663:ctest-vn4-37526690, 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-49555663:ctest-vn4-37526690, 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-49555663:ctest-vn4-37526690, 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-20 02:12:31,513 - DEBUG - Response for create_network : {'network': {'id': '458594ea-c93a-4d93-a6e3-a200a314b5e2', 'name': 'ctest-vn4-37526690', 'tenant_id': '4d3c68c53ef44b59bc5212daf9d54fd3', 'project_id': '4d3c68c53ef44b59bc5212daf9d54fd3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-49555663', 'ctest-vn4-37526690'], 'port_security_enabled': True, 'description': ''}} 2025-10-20 02:12:31,665 - DEBUG - Response for create_subnet : {'subnet': {'id': '83c491d2-16fe-40b8-9bdb-1a1284a967d3', 'name': '', 'tenant_id': '4d3c68c53ef44b59bc5212daf9d54fd3', 'network_id': '458594ea-c93a-4d93-a6e3-a200a314b5e2', 'ip_version': 4, 'cidr': '22.244.157.0/26', 'allocation_pools': [{'start': '22.244.157.2', 'end': '22.244.157.62'}], 'gateway_ip': '22.244.157.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '22.244.157.2', 'tags': [], 'project_id': '4d3c68c53ef44b59bc5212daf9d54fd3'}} 2025-10-20 02:12:31,866 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aa5d6e69-96c5-4c2f-a4bd-bfe6fe7af592', 'name': '', 'tenant_id': '4d3c68c53ef44b59bc5212daf9d54fd3', 'network_id': '458594ea-c93a-4d93-a6e3-a200a314b5e2', 'ip_version': 6, 'cidr': '2474:ce48:77b1:6da0:5057:51be::/96', 'allocation_pools': [{'start': '2474:ce48:77b1:6da0:5057:51be:0:2', 'end': '2474:ce48:77b1:6da0:5057:51be:ffff:fffe'}], 'gateway_ip': '2474:ce48:77b1:6da0:5057:51be:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2474:ce48:77b1:6da0:5057:51be:0:2', 'tags': [], 'project_id': '4d3c68c53ef44b59bc5212daf9d54fd3'}} 2025-10-20 02:12:31,889 - INFO - Created VN ctest-vn4-37526690 2025-10-20 02:12:31,942 - DEBUG - VN ctest-vn4-37526690 UUID is 458594ea-c93a-4d93-a6e3-a200a314b5e2 2025-10-20 02:12:32,158 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '458594ea-c93a-4d93-a6e3-a200a314b5e2', 'name': 'ctest-vn4-37526690', 'tenant_id': '4d3c68c53ef44b59bc5212daf9d54fd3', 'project_id': '4d3c68c53ef44b59bc5212daf9d54fd3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['83c491d2-16fe-40b8-9bdb-1a1284a967d3', 'aa5d6e69-96c5-4c2f-a4bd-bfe6fe7af592'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-49555663', 'ctest-vn4-37526690'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-49555663', 'ctest-policy1-94537824']], 'subnet_ipam': [{'subnet_cidr': '22.244.157.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2474:ce48:77b1:6da0:5057:51be::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-20 02:12:32,322 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-20 02:12:32,659 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-20 02:12:32,688 - DEBUG - Requesting: http://10.0.0.38:8082/domain/312264c3-a2f3-4ed3-ae26-6820a78f0c55 2025-10-20 02:12:32,699 - DEBUG - Requesting: http://10.0.0.38:8082/project/4d3c68c5-3ef4-4b59-bc52-12daf9d54fd3 2025-10-20 02:12:32,772 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/458594ea-c93a-4d93-a6e3-a200a314b5e2 2025-10-20 02:12:32,783 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/458594ea-c93a-4d93-a6e3-a200a314b5e2 2025-10-20 02:12:32,792 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f5ef0e27-47eb-4df5-b1f4-3227f21d9b31 2025-10-20 02:12:32,798 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f5ef0e27-47eb-4df5-b1f4-3227f21d9b31 2025-10-20 02:12:32,804 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/264c0ac3-2d53-4212-b741-857f70d90174 2025-10-20 02:12:32,809 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-20 02:12:32,809 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/458594ea-c93a-4d93-a6e3-a200a314b5e2 2025-10-20 02:12:32,818 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f5ef0e27-47eb-4df5-b1f4-3227f21d9b31 2025-10-20 02:12:32,836 - INFO - Verified VN network id 11 for VN 458594ea-c93a-4d93-a6e3-a200a314b5e2 2025-10-20 02:12:32,836 - INFO - Verifications in API Server for VN ctest-vn4-37526690 passed 2025-10-20 02:12:32,836 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/458594ea-c93a-4d93-a6e3-a200a314b5e2 2025-10-20 02:12:32,847 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f5ef0e27-47eb-4df5-b1f4-3227f21d9b31 2025-10-20 02:12:32,854 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f5ef0e27-47eb-4df5-b1f4-3227f21d9b31 2025-10-20 02:12:32,861 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/264c0ac3-2d53-4212-b741-857f70d90174 2025-10-20 02:12:32,877 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49555663:ctest-vn4-37526690', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-49555663', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5009573896638844307', 'uuid-lslong': '12025633553629099490'}, 'enable': 'true', 'created': '2025-10-20T02:12:31', 'last-modified': '2025-10-20T02:12:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.748089'} 2025-10-20 02:12:32,883 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-20 02:12:32,884 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-37526690 passed 2025-10-20 02:12:32,884 - DEBUG - ====Verifying policy data for ctest-vn4-37526690 in API_Server ====== 2025-10-20 02:12:32,884 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-20 02:12:32,890 - DEBUG - Requesting: http://10.0.0.38:8082/domain/312264c3-a2f3-4ed3-ae26-6820a78f0c55 2025-10-20 02:12:32,901 - DEBUG - Requesting: http://10.0.0.38:8082/project/4d3c68c5-3ef4-4b59-bc52-12daf9d54fd3 2025-10-20 02:12:32,972 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/458594ea-c93a-4d93-a6e3-a200a314b5e2 2025-10-20 02:12:32,984 - DEBUG - ==>Verifying data for policy with id: 1c33e535-b0dc-454c-8688-95a0fa4768de, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-49555663', 'ctest-policy1-94537824'] 2025-10-20 02:12:32,984 - INFO - VN ctest-vn4-37526690 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-20 02:12:32,985 - DEBUG - Verifying the vn in opserver 2025-10-20 02:12:32,985 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49555663:ctest-vn4-37526690 virtual network link through opserver 10.0.0.38 2025-10-20 02:12:32,985 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-20 02:12:33,318 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-20 02:12:33,373 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49555663:ctest-vn4-37526690', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49555663:ctest-vn4-37526690?flat'} 2025-10-20 02:12:33,373 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49555663:ctest-vn4-37526690 is found in opserver 2025-10-20 02:12:33,382 - DEBUG - Do not have enough data to verify VN in agent 2025-10-20 02:12:33,386 - DEBUG - VRF ids for VN ctest-vn4-37526690: {} 2025-10-20 02:12:33,386 - DEBUG - ====Verifying data for ctest-policy1-94537824 in API_Server ====== 2025-10-20 02:12:33,386 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-20 02:12:33,391 - DEBUG - Requesting: http://10.0.0.38:8082/domain/312264c3-a2f3-4ed3-ae26-6820a78f0c55 2025-10-20 02:12:33,401 - DEBUG - Requesting: http://10.0.0.38:8082/project/4d3c68c5-3ef4-4b59-bc52-12daf9d54fd3 2025-10-20 02:12:33,472 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/1c33e535-b0dc-454c-8688-95a0fa4768de 2025-10-20 02:12:33,482 - INFO - Verified policy ctest-policy1-94537824 in API Server, Result: True 2025-10-20 02:12:33,482 - INFO - Done with setup and verification, moving onto test .. 2025-10-20 02:12:33,490 - INFO - Deleting VN ctest-vn4-37526690 2025-10-20 02:12:33,611 - DEBUG - Response for deleting network () 2025-10-20 02:12:33,612 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f5ef0e27-47eb-4df5-b1f4-3227f21d9b31 2025-10-20 02:12:33,617 - DEBUG - Response Code: 404 2025-10-20 02:12:33,617 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-20 02:12:33,621 - DEBUG - Requesting: http://10.0.0.38:8082/domain/312264c3-a2f3-4ed3-ae26-6820a78f0c55 2025-10-20 02:12:33,675 - DEBUG - Requesting: http://10.0.0.38:8082/project/4d3c68c5-3ef4-4b59-bc52-12daf9d54fd3 2025-10-20 02:12:33,747 - INFO - Validated that VN ctest-vn4-37526690 is not found in API Server 2025-10-20 02:12:33,757 - DEBUG - VN ctest-vn4-37526690 is not present in Agent 10.0.0.38 2025-10-20 02:12:33,757 - INFO - Validated that VN ctest-vn4-37526690 is not in any agent 2025-10-20 02:12:33,771 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-37526690 info 2025-10-20 02:12:33,802 - INFO - Deleted policy ctest-policy1-94537824 2025-10-20 02:12:33,969 - DEBUG - policy ctest-policy1-94537824 is not found in API Server 2025-10-20 02:12:34,223 - DEBUG - No XMPP flaps were noticed during the test