2025-12-11 02:12:48,424 - INFO - Domain Default found not creating 2025-12-11 02:12:48,605 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-75398697 not found, creating it 2025-12-11 02:12:49,073 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-75398697, ID : 30fce47a-22b9-4c94-a767-c038dbdd4ad8 2025-12-11 02:12:50,640 - INFO - ================================================================================ 2025-12-11 02:12:50,640 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-11 02:12:50,914 - DEBUG - Nothing to compare xmpp stats {'10.0.0.56': {'10.20.0.129': '0'}} with 2025-12-11 02:12:50,915 - INFO - Initial checks done. Running the testcase now 2025-12-11 02:12:50,915 - INFO - 2025-12-11 02:12:50,915 - INFO - ================================================================================ 2025-12-11 02:12:50,915 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-11 02:12:50,915 - 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-11 02:12:51,217 - DEBUG - Nothing to compare xmpp stats {'10.0.0.56': {'10.20.0.129': '0'}} with 2025-12-11 02:12:51,217 - INFO - Initial checks done. Running the testcase now 2025-12-11 02:12:51,217 - INFO - 2025-12-11 02:12:51,742 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75398697:ctest-vn4-37668267, 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-75398697:ctest-vn4-37668267, 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-75398697:ctest-vn4-37668267, 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-75398697:ctest-vn4-37668267, 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-11 02:12:52,298 - DEBUG - Response for create_network : {'network': {'id': '9be746d3-bcee-4c07-aa7c-f8e29492e3b2', 'name': 'ctest-vn4-37668267', 'tenant_id': '30fce47a22b94c94a767c038dbdd4ad8', 'project_id': '30fce47a22b94c94a767c038dbdd4ad8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-75398697', 'ctest-vn4-37668267'], 'port_security_enabled': True, 'description': ''}} 2025-12-11 02:12:52,457 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e4687919-b06d-4f58-a7cf-c0b342d543d9', 'name': '', 'tenant_id': '30fce47a22b94c94a767c038dbdd4ad8', 'network_id': '9be746d3-bcee-4c07-aa7c-f8e29492e3b2', 'ip_version': 4, 'cidr': '37.131.20.64/26', 'allocation_pools': [{'start': '37.131.20.66', 'end': '37.131.20.126'}], 'gateway_ip': '37.131.20.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '37.131.20.66', 'tags': [], 'project_id': '30fce47a22b94c94a767c038dbdd4ad8'}} 2025-12-11 02:12:52,677 - DEBUG - Response for create_subnet : {'subnet': {'id': '1dbccc81-2b99-492a-ae67-b5b905f450c0', 'name': '', 'tenant_id': '30fce47a22b94c94a767c038dbdd4ad8', 'network_id': '9be746d3-bcee-4c07-aa7c-f8e29492e3b2', 'ip_version': 6, 'cidr': '3818:96aa:2895:7d30:2bb8:dcea::/96', 'allocation_pools': [{'start': '3818:96aa:2895:7d30:2bb8:dcea:0:2', 'end': '3818:96aa:2895:7d30:2bb8:dcea:ffff:fffe'}], 'gateway_ip': '3818:96aa:2895:7d30:2bb8:dcea:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3818:96aa:2895:7d30:2bb8:dcea:0:2', 'tags': [], 'project_id': '30fce47a22b94c94a767c038dbdd4ad8'}} 2025-12-11 02:12:52,699 - INFO - Created VN ctest-vn4-37668267 2025-12-11 02:12:52,750 - DEBUG - VN ctest-vn4-37668267 UUID is 9be746d3-bcee-4c07-aa7c-f8e29492e3b2 2025-12-11 02:12:52,970 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9be746d3-bcee-4c07-aa7c-f8e29492e3b2', 'name': 'ctest-vn4-37668267', 'tenant_id': '30fce47a22b94c94a767c038dbdd4ad8', 'project_id': '30fce47a22b94c94a767c038dbdd4ad8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e4687919-b06d-4f58-a7cf-c0b342d543d9', '1dbccc81-2b99-492a-ae67-b5b905f450c0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-75398697', 'ctest-vn4-37668267'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-75398697', 'ctest-policy1-48807876']], 'subnet_ipam': [{'subnet_cidr': '37.131.20.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3818:96aa:2895:7d30:2bb8:dcea::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-11 02:12:53,138 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-12-11 02:12:53,445 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-12-11 02:12:53,479 - DEBUG - Requesting: http://10.0.0.56:8082/domain/9b257eb7-ae6c-4eee-b8af-f6cdc055199d 2025-12-11 02:12:53,490 - DEBUG - Requesting: http://10.0.0.56:8082/project/30fce47a-22b9-4c94-a767-c038dbdd4ad8 2025-12-11 02:12:53,561 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/9be746d3-bcee-4c07-aa7c-f8e29492e3b2 2025-12-11 02:12:53,572 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/9be746d3-bcee-4c07-aa7c-f8e29492e3b2 2025-12-11 02:12:53,582 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/b7efd0b4-b751-4eee-8555-2e624df77eaa 2025-12-11 02:12:53,589 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/b7efd0b4-b751-4eee-8555-2e624df77eaa 2025-12-11 02:12:53,596 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/f59bf481-afa6-400a-8368-f3323e483913 2025-12-11 02:12:53,601 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-11 02:12:53,602 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/9be746d3-bcee-4c07-aa7c-f8e29492e3b2 2025-12-11 02:12:53,611 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/b7efd0b4-b751-4eee-8555-2e624df77eaa 2025-12-11 02:12:53,625 - INFO - Verified VN network id 10 for VN 9be746d3-bcee-4c07-aa7c-f8e29492e3b2 2025-12-11 02:12:53,625 - INFO - Verifications in API Server for VN ctest-vn4-37668267 passed 2025-12-11 02:12:53,625 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/9be746d3-bcee-4c07-aa7c-f8e29492e3b2 2025-12-11 02:12:53,633 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/b7efd0b4-b751-4eee-8555-2e624df77eaa 2025-12-11 02:12:53,640 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/b7efd0b4-b751-4eee-8555-2e624df77eaa 2025-12-11 02:12:53,646 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/f59bf481-afa6-400a-8368-f3323e483913 2025-12-11 02:12:53,656 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75398697:ctest-vn4-37668267', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-75398697', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11234025670720769031', 'uuid-lslong': '12284967535598822322'}, 'enable': 'true', 'created': '2025-12-11T02:12:52', 'last-modified': '2025-12-11T02:12:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.730897'} 2025-12-11 02:12:53,663 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-11 02:12:53,663 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-37668267 passed 2025-12-11 02:12:53,663 - DEBUG - ====Verifying policy data for ctest-vn4-37668267 in API_Server ====== 2025-12-11 02:12:53,663 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-12-11 02:12:53,670 - DEBUG - Requesting: http://10.0.0.56:8082/domain/9b257eb7-ae6c-4eee-b8af-f6cdc055199d 2025-12-11 02:12:53,680 - DEBUG - Requesting: http://10.0.0.56:8082/project/30fce47a-22b9-4c94-a767-c038dbdd4ad8 2025-12-11 02:12:53,757 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/9be746d3-bcee-4c07-aa7c-f8e29492e3b2 2025-12-11 02:12:53,767 - DEBUG - ==>Verifying data for policy with id: 0f0aa5b9-434d-48cd-a19f-52fcd78f8d8b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-75398697', 'ctest-policy1-48807876'] 2025-12-11 02:12:53,767 - INFO - VN ctest-vn4-37668267 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-11 02:12:53,768 - DEBUG - Verifying the vn in opserver 2025-12-11 02:12:53,768 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75398697:ctest-vn4-37668267 virtual network link through opserver 10.0.0.56 2025-12-11 02:12:53,768 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2025-12-11 02:12:54,073 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2025-12-11 02:12:54,147 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75398697:ctest-vn4-37668267', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75398697:ctest-vn4-37668267?flat'} 2025-12-11 02:12:54,147 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75398697:ctest-vn4-37668267 is found in opserver 2025-12-11 02:12:54,160 - DEBUG - Do not have enough data to verify VN in agent 2025-12-11 02:12:54,164 - DEBUG - VRF ids for VN ctest-vn4-37668267: {} 2025-12-11 02:12:54,165 - DEBUG - ====Verifying data for ctest-policy1-48807876 in API_Server ====== 2025-12-11 02:12:54,165 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-12-11 02:12:54,170 - DEBUG - Requesting: http://10.0.0.56:8082/domain/9b257eb7-ae6c-4eee-b8af-f6cdc055199d 2025-12-11 02:12:54,180 - DEBUG - Requesting: http://10.0.0.56:8082/project/30fce47a-22b9-4c94-a767-c038dbdd4ad8 2025-12-11 02:12:54,256 - DEBUG - Requesting: http://10.0.0.56:8082/network-policy/0f0aa5b9-434d-48cd-a19f-52fcd78f8d8b 2025-12-11 02:12:54,266 - INFO - Verified policy ctest-policy1-48807876 in API Server, Result: True 2025-12-11 02:12:54,266 - INFO - Done with setup and verification, moving onto test .. 2025-12-11 02:12:54,275 - INFO - Deleting VN ctest-vn4-37668267 2025-12-11 02:12:54,428 - DEBUG - Response for deleting network () 2025-12-11 02:12:54,428 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/b7efd0b4-b751-4eee-8555-2e624df77eaa 2025-12-11 02:12:54,434 - DEBUG - Response Code: 404 2025-12-11 02:12:54,435 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-12-11 02:12:54,441 - DEBUG - Requesting: http://10.0.0.56:8082/domain/9b257eb7-ae6c-4eee-b8af-f6cdc055199d 2025-12-11 02:12:54,494 - DEBUG - Requesting: http://10.0.0.56:8082/project/30fce47a-22b9-4c94-a767-c038dbdd4ad8 2025-12-11 02:12:54,567 - INFO - Validated that VN ctest-vn4-37668267 is not found in API Server 2025-12-11 02:12:54,576 - DEBUG - VN ctest-vn4-37668267 is not present in Agent 10.0.0.56 2025-12-11 02:12:54,576 - INFO - Validated that VN ctest-vn4-37668267 is not in any agent 2025-12-11 02:12:54,590 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-37668267 info 2025-12-11 02:12:54,621 - INFO - Deleted policy ctest-policy1-48807876 2025-12-11 02:12:54,777 - DEBUG - policy ctest-policy1-48807876 is not found in API Server 2025-12-11 02:12:55,039 - DEBUG - No XMPP flaps were noticed during the test