2026-02-10 06:01:00,987 - INFO - Domain Default found not creating 2026-02-10 06:01:01,165 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-11215804 not found, creating it 2026-02-10 06:01:01,653 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-11215804, ID : aba65709-b0ad-47de-affa-9e7338a6c236 2026-02-10 06:01:03,168 - INFO - ================================================================================ 2026-02-10 06:01:03,168 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-10 06:01:03,423 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-02-10 06:01:03,423 - INFO - Initial checks done. Running the testcase now 2026-02-10 06:01:03,423 - INFO - 2026-02-10 06:01:03,423 - INFO - ================================================================================ 2026-02-10 06:01:03,423 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-10 06:01:03,423 - 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-02-10 06:01:03,710 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-02-10 06:01:03,710 - INFO - Initial checks done. Running the testcase now 2026-02-10 06:01:03,711 - INFO - 2026-02-10 06:01:04,082 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11215804:ctest-vn4-46482829, 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-11215804:ctest-vn4-46482829, 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-11215804:ctest-vn4-46482829, 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-11215804:ctest-vn4-46482829, 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-02-10 06:01:04,616 - DEBUG - Response for create_network : {'network': {'id': 'c2e7c830-c4cd-4296-93f2-1aad8630f6af', 'name': 'ctest-vn4-46482829', 'tenant_id': 'aba65709b0ad47deaffa9e7338a6c236', 'project_id': 'aba65709b0ad47deaffa9e7338a6c236', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11215804', 'ctest-vn4-46482829'], 'port_security_enabled': True, 'description': ''}} 2026-02-10 06:01:04,781 - DEBUG - Response for create_subnet : {'subnet': {'id': '7145c690-db18-42d9-8d81-7371f3a6dd5f', 'name': '', 'tenant_id': 'aba65709b0ad47deaffa9e7338a6c236', 'network_id': 'c2e7c830-c4cd-4296-93f2-1aad8630f6af', 'ip_version': 4, 'cidr': '108.238.251.192/26', 'allocation_pools': [{'start': '108.238.251.194', 'end': '108.238.251.254'}], 'gateway_ip': '108.238.251.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '108.238.251.194', 'tags': [], 'project_id': 'aba65709b0ad47deaffa9e7338a6c236'}} 2026-02-10 06:01:04,958 - DEBUG - Response for create_subnet : {'subnet': {'id': '6df4f0fb-56c2-4b7a-8c9a-450dfe3a3f7a', 'name': '', 'tenant_id': 'aba65709b0ad47deaffa9e7338a6c236', 'network_id': 'c2e7c830-c4cd-4296-93f2-1aad8630f6af', 'ip_version': 6, 'cidr': '2ce7:f985:6287:3747:a33:ebe0::/96', 'allocation_pools': [{'start': '2ce7:f985:6287:3747:a33:ebe0:0:2', 'end': '2ce7:f985:6287:3747:a33:ebe0:ffff:fffe'}], 'gateway_ip': '2ce7:f985:6287:3747:a33:ebe0:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2ce7:f985:6287:3747:a33:ebe0:0:2', 'tags': [], 'project_id': 'aba65709b0ad47deaffa9e7338a6c236'}} 2026-02-10 06:01:04,976 - INFO - Created VN ctest-vn4-46482829 2026-02-10 06:01:05,033 - DEBUG - VN ctest-vn4-46482829 UUID is c2e7c830-c4cd-4296-93f2-1aad8630f6af 2026-02-10 06:01:05,237 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c2e7c830-c4cd-4296-93f2-1aad8630f6af', 'name': 'ctest-vn4-46482829', 'tenant_id': 'aba65709b0ad47deaffa9e7338a6c236', 'project_id': 'aba65709b0ad47deaffa9e7338a6c236', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7145c690-db18-42d9-8d81-7371f3a6dd5f', '6df4f0fb-56c2-4b7a-8c9a-450dfe3a3f7a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11215804', 'ctest-vn4-46482829'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11215804', 'ctest-policy1-13561071']], 'subnet_ipam': [{'subnet_cidr': '108.238.251.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2ce7:f985:6287:3747:a33:ebe0::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-10 06:01:05,405 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-10 06:01:05,705 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-10 06:01:05,733 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b51e8295-8a4c-467e-bc54-a2cc4d7e9027 2026-02-10 06:01:05,744 - DEBUG - Requesting: http://10.0.0.38:8082/project/aba65709-b0ad-47de-affa-9e7338a6c236 2026-02-10 06:01:05,825 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c2e7c830-c4cd-4296-93f2-1aad8630f6af 2026-02-10 06:01:05,836 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c2e7c830-c4cd-4296-93f2-1aad8630f6af 2026-02-10 06:01:05,844 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3659f064-c158-4815-8eb4-f5f5714fccf8 2026-02-10 06:01:05,850 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3659f064-c158-4815-8eb4-f5f5714fccf8 2026-02-10 06:01:05,856 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b819185f-bb20-4fec-b162-06dd30dfeeb3 2026-02-10 06:01:05,861 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-10 06:01:05,861 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c2e7c830-c4cd-4296-93f2-1aad8630f6af 2026-02-10 06:01:05,868 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3659f064-c158-4815-8eb4-f5f5714fccf8 2026-02-10 06:01:05,941 - INFO - Verified VN network id 11 for VN c2e7c830-c4cd-4296-93f2-1aad8630f6af 2026-02-10 06:01:05,941 - INFO - Verifications in API Server for VN ctest-vn4-46482829 passed 2026-02-10 06:01:05,941 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c2e7c830-c4cd-4296-93f2-1aad8630f6af 2026-02-10 06:01:05,950 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3659f064-c158-4815-8eb4-f5f5714fccf8 2026-02-10 06:01:05,957 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3659f064-c158-4815-8eb4-f5f5714fccf8 2026-02-10 06:01:05,964 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b819185f-bb20-4fec-b162-06dd30dfeeb3 2026-02-10 06:01:05,975 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11215804:ctest-vn4-46482829', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-11215804', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14044414074763952790', 'uuid-lslong': '10660612600522405551'}, 'enable': 'true', 'created': '2026-02-10T06:01:04', 'last-modified': '2026-02-10T06:01:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.765773'} 2026-02-10 06:01:05,980 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-10 06:01:05,980 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-46482829 passed 2026-02-10 06:01:05,980 - DEBUG - ====Verifying policy data for ctest-vn4-46482829 in API_Server ====== 2026-02-10 06:01:05,980 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-10 06:01:05,985 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b51e8295-8a4c-467e-bc54-a2cc4d7e9027 2026-02-10 06:01:05,995 - DEBUG - Requesting: http://10.0.0.38:8082/project/aba65709-b0ad-47de-affa-9e7338a6c236 2026-02-10 06:01:06,060 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c2e7c830-c4cd-4296-93f2-1aad8630f6af 2026-02-10 06:01:06,068 - DEBUG - ==>Verifying data for policy with id: c58c1ea5-4cd7-489c-bcbd-715cfffbd166, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11215804', 'ctest-policy1-13561071'] 2026-02-10 06:01:06,068 - INFO - VN ctest-vn4-46482829 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-10 06:01:06,068 - DEBUG - Verifying the vn in opserver 2026-02-10 06:01:06,068 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11215804:ctest-vn4-46482829 virtual network link through opserver 10.0.0.38 2026-02-10 06:01:06,069 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-10 06:01:06,362 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-10 06:01:06,426 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11215804:ctest-vn4-46482829', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11215804:ctest-vn4-46482829?flat'} 2026-02-10 06:01:06,426 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11215804:ctest-vn4-46482829 is found in opserver 2026-02-10 06:01:06,435 - DEBUG - Do not have enough data to verify VN in agent 2026-02-10 06:01:06,439 - DEBUG - VRF ids for VN ctest-vn4-46482829: {} 2026-02-10 06:01:06,439 - DEBUG - ====Verifying data for ctest-policy1-13561071 in API_Server ====== 2026-02-10 06:01:06,440 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-10 06:01:06,444 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b51e8295-8a4c-467e-bc54-a2cc4d7e9027 2026-02-10 06:01:06,453 - DEBUG - Requesting: http://10.0.0.38:8082/project/aba65709-b0ad-47de-affa-9e7338a6c236 2026-02-10 06:01:06,523 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/c58c1ea5-4cd7-489c-bcbd-715cfffbd166 2026-02-10 06:01:06,532 - INFO - Verified policy ctest-policy1-13561071 in API Server, Result: True 2026-02-10 06:01:06,532 - INFO - Done with setup and verification, moving onto test .. 2026-02-10 06:01:06,541 - INFO - Deleting VN ctest-vn4-46482829 2026-02-10 06:01:06,663 - DEBUG - Response for deleting network () 2026-02-10 06:01:06,663 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3659f064-c158-4815-8eb4-f5f5714fccf8 2026-02-10 06:01:06,668 - DEBUG - Response Code: 404 2026-02-10 06:01:06,668 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-10 06:01:06,673 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b51e8295-8a4c-467e-bc54-a2cc4d7e9027 2026-02-10 06:01:06,726 - DEBUG - Requesting: http://10.0.0.38:8082/project/aba65709-b0ad-47de-affa-9e7338a6c236 2026-02-10 06:01:06,791 - INFO - Validated that VN ctest-vn4-46482829 is not found in API Server 2026-02-10 06:01:06,801 - DEBUG - VN ctest-vn4-46482829 is not present in Agent 10.0.0.38 2026-02-10 06:01:06,801 - INFO - Validated that VN ctest-vn4-46482829 is not in any agent 2026-02-10 06:01:06,814 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-46482829 info 2026-02-10 06:01:06,842 - INFO - Deleted policy ctest-policy1-13561071 2026-02-10 06:01:07,001 - DEBUG - policy ctest-policy1-13561071 is not found in API Server 2026-02-10 06:01:07,258 - DEBUG - No XMPP flaps were noticed during the test
2026-02-10 06:01:07,258 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-10 06:01:07,258 - INFO - -------------------------------------------------------------------------------- 2026-02-10 06:01:07,550 - DEBUG - No XMPP flaps were noticed during the test
2026-02-10 06:01:07,550 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-10 06:01:07,550 - INFO - -------------------------------------------------------------------------------- 2026-02-10 06:01:08,221 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-11215804, ID : aba65709-b0ad-47de-affa-9e7338a6c236