2025-12-30 18:08:03,602 - INFO - Domain Default found not creating 2025-12-30 18:08:03,762 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-93346359 not found, creating it 2025-12-30 18:08:04,228 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-93346359, ID : 0f293176-7e29-45dd-b1a6-f3b617f0e168 2025-12-30 18:08:05,684 - INFO - ================================================================================ 2025-12-30 18:08:05,684 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-30 18:08:05,937 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2025-12-30 18:08:05,937 - INFO - Initial checks done. Running the testcase now 2025-12-30 18:08:05,937 - INFO - 2025-12-30 18:08:05,937 - INFO - ================================================================================ 2025-12-30 18:08:05,937 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-30 18:08:05,938 - 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-30 18:08:06,226 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2025-12-30 18:08:06,226 - INFO - Initial checks done. Running the testcase now 2025-12-30 18:08:06,226 - INFO - 2025-12-30 18:08:06,578 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93346359:ctest-vn4-27506893, 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-93346359:ctest-vn4-27506893, 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-93346359:ctest-vn4-27506893, 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-93346359:ctest-vn4-27506893, 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-30 18:08:07,118 - DEBUG - Response for create_network : {'network': {'id': '42d2cca4-06a2-4fc2-8ef6-704743faa155', 'name': 'ctest-vn4-27506893', 'tenant_id': '0f2931767e2945ddb1a6f3b617f0e168', 'project_id': '0f2931767e2945ddb1a6f3b617f0e168', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93346359', 'ctest-vn4-27506893'], 'port_security_enabled': True, 'description': ''}} 2025-12-30 18:08:07,264 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a6cf01ca-082a-4c0b-a82e-6d0d36d8c3b3', 'name': '', 'tenant_id': '0f2931767e2945ddb1a6f3b617f0e168', 'network_id': '42d2cca4-06a2-4fc2-8ef6-704743faa155', 'ip_version': 4, 'cidr': '23.150.170.128/26', 'allocation_pools': [{'start': '23.150.170.130', 'end': '23.150.170.190'}], 'gateway_ip': '23.150.170.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '23.150.170.130', 'tags': [], 'project_id': '0f2931767e2945ddb1a6f3b617f0e168'}} 2025-12-30 18:08:07,431 - DEBUG - Response for create_subnet : {'subnet': {'id': '62ef62d1-67c1-4619-bd46-2e699f149bc5', 'name': '', 'tenant_id': '0f2931767e2945ddb1a6f3b617f0e168', 'network_id': '42d2cca4-06a2-4fc2-8ef6-704743faa155', 'ip_version': 6, 'cidr': '363d:a6a4:392b:cba9:b84b:a6c2::/96', 'allocation_pools': [{'start': '363d:a6a4:392b:cba9:b84b:a6c2:0:2', 'end': '363d:a6a4:392b:cba9:b84b:a6c2:ffff:fffe'}], 'gateway_ip': '363d:a6a4:392b:cba9:b84b:a6c2:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '363d:a6a4:392b:cba9:b84b:a6c2:0:2', 'tags': [], 'project_id': '0f2931767e2945ddb1a6f3b617f0e168'}} 2025-12-30 18:08:07,449 - INFO - Created VN ctest-vn4-27506893 2025-12-30 18:08:07,500 - DEBUG - VN ctest-vn4-27506893 UUID is 42d2cca4-06a2-4fc2-8ef6-704743faa155 2025-12-30 18:08:07,707 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '42d2cca4-06a2-4fc2-8ef6-704743faa155', 'name': 'ctest-vn4-27506893', 'tenant_id': '0f2931767e2945ddb1a6f3b617f0e168', 'project_id': '0f2931767e2945ddb1a6f3b617f0e168', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a6cf01ca-082a-4c0b-a82e-6d0d36d8c3b3', '62ef62d1-67c1-4619-bd46-2e699f149bc5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93346359', 'ctest-vn4-27506893'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93346359', 'ctest-policy1-39739457']], 'subnet_ipam': [{'subnet_cidr': '23.150.170.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '363d:a6a4:392b:cba9:b84b:a6c2::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-30 18:08:07,860 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-12-30 18:08:08,158 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-12-30 18:08:08,191 - DEBUG - Requesting: http://10.0.0.33:8082/domain/b47b6e67-7303-4965-878d-9c79e93fffc2 2025-12-30 18:08:08,203 - DEBUG - Requesting: http://10.0.0.33:8082/project/0f293176-7e29-45dd-b1a6-f3b617f0e168 2025-12-30 18:08:08,292 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/42d2cca4-06a2-4fc2-8ef6-704743faa155 2025-12-30 18:08:08,304 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/42d2cca4-06a2-4fc2-8ef6-704743faa155 2025-12-30 18:08:08,313 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/3bcf5761-5230-465d-ab17-b95e045a2316 2025-12-30 18:08:08,320 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/3bcf5761-5230-465d-ab17-b95e045a2316 2025-12-30 18:08:08,327 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/e848320e-0940-48d3-9cb6-b91c57c79fab 2025-12-30 18:08:08,333 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-30 18:08:08,333 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/42d2cca4-06a2-4fc2-8ef6-704743faa155 2025-12-30 18:08:08,341 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/3bcf5761-5230-465d-ab17-b95e045a2316 2025-12-30 18:08:08,353 - INFO - Verified VN network id 11 for VN 42d2cca4-06a2-4fc2-8ef6-704743faa155 2025-12-30 18:08:08,353 - INFO - Verifications in API Server for VN ctest-vn4-27506893 passed 2025-12-30 18:08:08,353 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/42d2cca4-06a2-4fc2-8ef6-704743faa155 2025-12-30 18:08:08,361 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/3bcf5761-5230-465d-ab17-b95e045a2316 2025-12-30 18:08:08,367 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/3bcf5761-5230-465d-ab17-b95e045a2316 2025-12-30 18:08:08,372 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/e848320e-0940-48d3-9cb6-b91c57c79fab 2025-12-30 18:08:08,381 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93346359:ctest-vn4-27506893', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-93346359', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4815135956470484930', 'uuid-lslong': '10301544649042075989'}, 'enable': 'true', 'created': '2025-12-30T18:08:07', 'last-modified': '2025-12-30T18:08:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.698014'} 2025-12-30 18:08:08,388 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-30 18:08:08,388 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-27506893 passed 2025-12-30 18:08:08,389 - DEBUG - ====Verifying policy data for ctest-vn4-27506893 in API_Server ====== 2025-12-30 18:08:08,389 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-12-30 18:08:08,393 - DEBUG - Requesting: http://10.0.0.33:8082/domain/b47b6e67-7303-4965-878d-9c79e93fffc2 2025-12-30 18:08:08,403 - DEBUG - Requesting: http://10.0.0.33:8082/project/0f293176-7e29-45dd-b1a6-f3b617f0e168 2025-12-30 18:08:08,471 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/42d2cca4-06a2-4fc2-8ef6-704743faa155 2025-12-30 18:08:08,481 - DEBUG - ==>Verifying data for policy with id: eee5dc76-4100-42cb-b744-c6acd43b07a0, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93346359', 'ctest-policy1-39739457'] 2025-12-30 18:08:08,482 - INFO - VN ctest-vn4-27506893 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-30 18:08:08,482 - DEBUG - Verifying the vn in opserver 2025-12-30 18:08:08,482 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93346359:ctest-vn4-27506893 virtual network link through opserver 10.0.0.33 2025-12-30 18:08:08,482 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-12-30 18:08:08,772 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-12-30 18:08:08,828 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93346359:ctest-vn4-27506893', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93346359:ctest-vn4-27506893?flat'} 2025-12-30 18:08:08,828 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93346359:ctest-vn4-27506893 is found in opserver 2025-12-30 18:08:08,838 - DEBUG - Do not have enough data to verify VN in agent 2025-12-30 18:08:08,843 - DEBUG - VRF ids for VN ctest-vn4-27506893: {} 2025-12-30 18:08:08,843 - DEBUG - ====Verifying data for ctest-policy1-39739457 in API_Server ====== 2025-12-30 18:08:08,843 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-12-30 18:08:08,849 - DEBUG - Requesting: http://10.0.0.33:8082/domain/b47b6e67-7303-4965-878d-9c79e93fffc2 2025-12-30 18:08:08,860 - DEBUG - Requesting: http://10.0.0.33:8082/project/0f293176-7e29-45dd-b1a6-f3b617f0e168 2025-12-30 18:08:08,926 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/eee5dc76-4100-42cb-b744-c6acd43b07a0 2025-12-30 18:08:08,942 - INFO - Verified policy ctest-policy1-39739457 in API Server, Result: True 2025-12-30 18:08:08,942 - INFO - Done with setup and verification, moving onto test .. 2025-12-30 18:08:08,949 - INFO - Deleting VN ctest-vn4-27506893 2025-12-30 18:08:09,058 - DEBUG - Response for deleting network () 2025-12-30 18:08:09,058 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/3bcf5761-5230-465d-ab17-b95e045a2316 2025-12-30 18:08:09,063 - DEBUG - Response Code: 404 2025-12-30 18:08:09,063 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-12-30 18:08:09,070 - DEBUG - Requesting: http://10.0.0.33:8082/domain/b47b6e67-7303-4965-878d-9c79e93fffc2 2025-12-30 18:08:09,121 - DEBUG - Requesting: http://10.0.0.33:8082/project/0f293176-7e29-45dd-b1a6-f3b617f0e168 2025-12-30 18:08:09,186 - INFO - Validated that VN ctest-vn4-27506893 is not found in API Server 2025-12-30 18:08:09,195 - DEBUG - VN ctest-vn4-27506893 is not present in Agent 10.0.0.33 2025-12-30 18:08:09,195 - INFO - Validated that VN ctest-vn4-27506893 is not in any agent 2025-12-30 18:08:09,208 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-27506893 info 2025-12-30 18:08:09,231 - INFO - Deleted policy ctest-policy1-39739457 2025-12-30 18:08:09,388 - DEBUG - policy ctest-policy1-39739457 is not found in API Server 2025-12-30 18:08:09,640 - DEBUG - No XMPP flaps were noticed during the test 2025-12-30 18:08:09,640 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-12-30 18:08:09,640 - INFO - -------------------------------------------------------------------------------- 2025-12-30 18:08:09,928 - DEBUG - No XMPP flaps were noticed during the test 2025-12-30 18:08:09,929 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-12-30 18:08:09,929 - INFO - -------------------------------------------------------------------------------- 2025-12-30 18:08:10,608 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-93346359, ID : 0f293176-7e29-45dd-b1a6-f3b617f0e168