2026-02-12 02:37:23,914 - INFO - Domain Default found not creating 2026-02-12 02:37:24,084 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-49766285 not found, creating it 2026-02-12 02:37:24,638 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-49766285, ID : 180d7e70-eb4e-4656-9dd2-177ae058c239 2026-02-12 02:37:26,081 - INFO - ================================================================================ 2026-02-12 02:37:26,082 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-12 02:37:27,340 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.254': '0', '10.20.0.14': '0'}, '10.0.0.131': {'10.20.0.254': '0', '10.20.0.14': '0'}} with 2026-02-12 02:37:27,340 - INFO - Initial checks done. Running the testcase now 2026-02-12 02:37:27,340 - INFO - 2026-02-12 02:37:27,340 - INFO - ================================================================================ 2026-02-12 02:37:27,340 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-12 02:37: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-02-12 02:37:28,606 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.254': '0', '10.20.0.14': '0'}, '10.0.0.131': {'10.20.0.254': '0', '10.20.0.14': '0'}} with 2026-02-12 02:37:28,606 - INFO - Initial checks done. Running the testcase now 2026-02-12 02:37:28,606 - INFO - 2026-02-12 02:37:28,977 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49766285:ctest-vn4-10414694, 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-49766285:ctest-vn4-10414694, 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-49766285:ctest-vn4-10414694, 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-49766285:ctest-vn4-10414694, 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-12 02:37:29,605 - DEBUG - Response for create_network : {'network': {'id': '6d8d7b9f-bd44-418f-a99d-57ec45583b5f', 'name': 'ctest-vn4-10414694', 'tenant_id': '180d7e70eb4e46569dd2177ae058c239', 'project_id': '180d7e70eb4e46569dd2177ae058c239', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-49766285', 'ctest-vn4-10414694'], 'port_security_enabled': True, 'description': ''}} 2026-02-12 02:37:29,858 - DEBUG - Response for create_subnet : {'subnet': {'id': '85969f8c-7e25-4a2e-b5ac-2e15d38144ea', 'name': '', 'tenant_id': '180d7e70eb4e46569dd2177ae058c239', 'network_id': '6d8d7b9f-bd44-418f-a99d-57ec45583b5f', 'ip_version': 4, 'cidr': '92.137.13.0/26', 'allocation_pools': [{'start': '92.137.13.2', 'end': '92.137.13.62'}], 'gateway_ip': '92.137.13.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '92.137.13.2', 'tags': [], 'project_id': '180d7e70eb4e46569dd2177ae058c239'}} 2026-02-12 02:37:30,038 - DEBUG - Response for create_subnet : {'subnet': {'id': '01d92ee6-fae4-4f2b-8889-e2eee3708bf7', 'name': '', 'tenant_id': '180d7e70eb4e46569dd2177ae058c239', 'network_id': '6d8d7b9f-bd44-418f-a99d-57ec45583b5f', 'ip_version': 6, 'cidr': '30eb:751e:8111:56e2:3b3e:7d92::/96', 'allocation_pools': [{'start': '30eb:751e:8111:56e2:3b3e:7d92:0:2', 'end': '30eb:751e:8111:56e2:3b3e:7d92:ffff:fffe'}], 'gateway_ip': '30eb:751e:8111:56e2:3b3e:7d92:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '30eb:751e:8111:56e2:3b3e:7d92:0:2', 'tags': [], 'project_id': '180d7e70eb4e46569dd2177ae058c239'}} 2026-02-12 02:37:30,065 - INFO - Created VN ctest-vn4-10414694 2026-02-12 02:37:30,075 - DEBUG - VN ctest-vn4-10414694 UUID is 6d8d7b9f-bd44-418f-a99d-57ec45583b5f 2026-02-12 02:37:30,319 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6d8d7b9f-bd44-418f-a99d-57ec45583b5f', 'name': 'ctest-vn4-10414694', 'tenant_id': '180d7e70eb4e46569dd2177ae058c239', 'project_id': '180d7e70eb4e46569dd2177ae058c239', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['85969f8c-7e25-4a2e-b5ac-2e15d38144ea', '01d92ee6-fae4-4f2b-8889-e2eee3708bf7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-49766285', 'ctest-vn4-10414694'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-49766285', 'ctest-policy1-57347856']], 'subnet_ipam': [{'subnet_cidr': '92.137.13.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '30eb:751e:8111:56e2:3b3e:7d92::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-12 02:37:30,408 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-02-12 02:37:30,726 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-02-12 02:37:30,759 - DEBUG - Requesting: http://10.0.0.130:8082/domain/dbbdb6d5-ac40-4bc8-b2c9-9c29259fb031 2026-02-12 02:37:30,776 - DEBUG - Requesting: http://10.0.0.130:8082/project/180d7e70-eb4e-4656-9dd2-177ae058c239 2026-02-12 02:37:30,892 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/6d8d7b9f-bd44-418f-a99d-57ec45583b5f 2026-02-12 02:37:30,915 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/6d8d7b9f-bd44-418f-a99d-57ec45583b5f 2026-02-12 02:37:30,927 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/d3e660cb-3bfe-4188-897c-69a29f022715 2026-02-12 02:37:30,938 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/d3e660cb-3bfe-4188-897c-69a29f022715 2026-02-12 02:37:30,946 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/c274c14d-7fab-48f8-8c50-622a14b0c59e 2026-02-12 02:37:30,957 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-12 02:37:30,957 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/6d8d7b9f-bd44-418f-a99d-57ec45583b5f 2026-02-12 02:37:30,970 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/d3e660cb-3bfe-4188-897c-69a29f022715 2026-02-12 02:37:30,991 - INFO - Verified VN network id 15 for VN 6d8d7b9f-bd44-418f-a99d-57ec45583b5f 2026-02-12 02:37:30,992 - INFO - Verifications in API Server for VN ctest-vn4-10414694 passed 2026-02-12 02:37:30,993 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/6d8d7b9f-bd44-418f-a99d-57ec45583b5f 2026-02-12 02:37:31,006 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/d3e660cb-3bfe-4188-897c-69a29f022715 2026-02-12 02:37:31,015 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/d3e660cb-3bfe-4188-897c-69a29f022715 2026-02-12 02:37:31,026 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/c274c14d-7fab-48f8-8c50-622a14b0c59e 2026-02-12 02:37:31,040 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49766285:ctest-vn4-10414694', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-49766285', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7894101647855731087', 'uuid-lslong': '12222021636040702815'}, 'enable': 'true', 'created': '2026-02-12T02:37:29', 'last-modified': '2026-02-12T02:37:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.779124'} 2026-02-12 02:37:31,052 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-12 02:37:31,061 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49766285:ctest-vn4-10414694', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-49766285', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7894101647855731087', 'uuid-lslong': '12222021636040702815'}, 'enable': 'true', 'created': '2026-02-12T02:37:29', 'last-modified': '2026-02-12T02:37:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.794470'} 2026-02-12 02:37:31,067 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-12 02:37:31,072 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49766285:ctest-vn4-10414694', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-49766285', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7894101647855731087', 'uuid-lslong': '12222021636040702815'}, 'enable': 'true', 'created': '2026-02-12T02:37:29', 'last-modified': '2026-02-12T02:37:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.810243'} 2026-02-12 02:37:31,087 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-12 02:37:31,087 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-10414694 passed 2026-02-12 02:37:31,087 - DEBUG - ====Verifying policy data for ctest-vn4-10414694 in API_Server ====== 2026-02-12 02:37:31,088 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-02-12 02:37:31,093 - DEBUG - Requesting: http://10.0.0.130:8082/domain/dbbdb6d5-ac40-4bc8-b2c9-9c29259fb031 2026-02-12 02:37:31,104 - DEBUG - Requesting: http://10.0.0.130:8082/project/180d7e70-eb4e-4656-9dd2-177ae058c239 2026-02-12 02:37:31,217 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/6d8d7b9f-bd44-418f-a99d-57ec45583b5f 2026-02-12 02:37:31,228 - DEBUG - ==>Verifying data for policy with id: 7cd90eee-2d21-448d-ae34-50fcd00970cc, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-49766285', 'ctest-policy1-57347856'] 2026-02-12 02:37:31,228 - INFO - VN ctest-vn4-10414694 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-12 02:37:31,228 - DEBUG - Verifying the vn in opserver 2026-02-12 02:37:31,228 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49766285:ctest-vn4-10414694 virtual network link through opserver 10.0.0.130 2026-02-12 02:37:31,228 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2026-02-12 02:37:31,548 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2026-02-12 02:37:31,621 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49766285:ctest-vn4-10414694', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49766285:ctest-vn4-10414694?flat'} 2026-02-12 02:37:31,621 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49766285:ctest-vn4-10414694 virtual network link through opserver 10.0.0.22 2026-02-12 02:37:31,621 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-02-12 02:37:31,923 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-02-12 02:37:31,998 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49766285:ctest-vn4-10414694', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49766285:ctest-vn4-10414694?flat'} 2026-02-12 02:37:31,998 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49766285:ctest-vn4-10414694 virtual network link through opserver 10.0.0.23 2026-02-12 02:37:31,998 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-02-12 02:37:32,311 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-02-12 02:37:32,372 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49766285:ctest-vn4-10414694', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49766285:ctest-vn4-10414694?flat'} 2026-02-12 02:37:32,372 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49766285:ctest-vn4-10414694 is found in opserver 2026-02-12 02:37:32,391 - DEBUG - Do not have enough data to verify VN in agent 2026-02-12 02:37:32,400 - DEBUG - VRF ids for VN ctest-vn4-10414694: {} 2026-02-12 02:37:32,401 - DEBUG - ====Verifying data for ctest-policy1-57347856 in API_Server ====== 2026-02-12 02:37:32,401 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-02-12 02:37:32,407 - DEBUG - Requesting: http://10.0.0.130:8082/domain/dbbdb6d5-ac40-4bc8-b2c9-9c29259fb031 2026-02-12 02:37:32,420 - DEBUG - Requesting: http://10.0.0.130:8082/project/180d7e70-eb4e-4656-9dd2-177ae058c239 2026-02-12 02:37:32,517 - DEBUG - Requesting: http://10.0.0.130:8082/network-policy/7cd90eee-2d21-448d-ae34-50fcd00970cc 2026-02-12 02:37:32,528 - INFO - Verified policy ctest-policy1-57347856 in API Server, Result: True 2026-02-12 02:37:32,529 - INFO - Done with setup and verification, moving onto test .. 2026-02-12 02:37:32,544 - INFO - Deleting VN ctest-vn4-10414694 2026-02-12 02:37:32,748 - DEBUG - Response for deleting network () 2026-02-12 02:37:32,748 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/d3e660cb-3bfe-4188-897c-69a29f022715 2026-02-12 02:37:32,754 - DEBUG - Response Code: 404 2026-02-12 02:37:32,754 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-02-12 02:37:32,772 - DEBUG - Requesting: http://10.0.0.130:8082/domain/dbbdb6d5-ac40-4bc8-b2c9-9c29259fb031 2026-02-12 02:37:32,830 - DEBUG - Requesting: http://10.0.0.130:8082/project/180d7e70-eb4e-4656-9dd2-177ae058c239 2026-02-12 02:37:32,929 - INFO - Validated that VN ctest-vn4-10414694 is not found in API Server 2026-02-12 02:37:32,945 - DEBUG - VN ctest-vn4-10414694 is not present in Agent 10.0.0.141 2026-02-12 02:37:32,955 - DEBUG - VN ctest-vn4-10414694 is not present in Agent 10.0.0.131 2026-02-12 02:37:32,955 - INFO - Validated that VN ctest-vn4-10414694 is not in any agent 2026-02-12 02:37:32,984 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-10414694 info 2026-02-12 02:37:33,024 - INFO - Deleted policy ctest-policy1-57347856 2026-02-12 02:37:33,217 - DEBUG - policy ctest-policy1-57347856 is not found in API Server 2026-02-12 02:37:34,486 - DEBUG - No XMPP flaps were noticed during the test
2026-02-12 02:37:34,486 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07]
2026-02-12 02:37:34,486 - INFO - -------------------------------------------------------------------------------- 2026-02-12 02:37:35,770 - DEBUG - No XMPP flaps were noticed during the test
2026-02-12 02:37:35,770 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:09]
2026-02-12 02:37:35,770 - INFO - -------------------------------------------------------------------------------- 2026-02-12 02:37:36,525 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-49766285, ID : 180d7e70-eb4e-4656-9dd2-177ae058c239