2026-02-20 09:04:34,731 - INFO - Domain Default found not creating 2026-02-20 09:04:34,880 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-22113493 not found, creating it 2026-02-20 09:04:35,331 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-22113493, ID : e7ed6945-a362-4c31-a363-684e3ee6ea93 2026-02-20 09:04:36,730 - INFO - ================================================================================ 2026-02-20 09:04:36,730 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-20 09:04:36,984 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.17': '0'}} with 2026-02-20 09:04:36,984 - INFO - Initial checks done. Running the testcase now 2026-02-20 09:04:36,984 - INFO - 2026-02-20 09:04:36,984 - INFO - ================================================================================ 2026-02-20 09:04:36,984 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-20 09:04:36,984 - 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-20 09:04:37,270 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.17': '0'}} with 2026-02-20 09:04:37,270 - INFO - Initial checks done. Running the testcase now 2026-02-20 09:04:37,271 - INFO - 2026-02-20 09:04:37,628 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22113493:ctest-vn4-65853654, 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-22113493:ctest-vn4-65853654, 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-22113493:ctest-vn4-65853654, 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-22113493:ctest-vn4-65853654, 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-20 09:04:38,176 - DEBUG - Response for create_network : {'network': {'id': '2c4fb981-c4b3-4b8a-879a-f7273883782a', 'name': 'ctest-vn4-65853654', 'tenant_id': 'e7ed6945a3624c31a363684e3ee6ea93', 'project_id': 'e7ed6945a3624c31a363684e3ee6ea93', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22113493', 'ctest-vn4-65853654'], 'port_security_enabled': True, 'description': ''}} 2026-02-20 09:04:38,372 - DEBUG - Response for create_subnet : {'subnet': {'id': '9cc2dc60-1267-4f8c-a9de-397b44b4e5dd', 'name': '', 'tenant_id': 'e7ed6945a3624c31a363684e3ee6ea93', 'network_id': '2c4fb981-c4b3-4b8a-879a-f7273883782a', 'ip_version': 4, 'cidr': '211.135.33.0/26', 'allocation_pools': [{'start': '211.135.33.2', 'end': '211.135.33.62'}], 'gateway_ip': '211.135.33.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '211.135.33.2', 'tags': [], 'project_id': 'e7ed6945a3624c31a363684e3ee6ea93'}} 2026-02-20 09:04:38,584 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c1af7be6-f09e-4eea-9a7d-81ca8bee6732', 'name': '', 'tenant_id': 'e7ed6945a3624c31a363684e3ee6ea93', 'network_id': '2c4fb981-c4b3-4b8a-879a-f7273883782a', 'ip_version': 6, 'cidr': '3bf6:f2fb:7afd:dbac:cd78:254a::/96', 'allocation_pools': [{'start': '3bf6:f2fb:7afd:dbac:cd78:254a:0:2', 'end': '3bf6:f2fb:7afd:dbac:cd78:254a:ffff:fffe'}], 'gateway_ip': '3bf6:f2fb:7afd:dbac:cd78:254a:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3bf6:f2fb:7afd:dbac:cd78:254a:0:2', 'tags': [], 'project_id': 'e7ed6945a3624c31a363684e3ee6ea93'}} 2026-02-20 09:04:38,603 - INFO - Created VN ctest-vn4-65853654 2026-02-20 09:04:38,654 - DEBUG - VN ctest-vn4-65853654 UUID is 2c4fb981-c4b3-4b8a-879a-f7273883782a 2026-02-20 09:04:38,854 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2c4fb981-c4b3-4b8a-879a-f7273883782a', 'name': 'ctest-vn4-65853654', 'tenant_id': 'e7ed6945a3624c31a363684e3ee6ea93', 'project_id': 'e7ed6945a3624c31a363684e3ee6ea93', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9cc2dc60-1267-4f8c-a9de-397b44b4e5dd', 'c1af7be6-f09e-4eea-9a7d-81ca8bee6732'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22113493', 'ctest-vn4-65853654'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22113493', 'ctest-policy1-95897648']], 'subnet_ipam': [{'subnet_cidr': '211.135.33.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3bf6:f2fb:7afd:dbac:cd78:254a::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-20 09:04:39,018 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-02-20 09:04:39,309 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-02-20 09:04:39,346 - DEBUG - Requesting: http://10.0.0.241:8082/domain/9ca698ff-c3b9-4fc5-ab43-1aecd294a433 2026-02-20 09:04:39,357 - DEBUG - Requesting: http://10.0.0.241:8082/project/e7ed6945-a362-4c31-a363-684e3ee6ea93 2026-02-20 09:04:39,426 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/2c4fb981-c4b3-4b8a-879a-f7273883782a 2026-02-20 09:04:39,438 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/2c4fb981-c4b3-4b8a-879a-f7273883782a 2026-02-20 09:04:39,448 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/ed1ae315-8b53-49ec-8a3d-6b67eb605abe 2026-02-20 09:04:39,455 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/ed1ae315-8b53-49ec-8a3d-6b67eb605abe 2026-02-20 09:04:39,462 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/c07c7a6a-cd72-4abd-9cad-e5cefb6a7608 2026-02-20 09:04:39,467 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-20 09:04:39,468 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/2c4fb981-c4b3-4b8a-879a-f7273883782a 2026-02-20 09:04:39,476 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/ed1ae315-8b53-49ec-8a3d-6b67eb605abe 2026-02-20 09:04:39,487 - INFO - Verified VN network id 12 for VN 2c4fb981-c4b3-4b8a-879a-f7273883782a 2026-02-20 09:04:39,487 - INFO - Verifications in API Server for VN ctest-vn4-65853654 passed 2026-02-20 09:04:39,487 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/2c4fb981-c4b3-4b8a-879a-f7273883782a 2026-02-20 09:04:39,495 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/ed1ae315-8b53-49ec-8a3d-6b67eb605abe 2026-02-20 09:04:39,501 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/ed1ae315-8b53-49ec-8a3d-6b67eb605abe 2026-02-20 09:04:39,508 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/c07c7a6a-cd72-4abd-9cad-e5cefb6a7608 2026-02-20 09:04:39,517 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22113493:ctest-vn4-65853654', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-22113493', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3192974627830975370', 'uuid-lslong': '9771394089357637674'}, 'enable': 'true', 'created': '2026-02-20T09:04:38', 'last-modified': '2026-02-20T09:04:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.693008'} 2026-02-20 09:04:39,523 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-20 09:04:39,523 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-65853654 passed 2026-02-20 09:04:39,523 - DEBUG - ====Verifying policy data for ctest-vn4-65853654 in API_Server ====== 2026-02-20 09:04:39,523 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-02-20 09:04:39,528 - DEBUG - Requesting: http://10.0.0.241:8082/domain/9ca698ff-c3b9-4fc5-ab43-1aecd294a433 2026-02-20 09:04:39,537 - DEBUG - Requesting: http://10.0.0.241:8082/project/e7ed6945-a362-4c31-a363-684e3ee6ea93 2026-02-20 09:04:39,601 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/2c4fb981-c4b3-4b8a-879a-f7273883782a 2026-02-20 09:04:39,609 - DEBUG - ==>Verifying data for policy with id: b0aee4bb-e07b-42ff-b3f7-537611a041ba, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22113493', 'ctest-policy1-95897648'] 2026-02-20 09:04:39,609 - INFO - VN ctest-vn4-65853654 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-20 09:04:39,609 - DEBUG - Verifying the vn in opserver 2026-02-20 09:04:39,609 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22113493:ctest-vn4-65853654 virtual network link through opserver 10.0.0.241 2026-02-20 09:04:39,609 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks 2026-02-20 09:04:39,898 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks 2026-02-20 09:04:39,958 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22113493:ctest-vn4-65853654', 'href': 'http://10.0.0.241:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22113493:ctest-vn4-65853654?flat'} 2026-02-20 09:04:39,958 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22113493:ctest-vn4-65853654 is found in opserver 2026-02-20 09:04:39,967 - DEBUG - Do not have enough data to verify VN in agent 2026-02-20 09:04:39,971 - DEBUG - VRF ids for VN ctest-vn4-65853654: {} 2026-02-20 09:04:39,972 - DEBUG - ====Verifying data for ctest-policy1-95897648 in API_Server ====== 2026-02-20 09:04:39,972 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-02-20 09:04:39,977 - DEBUG - Requesting: http://10.0.0.241:8082/domain/9ca698ff-c3b9-4fc5-ab43-1aecd294a433 2026-02-20 09:04:39,986 - DEBUG - Requesting: http://10.0.0.241:8082/project/e7ed6945-a362-4c31-a363-684e3ee6ea93 2026-02-20 09:04:40,054 - DEBUG - Requesting: http://10.0.0.241:8082/network-policy/b0aee4bb-e07b-42ff-b3f7-537611a041ba 2026-02-20 09:04:40,065 - INFO - Verified policy ctest-policy1-95897648 in API Server, Result: True 2026-02-20 09:04:40,065 - INFO - Done with setup and verification, moving onto test .. 2026-02-20 09:04:40,071 - INFO - Deleting VN ctest-vn4-65853654 2026-02-20 09:04:40,176 - DEBUG - Response for deleting network () 2026-02-20 09:04:40,176 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/ed1ae315-8b53-49ec-8a3d-6b67eb605abe 2026-02-20 09:04:40,182 - DEBUG - Response Code: 404 2026-02-20 09:04:40,182 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-02-20 09:04:40,187 - DEBUG - Requesting: http://10.0.0.241:8082/domain/9ca698ff-c3b9-4fc5-ab43-1aecd294a433 2026-02-20 09:04:40,238 - DEBUG - Requesting: http://10.0.0.241:8082/project/e7ed6945-a362-4c31-a363-684e3ee6ea93 2026-02-20 09:04:40,307 - INFO - Validated that VN ctest-vn4-65853654 is not found in API Server 2026-02-20 09:04:40,315 - DEBUG - VN ctest-vn4-65853654 is not present in Agent 10.0.0.241 2026-02-20 09:04:40,315 - INFO - Validated that VN ctest-vn4-65853654 is not in any agent 2026-02-20 09:04:40,327 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-65853654 info 2026-02-20 09:04:40,353 - INFO - Deleted policy ctest-policy1-95897648 2026-02-20 09:04:40,510 - DEBUG - policy ctest-policy1-95897648 is not found in API Server 2026-02-20 09:04:40,762 - DEBUG - No XMPP flaps were noticed during the test