2026-06-03 13:04:24,873 - INFO - Domain Default found not creating 2026-06-03 13:04:25,055 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-52835736 not found, creating it 2026-06-03 13:04:25,550 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-52835736, ID : e802ddc3-6f5b-4d21-b4f7-44724420f280 2026-06-03 13:04:27,083 - INFO - ================================================================================ 2026-06-03 13:04:27,083 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-03 13:04:27,339 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-06-03 13:04:27,339 - INFO - Initial checks done. Running the testcase now 2026-06-03 13:04:27,339 - INFO - 2026-06-03 13:04:27,340 - INFO - ================================================================================ 2026-06-03 13:04:27,340 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-03 13:04:27,340 - 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. 2026-06-03 13:04:27,634 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-06-03 13:04:27,634 - INFO - Initial checks done. Running the testcase now 2026-06-03 13:04:27,634 - INFO - 2026-06-03 13:04:27,998 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-52835736:ctest-vn4-05702743, 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-52835736:ctest-vn4-05702743, 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-52835736:ctest-vn4-05702743, 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-52835736:ctest-vn4-05702743, 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] 2026-06-03 13:04:28,543 - DEBUG - Response for create_network : {'network': {'id': 'fc1638cb-9c28-41b8-b0e5-4152640a52f6', 'name': 'ctest-vn4-05702743', 'tenant_id': 'e802ddc36f5b4d21b4f744724420f280', 'project_id': 'e802ddc36f5b4d21b4f744724420f280', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-52835736', 'ctest-vn4-05702743'], 'port_security_enabled': True, 'description': ''}} 2026-06-03 13:04:28,745 - DEBUG - Response for create_subnet : {'subnet': {'id': '90b166bc-188c-4913-a565-944e6bd60b99', 'name': '', 'tenant_id': 'e802ddc36f5b4d21b4f744724420f280', 'network_id': 'fc1638cb-9c28-41b8-b0e5-4152640a52f6', 'ip_version': 4, 'cidr': '11.104.170.0/26', 'allocation_pools': [{'start': '11.104.170.2', 'end': '11.104.170.62'}], 'gateway_ip': '11.104.170.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '11.104.170.2', 'tags': [], 'project_id': 'e802ddc36f5b4d21b4f744724420f280'}} 2026-06-03 13:04:28,918 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c26bb514-5dcf-4f97-9220-ba1838e7457d', 'name': '', 'tenant_id': 'e802ddc36f5b4d21b4f744724420f280', 'network_id': 'fc1638cb-9c28-41b8-b0e5-4152640a52f6', 'ip_version': 6, 'cidr': '2612:a3ea:7454:98a:c2d6:55ba::/96', 'allocation_pools': [{'start': '2612:a3ea:7454:98a:c2d6:55ba:0:2', 'end': '2612:a3ea:7454:98a:c2d6:55ba:ffff:fffe'}], 'gateway_ip': '2612:a3ea:7454:98a:c2d6:55ba:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2612:a3ea:7454:98a:c2d6:55ba:0:2', 'tags': [], 'project_id': 'e802ddc36f5b4d21b4f744724420f280'}} 2026-06-03 13:04:28,939 - INFO - Created VN ctest-vn4-05702743 2026-06-03 13:04:28,990 - DEBUG - VN ctest-vn4-05702743 UUID is fc1638cb-9c28-41b8-b0e5-4152640a52f6 2026-06-03 13:04:29,192 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fc1638cb-9c28-41b8-b0e5-4152640a52f6', 'name': 'ctest-vn4-05702743', 'tenant_id': 'e802ddc36f5b4d21b4f744724420f280', 'project_id': 'e802ddc36f5b4d21b4f744724420f280', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['90b166bc-188c-4913-a565-944e6bd60b99', 'c26bb514-5dcf-4f97-9220-ba1838e7457d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-52835736', 'ctest-vn4-05702743'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-52835736', 'ctest-policy1-50840267']], 'subnet_ipam': [{'subnet_cidr': '11.104.170.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2612:a3ea:7454:98a:c2d6:55ba::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-03 13:04:29,362 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-03 13:04:29,664 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-03 13:04:29,717 - DEBUG - Requesting: http://10.0.0.38:8082/domain/42172b78-e50c-4725-8fba-1c8e109a8bb8 2026-06-03 13:04:29,730 - DEBUG - Requesting: http://10.0.0.38:8082/project/e802ddc3-6f5b-4d21-b4f7-44724420f280 2026-06-03 13:04:29,805 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fc1638cb-9c28-41b8-b0e5-4152640a52f6 2026-06-03 13:04:29,817 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fc1638cb-9c28-41b8-b0e5-4152640a52f6 2026-06-03 13:04:29,827 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2515303e-fcfa-4eee-9bcc-a88e2f52f7f9 2026-06-03 13:04:29,835 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2515303e-fcfa-4eee-9bcc-a88e2f52f7f9 2026-06-03 13:04:29,841 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/df6cee76-d99b-4803-acdb-387f730b5d0f 2026-06-03 13:04:29,847 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-03 13:04:29,847 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fc1638cb-9c28-41b8-b0e5-4152640a52f6 2026-06-03 13:04:29,855 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2515303e-fcfa-4eee-9bcc-a88e2f52f7f9 2026-06-03 13:04:29,868 - INFO - Verified VN network id 11 for VN fc1638cb-9c28-41b8-b0e5-4152640a52f6 2026-06-03 13:04:29,868 - INFO - Verifications in API Server for VN ctest-vn4-05702743 passed 2026-06-03 13:04:29,868 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fc1638cb-9c28-41b8-b0e5-4152640a52f6 2026-06-03 13:04:29,878 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2515303e-fcfa-4eee-9bcc-a88e2f52f7f9 2026-06-03 13:04:29,885 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2515303e-fcfa-4eee-9bcc-a88e2f52f7f9 2026-06-03 13:04:29,892 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/df6cee76-d99b-4803-acdb-387f730b5d0f 2026-06-03 13:04:29,904 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-52835736:ctest-vn4-05702743', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-52835736', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18164768594194874808', 'uuid-lslong': '12746666142463578870'}, 'enable': 'true', 'created': '2026-06-03T13:04:28', 'last-modified': '2026-06-03T13:04:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.735613'} 2026-06-03 13:04:29,910 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-03 13:04:29,911 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-05702743 passed 2026-06-03 13:04:29,911 - DEBUG - ====Verifying policy data for ctest-vn4-05702743 in API_Server ====== 2026-06-03 13:04:29,911 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-03 13:04:29,917 - DEBUG - Requesting: http://10.0.0.38:8082/domain/42172b78-e50c-4725-8fba-1c8e109a8bb8 2026-06-03 13:04:29,928 - DEBUG - Requesting: http://10.0.0.38:8082/project/e802ddc3-6f5b-4d21-b4f7-44724420f280 2026-06-03 13:04:29,997 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fc1638cb-9c28-41b8-b0e5-4152640a52f6 2026-06-03 13:04:30,007 - DEBUG - ==>Verifying data for policy with id: 80f79956-883e-4c03-b3b5-b2c837623279, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-52835736', 'ctest-policy1-50840267'] 2026-06-03 13:04:30,007 - INFO - VN ctest-vn4-05702743 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-03 13:04:30,007 - DEBUG - Verifying the vn in opserver 2026-06-03 13:04:30,007 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-52835736:ctest-vn4-05702743 virtual network link through opserver 10.0.0.38 2026-06-03 13:04:30,007 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-06-03 13:04:30,313 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-06-03 13:04:30,376 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-52835736:ctest-vn4-05702743', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-52835736:ctest-vn4-05702743?flat'} 2026-06-03 13:04:30,376 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-52835736:ctest-vn4-05702743 is found in opserver 2026-06-03 13:04:30,385 - DEBUG - Do not have enough data to verify VN in agent 2026-06-03 13:04:30,390 - DEBUG - VRF ids for VN ctest-vn4-05702743: {} 2026-06-03 13:04:30,390 - DEBUG - ====Verifying data for ctest-policy1-50840267 in API_Server ====== 2026-06-03 13:04:30,390 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-03 13:04:30,396 - DEBUG - Requesting: http://10.0.0.38:8082/domain/42172b78-e50c-4725-8fba-1c8e109a8bb8 2026-06-03 13:04:30,407 - DEBUG - Requesting: http://10.0.0.38:8082/project/e802ddc3-6f5b-4d21-b4f7-44724420f280 2026-06-03 13:04:30,479 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/80f79956-883e-4c03-b3b5-b2c837623279 2026-06-03 13:04:30,488 - INFO - Verified policy ctest-policy1-50840267 in API Server, Result: True 2026-06-03 13:04:30,488 - INFO - Done with setup and verification, moving onto test .. 2026-06-03 13:04:30,497 - INFO - Deleting VN ctest-vn4-05702743 2026-06-03 13:04:30,625 - DEBUG - Response for deleting network () 2026-06-03 13:04:30,625 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2515303e-fcfa-4eee-9bcc-a88e2f52f7f9 2026-06-03 13:04:30,630 - DEBUG - Response Code: 404 2026-06-03 13:04:30,631 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-03 13:04:30,636 - DEBUG - Requesting: http://10.0.0.38:8082/domain/42172b78-e50c-4725-8fba-1c8e109a8bb8 2026-06-03 13:04:30,692 - DEBUG - Requesting: http://10.0.0.38:8082/project/e802ddc3-6f5b-4d21-b4f7-44724420f280 2026-06-03 13:04:30,771 - INFO - Validated that VN ctest-vn4-05702743 is not found in API Server 2026-06-03 13:04:30,782 - DEBUG - VN ctest-vn4-05702743 is not present in Agent 10.0.0.38 2026-06-03 13:04:30,782 - INFO - Validated that VN ctest-vn4-05702743 is not in any agent 2026-06-03 13:04:30,799 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-05702743 info 2026-06-03 13:04:30,821 - INFO - Deleted policy ctest-policy1-50840267 2026-06-03 13:04:30,982 - DEBUG - policy ctest-policy1-50840267 is not found in API Server 2026-06-03 13:04:31,240 - DEBUG - No XMPP flaps were noticed during the test
2026-06-03 13:04:31,240 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-06-03 13:04:31,240 - INFO - -------------------------------------------------------------------------------- 2026-06-03 13:04:31,528 - DEBUG - No XMPP flaps were noticed during the test
2026-06-03 13:04:31,528 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-06-03 13:04:31,528 - INFO - -------------------------------------------------------------------------------- 2026-06-03 13:04:32,244 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-52835736, ID : e802ddc3-6f5b-4d21-b4f7-44724420f280