2025-08-07 02:17:29,061 - INFO - Domain Default found not creating 2025-08-07 02:17:29,208 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-78798566 not found, creating it 2025-08-07 02:17:29,702 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-78798566, ID : e6ad8054-9079-485f-a30e-62f0cc7e3b63 2025-08-07 02:17:31,322 - INFO - ================================================================================ 2025-08-07 02:17:31,323 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-07 02:17:31,581 - DEBUG - Nothing to compare xmpp stats {'10.0.0.131': {'10.20.0.18': '0'}} with 2025-08-07 02:17:31,582 - INFO - Initial checks done. Running the testcase now 2025-08-07 02:17:31,582 - INFO - 2025-08-07 02:17:31,582 - INFO - ================================================================================ 2025-08-07 02:17:31,582 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-07 02:17:31,582 - 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-07 02:17:31,876 - DEBUG - Nothing to compare xmpp stats {'10.0.0.131': {'10.20.0.18': '0'}} with 2025-08-07 02:17:31,876 - INFO - Initial checks done. Running the testcase now 2025-08-07 02:17:31,877 - INFO - 2025-08-07 02:17:32,281 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78798566:ctest-vn4-52532083, 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-78798566:ctest-vn4-52532083, 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-78798566:ctest-vn4-52532083, 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-78798566:ctest-vn4-52532083, 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-07 02:17:32,816 - DEBUG - Response for create_network : {'network': {'id': '1819da51-1805-4d4f-a5ff-28bad9167562', 'name': 'ctest-vn4-52532083', 'tenant_id': 'e6ad80549079485fa30e62f0cc7e3b63', 'project_id': 'e6ad80549079485fa30e62f0cc7e3b63', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-78798566', 'ctest-vn4-52532083'], 'port_security_enabled': True, 'description': ''}} 2025-08-07 02:17:32,987 - DEBUG - Response for create_subnet : {'subnet': {'id': '16034b6c-b641-4c98-91b2-5526cfff57b3', 'name': '', 'tenant_id': 'e6ad80549079485fa30e62f0cc7e3b63', 'network_id': '1819da51-1805-4d4f-a5ff-28bad9167562', 'ip_version': 4, 'cidr': '96.27.85.64/26', 'allocation_pools': [{'start': '96.27.85.66', 'end': '96.27.85.126'}], 'gateway_ip': '96.27.85.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '96.27.85.66', 'tags': [], 'project_id': 'e6ad80549079485fa30e62f0cc7e3b63'}} 2025-08-07 02:17:33,180 - DEBUG - Response for create_subnet : {'subnet': {'id': '91093e36-fcc6-49a0-a1a4-e6ffba206b5e', 'name': '', 'tenant_id': 'e6ad80549079485fa30e62f0cc7e3b63', 'network_id': '1819da51-1805-4d4f-a5ff-28bad9167562', 'ip_version': 6, 'cidr': '2411:2e81:f682:c698:cf96:725c::/96', 'allocation_pools': [{'start': '2411:2e81:f682:c698:cf96:725c:0:2', 'end': '2411:2e81:f682:c698:cf96:725c:ffff:fffe'}], 'gateway_ip': '2411:2e81:f682:c698:cf96:725c:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2411:2e81:f682:c698:cf96:725c:0:2', 'tags': [], 'project_id': 'e6ad80549079485fa30e62f0cc7e3b63'}} 2025-08-07 02:17:33,201 - INFO - Created VN ctest-vn4-52532083 2025-08-07 02:17:33,268 - DEBUG - VN ctest-vn4-52532083 UUID is 1819da51-1805-4d4f-a5ff-28bad9167562 2025-08-07 02:17:33,498 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1819da51-1805-4d4f-a5ff-28bad9167562', 'name': 'ctest-vn4-52532083', 'tenant_id': 'e6ad80549079485fa30e62f0cc7e3b63', 'project_id': 'e6ad80549079485fa30e62f0cc7e3b63', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['16034b6c-b641-4c98-91b2-5526cfff57b3', '91093e36-fcc6-49a0-a1a4-e6ffba206b5e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-78798566', 'ctest-vn4-52532083'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-78798566', 'ctest-policy1-24015194']], 'subnet_ipam': [{'subnet_cidr': '96.27.85.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2411:2e81:f682:c698:cf96:725c::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-07 02:17:33,679 - DEBUG - Requesting: http://10.0.0.131:8082/domains 2025-08-07 02:17:34,014 - DEBUG - Requesting: http://10.0.0.131:8082/domains 2025-08-07 02:17:34,046 - DEBUG - Requesting: http://10.0.0.131:8082/domain/38adb3fa-9213-48c4-ae9c-2e92b1e50df9 2025-08-07 02:17:34,061 - DEBUG - Requesting: http://10.0.0.131:8082/project/e6ad8054-9079-485f-a30e-62f0cc7e3b63 2025-08-07 02:17:34,142 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/1819da51-1805-4d4f-a5ff-28bad9167562 2025-08-07 02:17:34,157 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/1819da51-1805-4d4f-a5ff-28bad9167562 2025-08-07 02:17:34,170 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/95c4e27e-12a9-47a9-9309-c820686122d9 2025-08-07 02:17:34,180 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/95c4e27e-12a9-47a9-9309-c820686122d9 2025-08-07 02:17:34,189 - DEBUG - Requesting: http://10.0.0.131:8082/route-target/1dd12b60-23a5-4056-b8c6-ff08238e5483 2025-08-07 02:17:34,196 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-07 02:17:34,196 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/1819da51-1805-4d4f-a5ff-28bad9167562 2025-08-07 02:17:34,211 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/95c4e27e-12a9-47a9-9309-c820686122d9 2025-08-07 02:17:34,228 - INFO - Verified VN network id 11 for VN 1819da51-1805-4d4f-a5ff-28bad9167562 2025-08-07 02:17:34,228 - INFO - Verifications in API Server for VN ctest-vn4-52532083 passed 2025-08-07 02:17:34,228 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/1819da51-1805-4d4f-a5ff-28bad9167562 2025-08-07 02:17:34,246 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/95c4e27e-12a9-47a9-9309-c820686122d9 2025-08-07 02:17:34,255 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/95c4e27e-12a9-47a9-9309-c820686122d9 2025-08-07 02:17:34,264 - DEBUG - Requesting: http://10.0.0.131:8082/route-target/1dd12b60-23a5-4056-b8c6-ff08238e5483 2025-08-07 02:17:34,278 - DEBUG - Control-node 10.0.0.131 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78798566:ctest-vn4-52532083', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-78798566', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1736659173158243663', 'uuid-lslong': '11961323918290482530'}, 'enable': 'true', 'created': '2025-08-07T02:17:32', 'last-modified': '2025-08-07T02:17:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.812502'} 2025-08-07 02:17:34,285 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-07 02:17:34,285 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-52532083 passed 2025-08-07 02:17:34,286 - DEBUG - ====Verifying policy data for ctest-vn4-52532083 in API_Server ====== 2025-08-07 02:17:34,286 - DEBUG - Requesting: http://10.0.0.131:8082/domains 2025-08-07 02:17:34,292 - DEBUG - Requesting: http://10.0.0.131:8082/domain/38adb3fa-9213-48c4-ae9c-2e92b1e50df9 2025-08-07 02:17:34,304 - DEBUG - Requesting: http://10.0.0.131:8082/project/e6ad8054-9079-485f-a30e-62f0cc7e3b63 2025-08-07 02:17:34,378 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/1819da51-1805-4d4f-a5ff-28bad9167562 2025-08-07 02:17:34,390 - DEBUG - ==>Verifying data for policy with id: c133f26d-6e44-4bb3-9ed5-28121bb152c0, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-78798566', 'ctest-policy1-24015194'] 2025-08-07 02:17:34,390 - INFO - VN ctest-vn4-52532083 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-07 02:17:34,390 - DEBUG - Verifying the vn in opserver 2025-08-07 02:17:34,390 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78798566:ctest-vn4-52532083 virtual network link through opserver 10.0.0.131 2025-08-07 02:17:34,390 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks 2025-08-07 02:17:34,721 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks 2025-08-07 02:17:34,789 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78798566:ctest-vn4-52532083', 'href': 'http://10.0.0.131:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78798566:ctest-vn4-52532083?flat'} 2025-08-07 02:17:34,789 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78798566:ctest-vn4-52532083 is found in opserver 2025-08-07 02:17:34,805 - DEBUG - Do not have enough data to verify VN in agent 2025-08-07 02:17:34,812 - DEBUG - VRF ids for VN ctest-vn4-52532083: {} 2025-08-07 02:17:34,813 - DEBUG - ====Verifying data for ctest-policy1-24015194 in API_Server ====== 2025-08-07 02:17:34,813 - DEBUG - Requesting: http://10.0.0.131:8082/domains 2025-08-07 02:17:34,819 - DEBUG - Requesting: http://10.0.0.131:8082/domain/38adb3fa-9213-48c4-ae9c-2e92b1e50df9 2025-08-07 02:17:34,832 - DEBUG - Requesting: http://10.0.0.131:8082/project/e6ad8054-9079-485f-a30e-62f0cc7e3b63 2025-08-07 02:17:34,910 - DEBUG - Requesting: http://10.0.0.131:8082/network-policy/c133f26d-6e44-4bb3-9ed5-28121bb152c0 2025-08-07 02:17:34,926 - INFO - Verified policy ctest-policy1-24015194 in API Server, Result: True 2025-08-07 02:17:34,926 - INFO - Done with setup and verification, moving onto test .. 2025-08-07 02:17:34,936 - INFO - Deleting VN ctest-vn4-52532083 2025-08-07 02:17:35,084 - DEBUG - Response for deleting network () 2025-08-07 02:17:35,084 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/95c4e27e-12a9-47a9-9309-c820686122d9 2025-08-07 02:17:35,090 - DEBUG - Response Code: 404 2025-08-07 02:17:35,090 - DEBUG - Requesting: http://10.0.0.131:8082/domains 2025-08-07 02:17:35,097 - DEBUG - Requesting: http://10.0.0.131:8082/domain/38adb3fa-9213-48c4-ae9c-2e92b1e50df9 2025-08-07 02:17:35,158 - DEBUG - Requesting: http://10.0.0.131:8082/project/e6ad8054-9079-485f-a30e-62f0cc7e3b63 2025-08-07 02:17:35,236 - INFO - Validated that VN ctest-vn4-52532083 is not found in API Server 2025-08-07 02:17:35,249 - DEBUG - VN ctest-vn4-52532083 is not present in Agent 10.0.0.131 2025-08-07 02:17:35,249 - INFO - Validated that VN ctest-vn4-52532083 is not in any agent 2025-08-07 02:17:35,266 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-52532083 info 2025-08-07 02:17:35,303 - INFO - Deleted policy ctest-policy1-24015194 2025-08-07 02:17:35,475 - DEBUG - policy ctest-policy1-24015194 is not found in API Server 2025-08-07 02:17:35,731 - DEBUG - No XMPP flaps were noticed during the test 2025-08-07 02:17:35,731 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-08-07 02:17:35,731 - INFO - -------------------------------------------------------------------------------- 2025-08-07 02:17:36,022 - DEBUG - No XMPP flaps were noticed during the test 2025-08-07 02:17:36,022 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-08-07 02:17:36,022 - INFO - -------------------------------------------------------------------------------- 2025-08-07 02:17:36,751 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-78798566, ID : e6ad8054-9079-485f-a30e-62f0cc7e3b63