2026-03-19 02:49:47,609 - INFO - Domain Default found not creating 2026-03-19 02:49:47,810 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-75348799 not found, creating it 2026-03-19 02:49:48,375 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-75348799, ID : 8a9ba245-5934-4fe4-92cc-e0662ff2b7aa 2026-03-19 02:49:49,995 - INFO - ================================================================================ 2026-03-19 02:49:49,995 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-19 02:49:51,298 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.129': '0', '10.20.0.18': '0'}, '10.0.0.240': {'10.20.0.18': '0', '10.20.0.193': '0'}} with 2026-03-19 02:49:51,298 - INFO - Initial checks done. Running the testcase now 2026-03-19 02:49:51,298 - INFO - 2026-03-19 02:49:51,298 - INFO - ================================================================================ 2026-03-19 02:49:51,299 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-19 02:49:51,299 - 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-03-19 02:49:52,583 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.129': '0', '10.20.0.18': '0'}, '10.0.0.240': {'10.20.0.18': '0', '10.20.0.193': '0'}} with 2026-03-19 02:49:52,583 - INFO - Initial checks done. Running the testcase now 2026-03-19 02:49:52,583 - INFO - 2026-03-19 02:49:52,927 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75348799:ctest-vn4-67184175, 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-75348799:ctest-vn4-67184175, 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-75348799:ctest-vn4-67184175, 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-75348799:ctest-vn4-67184175, 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-03-19 02:49:53,571 - DEBUG - Response for create_network : {'network': {'id': '1e40f738-548f-4c2f-b8a8-84fb024764c4', 'name': 'ctest-vn4-67184175', 'tenant_id': '8a9ba24559344fe492cce0662ff2b7aa', 'project_id': '8a9ba24559344fe492cce0662ff2b7aa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-75348799', 'ctest-vn4-67184175'], 'port_security_enabled': True, 'description': ''}} 2026-03-19 02:49:53,819 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b1adb5d5-8871-4616-896d-7f7e7a1d60ba', 'name': '', 'tenant_id': '8a9ba24559344fe492cce0662ff2b7aa', 'network_id': '1e40f738-548f-4c2f-b8a8-84fb024764c4', 'ip_version': 4, 'cidr': '219.69.85.192/26', 'allocation_pools': [{'start': '219.69.85.194', 'end': '219.69.85.254'}], 'gateway_ip': '219.69.85.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '219.69.85.194', 'tags': [], 'project_id': '8a9ba24559344fe492cce0662ff2b7aa'}} 2026-03-19 02:49:54,018 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f9564fe8-19c2-4c51-a8fb-2b7aee5e0c31', 'name': '', 'tenant_id': '8a9ba24559344fe492cce0662ff2b7aa', 'network_id': '1e40f738-548f-4c2f-b8a8-84fb024764c4', 'ip_version': 6, 'cidr': '2102:254e:36:6821:f58c:fa27::/96', 'allocation_pools': [{'start': '2102:254e:36:6821:f58c:fa27:0:2', 'end': '2102:254e:36:6821:f58c:fa27:ffff:fffe'}], 'gateway_ip': '2102:254e:36:6821:f58c:fa27:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2102:254e:36:6821:f58c:fa27:0:2', 'tags': [], 'project_id': '8a9ba24559344fe492cce0662ff2b7aa'}} 2026-03-19 02:49:54,049 - INFO - Created VN ctest-vn4-67184175 2026-03-19 02:49:54,063 - DEBUG - VN ctest-vn4-67184175 UUID is 1e40f738-548f-4c2f-b8a8-84fb024764c4 2026-03-19 02:49:54,289 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1e40f738-548f-4c2f-b8a8-84fb024764c4', 'name': 'ctest-vn4-67184175', 'tenant_id': '8a9ba24559344fe492cce0662ff2b7aa', 'project_id': '8a9ba24559344fe492cce0662ff2b7aa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b1adb5d5-8871-4616-896d-7f7e7a1d60ba', 'f9564fe8-19c2-4c51-a8fb-2b7aee5e0c31'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-75348799', 'ctest-vn4-67184175'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-75348799', 'ctest-policy1-18964366']], 'subnet_ipam': [{'subnet_cidr': '219.69.85.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2102:254e:36:6821:f58c:fa27::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-19 02:49:54,404 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-03-19 02:49:54,725 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-03-19 02:49:54,763 - DEBUG - Requesting: http://10.0.0.41:8082/domain/cb4acbf6-9e94-415a-a3f1-1be95317ba76 2026-03-19 02:49:54,782 - DEBUG - Requesting: http://10.0.0.41:8082/project/8a9ba245-5934-4fe4-92cc-e0662ff2b7aa 2026-03-19 02:49:54,877 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/1e40f738-548f-4c2f-b8a8-84fb024764c4 2026-03-19 02:49:54,895 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/1e40f738-548f-4c2f-b8a8-84fb024764c4 2026-03-19 02:49:54,907 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/8209ef22-8271-4c6b-b0e4-fb810c257723 2026-03-19 02:49:54,916 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/8209ef22-8271-4c6b-b0e4-fb810c257723 2026-03-19 02:49:54,924 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/f49c797e-0dcc-4277-9a50-5e6a671ac4d2 2026-03-19 02:49:54,933 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-19 02:49:54,933 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/1e40f738-548f-4c2f-b8a8-84fb024764c4 2026-03-19 02:49:54,944 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/8209ef22-8271-4c6b-b0e4-fb810c257723 2026-03-19 02:49:54,960 - INFO - Verified VN network id 14 for VN 1e40f738-548f-4c2f-b8a8-84fb024764c4 2026-03-19 02:49:54,960 - INFO - Verifications in API Server for VN ctest-vn4-67184175 passed 2026-03-19 02:49:54,960 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/1e40f738-548f-4c2f-b8a8-84fb024764c4 2026-03-19 02:49:54,974 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/8209ef22-8271-4c6b-b0e4-fb810c257723 2026-03-19 02:49:54,983 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/8209ef22-8271-4c6b-b0e4-fb810c257723 2026-03-19 02:49:54,991 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/f49c797e-0dcc-4277-9a50-5e6a671ac4d2 2026-03-19 02:49:55,005 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75348799:ctest-vn4-67184175', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-75348799', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2180014040956226607', 'uuid-lslong': '13306031312676021444'}, 'enable': 'true', 'created': '2026-03-19T02:49:53', 'last-modified': '2026-03-19T02:49:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.774265'} 2026-03-19 02:49:55,011 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-19 02:49:55,017 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75348799:ctest-vn4-67184175', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-75348799', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2180014040956226607', 'uuid-lslong': '13306031312676021444'}, 'enable': 'true', 'created': '2026-03-19T02:49:53', 'last-modified': '2026-03-19T02:49:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.786513'} 2026-03-19 02:49:55,024 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-19 02:49:55,030 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75348799:ctest-vn4-67184175', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-75348799', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2180014040956226607', 'uuid-lslong': '13306031312676021444'}, 'enable': 'true', 'created': '2026-03-19T02:49:53', 'last-modified': '2026-03-19T02:49:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.799365'} 2026-03-19 02:49:55,036 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-19 02:49:55,036 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-67184175 passed 2026-03-19 02:49:55,036 - DEBUG - ====Verifying policy data for ctest-vn4-67184175 in API_Server ====== 2026-03-19 02:49:55,036 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-03-19 02:49:55,043 - DEBUG - Requesting: http://10.0.0.41:8082/domain/cb4acbf6-9e94-415a-a3f1-1be95317ba76 2026-03-19 02:49:55,056 - DEBUG - Requesting: http://10.0.0.41:8082/project/8a9ba245-5934-4fe4-92cc-e0662ff2b7aa 2026-03-19 02:49:55,154 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/1e40f738-548f-4c2f-b8a8-84fb024764c4 2026-03-19 02:49:55,169 - DEBUG - ==>Verifying data for policy with id: ce00570b-022d-4280-824e-9cfe0708d9af, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-75348799', 'ctest-policy1-18964366'] 2026-03-19 02:49:55,169 - INFO - VN ctest-vn4-67184175 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-19 02:49:55,169 - DEBUG - Verifying the vn in opserver 2026-03-19 02:49:55,169 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75348799:ctest-vn4-67184175 virtual network link through opserver 10.0.0.41 2026-03-19 02:49:55,169 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2026-03-19 02:49:55,489 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2026-03-19 02:49:55,557 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75348799:ctest-vn4-67184175', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75348799:ctest-vn4-67184175?flat'} 2026-03-19 02:49:55,558 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75348799:ctest-vn4-67184175 virtual network link through opserver 10.0.0.242 2026-03-19 02:49:55,558 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-03-19 02:49:55,866 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-03-19 02:49:55,934 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75348799:ctest-vn4-67184175', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75348799:ctest-vn4-67184175?flat'} 2026-03-19 02:49:55,934 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75348799:ctest-vn4-67184175 virtual network link through opserver 10.0.0.27 2026-03-19 02:49:55,934 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-03-19 02:49:56,234 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-03-19 02:49:56,302 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75348799:ctest-vn4-67184175', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75348799:ctest-vn4-67184175?flat'} 2026-03-19 02:49:56,302 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75348799:ctest-vn4-67184175 is found in opserver 2026-03-19 02:49:56,324 - DEBUG - Do not have enough data to verify VN in agent 2026-03-19 02:49:56,334 - DEBUG - VRF ids for VN ctest-vn4-67184175: {} 2026-03-19 02:49:56,334 - DEBUG - ====Verifying data for ctest-policy1-18964366 in API_Server ====== 2026-03-19 02:49:56,334 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-03-19 02:49:56,340 - DEBUG - Requesting: http://10.0.0.41:8082/domain/cb4acbf6-9e94-415a-a3f1-1be95317ba76 2026-03-19 02:49:56,351 - DEBUG - Requesting: http://10.0.0.41:8082/project/8a9ba245-5934-4fe4-92cc-e0662ff2b7aa 2026-03-19 02:49:56,436 - DEBUG - Requesting: http://10.0.0.41:8082/network-policy/ce00570b-022d-4280-824e-9cfe0708d9af 2026-03-19 02:49:56,448 - INFO - Verified policy ctest-policy1-18964366 in API Server, Result: True 2026-03-19 02:49:56,448 - INFO - Done with setup and verification, moving onto test .. 2026-03-19 02:49:56,457 - INFO - Deleting VN ctest-vn4-67184175 2026-03-19 02:49:56,645 - DEBUG - Response for deleting network () 2026-03-19 02:49:56,645 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/8209ef22-8271-4c6b-b0e4-fb810c257723 2026-03-19 02:49:56,655 - DEBUG - Response Code: 404 2026-03-19 02:49:56,656 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-03-19 02:49:56,666 - DEBUG - Requesting: http://10.0.0.41:8082/domain/cb4acbf6-9e94-415a-a3f1-1be95317ba76 2026-03-19 02:49:56,677 - DEBUG - Requesting: http://10.0.0.41:8082/project/8a9ba245-5934-4fe4-92cc-e0662ff2b7aa 2026-03-19 02:49:56,761 - INFO - Validated that VN ctest-vn4-67184175 is not found in API Server 2026-03-19 02:49:56,776 - DEBUG - VN ctest-vn4-67184175 is not present in Agent 10.0.0.23 2026-03-19 02:49:56,798 - DEBUG - VN ctest-vn4-67184175 is not present in Agent 10.0.0.240 2026-03-19 02:49:56,798 - INFO - Validated that VN ctest-vn4-67184175 is not in any agent 2026-03-19 02:49:56,829 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-67184175 info 2026-03-19 02:49:56,881 - INFO - Deleted policy ctest-policy1-18964366 2026-03-19 02:49:57,070 - DEBUG - policy ctest-policy1-18964366 is not found in API Server 2026-03-19 02:49:58,344 - DEBUG - No XMPP flaps were noticed during the test 2026-03-19 02:49:58,344 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07] 2026-03-19 02:49:58,344 - INFO - -------------------------------------------------------------------------------- 2026-03-19 02:49:59,647 - DEBUG - No XMPP flaps were noticed during the test 2026-03-19 02:49:59,648 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:10] 2026-03-19 02:49:59,648 - INFO - -------------------------------------------------------------------------------- 2026-03-19 02:50:00,520 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-75348799, ID : 8a9ba245-5934-4fe4-92cc-e0662ff2b7aa