2026-01-19 15:04:28,518 - INFO - Domain Default found not creating 2026-01-19 15:04:28,664 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-59979936 not found, creating it 2026-01-19 15:04:29,314 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-59979936, ID : 91929ee8-3d2e-4c17-8ead-d0ae97e17e03 2026-01-19 15:04:30,863 - INFO - ================================================================================ 2026-01-19 15:04:30,864 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-19 15:04:32,168 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.18': '0', '10.20.0.129': '0'}, '10.0.0.240': {'10.20.0.18': '0', '10.20.0.129': '0'}} with 2026-01-19 15:04:32,168 - INFO - Initial checks done. Running the testcase now 2026-01-19 15:04:32,168 - INFO - 2026-01-19 15:04:32,168 - INFO - ================================================================================ 2026-01-19 15:04:32,168 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-19 15:04:32,168 - 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-01-19 15:04:33,478 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.18': '0', '10.20.0.129': '0'}, '10.0.0.240': {'10.20.0.18': '0', '10.20.0.129': '0'}} with 2026-01-19 15:04:33,478 - INFO - Initial checks done. Running the testcase now 2026-01-19 15:04:33,478 - INFO - 2026-01-19 15:04:33,799 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59979936:ctest-vn4-45299550, 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-59979936:ctest-vn4-45299550, 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-59979936:ctest-vn4-45299550, 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-59979936:ctest-vn4-45299550, 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-01-19 15:04:34,494 - DEBUG - Response for create_network : {'network': {'id': 'b22dd36b-fff5-4b9c-8687-811eb678787a', 'name': 'ctest-vn4-45299550', 'tenant_id': '91929ee83d2e4c178eadd0ae97e17e03', 'project_id': '91929ee83d2e4c178eadd0ae97e17e03', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-59979936', 'ctest-vn4-45299550'], 'port_security_enabled': True, 'description': ''}} 2026-01-19 15:04:34,784 - DEBUG - Response for create_subnet : {'subnet': {'id': '6d8c0841-0378-4ae6-9930-bf632b6eb7ef', 'name': '', 'tenant_id': '91929ee83d2e4c178eadd0ae97e17e03', 'network_id': 'b22dd36b-fff5-4b9c-8687-811eb678787a', 'ip_version': 4, 'cidr': '25.15.143.128/26', 'allocation_pools': [{'start': '25.15.143.130', 'end': '25.15.143.190'}], 'gateway_ip': '25.15.143.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '25.15.143.130', 'tags': [], 'project_id': '91929ee83d2e4c178eadd0ae97e17e03'}} 2026-01-19 15:04:34,978 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c7901274-dfd5-46c7-9cb8-e3f087d06353', 'name': '', 'tenant_id': '91929ee83d2e4c178eadd0ae97e17e03', 'network_id': 'b22dd36b-fff5-4b9c-8687-811eb678787a', 'ip_version': 6, 'cidr': '256d:7d97:1fd5:b477:b95b:2240::/96', 'allocation_pools': [{'start': '256d:7d97:1fd5:b477:b95b:2240:0:2', 'end': '256d:7d97:1fd5:b477:b95b:2240:ffff:fffe'}], 'gateway_ip': '256d:7d97:1fd5:b477:b95b:2240:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '256d:7d97:1fd5:b477:b95b:2240:0:2', 'tags': [], 'project_id': '91929ee83d2e4c178eadd0ae97e17e03'}} 2026-01-19 15:04:35,006 - INFO - Created VN ctest-vn4-45299550 2026-01-19 15:04:35,023 - DEBUG - VN ctest-vn4-45299550 UUID is b22dd36b-fff5-4b9c-8687-811eb678787a 2026-01-19 15:04:35,282 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b22dd36b-fff5-4b9c-8687-811eb678787a', 'name': 'ctest-vn4-45299550', 'tenant_id': '91929ee83d2e4c178eadd0ae97e17e03', 'project_id': '91929ee83d2e4c178eadd0ae97e17e03', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6d8c0841-0378-4ae6-9930-bf632b6eb7ef', 'c7901274-dfd5-46c7-9cb8-e3f087d06353'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-59979936', 'ctest-vn4-45299550'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-59979936', 'ctest-policy1-89511045']], 'subnet_ipam': [{'subnet_cidr': '25.15.143.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '256d:7d97:1fd5:b477:b95b:2240::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-19 15:04:35,381 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-19 15:04:35,685 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-19 15:04:35,719 - DEBUG - Requesting: http://10.0.0.22:8082/domain/5a05e3ad-7c50-4a45-9ba6-ba5e0b0e3b90 2026-01-19 15:04:35,735 - DEBUG - Requesting: http://10.0.0.22:8082/project/91929ee8-3d2e-4c17-8ead-d0ae97e17e03 2026-01-19 15:04:35,839 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b22dd36b-fff5-4b9c-8687-811eb678787a 2026-01-19 15:04:35,857 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b22dd36b-fff5-4b9c-8687-811eb678787a 2026-01-19 15:04:35,867 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/830b439f-92ff-47a9-83eb-f90ef787cb56 2026-01-19 15:04:35,874 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/830b439f-92ff-47a9-83eb-f90ef787cb56 2026-01-19 15:04:35,882 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/abff7ae8-3591-41e2-8426-1d0a4c933768 2026-01-19 15:04:35,889 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-01-19 15:04:35,889 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b22dd36b-fff5-4b9c-8687-811eb678787a 2026-01-19 15:04:35,899 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/830b439f-92ff-47a9-83eb-f90ef787cb56 2026-01-19 15:04:35,920 - INFO - Verified VN network id 11 for VN b22dd36b-fff5-4b9c-8687-811eb678787a 2026-01-19 15:04:35,921 - INFO - Verifications in API Server for VN ctest-vn4-45299550 passed 2026-01-19 15:04:35,921 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b22dd36b-fff5-4b9c-8687-811eb678787a 2026-01-19 15:04:35,933 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/830b439f-92ff-47a9-83eb-f90ef787cb56 2026-01-19 15:04:35,940 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/830b439f-92ff-47a9-83eb-f90ef787cb56 2026-01-19 15:04:35,948 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/abff7ae8-3591-41e2-8426-1d0a4c933768 2026-01-19 15:04:35,960 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59979936:ctest-vn4-45299550', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-59979936', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12839150573512379292', 'uuid-lslong': '9693858691848632442'}, 'enable': 'true', 'created': '2026-01-19T15:04:34', 'last-modified': '2026-01-19T15:04:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.730168'} 2026-01-19 15:04:35,965 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-01-19 15:04:35,971 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59979936:ctest-vn4-45299550', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-59979936', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12839150573512379292', 'uuid-lslong': '9693858691848632442'}, 'enable': 'true', 'created': '2026-01-19T15:04:34', 'last-modified': '2026-01-19T15:04:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.747736'} 2026-01-19 15:04:35,979 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-01-19 15:04:35,985 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59979936:ctest-vn4-45299550', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-59979936', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12839150573512379292', 'uuid-lslong': '9693858691848632442'}, 'enable': 'true', 'created': '2026-01-19T15:04:34', 'last-modified': '2026-01-19T15:04:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.760318'} 2026-01-19 15:04:35,991 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-01-19 15:04:35,991 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-45299550 passed 2026-01-19 15:04:35,991 - DEBUG - ====Verifying policy data for ctest-vn4-45299550 in API_Server ====== 2026-01-19 15:04:35,991 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-19 15:04:35,998 - DEBUG - Requesting: http://10.0.0.22:8082/domain/5a05e3ad-7c50-4a45-9ba6-ba5e0b0e3b90 2026-01-19 15:04:36,010 - DEBUG - Requesting: http://10.0.0.22:8082/project/91929ee8-3d2e-4c17-8ead-d0ae97e17e03 2026-01-19 15:04:36,118 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b22dd36b-fff5-4b9c-8687-811eb678787a 2026-01-19 15:04:36,131 - DEBUG - ==>Verifying data for policy with id: cb973b48-fa31-4b31-988f-da9e021f2132, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-59979936', 'ctest-policy1-89511045'] 2026-01-19 15:04:36,131 - INFO - VN ctest-vn4-45299550 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-19 15:04:36,131 - DEBUG - Verifying the vn in opserver 2026-01-19 15:04:36,131 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59979936:ctest-vn4-45299550 virtual network link through opserver 10.0.0.22 2026-01-19 15:04:36,133 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-01-19 15:04:36,437 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-01-19 15:04:36,506 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59979936:ctest-vn4-45299550', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59979936:ctest-vn4-45299550?flat'} 2026-01-19 15:04:36,506 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59979936:ctest-vn4-45299550 virtual network link through opserver 10.0.0.33 2026-01-19 15:04:36,506 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-01-19 15:04:36,809 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-01-19 15:04:36,880 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59979936:ctest-vn4-45299550', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59979936:ctest-vn4-45299550?flat'} 2026-01-19 15:04:36,880 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59979936:ctest-vn4-45299550 virtual network link through opserver 10.0.0.27 2026-01-19 15:04:36,880 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-01-19 15:04:37,186 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-01-19 15:04:37,263 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59979936:ctest-vn4-45299550', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59979936:ctest-vn4-45299550?flat'} 2026-01-19 15:04:37,263 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59979936:ctest-vn4-45299550 is found in opserver 2026-01-19 15:04:37,287 - DEBUG - Do not have enough data to verify VN in agent 2026-01-19 15:04:37,297 - DEBUG - VRF ids for VN ctest-vn4-45299550: {} 2026-01-19 15:04:37,297 - DEBUG - ====Verifying data for ctest-policy1-89511045 in API_Server ====== 2026-01-19 15:04:37,297 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-19 15:04:37,304 - DEBUG - Requesting: http://10.0.0.22:8082/domain/5a05e3ad-7c50-4a45-9ba6-ba5e0b0e3b90 2026-01-19 15:04:37,316 - DEBUG - Requesting: http://10.0.0.22:8082/project/91929ee8-3d2e-4c17-8ead-d0ae97e17e03 2026-01-19 15:04:37,412 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/cb973b48-fa31-4b31-988f-da9e021f2132 2026-01-19 15:04:37,426 - INFO - Verified policy ctest-policy1-89511045 in API Server, Result: True 2026-01-19 15:04:37,427 - INFO - Done with setup and verification, moving onto test .. 2026-01-19 15:04:37,441 - INFO - Deleting VN ctest-vn4-45299550 2026-01-19 15:04:37,669 - DEBUG - Response for deleting network () 2026-01-19 15:04:37,669 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/830b439f-92ff-47a9-83eb-f90ef787cb56 2026-01-19 15:04:37,681 - DEBUG - Response Code: 404 2026-01-19 15:04:37,682 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-19 15:04:37,690 - DEBUG - Requesting: http://10.0.0.22:8082/domain/5a05e3ad-7c50-4a45-9ba6-ba5e0b0e3b90 2026-01-19 15:04:37,701 - DEBUG - Requesting: http://10.0.0.22:8082/project/91929ee8-3d2e-4c17-8ead-d0ae97e17e03 2026-01-19 15:04:37,797 - INFO - Validated that VN ctest-vn4-45299550 is not found in API Server 2026-01-19 15:04:37,812 - DEBUG - VN ctest-vn4-45299550 is not present in Agent 10.0.0.23 2026-01-19 15:04:37,821 - DEBUG - VN ctest-vn4-45299550 is not present in Agent 10.0.0.240 2026-01-19 15:04:37,821 - INFO - Validated that VN ctest-vn4-45299550 is not in any agent 2026-01-19 15:04:37,850 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-45299550 info 2026-01-19 15:04:37,898 - INFO - Deleted policy ctest-policy1-89511045 2026-01-19 15:04:38,101 - DEBUG - policy ctest-policy1-89511045 is not found in API Server 2026-01-19 15:04:39,386 - DEBUG - No XMPP flaps were noticed during the test
2026-01-19 15:04:39,386 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07]
2026-01-19 15:04:39,386 - INFO - -------------------------------------------------------------------------------- 2026-01-19 15:04:40,664 - DEBUG - No XMPP flaps were noticed during the test
2026-01-19 15:04:40,664 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:10]
2026-01-19 15:04:40,664 - INFO - -------------------------------------------------------------------------------- 2026-01-19 15:04:41,463 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-59979936, ID : 91929ee8-3d2e-4c17-8ead-d0ae97e17e03