2026-05-18 01:51:54,664 - INFO - Reading existing Domain with UUID 2d41c0d2-849f-4e48-95a3-b6637df9305b 2026-05-18 01:51:54,675 - INFO - Using existing domain ['admin_domain'](2d41c0d2-849f-4e48-95a3-b6637df9305b) 2026-05-18 01:51:54,879 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-48613003 not found, creating it 2026-05-18 01:51:55,447 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-48613003, ID : d4d84976-972e-41b7-af9c-ca1d4e83cb5a 2026-05-18 01:51:57,253 - INFO - ================================================================================ 2026-05-18 01:51:57,253 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-18 01:51:57,653 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.0.0.241': '0'}} with 2026-05-18 01:51:57,653 - INFO - Initial checks done. Running the testcase now 2026-05-18 01:51:57,653 - INFO - 2026-05-18 01:51:57,653 - INFO - ================================================================================ 2026-05-18 01:51:57,654 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-18 01:51:57,654 - 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-05-18 01:51:58,048 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.0.0.241': '0'}} with 2026-05-18 01:51:58,048 - INFO - Initial checks done. Running the testcase now 2026-05-18 01:51:58,048 - INFO - 2026-05-18 01:51:58,445 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-48613003:ctest-vn4-97500384, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-48613003:ctest-vn4-97500384, 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 = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-48613003:ctest-vn4-97500384, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-48613003:ctest-vn4-97500384, 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-05-18 01:51:59,188 - DEBUG - Response for create_network : {'network': {'id': '46431b0a-a90d-45b3-8574-358f058de006', 'name': 'ctest-vn4-97500384', 'tenant_id': 'd4d84976972e41b7af9cca1d4e83cb5a', 'project_id': 'd4d84976972e41b7af9cca1d4e83cb5a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48613003', 'ctest-vn4-97500384'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2026-05-18 01:51:59,456 - DEBUG - Response for create_subnet : {'subnet': {'id': '2995178d-9370-49b3-93c3-ec26594cd031', 'name': '', 'tenant_id': 'd4d84976972e41b7af9cca1d4e83cb5a', 'network_id': '46431b0a-a90d-45b3-8574-358f058de006', 'ip_version': 4, 'cidr': '116.151.104.64/26', 'allocation_pools': [{'start': '116.151.104.66', 'end': '116.151.104.126'}], 'gateway_ip': '116.151.104.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-05-18T01:51:59.364585', 'updated_at': '2026-05-18T01:51:59.364585', 'dns_server_address': '116.151.104.66', 'tags': [], 'project_id': 'd4d84976972e41b7af9cca1d4e83cb5a'}} 2026-05-18 01:51:59,692 - DEBUG - Response for create_subnet : {'subnet': {'id': '01eca312-f018-4c3c-aa30-fe433a34e575', 'name': '', 'tenant_id': 'd4d84976972e41b7af9cca1d4e83cb5a', 'network_id': '46431b0a-a90d-45b3-8574-358f058de006', 'ip_version': 6, 'cidr': '341e:4d4c:61d0:e864:53db:dc5::/96', 'allocation_pools': [{'start': '341e:4d4c:61d0:e864:53db:dc5:0:2', 'end': '341e:4d4c:61d0:e864:53db:dc5:ffff:fffe'}], 'gateway_ip': '341e:4d4c:61d0:e864:53db:dc5:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-05-18T01:51:59.589591', 'updated_at': '2026-05-18T01:51:59.589591', 'dns_server_address': '341e:4d4c:61d0:e864:53db:dc5:0:2', 'tags': [], 'project_id': 'd4d84976972e41b7af9cca1d4e83cb5a'}} 2026-05-18 01:51:59,757 - INFO - Created VN ctest-vn4-97500384 2026-05-18 01:51:59,811 - DEBUG - VN ctest-vn4-97500384 UUID is 46431b0a-a90d-45b3-8574-358f058de006 2026-05-18 01:52:00,292 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '46431b0a-a90d-45b3-8574-358f058de006', 'name': 'ctest-vn4-97500384', 'tenant_id': 'd4d84976972e41b7af9cca1d4e83cb5a', 'project_id': 'd4d84976972e41b7af9cca1d4e83cb5a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2995178d-9370-49b3-93c3-ec26594cd031', '01eca312-f018-4c3c-aa30-fe433a34e575'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48613003', 'ctest-vn4-97500384'], 'policys': [['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48613003', 'ctest-policy1-89766945']], 'subnet_ipam': [{'subnet_cidr': '116.151.104.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '341e:4d4c:61d0:e864:53db:dc5::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2026-05-18T01:51:59.100908', 'updated_at': '2026-05-18T01:51:59.607736'}} 2026-05-18 01:52:00,479 - DEBUG - Requesting: https://10.0.0.241:8082/domains 2026-05-18 01:52:00,847 - DEBUG - Requesting: https://10.0.0.241:8082/domains 2026-05-18 01:52:00,936 - DEBUG - Requesting: https://10.0.0.241:8082/domain/2d41c0d2-849f-4e48-95a3-b6637df9305b 2026-05-18 01:52:00,996 - DEBUG - Requesting: https://10.0.0.241:8082/project/d4d84976-972e-41b7-af9c-ca1d4e83cb5a 2026-05-18 01:52:01,092 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/46431b0a-a90d-45b3-8574-358f058de006 2026-05-18 01:52:01,156 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/46431b0a-a90d-45b3-8574-358f058de006 2026-05-18 01:52:01,216 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/2fa80234-2fef-4dff-a2f9-6e9b469b6714 2026-05-18 01:52:01,277 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/2fa80234-2fef-4dff-a2f9-6e9b469b6714 2026-05-18 01:52:01,332 - DEBUG - Requesting: https://10.0.0.241:8082/route-target/d0c57849-55cf-4c35-8e02-31ae06889b1b 2026-05-18 01:52:01,389 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-18 01:52:01,389 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/46431b0a-a90d-45b3-8574-358f058de006 2026-05-18 01:52:01,449 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/2fa80234-2fef-4dff-a2f9-6e9b469b6714 2026-05-18 01:52:01,512 - INFO - Verified VN network id 11 for VN 46431b0a-a90d-45b3-8574-358f058de006 2026-05-18 01:52:01,512 - INFO - Verifications in API Server for VN ctest-vn4-97500384 passed 2026-05-18 01:52:01,512 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/46431b0a-a90d-45b3-8574-358f058de006 2026-05-18 01:52:01,570 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/2fa80234-2fef-4dff-a2f9-6e9b469b6714 2026-05-18 01:52:01,628 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/2fa80234-2fef-4dff-a2f9-6e9b469b6714 2026-05-18 01:52:01,684 - DEBUG - Requesting: https://10.0.0.241:8082/route-target/d0c57849-55cf-4c35-8e02-31ae06889b1b 2026-05-18 01:52:01,792 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-48613003:ctest-vn4-97500384', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-48613003', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5062920138694411699', 'uuid-lslong': '9616369992732631046'}, 'enable': 'true', 'created': '2026-05-18T01:51:59', 'last-modified': '2026-05-18T01:52:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.534680'} 2026-05-18 01:52:01,845 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-18 01:52:01,846 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-97500384 passed 2026-05-18 01:52:01,847 - DEBUG - ====Verifying policy data for ctest-vn4-97500384 in API_Server ====== 2026-05-18 01:52:01,847 - DEBUG - Requesting: https://10.0.0.241:8082/domains 2026-05-18 01:52:01,904 - DEBUG - Requesting: https://10.0.0.241:8082/domain/2d41c0d2-849f-4e48-95a3-b6637df9305b 2026-05-18 01:52:01,964 - DEBUG - Requesting: https://10.0.0.241:8082/project/d4d84976-972e-41b7-af9c-ca1d4e83cb5a 2026-05-18 01:52:02,044 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/46431b0a-a90d-45b3-8574-358f058de006 2026-05-18 01:52:02,104 - DEBUG - ==>Verifying data for policy with id: 73ab9819-f376-4c9e-ab51-028388cde6b1, fqn: ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48613003', 'ctest-policy1-89766945'] 2026-05-18 01:52:02,104 - INFO - VN ctest-vn4-97500384 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-18 01:52:02,104 - DEBUG - Verifying the vn in opserver 2026-05-18 01:52:02,104 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-48613003:ctest-vn4-97500384 virtual network link through opserver 10.0.0.241 2026-05-18 01:52:02,105 - DEBUG - Requesting: https://10.0.0.241:8081/analytics/uves/virtual-networks 2026-05-18 01:52:02,466 - DEBUG - Requesting: https://10.0.0.241:8081/analytics/uves/virtual-networks 2026-05-18 01:52:02,604 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-48613003:ctest-vn4-97500384', 'href': 'https://10.0.0.241:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-48613003:ctest-vn4-97500384?flat'} 2026-05-18 01:52:02,604 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-48613003:ctest-vn4-97500384 is found in opserver 2026-05-18 01:52:02,708 - DEBUG - Do not have enough data to verify VN in agent 2026-05-18 01:52:02,756 - DEBUG - VRF ids for VN ctest-vn4-97500384: {} 2026-05-18 01:52:02,756 - DEBUG - ====Verifying data for ctest-policy1-89766945 in API_Server ====== 2026-05-18 01:52:02,756 - DEBUG - Requesting: https://10.0.0.241:8082/domains 2026-05-18 01:52:02,807 - DEBUG - Requesting: https://10.0.0.241:8082/domain/2d41c0d2-849f-4e48-95a3-b6637df9305b 2026-05-18 01:52:02,864 - DEBUG - Requesting: https://10.0.0.241:8082/project/d4d84976-972e-41b7-af9c-ca1d4e83cb5a 2026-05-18 01:52:02,944 - DEBUG - Requesting: https://10.0.0.241:8082/network-policy/73ab9819-f376-4c9e-ab51-028388cde6b1 2026-05-18 01:52:03,007 - INFO - Verified policy ctest-policy1-89766945 in API Server, Result: True 2026-05-18 01:52:03,007 - INFO - Done with setup and verification, moving onto test .. 2026-05-18 01:52:03,017 - INFO - Deleting VN ctest-vn4-97500384 2026-05-18 01:52:03,231 - DEBUG - Response for deleting network () 2026-05-18 01:52:03,232 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/2fa80234-2fef-4dff-a2f9-6e9b469b6714 2026-05-18 01:52:03,283 - DEBUG - Response Code: 404 2026-05-18 01:52:03,283 - DEBUG - Requesting: https://10.0.0.241:8082/domains 2026-05-18 01:52:03,335 - DEBUG - Requesting: https://10.0.0.241:8082/domain/2d41c0d2-849f-4e48-95a3-b6637df9305b 2026-05-18 01:52:03,396 - DEBUG - Requesting: https://10.0.0.241:8082/project/d4d84976-972e-41b7-af9c-ca1d4e83cb5a 2026-05-18 01:52:03,476 - INFO - Validated that VN ctest-vn4-97500384 is not found in API Server 2026-05-18 01:52:03,580 - DEBUG - VN ctest-vn4-97500384 is not present in Agent 10.0.0.241 2026-05-18 01:52:03,580 - INFO - Validated that VN ctest-vn4-97500384 is not in any agent 2026-05-18 01:52:03,732 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-97500384 info 2026-05-18 01:52:03,766 - INFO - Deleted policy ctest-policy1-89766945 2026-05-18 01:52:03,939 - DEBUG - policy ctest-policy1-89766945 is not found in API Server 2026-05-18 01:52:04,344 - DEBUG - No XMPP flaps were noticed during the test
2026-05-18 01:52:04,344 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07]
2026-05-18 01:52:04,344 - INFO - -------------------------------------------------------------------------------- 2026-05-18 01:52:04,740 - DEBUG - No XMPP flaps were noticed during the test
2026-05-18 01:52:04,740 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07]
2026-05-18 01:52:04,740 - INFO - -------------------------------------------------------------------------------- 2026-05-18 01:52:05,493 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-48613003, ID : d4d84976-972e-41b7-af9c-ca1d4e83cb5a