2025-10-16 18:12:09,420 - INFO - Domain Default found not creating 2025-10-16 18:12:09,583 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-30303238 not found, creating it 2025-10-16 18:12:10,055 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-30303238, ID : d9bff7c4-1e82-42e8-9903-05353ef43353 2025-10-16 18:12:11,495 - INFO - ================================================================================ 2025-10-16 18:12:11,495 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-16 18:12:11,749 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2025-10-16 18:12:11,749 - INFO - Initial checks done. Running the testcase now 2025-10-16 18:12:11,749 - INFO - 2025-10-16 18:12:11,749 - INFO - ================================================================================ 2025-10-16 18:12:11,749 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-16 18:12:11,749 - 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-10-16 18:12:12,037 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2025-10-16 18:12:12,038 - INFO - Initial checks done. Running the testcase now 2025-10-16 18:12:12,038 - INFO - 2025-10-16 18:12:12,380 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30303238:ctest-vn4-81407546, 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-30303238:ctest-vn4-81407546, 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-30303238:ctest-vn4-81407546, 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-30303238:ctest-vn4-81407546, 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-10-16 18:12:12,884 - DEBUG - Response for create_network : {'network': {'id': '828020ec-8756-4453-805d-057729918cd6', 'name': 'ctest-vn4-81407546', 'tenant_id': 'd9bff7c41e8242e8990305353ef43353', 'project_id': 'd9bff7c41e8242e8990305353ef43353', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30303238', 'ctest-vn4-81407546'], 'port_security_enabled': True, 'description': ''}} 2025-10-16 18:12:13,054 - DEBUG - Response for create_subnet : {'subnet': {'id': '9f3cac58-6707-4815-b6cc-0249ea44bd9c', 'name': '', 'tenant_id': 'd9bff7c41e8242e8990305353ef43353', 'network_id': '828020ec-8756-4453-805d-057729918cd6', 'ip_version': 4, 'cidr': '144.247.138.128/26', 'allocation_pools': [{'start': '144.247.138.130', 'end': '144.247.138.190'}], 'gateway_ip': '144.247.138.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '144.247.138.130', 'tags': [], 'project_id': 'd9bff7c41e8242e8990305353ef43353'}} 2025-10-16 18:12:13,214 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c02e7a26-0d96-413a-991c-6961c9893bf8', 'name': '', 'tenant_id': 'd9bff7c41e8242e8990305353ef43353', 'network_id': '828020ec-8756-4453-805d-057729918cd6', 'ip_version': 6, 'cidr': '228e:a6b2:c76b:99d6:32fc:e442::/96', 'allocation_pools': [{'start': '228e:a6b2:c76b:99d6:32fc:e442:0:2', 'end': '228e:a6b2:c76b:99d6:32fc:e442:ffff:fffe'}], 'gateway_ip': '228e:a6b2:c76b:99d6:32fc:e442:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '228e:a6b2:c76b:99d6:32fc:e442:0:2', 'tags': [], 'project_id': 'd9bff7c41e8242e8990305353ef43353'}} 2025-10-16 18:12:13,233 - INFO - Created VN ctest-vn4-81407546 2025-10-16 18:12:13,284 - DEBUG - VN ctest-vn4-81407546 UUID is 828020ec-8756-4453-805d-057729918cd6 2025-10-16 18:12:13,470 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '828020ec-8756-4453-805d-057729918cd6', 'name': 'ctest-vn4-81407546', 'tenant_id': 'd9bff7c41e8242e8990305353ef43353', 'project_id': 'd9bff7c41e8242e8990305353ef43353', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9f3cac58-6707-4815-b6cc-0249ea44bd9c', 'c02e7a26-0d96-413a-991c-6961c9893bf8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30303238', 'ctest-vn4-81407546'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30303238', 'ctest-policy1-73202352']], 'subnet_ipam': [{'subnet_cidr': '144.247.138.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '228e:a6b2:c76b:99d6:32fc:e442::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-16 18:12:13,632 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-16 18:12:13,920 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-16 18:12:13,947 - DEBUG - Requesting: http://10.0.0.22:8082/domain/6f7278c8-d932-49e4-acb2-f0615b2fe3cd 2025-10-16 18:12:13,958 - DEBUG - Requesting: http://10.0.0.22:8082/project/d9bff7c4-1e82-42e8-9903-05353ef43353 2025-10-16 18:12:14,028 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/828020ec-8756-4453-805d-057729918cd6 2025-10-16 18:12:14,040 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/828020ec-8756-4453-805d-057729918cd6 2025-10-16 18:12:14,049 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d7229179-8873-41f0-b3e7-ebe9cf15255a 2025-10-16 18:12:14,056 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d7229179-8873-41f0-b3e7-ebe9cf15255a 2025-10-16 18:12:14,062 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/239a5839-52a3-45e9-b1b9-7800e75479b0 2025-10-16 18:12:14,068 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-16 18:12:14,068 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/828020ec-8756-4453-805d-057729918cd6 2025-10-16 18:12:14,076 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d7229179-8873-41f0-b3e7-ebe9cf15255a 2025-10-16 18:12:14,090 - INFO - Verified VN network id 9 for VN 828020ec-8756-4453-805d-057729918cd6 2025-10-16 18:12:14,090 - INFO - Verifications in API Server for VN ctest-vn4-81407546 passed 2025-10-16 18:12:14,090 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/828020ec-8756-4453-805d-057729918cd6 2025-10-16 18:12:14,099 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d7229179-8873-41f0-b3e7-ebe9cf15255a 2025-10-16 18:12:14,105 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d7229179-8873-41f0-b3e7-ebe9cf15255a 2025-10-16 18:12:14,112 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/239a5839-52a3-45e9-b1b9-7800e75479b0 2025-10-16 18:12:14,125 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30303238:ctest-vn4-81407546', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-30303238', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9403552222204544083', 'uuid-lslong': '9249555219045518550'}, 'enable': 'true', 'created': '2025-10-16T18:12:12', 'last-modified': '2025-10-16T18:12:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.676475'} 2025-10-16 18:12:14,130 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-16 18:12:14,131 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-81407546 passed 2025-10-16 18:12:14,131 - DEBUG - ====Verifying policy data for ctest-vn4-81407546 in API_Server ====== 2025-10-16 18:12:14,131 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-16 18:12:14,136 - DEBUG - Requesting: http://10.0.0.22:8082/domain/6f7278c8-d932-49e4-acb2-f0615b2fe3cd 2025-10-16 18:12:14,149 - DEBUG - Requesting: http://10.0.0.22:8082/project/d9bff7c4-1e82-42e8-9903-05353ef43353 2025-10-16 18:12:14,216 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/828020ec-8756-4453-805d-057729918cd6 2025-10-16 18:12:14,224 - DEBUG - ==>Verifying data for policy with id: 093ae6ea-999a-490c-a75f-309bac40955e, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30303238', 'ctest-policy1-73202352'] 2025-10-16 18:12:14,225 - INFO - VN ctest-vn4-81407546 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-16 18:12:14,225 - DEBUG - Verifying the vn in opserver 2025-10-16 18:12:14,225 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30303238:ctest-vn4-81407546 virtual network link through opserver 10.0.0.22 2025-10-16 18:12:14,225 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-10-16 18:12:14,514 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-10-16 18:12:14,582 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30303238:ctest-vn4-81407546', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30303238:ctest-vn4-81407546?flat'} 2025-10-16 18:12:14,582 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30303238:ctest-vn4-81407546 is found in opserver 2025-10-16 18:12:14,592 - DEBUG - Do not have enough data to verify VN in agent 2025-10-16 18:12:14,598 - DEBUG - VRF ids for VN ctest-vn4-81407546: {} 2025-10-16 18:12:14,598 - DEBUG - ====Verifying data for ctest-policy1-73202352 in API_Server ====== 2025-10-16 18:12:14,598 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-16 18:12:14,604 - DEBUG - Requesting: http://10.0.0.22:8082/domain/6f7278c8-d932-49e4-acb2-f0615b2fe3cd 2025-10-16 18:12:14,615 - DEBUG - Requesting: http://10.0.0.22:8082/project/d9bff7c4-1e82-42e8-9903-05353ef43353 2025-10-16 18:12:14,685 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/093ae6ea-999a-490c-a75f-309bac40955e 2025-10-16 18:12:14,694 - INFO - Verified policy ctest-policy1-73202352 in API Server, Result: True 2025-10-16 18:12:14,694 - INFO - Done with setup and verification, moving onto test .. 2025-10-16 18:12:14,700 - INFO - Deleting VN ctest-vn4-81407546 2025-10-16 18:12:14,800 - DEBUG - Response for deleting network () 2025-10-16 18:12:14,800 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d7229179-8873-41f0-b3e7-ebe9cf15255a 2025-10-16 18:12:14,804 - DEBUG - Response Code: 404 2025-10-16 18:12:14,805 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-16 18:12:14,808 - DEBUG - Requesting: http://10.0.0.22:8082/domain/6f7278c8-d932-49e4-acb2-f0615b2fe3cd 2025-10-16 18:12:14,864 - DEBUG - Requesting: http://10.0.0.22:8082/project/d9bff7c4-1e82-42e8-9903-05353ef43353 2025-10-16 18:12:14,931 - INFO - Validated that VN ctest-vn4-81407546 is not found in API Server 2025-10-16 18:12:14,939 - DEBUG - VN ctest-vn4-81407546 is not present in Agent 10.0.0.22 2025-10-16 18:12:14,939 - INFO - Validated that VN ctest-vn4-81407546 is not in any agent 2025-10-16 18:12:14,952 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-81407546 info 2025-10-16 18:12:14,973 - INFO - Deleted policy ctest-policy1-73202352 2025-10-16 18:12:15,132 - DEBUG - policy ctest-policy1-73202352 is not found in API Server 2025-10-16 18:12:15,385 - DEBUG - No XMPP flaps were noticed during the test