2025-11-24 02:01:28,444 - INFO - Domain Default found not creating 2025-11-24 02:01:28,979 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-96324127 not found, creating it 2025-11-24 02:01:29,775 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-96324127, ID : 861daa22-4eea-4a14-96a3-5dc7329beb47 2025-11-24 02:01:31,327 - INFO - ================================================================================ 2025-11-24 02:01:31,327 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-24 02:01:31,585 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2025-11-24 02:01:31,585 - INFO - Initial checks done. Running the testcase now 2025-11-24 02:01:31,585 - INFO - 2025-11-24 02:01:31,585 - INFO - ================================================================================ 2025-11-24 02:01:31,585 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-24 02:01:31,585 - 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-11-24 02:01:31,888 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2025-11-24 02:01:31,888 - INFO - Initial checks done. Running the testcase now 2025-11-24 02:01:31,888 - INFO - 2025-11-24 02:01:32,291 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96324127:ctest-vn4-06524859, 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-96324127:ctest-vn4-06524859, 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-96324127:ctest-vn4-06524859, 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-96324127:ctest-vn4-06524859, 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-11-24 02:01:32,819 - DEBUG - Response for create_network : {'network': {'id': '6f5f061c-a8cc-4c54-9b73-32142cf9eb64', 'name': 'ctest-vn4-06524859', 'tenant_id': '861daa224eea4a1496a35dc7329beb47', 'project_id': '861daa224eea4a1496a35dc7329beb47', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96324127', 'ctest-vn4-06524859'], 'port_security_enabled': True, 'description': ''}} 2025-11-24 02:01:33,009 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f75ddabc-36fc-420e-a733-9e360a0c8557', 'name': '', 'tenant_id': '861daa224eea4a1496a35dc7329beb47', 'network_id': '6f5f061c-a8cc-4c54-9b73-32142cf9eb64', 'ip_version': 4, 'cidr': '79.2.234.64/26', 'allocation_pools': [{'start': '79.2.234.66', 'end': '79.2.234.126'}], 'gateway_ip': '79.2.234.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '79.2.234.66', 'tags': [], 'project_id': '861daa224eea4a1496a35dc7329beb47'}} 2025-11-24 02:01:33,185 - DEBUG - Response for create_subnet : {'subnet': {'id': '957eabe9-90fc-4d05-a2b5-c2f0cd37cc56', 'name': '', 'tenant_id': '861daa224eea4a1496a35dc7329beb47', 'network_id': '6f5f061c-a8cc-4c54-9b73-32142cf9eb64', 'ip_version': 6, 'cidr': '3f53:5e87:b08e:8c64:cb2e:c3f9::/96', 'allocation_pools': [{'start': '3f53:5e87:b08e:8c64:cb2e:c3f9:0:2', 'end': '3f53:5e87:b08e:8c64:cb2e:c3f9:ffff:fffe'}], 'gateway_ip': '3f53:5e87:b08e:8c64:cb2e:c3f9:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3f53:5e87:b08e:8c64:cb2e:c3f9:0:2', 'tags': [], 'project_id': '861daa224eea4a1496a35dc7329beb47'}} 2025-11-24 02:01:33,204 - INFO - Created VN ctest-vn4-06524859 2025-11-24 02:01:33,255 - DEBUG - VN ctest-vn4-06524859 UUID is 6f5f061c-a8cc-4c54-9b73-32142cf9eb64 2025-11-24 02:01:33,452 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6f5f061c-a8cc-4c54-9b73-32142cf9eb64', 'name': 'ctest-vn4-06524859', 'tenant_id': '861daa224eea4a1496a35dc7329beb47', 'project_id': '861daa224eea4a1496a35dc7329beb47', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f75ddabc-36fc-420e-a733-9e360a0c8557', '957eabe9-90fc-4d05-a2b5-c2f0cd37cc56'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96324127', 'ctest-vn4-06524859'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96324127', 'ctest-policy1-54378249']], 'subnet_ipam': [{'subnet_cidr': '79.2.234.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3f53:5e87:b08e:8c64:cb2e:c3f9::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-24 02:01:33,619 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-24 02:01:33,952 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-24 02:01:33,981 - DEBUG - Requesting: http://10.0.0.22:8082/domain/295ef7b1-a5be-4920-aabe-44faad2530b0 2025-11-24 02:01:33,992 - DEBUG - Requesting: http://10.0.0.22:8082/project/861daa22-4eea-4a14-96a3-5dc7329beb47 2025-11-24 02:01:34,060 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/6f5f061c-a8cc-4c54-9b73-32142cf9eb64 2025-11-24 02:01:34,072 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/6f5f061c-a8cc-4c54-9b73-32142cf9eb64 2025-11-24 02:01:34,081 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/38a23efa-fc68-4a95-b9c0-c1e4232c4786 2025-11-24 02:01:34,088 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/38a23efa-fc68-4a95-b9c0-c1e4232c4786 2025-11-24 02:01:34,093 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/ad90d3d3-bd83-49ef-963c-bca3eaf09186 2025-11-24 02:01:34,099 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-24 02:01:34,099 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/6f5f061c-a8cc-4c54-9b73-32142cf9eb64 2025-11-24 02:01:34,110 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/38a23efa-fc68-4a95-b9c0-c1e4232c4786 2025-11-24 02:01:34,127 - INFO - Verified VN network id 11 for VN 6f5f061c-a8cc-4c54-9b73-32142cf9eb64 2025-11-24 02:01:34,127 - INFO - Verifications in API Server for VN ctest-vn4-06524859 passed 2025-11-24 02:01:34,127 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/6f5f061c-a8cc-4c54-9b73-32142cf9eb64 2025-11-24 02:01:34,137 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/38a23efa-fc68-4a95-b9c0-c1e4232c4786 2025-11-24 02:01:34,143 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/38a23efa-fc68-4a95-b9c0-c1e4232c4786 2025-11-24 02:01:34,150 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/ad90d3d3-bd83-49ef-963c-bca3eaf09186 2025-11-24 02:01:34,164 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96324127:ctest-vn4-06524859', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-96324127', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8025139781158325332', 'uuid-lslong': '11201351760435866468'}, 'enable': 'true', 'created': '2025-11-24T02:01:32', 'last-modified': '2025-11-24T02:01:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.741767'} 2025-11-24 02:01:34,170 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-24 02:01:34,170 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-06524859 passed 2025-11-24 02:01:34,170 - DEBUG - ====Verifying policy data for ctest-vn4-06524859 in API_Server ====== 2025-11-24 02:01:34,170 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-24 02:01:34,176 - DEBUG - Requesting: http://10.0.0.22:8082/domain/295ef7b1-a5be-4920-aabe-44faad2530b0 2025-11-24 02:01:34,187 - DEBUG - Requesting: http://10.0.0.22:8082/project/861daa22-4eea-4a14-96a3-5dc7329beb47 2025-11-24 02:01:34,255 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/6f5f061c-a8cc-4c54-9b73-32142cf9eb64 2025-11-24 02:01:34,264 - DEBUG - ==>Verifying data for policy with id: fff9966b-9615-44ba-92af-4d5211c7c22b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96324127', 'ctest-policy1-54378249'] 2025-11-24 02:01:34,265 - INFO - VN ctest-vn4-06524859 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-24 02:01:34,265 - DEBUG - Verifying the vn in opserver 2025-11-24 02:01:34,265 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96324127:ctest-vn4-06524859 virtual network link through opserver 10.0.0.22 2025-11-24 02:01:34,265 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-11-24 02:01:34,610 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-11-24 02:01:34,669 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96324127:ctest-vn4-06524859', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96324127:ctest-vn4-06524859?flat'} 2025-11-24 02:01:34,669 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96324127:ctest-vn4-06524859 is found in opserver 2025-11-24 02:01:34,679 - DEBUG - Do not have enough data to verify VN in agent 2025-11-24 02:01:34,683 - DEBUG - VRF ids for VN ctest-vn4-06524859: {} 2025-11-24 02:01:34,684 - DEBUG - ====Verifying data for ctest-policy1-54378249 in API_Server ====== 2025-11-24 02:01:34,684 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-24 02:01:34,690 - DEBUG - Requesting: http://10.0.0.22:8082/domain/295ef7b1-a5be-4920-aabe-44faad2530b0 2025-11-24 02:01:34,703 - DEBUG - Requesting: http://10.0.0.22:8082/project/861daa22-4eea-4a14-96a3-5dc7329beb47 2025-11-24 02:01:34,783 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/fff9966b-9615-44ba-92af-4d5211c7c22b 2025-11-24 02:01:34,794 - INFO - Verified policy ctest-policy1-54378249 in API Server, Result: True 2025-11-24 02:01:34,795 - INFO - Done with setup and verification, moving onto test .. 2025-11-24 02:01:34,803 - INFO - Deleting VN ctest-vn4-06524859 2025-11-24 02:01:34,933 - DEBUG - Response for deleting network () 2025-11-24 02:01:34,933 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/38a23efa-fc68-4a95-b9c0-c1e4232c4786 2025-11-24 02:01:34,938 - DEBUG - Response Code: 404 2025-11-24 02:01:34,938 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-24 02:01:34,945 - DEBUG - Requesting: http://10.0.0.22:8082/domain/295ef7b1-a5be-4920-aabe-44faad2530b0 2025-11-24 02:01:35,001 - DEBUG - Requesting: http://10.0.0.22:8082/project/861daa22-4eea-4a14-96a3-5dc7329beb47 2025-11-24 02:01:35,077 - INFO - Validated that VN ctest-vn4-06524859 is not found in API Server 2025-11-24 02:01:35,089 - DEBUG - VN ctest-vn4-06524859 is not present in Agent 10.0.0.22 2025-11-24 02:01:35,089 - INFO - Validated that VN ctest-vn4-06524859 is not in any agent 2025-11-24 02:01:35,103 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-06524859 info 2025-11-24 02:01:35,134 - INFO - Deleted policy ctest-policy1-54378249 2025-11-24 02:01:35,295 - DEBUG - policy ctest-policy1-54378249 is not found in API Server 2025-11-24 02:01:35,554 - DEBUG - No XMPP flaps were noticed during the test
2025-11-24 02:01:35,554 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-11-24 02:01:35,554 - INFO - -------------------------------------------------------------------------------- 2025-11-24 02:01:35,852 - DEBUG - No XMPP flaps were noticed during the test
2025-11-24 02:01:35,853 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-11-24 02:01:35,853 - INFO - -------------------------------------------------------------------------------- 2025-11-24 02:01:36,592 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-96324127, ID : 861daa22-4eea-4a14-96a3-5dc7329beb47