2025-08-11 13:38:01,254 - INFO - Domain Default found not creating 2025-08-11 13:38:01,381 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-11537713 not found, creating it 2025-08-11 13:38:01,828 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-11537713, ID : 02542587-c670-45c4-b5e5-028947b68d7c 2025-08-11 13:38:03,169 - INFO - ================================================================================ 2025-08-11 13:38:03,169 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-11 13:38:03,424 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.18': '0'}} with 2025-08-11 13:38:03,424 - INFO - Initial checks done. Running the testcase now 2025-08-11 13:38:03,424 - INFO - 2025-08-11 13:38:03,425 - INFO - ================================================================================ 2025-08-11 13:38:03,425 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-11 13:38:03,425 - 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-11 13:38:03,716 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.18': '0'}} with 2025-08-11 13:38:03,716 - INFO - Initial checks done. Running the testcase now 2025-08-11 13:38:03,716 - INFO - 2025-08-11 13:38:04,053 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11537713:ctest-vn4-33175550, 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-11537713:ctest-vn4-33175550, 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-11537713:ctest-vn4-33175550, 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-11537713:ctest-vn4-33175550, 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-11 13:38:04,566 - DEBUG - Response for create_network : {'network': {'id': '04ce9aff-2720-4321-9ce8-cf740cae1816', 'name': 'ctest-vn4-33175550', 'tenant_id': '02542587c67045c4b5e5028947b68d7c', 'project_id': '02542587c67045c4b5e5028947b68d7c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11537713', 'ctest-vn4-33175550'], 'port_security_enabled': True, 'description': ''}} 2025-08-11 13:38:04,730 - DEBUG - Response for create_subnet : {'subnet': {'id': '161dac14-bff8-408d-948d-2b3769555ac5', 'name': '', 'tenant_id': '02542587c67045c4b5e5028947b68d7c', 'network_id': '04ce9aff-2720-4321-9ce8-cf740cae1816', 'ip_version': 4, 'cidr': '209.198.42.128/26', 'allocation_pools': [{'start': '209.198.42.130', 'end': '209.198.42.190'}], 'gateway_ip': '209.198.42.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '209.198.42.130', 'tags': [], 'project_id': '02542587c67045c4b5e5028947b68d7c'}} 2025-08-11 13:38:04,903 - DEBUG - Response for create_subnet : {'subnet': {'id': '80e2965d-4895-41c1-bb61-3499c2c1d199', 'name': '', 'tenant_id': '02542587c67045c4b5e5028947b68d7c', 'network_id': '04ce9aff-2720-4321-9ce8-cf740cae1816', 'ip_version': 6, 'cidr': '2192:3ac5:8660:7ba9:7836:ada9::/96', 'allocation_pools': [{'start': '2192:3ac5:8660:7ba9:7836:ada9:0:2', 'end': '2192:3ac5:8660:7ba9:7836:ada9:ffff:fffe'}], 'gateway_ip': '2192:3ac5:8660:7ba9:7836:ada9:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2192:3ac5:8660:7ba9:7836:ada9:0:2', 'tags': [], 'project_id': '02542587c67045c4b5e5028947b68d7c'}} 2025-08-11 13:38:04,919 - INFO - Created VN ctest-vn4-33175550 2025-08-11 13:38:04,971 - DEBUG - VN ctest-vn4-33175550 UUID is 04ce9aff-2720-4321-9ce8-cf740cae1816 2025-08-11 13:38:05,152 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '04ce9aff-2720-4321-9ce8-cf740cae1816', 'name': 'ctest-vn4-33175550', 'tenant_id': '02542587c67045c4b5e5028947b68d7c', 'project_id': '02542587c67045c4b5e5028947b68d7c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['161dac14-bff8-408d-948d-2b3769555ac5', '80e2965d-4895-41c1-bb61-3499c2c1d199'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11537713', 'ctest-vn4-33175550'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11537713', 'ctest-policy1-34027217']], 'subnet_ipam': [{'subnet_cidr': '209.198.42.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2192:3ac5:8660:7ba9:7836:ada9::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-11 13:38:05,315 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-11 13:38:05,602 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-11 13:38:05,627 - DEBUG - Requesting: http://10.0.0.50:8082/domain/fef88cc7-f02d-47d8-987a-9214c09b2062 2025-08-11 13:38:05,639 - DEBUG - Requesting: http://10.0.0.50:8082/project/02542587-c670-45c4-b5e5-028947b68d7c 2025-08-11 13:38:05,710 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/04ce9aff-2720-4321-9ce8-cf740cae1816 2025-08-11 13:38:05,722 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/04ce9aff-2720-4321-9ce8-cf740cae1816 2025-08-11 13:38:05,733 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/84ff2851-28eb-4378-bade-dc6103427e7d 2025-08-11 13:38:05,739 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/84ff2851-28eb-4378-bade-dc6103427e7d 2025-08-11 13:38:05,744 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/14f05de3-ae38-4398-8652-0d3be964b4f5 2025-08-11 13:38:05,750 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 13:38:05,750 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/04ce9aff-2720-4321-9ce8-cf740cae1816 2025-08-11 13:38:05,759 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/84ff2851-28eb-4378-bade-dc6103427e7d 2025-08-11 13:38:05,770 - INFO - Verified VN network id 11 for VN 04ce9aff-2720-4321-9ce8-cf740cae1816 2025-08-11 13:38:05,770 - INFO - Verifications in API Server for VN ctest-vn4-33175550 passed 2025-08-11 13:38:05,770 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/04ce9aff-2720-4321-9ce8-cf740cae1816 2025-08-11 13:38:05,780 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/84ff2851-28eb-4378-bade-dc6103427e7d 2025-08-11 13:38:05,786 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/84ff2851-28eb-4378-bade-dc6103427e7d 2025-08-11 13:38:05,792 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/14f05de3-ae38-4398-8652-0d3be964b4f5 2025-08-11 13:38:05,802 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11537713:ctest-vn4-33175550', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-11537713', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '346384642017870625', 'uuid-lslong': '11306514961849522198'}, 'enable': 'true', 'created': '2025-08-11T13:38:04', 'last-modified': '2025-08-11T13:38:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.677353'} 2025-08-11 13:38:05,809 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 13:38:05,809 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-33175550 passed 2025-08-11 13:38:05,809 - DEBUG - ====Verifying policy data for ctest-vn4-33175550 in API_Server ====== 2025-08-11 13:38:05,809 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-11 13:38:05,814 - DEBUG - Requesting: http://10.0.0.50:8082/domain/fef88cc7-f02d-47d8-987a-9214c09b2062 2025-08-11 13:38:05,824 - DEBUG - Requesting: http://10.0.0.50:8082/project/02542587-c670-45c4-b5e5-028947b68d7c 2025-08-11 13:38:05,896 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/04ce9aff-2720-4321-9ce8-cf740cae1816 2025-08-11 13:38:05,905 - DEBUG - ==>Verifying data for policy with id: 660ed3dd-0fd8-49ae-93cc-0983715c812f, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11537713', 'ctest-policy1-34027217'] 2025-08-11 13:38:05,905 - INFO - VN ctest-vn4-33175550 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-11 13:38:05,905 - DEBUG - Verifying the vn in opserver 2025-08-11 13:38:05,905 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11537713:ctest-vn4-33175550 virtual network link through opserver 10.0.0.50 2025-08-11 13:38:05,906 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-08-11 13:38:06,193 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-08-11 13:38:06,245 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11537713:ctest-vn4-33175550', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11537713:ctest-vn4-33175550?flat'} 2025-08-11 13:38:06,245 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11537713:ctest-vn4-33175550 is found in opserver 2025-08-11 13:38:06,255 - DEBUG - Do not have enough data to verify VN in agent 2025-08-11 13:38:06,260 - DEBUG - VRF ids for VN ctest-vn4-33175550: {} 2025-08-11 13:38:06,260 - DEBUG - ====Verifying data for ctest-policy1-34027217 in API_Server ====== 2025-08-11 13:38:06,260 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-11 13:38:06,265 - DEBUG - Requesting: http://10.0.0.50:8082/domain/fef88cc7-f02d-47d8-987a-9214c09b2062 2025-08-11 13:38:06,275 - DEBUG - Requesting: http://10.0.0.50:8082/project/02542587-c670-45c4-b5e5-028947b68d7c 2025-08-11 13:38:06,342 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/660ed3dd-0fd8-49ae-93cc-0983715c812f 2025-08-11 13:38:06,352 - INFO - Verified policy ctest-policy1-34027217 in API Server, Result: True 2025-08-11 13:38:06,352 - INFO - Done with setup and verification, moving onto test .. 2025-08-11 13:38:06,359 - INFO - Deleting VN ctest-vn4-33175550 2025-08-11 13:38:06,476 - DEBUG - Response for deleting network () 2025-08-11 13:38:06,476 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/84ff2851-28eb-4378-bade-dc6103427e7d 2025-08-11 13:38:06,481 - DEBUG - Response Code: 404 2025-08-11 13:38:06,481 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-11 13:38:06,486 - DEBUG - Requesting: http://10.0.0.50:8082/domain/fef88cc7-f02d-47d8-987a-9214c09b2062 2025-08-11 13:38:06,540 - DEBUG - Requesting: http://10.0.0.50:8082/project/02542587-c670-45c4-b5e5-028947b68d7c 2025-08-11 13:38:06,610 - INFO - Validated that VN ctest-vn4-33175550 is not found in API Server 2025-08-11 13:38:06,620 - DEBUG - VN ctest-vn4-33175550 is not present in Agent 10.0.0.50 2025-08-11 13:38:06,620 - INFO - Validated that VN ctest-vn4-33175550 is not in any agent 2025-08-11 13:38:06,635 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-33175550 info 2025-08-11 13:38:06,657 - INFO - Deleted policy ctest-policy1-34027217 2025-08-11 13:38:06,819 - DEBUG - policy ctest-policy1-34027217 is not found in API Server 2025-08-11 13:38:07,068 - DEBUG - No XMPP flaps were noticed during the test
2025-08-11 13:38:07,068 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-08-11 13:38:07,068 - INFO - -------------------------------------------------------------------------------- 2025-08-11 13:38:07,360 - DEBUG - No XMPP flaps were noticed during the test
2025-08-11 13:38:07,360 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-08-11 13:38:07,360 - INFO - -------------------------------------------------------------------------------- 2025-08-11 13:38:08,004 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-11537713, ID : 02542587-c670-45c4-b5e5-028947b68d7c