2025-08-21 02:15:02,787 - INFO - Domain Default found not creating 2025-08-21 02:15:02,926 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-18589540 not found, creating it 2025-08-21 02:15:03,361 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-18589540, ID : 9eff5982-f722-4546-8c14-4874998cd07d 2025-08-21 02:15:04,710 - INFO - ================================================================================ 2025-08-21 02:15:04,711 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-21 02:15:04,972 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.18': '0'}} with 2025-08-21 02:15:04,972 - INFO - Initial checks done. Running the testcase now 2025-08-21 02:15:04,972 - INFO - 2025-08-21 02:15:04,972 - INFO - ================================================================================ 2025-08-21 02:15:04,972 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-21 02:15:04,972 - 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-08-21 02:15:05,268 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.18': '0'}} with 2025-08-21 02:15:05,268 - INFO - Initial checks done. Running the testcase now 2025-08-21 02:15:05,268 - INFO - 2025-08-21 02:15:05,611 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18589540:ctest-vn4-78980603, 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-18589540:ctest-vn4-78980603, 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-18589540:ctest-vn4-78980603, 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-18589540:ctest-vn4-78980603, 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-08-21 02:15:06,132 - DEBUG - Response for create_network : {'network': {'id': '211e4ae3-97d3-4cef-bf20-498d83b4a222', 'name': 'ctest-vn4-78980603', 'tenant_id': '9eff5982f72245468c144874998cd07d', 'project_id': '9eff5982f72245468c144874998cd07d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18589540', 'ctest-vn4-78980603'], 'port_security_enabled': True, 'description': ''}} 2025-08-21 02:15:06,297 - DEBUG - Response for create_subnet : {'subnet': {'id': '6586bb54-f9ac-4fdf-8883-45bd22ebb3b9', 'name': '', 'tenant_id': '9eff5982f72245468c144874998cd07d', 'network_id': '211e4ae3-97d3-4cef-bf20-498d83b4a222', 'ip_version': 4, 'cidr': '66.203.234.128/26', 'allocation_pools': [{'start': '66.203.234.130', 'end': '66.203.234.190'}], 'gateway_ip': '66.203.234.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '66.203.234.130', 'tags': [], 'project_id': '9eff5982f72245468c144874998cd07d'}} 2025-08-21 02:15:06,440 - DEBUG - Response for create_subnet : {'subnet': {'id': '9933f47b-5c99-4122-89f0-05d0be32cc48', 'name': '', 'tenant_id': '9eff5982f72245468c144874998cd07d', 'network_id': '211e4ae3-97d3-4cef-bf20-498d83b4a222', 'ip_version': 6, 'cidr': '228d:ad68:94f3:ad47:9149:e104::/96', 'allocation_pools': [{'start': '228d:ad68:94f3:ad47:9149:e104:0:2', 'end': '228d:ad68:94f3:ad47:9149:e104:ffff:fffe'}], 'gateway_ip': '228d:ad68:94f3:ad47:9149:e104:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '228d:ad68:94f3:ad47:9149:e104:0:2', 'tags': [], 'project_id': '9eff5982f72245468c144874998cd07d'}} 2025-08-21 02:15:06,462 - INFO - Created VN ctest-vn4-78980603 2025-08-21 02:15:06,515 - DEBUG - VN ctest-vn4-78980603 UUID is 211e4ae3-97d3-4cef-bf20-498d83b4a222 2025-08-21 02:15:06,716 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '211e4ae3-97d3-4cef-bf20-498d83b4a222', 'name': 'ctest-vn4-78980603', 'tenant_id': '9eff5982f72245468c144874998cd07d', 'project_id': '9eff5982f72245468c144874998cd07d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6586bb54-f9ac-4fdf-8883-45bd22ebb3b9', '9933f47b-5c99-4122-89f0-05d0be32cc48'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18589540', 'ctest-vn4-78980603'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18589540', 'ctest-policy1-50827205']], 'subnet_ipam': [{'subnet_cidr': '66.203.234.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '228d:ad68:94f3:ad47:9149:e104::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-21 02:15:06,879 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-08-21 02:15:07,171 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-08-21 02:15:07,197 - DEBUG - Requesting: http://10.0.0.57:8082/domain/fb50318c-3f8c-47ea-811c-581016166294 2025-08-21 02:15:07,209 - DEBUG - Requesting: http://10.0.0.57:8082/project/9eff5982-f722-4546-8c14-4874998cd07d 2025-08-21 02:15:07,287 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/211e4ae3-97d3-4cef-bf20-498d83b4a222 2025-08-21 02:15:07,299 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/211e4ae3-97d3-4cef-bf20-498d83b4a222 2025-08-21 02:15:07,307 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/b84340e6-d675-42b5-890a-5786f968b0da 2025-08-21 02:15:07,313 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/b84340e6-d675-42b5-890a-5786f968b0da 2025-08-21 02:15:07,320 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/b610d837-1815-44bb-be92-bf419cda55e9 2025-08-21 02:15:07,326 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-21 02:15:07,326 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/211e4ae3-97d3-4cef-bf20-498d83b4a222 2025-08-21 02:15:07,334 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/b84340e6-d675-42b5-890a-5786f968b0da 2025-08-21 02:15:07,346 - INFO - Verified VN network id 12 for VN 211e4ae3-97d3-4cef-bf20-498d83b4a222 2025-08-21 02:15:07,346 - INFO - Verifications in API Server for VN ctest-vn4-78980603 passed 2025-08-21 02:15:07,346 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/211e4ae3-97d3-4cef-bf20-498d83b4a222 2025-08-21 02:15:07,355 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/b84340e6-d675-42b5-890a-5786f968b0da 2025-08-21 02:15:07,361 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/b84340e6-d675-42b5-890a-5786f968b0da 2025-08-21 02:15:07,366 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/b610d837-1815-44bb-be92-bf419cda55e9 2025-08-21 02:15:07,377 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18589540:ctest-vn4-78980603', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-18589540', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2386427193918180591', 'uuid-lslong': '13772088532647846434'}, 'enable': 'true', 'created': '2025-08-21T02:15:06', 'last-modified': '2025-08-21T02:15:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.701540'} 2025-08-21 02:15:07,384 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-21 02:15:07,384 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-78980603 passed 2025-08-21 02:15:07,384 - DEBUG - ====Verifying policy data for ctest-vn4-78980603 in API_Server ====== 2025-08-21 02:15:07,384 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-08-21 02:15:07,389 - DEBUG - Requesting: http://10.0.0.57:8082/domain/fb50318c-3f8c-47ea-811c-581016166294 2025-08-21 02:15:07,399 - DEBUG - Requesting: http://10.0.0.57:8082/project/9eff5982-f722-4546-8c14-4874998cd07d 2025-08-21 02:15:07,469 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/211e4ae3-97d3-4cef-bf20-498d83b4a222 2025-08-21 02:15:07,478 - DEBUG - ==>Verifying data for policy with id: f4c8d99d-59d1-4430-99d9-bdb2ec7f09da, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18589540', 'ctest-policy1-50827205'] 2025-08-21 02:15:07,478 - INFO - VN ctest-vn4-78980603 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-21 02:15:07,478 - DEBUG - Verifying the vn in opserver 2025-08-21 02:15:07,478 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18589540:ctest-vn4-78980603 virtual network link through opserver 10.0.0.57 2025-08-21 02:15:07,478 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2025-08-21 02:15:07,771 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2025-08-21 02:15:07,822 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18589540:ctest-vn4-78980603', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18589540:ctest-vn4-78980603?flat'} 2025-08-21 02:15:07,822 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18589540:ctest-vn4-78980603 is found in opserver 2025-08-21 02:15:07,831 - DEBUG - Do not have enough data to verify VN in agent 2025-08-21 02:15:07,835 - DEBUG - VRF ids for VN ctest-vn4-78980603: {} 2025-08-21 02:15:07,835 - DEBUG - ====Verifying data for ctest-policy1-50827205 in API_Server ====== 2025-08-21 02:15:07,835 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-08-21 02:15:07,840 - DEBUG - Requesting: http://10.0.0.57:8082/domain/fb50318c-3f8c-47ea-811c-581016166294 2025-08-21 02:15:07,849 - DEBUG - Requesting: http://10.0.0.57:8082/project/9eff5982-f722-4546-8c14-4874998cd07d 2025-08-21 02:15:07,921 - DEBUG - Requesting: http://10.0.0.57:8082/network-policy/f4c8d99d-59d1-4430-99d9-bdb2ec7f09da 2025-08-21 02:15:07,930 - INFO - Verified policy ctest-policy1-50827205 in API Server, Result: True 2025-08-21 02:15:07,930 - INFO - Done with setup and verification, moving onto test .. 2025-08-21 02:15:07,938 - INFO - Deleting VN ctest-vn4-78980603 2025-08-21 02:15:08,103 - DEBUG - Response for deleting network () 2025-08-21 02:15:08,103 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/b84340e6-d675-42b5-890a-5786f968b0da 2025-08-21 02:15:08,108 - DEBUG - Response Code: 404 2025-08-21 02:15:08,108 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-08-21 02:15:08,113 - DEBUG - Requesting: http://10.0.0.57:8082/domain/fb50318c-3f8c-47ea-811c-581016166294 2025-08-21 02:15:08,173 - DEBUG - Requesting: http://10.0.0.57:8082/project/9eff5982-f722-4546-8c14-4874998cd07d 2025-08-21 02:15:08,251 - INFO - Validated that VN ctest-vn4-78980603 is not found in API Server 2025-08-21 02:15:08,262 - DEBUG - VN ctest-vn4-78980603 is not present in Agent 10.0.0.57 2025-08-21 02:15:08,262 - INFO - Validated that VN ctest-vn4-78980603 is not in any agent 2025-08-21 02:15:08,276 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-78980603 info 2025-08-21 02:15:08,300 - INFO - Deleted policy ctest-policy1-50827205 2025-08-21 02:15:08,474 - DEBUG - policy ctest-policy1-50827205 is not found in API Server 2025-08-21 02:15:08,731 - DEBUG - No XMPP flaps were noticed during the test