2025-12-11 16:53:57,695 - INFO - Domain Default found not creating 2025-12-11 16:53:57,873 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-62392164 not found, creating it 2025-12-11 16:53:58,336 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-62392164, ID : 0f959a07-176f-434c-a26a-8768e9131927 2025-12-11 16:53:59,867 - INFO - ================================================================================ 2025-12-11 16:53:59,867 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-11 16:54:00,125 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with 2025-12-11 16:54:00,125 - INFO - Initial checks done. Running the testcase now 2025-12-11 16:54:00,125 - INFO - 2025-12-11 16:54:00,125 - INFO - ================================================================================ 2025-12-11 16:54:00,125 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-11 16:54:00,125 - 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 16:54:00,424 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with 2025-12-11 16:54:00,424 - INFO - Initial checks done. Running the testcase now 2025-12-11 16:54:00,424 - INFO - 2025-12-11 16:54:00,804 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62392164:ctest-vn4-13997677, 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-62392164:ctest-vn4-13997677, 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-62392164:ctest-vn4-13997677, 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-62392164:ctest-vn4-13997677, 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 16:54:01,324 - DEBUG - Response for create_network : {'network': {'id': 'fe717d1d-9bd6-4158-800b-d84080a4de73', 'name': 'ctest-vn4-13997677', 'tenant_id': '0f959a07176f434ca26a8768e9131927', 'project_id': '0f959a07176f434ca26a8768e9131927', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-62392164', 'ctest-vn4-13997677'], 'port_security_enabled': True, 'description': ''}} 2025-12-11 16:54:01,480 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fa5dff0f-cb91-4697-8a6b-30c6819ca0e4', 'name': '', 'tenant_id': '0f959a07176f434ca26a8768e9131927', 'network_id': 'fe717d1d-9bd6-4158-800b-d84080a4de73', 'ip_version': 4, 'cidr': '219.244.153.128/26', 'allocation_pools': [{'start': '219.244.153.130', 'end': '219.244.153.190'}], 'gateway_ip': '219.244.153.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '219.244.153.130', 'tags': [], 'project_id': '0f959a07176f434ca26a8768e9131927'}} 2025-12-11 16:54:01,648 - DEBUG - Response for create_subnet : {'subnet': {'id': '41ea3024-1399-4195-91c7-00066aa814b3', 'name': '', 'tenant_id': '0f959a07176f434ca26a8768e9131927', 'network_id': 'fe717d1d-9bd6-4158-800b-d84080a4de73', 'ip_version': 6, 'cidr': '2f6b:6cbc:2320:ead8:3764:2013::/96', 'allocation_pools': [{'start': '2f6b:6cbc:2320:ead8:3764:2013:0:2', 'end': '2f6b:6cbc:2320:ead8:3764:2013:ffff:fffe'}], 'gateway_ip': '2f6b:6cbc:2320:ead8:3764:2013:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2f6b:6cbc:2320:ead8:3764:2013:0:2', 'tags': [], 'project_id': '0f959a07176f434ca26a8768e9131927'}} 2025-12-11 16:54:01,671 - INFO - Created VN ctest-vn4-13997677 2025-12-11 16:54:01,725 - DEBUG - VN ctest-vn4-13997677 UUID is fe717d1d-9bd6-4158-800b-d84080a4de73 2025-12-11 16:54:01,937 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fe717d1d-9bd6-4158-800b-d84080a4de73', 'name': 'ctest-vn4-13997677', 'tenant_id': '0f959a07176f434ca26a8768e9131927', 'project_id': '0f959a07176f434ca26a8768e9131927', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fa5dff0f-cb91-4697-8a6b-30c6819ca0e4', '41ea3024-1399-4195-91c7-00066aa814b3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-62392164', 'ctest-vn4-13997677'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-62392164', 'ctest-policy1-29268045']], 'subnet_ipam': [{'subnet_cidr': '219.244.153.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2f6b:6cbc:2320:ead8:3764:2013::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-11 16:54:02,106 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-11 16:54:02,416 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-11 16:54:02,450 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c6d3a6f0-8fd6-4799-86ad-c859ce31cae4 2025-12-11 16:54:02,462 - DEBUG - Requesting: http://10.0.0.38:8082/project/0f959a07-176f-434c-a26a-8768e9131927 2025-12-11 16:54:02,535 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fe717d1d-9bd6-4158-800b-d84080a4de73 2025-12-11 16:54:02,548 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fe717d1d-9bd6-4158-800b-d84080a4de73 2025-12-11 16:54:02,559 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/57d91880-11b2-459e-bd06-ca0b0f0e7b69 2025-12-11 16:54:02,566 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/57d91880-11b2-459e-bd06-ca0b0f0e7b69 2025-12-11 16:54:02,573 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/3f5981c2-6d7c-4505-bdd4-409b27da2718 2025-12-11 16:54:02,579 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-11 16:54:02,579 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fe717d1d-9bd6-4158-800b-d84080a4de73 2025-12-11 16:54:02,592 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/57d91880-11b2-459e-bd06-ca0b0f0e7b69 2025-12-11 16:54:02,611 - INFO - Verified VN network id 11 for VN fe717d1d-9bd6-4158-800b-d84080a4de73 2025-12-11 16:54:02,611 - INFO - Verifications in API Server for VN ctest-vn4-13997677 passed 2025-12-11 16:54:02,611 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fe717d1d-9bd6-4158-800b-d84080a4de73 2025-12-11 16:54:02,625 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/57d91880-11b2-459e-bd06-ca0b0f0e7b69 2025-12-11 16:54:02,637 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/57d91880-11b2-459e-bd06-ca0b0f0e7b69 2025-12-11 16:54:02,647 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/3f5981c2-6d7c-4505-bdd4-409b27da2718 2025-12-11 16:54:02,661 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62392164:ctest-vn4-13997677', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-62392164', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18334573124124033368', 'uuid-lslong': '9226706033146388083'}, 'enable': 'true', 'created': '2025-12-11T16:54:01', 'last-modified': '2025-12-11T16:54:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.749513'} 2025-12-11 16:54:02,668 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-11 16:54:02,668 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-13997677 passed 2025-12-11 16:54:02,668 - DEBUG - ====Verifying policy data for ctest-vn4-13997677 in API_Server ====== 2025-12-11 16:54:02,668 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-11 16:54:02,674 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c6d3a6f0-8fd6-4799-86ad-c859ce31cae4 2025-12-11 16:54:02,687 - DEBUG - Requesting: http://10.0.0.38:8082/project/0f959a07-176f-434c-a26a-8768e9131927 2025-12-11 16:54:02,765 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fe717d1d-9bd6-4158-800b-d84080a4de73 2025-12-11 16:54:02,777 - DEBUG - ==>Verifying data for policy with id: 2a77a2fd-5a93-4851-9682-d02e540efbda, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-62392164', 'ctest-policy1-29268045'] 2025-12-11 16:54:02,777 - INFO - VN ctest-vn4-13997677 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-11 16:54:02,777 - DEBUG - Verifying the vn in opserver 2025-12-11 16:54:02,777 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62392164:ctest-vn4-13997677 virtual network link through opserver 10.0.0.38 2025-12-11 16:54:02,777 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-12-11 16:54:03,082 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-12-11 16:54:03,148 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62392164:ctest-vn4-13997677', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62392164:ctest-vn4-13997677?flat'} 2025-12-11 16:54:03,148 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62392164:ctest-vn4-13997677 is found in opserver 2025-12-11 16:54:03,158 - DEBUG - Do not have enough data to verify VN in agent 2025-12-11 16:54:03,163 - DEBUG - VRF ids for VN ctest-vn4-13997677: {} 2025-12-11 16:54:03,163 - DEBUG - ====Verifying data for ctest-policy1-29268045 in API_Server ====== 2025-12-11 16:54:03,163 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-11 16:54:03,169 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c6d3a6f0-8fd6-4799-86ad-c859ce31cae4 2025-12-11 16:54:03,180 - DEBUG - Requesting: http://10.0.0.38:8082/project/0f959a07-176f-434c-a26a-8768e9131927 2025-12-11 16:54:03,253 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/2a77a2fd-5a93-4851-9682-d02e540efbda 2025-12-11 16:54:03,263 - INFO - Verified policy ctest-policy1-29268045 in API Server, Result: True 2025-12-11 16:54:03,263 - INFO - Done with setup and verification, moving onto test .. 2025-12-11 16:54:03,272 - INFO - Deleting VN ctest-vn4-13997677 2025-12-11 16:54:03,394 - DEBUG - Response for deleting network () 2025-12-11 16:54:03,395 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/57d91880-11b2-459e-bd06-ca0b0f0e7b69 2025-12-11 16:54:03,401 - DEBUG - Response Code: 404 2025-12-11 16:54:03,401 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-11 16:54:03,408 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c6d3a6f0-8fd6-4799-86ad-c859ce31cae4 2025-12-11 16:54:03,462 - DEBUG - Requesting: http://10.0.0.38:8082/project/0f959a07-176f-434c-a26a-8768e9131927 2025-12-11 16:54:03,536 - INFO - Validated that VN ctest-vn4-13997677 is not found in API Server 2025-12-11 16:54:03,546 - DEBUG - VN ctest-vn4-13997677 is not present in Agent 10.0.0.38 2025-12-11 16:54:03,546 - INFO - Validated that VN ctest-vn4-13997677 is not in any agent 2025-12-11 16:54:03,563 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-13997677 info 2025-12-11 16:54:03,592 - INFO - Deleted policy ctest-policy1-29268045 2025-12-11 16:54:03,769 - DEBUG - policy ctest-policy1-29268045 is not found in API Server 2025-12-11 16:54:04,024 - DEBUG - No XMPP flaps were noticed during the test
2025-12-11 16:54:04,025 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-12-11 16:54:04,025 - INFO - -------------------------------------------------------------------------------- 2025-12-11 16:54:04,330 - DEBUG - No XMPP flaps were noticed during the test
2025-12-11 16:54:04,330 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-12-11 16:54:04,330 - INFO - -------------------------------------------------------------------------------- 2025-12-11 16:54:05,032 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-62392164, ID : 0f959a07-176f-434c-a26a-8768e9131927