2026-02-19 02:14:07,219 - INFO - Domain Default found not creating 2026-02-19 02:14:07,369 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-98613751 not found, creating it 2026-02-19 02:14:07,814 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-98613751, ID : d30deb89-42fb-4ae7-b760-ceb435367271 2026-02-19 02:14:09,213 - INFO - ================================================================================ 2026-02-19 02:14:09,214 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-19 02:14:09,471 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.129': '0'}} with 2026-02-19 02:14:09,471 - INFO - Initial checks done. Running the testcase now 2026-02-19 02:14:09,471 - INFO - 2026-02-19 02:14:09,471 - INFO - ================================================================================ 2026-02-19 02:14:09,471 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-19 02:14:09,471 - 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-19 02:14:09,762 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.129': '0'}} with 2026-02-19 02:14:09,762 - INFO - Initial checks done. Running the testcase now 2026-02-19 02:14:09,762 - INFO - 2026-02-19 02:14:10,107 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98613751:ctest-vn4-18378005, 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-98613751:ctest-vn4-18378005, 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-98613751:ctest-vn4-18378005, 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-98613751:ctest-vn4-18378005, 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-19 02:14:10,587 - DEBUG - Response for create_network : {'network': {'id': '286f3034-3800-4252-8436-e135cf872301', 'name': 'ctest-vn4-18378005', 'tenant_id': 'd30deb8942fb4ae7b760ceb435367271', 'project_id': 'd30deb8942fb4ae7b760ceb435367271', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98613751', 'ctest-vn4-18378005'], 'port_security_enabled': True, 'description': ''}} 2026-02-19 02:14:10,779 - DEBUG - Response for create_subnet : {'subnet': {'id': '43572409-5b7f-4a84-b57a-69168855f03b', 'name': '', 'tenant_id': 'd30deb8942fb4ae7b760ceb435367271', 'network_id': '286f3034-3800-4252-8436-e135cf872301', 'ip_version': 4, 'cidr': '6.120.67.128/26', 'allocation_pools': [{'start': '6.120.67.130', 'end': '6.120.67.190'}], 'gateway_ip': '6.120.67.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '6.120.67.130', 'tags': [], 'project_id': 'd30deb8942fb4ae7b760ceb435367271'}} 2026-02-19 02:14:10,984 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c6e4303b-e249-47cf-9807-7d90fe112283', 'name': '', 'tenant_id': 'd30deb8942fb4ae7b760ceb435367271', 'network_id': '286f3034-3800-4252-8436-e135cf872301', 'ip_version': 6, 'cidr': '277d:cf0a:6fe9:9be9:56f2:2090::/96', 'allocation_pools': [{'start': '277d:cf0a:6fe9:9be9:56f2:2090:0:2', 'end': '277d:cf0a:6fe9:9be9:56f2:2090:ffff:fffe'}], 'gateway_ip': '277d:cf0a:6fe9:9be9:56f2:2090:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '277d:cf0a:6fe9:9be9:56f2:2090:0:2', 'tags': [], 'project_id': 'd30deb8942fb4ae7b760ceb435367271'}} 2026-02-19 02:14:11,003 - INFO - Created VN ctest-vn4-18378005 2026-02-19 02:14:11,054 - DEBUG - VN ctest-vn4-18378005 UUID is 286f3034-3800-4252-8436-e135cf872301 2026-02-19 02:14:11,231 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '286f3034-3800-4252-8436-e135cf872301', 'name': 'ctest-vn4-18378005', 'tenant_id': 'd30deb8942fb4ae7b760ceb435367271', 'project_id': 'd30deb8942fb4ae7b760ceb435367271', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['43572409-5b7f-4a84-b57a-69168855f03b', 'c6e4303b-e249-47cf-9807-7d90fe112283'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98613751', 'ctest-vn4-18378005'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98613751', 'ctest-policy1-32658361']], 'subnet_ipam': [{'subnet_cidr': '6.120.67.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '277d:cf0a:6fe9:9be9:56f2:2090::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-19 02:14:11,386 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-02-19 02:14:11,678 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-02-19 02:14:11,706 - DEBUG - Requesting: http://10.0.0.23:8082/domain/2d5d818a-a03e-492f-8464-ff794ba593de 2026-02-19 02:14:11,716 - DEBUG - Requesting: http://10.0.0.23:8082/project/d30deb89-42fb-4ae7-b760-ceb435367271 2026-02-19 02:14:11,784 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/286f3034-3800-4252-8436-e135cf872301 2026-02-19 02:14:11,795 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/286f3034-3800-4252-8436-e135cf872301 2026-02-19 02:14:11,803 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/8f75587a-6f7e-43e0-a52b-da40c3040b4e 2026-02-19 02:14:11,808 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/8f75587a-6f7e-43e0-a52b-da40c3040b4e 2026-02-19 02:14:11,813 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/6bcce243-4e86-400a-8afa-1514a7365700 2026-02-19 02:14:11,819 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-19 02:14:11,819 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/286f3034-3800-4252-8436-e135cf872301 2026-02-19 02:14:11,827 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/8f75587a-6f7e-43e0-a52b-da40c3040b4e 2026-02-19 02:14:11,839 - INFO - Verified VN network id 11 for VN 286f3034-3800-4252-8436-e135cf872301 2026-02-19 02:14:11,839 - INFO - Verifications in API Server for VN ctest-vn4-18378005 passed 2026-02-19 02:14:11,839 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/286f3034-3800-4252-8436-e135cf872301 2026-02-19 02:14:11,847 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/8f75587a-6f7e-43e0-a52b-da40c3040b4e 2026-02-19 02:14:11,853 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/8f75587a-6f7e-43e0-a52b-da40c3040b4e 2026-02-19 02:14:11,858 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/6bcce243-4e86-400a-8afa-1514a7365700 2026-02-19 02:14:11,868 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98613751:ctest-vn4-18378005', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-98613751', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2913600484767973970', 'uuid-lslong': '9527049682980119297'}, 'enable': 'true', 'created': '2026-02-19T02:14:10', 'last-modified': '2026-02-19T02:14:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.658481'} 2026-02-19 02:14:11,873 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-19 02:14:11,873 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-18378005 passed 2026-02-19 02:14:11,873 - DEBUG - ====Verifying policy data for ctest-vn4-18378005 in API_Server ====== 2026-02-19 02:14:11,873 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-02-19 02:14:11,878 - DEBUG - Requesting: http://10.0.0.23:8082/domain/2d5d818a-a03e-492f-8464-ff794ba593de 2026-02-19 02:14:11,887 - DEBUG - Requesting: http://10.0.0.23:8082/project/d30deb89-42fb-4ae7-b760-ceb435367271 2026-02-19 02:14:11,952 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/286f3034-3800-4252-8436-e135cf872301 2026-02-19 02:14:11,961 - DEBUG - ==>Verifying data for policy with id: 0a4c89dd-7621-4b28-9645-6184285952ec, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98613751', 'ctest-policy1-32658361'] 2026-02-19 02:14:11,961 - INFO - VN ctest-vn4-18378005 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-19 02:14:11,961 - DEBUG - Verifying the vn in opserver 2026-02-19 02:14:11,961 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98613751:ctest-vn4-18378005 virtual network link through opserver 10.0.0.23 2026-02-19 02:14:11,961 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-02-19 02:14:12,260 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-02-19 02:14:12,323 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98613751:ctest-vn4-18378005', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98613751:ctest-vn4-18378005?flat'} 2026-02-19 02:14:12,323 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98613751:ctest-vn4-18378005 is found in opserver 2026-02-19 02:14:12,333 - DEBUG - Do not have enough data to verify VN in agent 2026-02-19 02:14:12,338 - DEBUG - VRF ids for VN ctest-vn4-18378005: {} 2026-02-19 02:14:12,339 - DEBUG - ====Verifying data for ctest-policy1-32658361 in API_Server ====== 2026-02-19 02:14:12,339 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-02-19 02:14:12,345 - DEBUG - Requesting: http://10.0.0.23:8082/domain/2d5d818a-a03e-492f-8464-ff794ba593de 2026-02-19 02:14:12,355 - DEBUG - Requesting: http://10.0.0.23:8082/project/d30deb89-42fb-4ae7-b760-ceb435367271 2026-02-19 02:14:12,423 - DEBUG - Requesting: http://10.0.0.23:8082/network-policy/0a4c89dd-7621-4b28-9645-6184285952ec 2026-02-19 02:14:12,431 - INFO - Verified policy ctest-policy1-32658361 in API Server, Result: True 2026-02-19 02:14:12,431 - INFO - Done with setup and verification, moving onto test .. 2026-02-19 02:14:12,438 - INFO - Deleting VN ctest-vn4-18378005 2026-02-19 02:14:12,543 - DEBUG - Response for deleting network () 2026-02-19 02:14:12,543 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/8f75587a-6f7e-43e0-a52b-da40c3040b4e 2026-02-19 02:14:12,547 - DEBUG - Response Code: 404 2026-02-19 02:14:12,547 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-02-19 02:14:12,552 - DEBUG - Requesting: http://10.0.0.23:8082/domain/2d5d818a-a03e-492f-8464-ff794ba593de 2026-02-19 02:14:12,603 - DEBUG - Requesting: http://10.0.0.23:8082/project/d30deb89-42fb-4ae7-b760-ceb435367271 2026-02-19 02:14:12,669 - INFO - Validated that VN ctest-vn4-18378005 is not found in API Server 2026-02-19 02:14:12,677 - DEBUG - VN ctest-vn4-18378005 is not present in Agent 10.0.0.23 2026-02-19 02:14:12,678 - INFO - Validated that VN ctest-vn4-18378005 is not in any agent 2026-02-19 02:14:12,690 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-18378005 info 2026-02-19 02:14:12,711 - INFO - Deleted policy ctest-policy1-32658361 2026-02-19 02:14:12,874 - DEBUG - policy ctest-policy1-32658361 is not found in API Server 2026-02-19 02:14:13,130 - DEBUG - No XMPP flaps were noticed during the test
2026-02-19 02:14:13,130 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-19 02:14:13,130 - INFO - -------------------------------------------------------------------------------- 2026-02-19 02:14:13,434 - DEBUG - No XMPP flaps were noticed during the test
2026-02-19 02:14:13,434 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-19 02:14:13,435 - INFO - -------------------------------------------------------------------------------- 2026-02-19 02:14:14,118 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-98613751, ID : d30deb89-42fb-4ae7-b760-ceb435367271