2025-10-13 16:26:03,409 - INFO - Domain Default found not creating 2025-10-13 16:26:03,555 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-11886411 not found, creating it 2025-10-13 16:26:04,022 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-11886411, ID : 08778ff8-1b8a-4911-ad56-6396e1ee6905 2025-10-13 16:26:05,677 - INFO - ================================================================================ 2025-10-13 16:26:05,678 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-13 16:26:05,933 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.254': '0'}} with 2025-10-13 16:26:05,933 - INFO - Initial checks done. Running the testcase now 2025-10-13 16:26:05,933 - INFO - 2025-10-13 16:26:05,933 - INFO - ================================================================================ 2025-10-13 16:26:05,933 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-13 16:26:05,933 - 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-13 16:26:06,222 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.254': '0'}} with 2025-10-13 16:26:06,222 - INFO - Initial checks done. Running the testcase now 2025-10-13 16:26:06,222 - INFO - 2025-10-13 16:26:06,610 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11886411:ctest-vn4-23725525, 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-11886411:ctest-vn4-23725525, 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-11886411:ctest-vn4-23725525, 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-11886411:ctest-vn4-23725525, 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-13 16:26:07,141 - DEBUG - Response for create_network : {'network': {'id': '6cd5b1ff-9396-4628-962a-d725867d549f', 'name': 'ctest-vn4-23725525', 'tenant_id': '08778ff81b8a4911ad566396e1ee6905', 'project_id': '08778ff81b8a4911ad566396e1ee6905', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11886411', 'ctest-vn4-23725525'], 'port_security_enabled': True, 'description': ''}} 2025-10-13 16:26:07,313 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b289e6b2-8224-4acf-a846-8d015ca322f8', 'name': '', 'tenant_id': '08778ff81b8a4911ad566396e1ee6905', 'network_id': '6cd5b1ff-9396-4628-962a-d725867d549f', 'ip_version': 4, 'cidr': '108.91.76.128/26', 'allocation_pools': [{'start': '108.91.76.130', 'end': '108.91.76.190'}], 'gateway_ip': '108.91.76.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '108.91.76.130', 'tags': [], 'project_id': '08778ff81b8a4911ad566396e1ee6905'}} 2025-10-13 16:26:07,468 - DEBUG - Response for create_subnet : {'subnet': {'id': 'acca5cb2-f47a-41df-8878-cff167d1091b', 'name': '', 'tenant_id': '08778ff81b8a4911ad566396e1ee6905', 'network_id': '6cd5b1ff-9396-4628-962a-d725867d549f', 'ip_version': 6, 'cidr': '23fb:8deb:a71b:7966:773:c992::/96', 'allocation_pools': [{'start': '23fb:8deb:a71b:7966:773:c992:0:2', 'end': '23fb:8deb:a71b:7966:773:c992:ffff:fffe'}], 'gateway_ip': '23fb:8deb:a71b:7966:773:c992:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '23fb:8deb:a71b:7966:773:c992:0:2', 'tags': [], 'project_id': '08778ff81b8a4911ad566396e1ee6905'}} 2025-10-13 16:26:07,492 - INFO - Created VN ctest-vn4-23725525 2025-10-13 16:26:07,548 - DEBUG - VN ctest-vn4-23725525 UUID is 6cd5b1ff-9396-4628-962a-d725867d549f 2025-10-13 16:26:07,754 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6cd5b1ff-9396-4628-962a-d725867d549f', 'name': 'ctest-vn4-23725525', 'tenant_id': '08778ff81b8a4911ad566396e1ee6905', 'project_id': '08778ff81b8a4911ad566396e1ee6905', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b289e6b2-8224-4acf-a846-8d015ca322f8', 'acca5cb2-f47a-41df-8878-cff167d1091b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11886411', 'ctest-vn4-23725525'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11886411', 'ctest-policy1-50228458']], 'subnet_ipam': [{'subnet_cidr': '108.91.76.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '23fb:8deb:a71b:7966:773:c992::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-13 16:26:07,916 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-13 16:26:08,261 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-13 16:26:08,356 - DEBUG - Requesting: http://10.0.0.249:8082/domain/dcc2391e-d394-4237-bb38-223d9b890e53 2025-10-13 16:26:08,369 - DEBUG - Requesting: http://10.0.0.249:8082/project/08778ff8-1b8a-4911-ad56-6396e1ee6905 2025-10-13 16:26:08,442 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/6cd5b1ff-9396-4628-962a-d725867d549f 2025-10-13 16:26:08,454 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/6cd5b1ff-9396-4628-962a-d725867d549f 2025-10-13 16:26:08,464 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/b7dfb276-7b32-400d-a931-6c50acc0598d 2025-10-13 16:26:08,471 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/b7dfb276-7b32-400d-a931-6c50acc0598d 2025-10-13 16:26:08,477 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/912f050c-8a75-43d2-87f5-9760c0e0835a 2025-10-13 16:26:08,483 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-13 16:26:08,483 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/6cd5b1ff-9396-4628-962a-d725867d549f 2025-10-13 16:26:08,492 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/b7dfb276-7b32-400d-a931-6c50acc0598d 2025-10-13 16:26:08,505 - INFO - Verified VN network id 11 for VN 6cd5b1ff-9396-4628-962a-d725867d549f 2025-10-13 16:26:08,506 - INFO - Verifications in API Server for VN ctest-vn4-23725525 passed 2025-10-13 16:26:08,506 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/6cd5b1ff-9396-4628-962a-d725867d549f 2025-10-13 16:26:08,515 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/b7dfb276-7b32-400d-a931-6c50acc0598d 2025-10-13 16:26:08,522 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/b7dfb276-7b32-400d-a931-6c50acc0598d 2025-10-13 16:26:08,527 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/912f050c-8a75-43d2-87f5-9760c0e0835a 2025-10-13 16:26:08,538 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11886411:ctest-vn4-23725525', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-11886411', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7842370037386462760', 'uuid-lslong': '10820697610881160351'}, 'enable': 'true', 'created': '2025-10-13T16:26:07', 'last-modified': '2025-10-13T16:26:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.812090'} 2025-10-13 16:26:08,543 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-13 16:26:08,543 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-23725525 passed 2025-10-13 16:26:08,543 - DEBUG - ====Verifying policy data for ctest-vn4-23725525 in API_Server ====== 2025-10-13 16:26:08,543 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-13 16:26:08,548 - DEBUG - Requesting: http://10.0.0.249:8082/domain/dcc2391e-d394-4237-bb38-223d9b890e53 2025-10-13 16:26:08,557 - DEBUG - Requesting: http://10.0.0.249:8082/project/08778ff8-1b8a-4911-ad56-6396e1ee6905 2025-10-13 16:26:08,626 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/6cd5b1ff-9396-4628-962a-d725867d549f 2025-10-13 16:26:08,636 - DEBUG - ==>Verifying data for policy with id: 96e386d4-041d-472f-b384-74bc968ec773, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11886411', 'ctest-policy1-50228458'] 2025-10-13 16:26:08,636 - INFO - VN ctest-vn4-23725525 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-13 16:26:08,636 - DEBUG - Verifying the vn in opserver 2025-10-13 16:26:08,637 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11886411:ctest-vn4-23725525 virtual network link through opserver 10.0.0.249 2025-10-13 16:26:08,637 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-10-13 16:26:08,971 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-10-13 16:26:09,036 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11886411:ctest-vn4-23725525', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11886411:ctest-vn4-23725525?flat'} 2025-10-13 16:26:09,036 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11886411:ctest-vn4-23725525 is found in opserver 2025-10-13 16:26:09,047 - DEBUG - Do not have enough data to verify VN in agent 2025-10-13 16:26:09,052 - DEBUG - VRF ids for VN ctest-vn4-23725525: {} 2025-10-13 16:26:09,052 - DEBUG - ====Verifying data for ctest-policy1-50228458 in API_Server ====== 2025-10-13 16:26:09,052 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-13 16:26:09,059 - DEBUG - Requesting: http://10.0.0.249:8082/domain/dcc2391e-d394-4237-bb38-223d9b890e53 2025-10-13 16:26:09,070 - DEBUG - Requesting: http://10.0.0.249:8082/project/08778ff8-1b8a-4911-ad56-6396e1ee6905 2025-10-13 16:26:09,152 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/96e386d4-041d-472f-b384-74bc968ec773 2025-10-13 16:26:09,162 - INFO - Verified policy ctest-policy1-50228458 in API Server, Result: True 2025-10-13 16:26:09,162 - INFO - Done with setup and verification, moving onto test .. 2025-10-13 16:26:09,169 - INFO - Deleting VN ctest-vn4-23725525 2025-10-13 16:26:09,286 - DEBUG - Response for deleting network () 2025-10-13 16:26:09,287 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/b7dfb276-7b32-400d-a931-6c50acc0598d 2025-10-13 16:26:09,292 - DEBUG - Response Code: 404 2025-10-13 16:26:09,292 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-13 16:26:09,298 - DEBUG - Requesting: http://10.0.0.249:8082/domain/dcc2391e-d394-4237-bb38-223d9b890e53 2025-10-13 16:26:09,357 - DEBUG - Requesting: http://10.0.0.249:8082/project/08778ff8-1b8a-4911-ad56-6396e1ee6905 2025-10-13 16:26:09,426 - INFO - Validated that VN ctest-vn4-23725525 is not found in API Server 2025-10-13 16:26:09,436 - DEBUG - VN ctest-vn4-23725525 is not present in Agent 10.0.0.249 2025-10-13 16:26:09,436 - INFO - Validated that VN ctest-vn4-23725525 is not in any agent 2025-10-13 16:26:09,451 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-23725525 info 2025-10-13 16:26:09,483 - INFO - Deleted policy ctest-policy1-50228458 2025-10-13 16:26:09,647 - DEBUG - policy ctest-policy1-50228458 is not found in API Server 2025-10-13 16:26:09,909 - DEBUG - No XMPP flaps were noticed during the test 2025-10-13 16:26:09,909 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-13 16:26:09,909 - INFO - -------------------------------------------------------------------------------- 2025-10-13 16:26:10,219 - DEBUG - No XMPP flaps were noticed during the test 2025-10-13 16:26:10,219 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-10-13 16:26:10,219 - INFO - -------------------------------------------------------------------------------- 2025-10-13 16:26:10,950 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-11886411, ID : 08778ff8-1b8a-4911-ad56-6396e1ee6905