2026-03-23 02:01:30,006 - INFO - Domain Default found not creating 2026-03-23 02:01:30,158 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-54047058 not found, creating it 2026-03-23 02:01:30,600 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-54047058, ID : 3a87adbe-d4aa-4330-9cff-7b9a5e297bb5 2026-03-23 02:01:32,044 - INFO - ================================================================================ 2026-03-23 02:01:32,044 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-23 02:01:32,297 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.254': '0'}} with 2026-03-23 02:01:32,297 - INFO - Initial checks done. Running the testcase now 2026-03-23 02:01:32,297 - INFO - 2026-03-23 02:01:32,297 - INFO - ================================================================================ 2026-03-23 02:01:32,297 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-23 02:01:32,297 - 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-23 02:01:32,594 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.254': '0'}} with 2026-03-23 02:01:32,594 - INFO - Initial checks done. Running the testcase now 2026-03-23 02:01:32,594 - INFO - 2026-03-23 02:01:32,943 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54047058:ctest-vn4-98799507, 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-54047058:ctest-vn4-98799507, 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-54047058:ctest-vn4-98799507, 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-54047058:ctest-vn4-98799507, 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-23 02:01:33,427 - DEBUG - Response for create_network : {'network': {'id': '5316cb26-9f22-4e51-aa92-6746a827bcdb', 'name': 'ctest-vn4-98799507', 'tenant_id': '3a87adbed4aa43309cff7b9a5e297bb5', 'project_id': '3a87adbed4aa43309cff7b9a5e297bb5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-54047058', 'ctest-vn4-98799507'], 'port_security_enabled': True, 'description': ''}} 2026-03-23 02:01:33,636 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f46857eb-4470-43b9-8908-e2ead7d39fb8', 'name': '', 'tenant_id': '3a87adbed4aa43309cff7b9a5e297bb5', 'network_id': '5316cb26-9f22-4e51-aa92-6746a827bcdb', 'ip_version': 4, 'cidr': '220.207.99.192/26', 'allocation_pools': [{'start': '220.207.99.194', 'end': '220.207.99.254'}], 'gateway_ip': '220.207.99.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '220.207.99.194', 'tags': [], 'project_id': '3a87adbed4aa43309cff7b9a5e297bb5'}} 2026-03-23 02:01:33,830 - DEBUG - Response for create_subnet : {'subnet': {'id': '0c6f2a0d-fae4-4fd8-b6ac-e7882b6fd5e5', 'name': '', 'tenant_id': '3a87adbed4aa43309cff7b9a5e297bb5', 'network_id': '5316cb26-9f22-4e51-aa92-6746a827bcdb', 'ip_version': 6, 'cidr': '301f:1ad7:ae7e:7dd1:809c:832a::/96', 'allocation_pools': [{'start': '301f:1ad7:ae7e:7dd1:809c:832a:0:2', 'end': '301f:1ad7:ae7e:7dd1:809c:832a:ffff:fffe'}], 'gateway_ip': '301f:1ad7:ae7e:7dd1:809c:832a:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '301f:1ad7:ae7e:7dd1:809c:832a:0:2', 'tags': [], 'project_id': '3a87adbed4aa43309cff7b9a5e297bb5'}} 2026-03-23 02:01:33,849 - INFO - Created VN ctest-vn4-98799507 2026-03-23 02:01:33,900 - DEBUG - VN ctest-vn4-98799507 UUID is 5316cb26-9f22-4e51-aa92-6746a827bcdb 2026-03-23 02:01:34,085 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5316cb26-9f22-4e51-aa92-6746a827bcdb', 'name': 'ctest-vn4-98799507', 'tenant_id': '3a87adbed4aa43309cff7b9a5e297bb5', 'project_id': '3a87adbed4aa43309cff7b9a5e297bb5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f46857eb-4470-43b9-8908-e2ead7d39fb8', '0c6f2a0d-fae4-4fd8-b6ac-e7882b6fd5e5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-54047058', 'ctest-vn4-98799507'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-54047058', 'ctest-policy1-96479904']], 'subnet_ipam': [{'subnet_cidr': '220.207.99.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '301f:1ad7:ae7e:7dd1:809c:832a::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-23 02:01:34,256 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-03-23 02:01:34,552 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-03-23 02:01:34,857 - DEBUG - Requesting: http://10.0.0.141:8082/domain/0707edb3-05c0-4f5e-9b5f-e37fd6cecc6c 2026-03-23 02:01:34,871 - DEBUG - Requesting: http://10.0.0.141:8082/project/3a87adbe-d4aa-4330-9cff-7b9a5e297bb5 2026-03-23 02:01:34,952 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/5316cb26-9f22-4e51-aa92-6746a827bcdb 2026-03-23 02:01:34,965 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/5316cb26-9f22-4e51-aa92-6746a827bcdb 2026-03-23 02:01:34,974 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e970f870-d788-4b15-89fa-92b3fa95b660 2026-03-23 02:01:34,980 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e970f870-d788-4b15-89fa-92b3fa95b660 2026-03-23 02:01:34,986 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/180aed36-5d6f-4ca0-9a33-1ba17eff9bbd 2026-03-23 02:01:34,992 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-23 02:01:34,992 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/5316cb26-9f22-4e51-aa92-6746a827bcdb 2026-03-23 02:01:35,001 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e970f870-d788-4b15-89fa-92b3fa95b660 2026-03-23 02:01:35,015 - INFO - Verified VN network id 11 for VN 5316cb26-9f22-4e51-aa92-6746a827bcdb 2026-03-23 02:01:35,015 - INFO - Verifications in API Server for VN ctest-vn4-98799507 passed 2026-03-23 02:01:35,015 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/5316cb26-9f22-4e51-aa92-6746a827bcdb 2026-03-23 02:01:35,025 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e970f870-d788-4b15-89fa-92b3fa95b660 2026-03-23 02:01:35,032 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e970f870-d788-4b15-89fa-92b3fa95b660 2026-03-23 02:01:35,039 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/180aed36-5d6f-4ca0-9a33-1ba17eff9bbd 2026-03-23 02:01:35,054 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54047058:ctest-vn4-98799507', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-54047058', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5987196121374674513', 'uuid-lslong': '12290999886214053083'}, 'enable': 'true', 'created': '2026-03-23T02:01:33', 'last-modified': '2026-03-23T02:01:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.989534'} 2026-03-23 02:01:35,060 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-23 02:01:35,060 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-98799507 passed 2026-03-23 02:01:35,060 - DEBUG - ====Verifying policy data for ctest-vn4-98799507 in API_Server ====== 2026-03-23 02:01:35,060 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-03-23 02:01:35,066 - DEBUG - Requesting: http://10.0.0.141:8082/domain/0707edb3-05c0-4f5e-9b5f-e37fd6cecc6c 2026-03-23 02:01:35,076 - DEBUG - Requesting: http://10.0.0.141:8082/project/3a87adbe-d4aa-4330-9cff-7b9a5e297bb5 2026-03-23 02:01:35,147 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/5316cb26-9f22-4e51-aa92-6746a827bcdb 2026-03-23 02:01:35,158 - DEBUG - ==>Verifying data for policy with id: f660cb89-9571-445a-9364-63aaffe59bed, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-54047058', 'ctest-policy1-96479904'] 2026-03-23 02:01:35,158 - INFO - VN ctest-vn4-98799507 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-23 02:01:35,158 - DEBUG - Verifying the vn in opserver 2026-03-23 02:01:35,158 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54047058:ctest-vn4-98799507 virtual network link through opserver 10.0.0.141 2026-03-23 02:01:35,158 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-03-23 02:01:35,500 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-03-23 02:01:35,576 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54047058:ctest-vn4-98799507', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54047058:ctest-vn4-98799507?flat'} 2026-03-23 02:01:35,576 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54047058:ctest-vn4-98799507 is found in opserver 2026-03-23 02:01:35,585 - DEBUG - Do not have enough data to verify VN in agent 2026-03-23 02:01:35,589 - DEBUG - VRF ids for VN ctest-vn4-98799507: {} 2026-03-23 02:01:35,589 - DEBUG - ====Verifying data for ctest-policy1-96479904 in API_Server ====== 2026-03-23 02:01:35,589 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-03-23 02:01:35,594 - DEBUG - Requesting: http://10.0.0.141:8082/domain/0707edb3-05c0-4f5e-9b5f-e37fd6cecc6c 2026-03-23 02:01:35,603 - DEBUG - Requesting: http://10.0.0.141:8082/project/3a87adbe-d4aa-4330-9cff-7b9a5e297bb5 2026-03-23 02:01:35,671 - DEBUG - Requesting: http://10.0.0.141:8082/network-policy/f660cb89-9571-445a-9364-63aaffe59bed 2026-03-23 02:01:35,681 - INFO - Verified policy ctest-policy1-96479904 in API Server, Result: True 2026-03-23 02:01:35,681 - INFO - Done with setup and verification, moving onto test .. 2026-03-23 02:01:35,688 - INFO - Deleting VN ctest-vn4-98799507 2026-03-23 02:01:35,795 - DEBUG - Response for deleting network () 2026-03-23 02:01:35,795 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e970f870-d788-4b15-89fa-92b3fa95b660 2026-03-23 02:01:35,799 - DEBUG - Response Code: 404 2026-03-23 02:01:35,799 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-03-23 02:01:35,803 - DEBUG - Requesting: http://10.0.0.141:8082/domain/0707edb3-05c0-4f5e-9b5f-e37fd6cecc6c 2026-03-23 02:01:35,852 - DEBUG - Requesting: http://10.0.0.141:8082/project/3a87adbe-d4aa-4330-9cff-7b9a5e297bb5 2026-03-23 02:01:35,922 - INFO - Validated that VN ctest-vn4-98799507 is not found in API Server 2026-03-23 02:01:35,931 - DEBUG - VN ctest-vn4-98799507 is not present in Agent 10.0.0.141 2026-03-23 02:01:35,931 - INFO - Validated that VN ctest-vn4-98799507 is not in any agent 2026-03-23 02:01:35,943 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-98799507 info 2026-03-23 02:01:35,965 - INFO - Deleted policy ctest-policy1-96479904 2026-03-23 02:01:36,128 - DEBUG - policy ctest-policy1-96479904 is not found in API Server 2026-03-23 02:01:36,384 - DEBUG - No XMPP flaps were noticed during the test 2026-03-23 02:01:36,384 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-03-23 02:01:36,384 - INFO - -------------------------------------------------------------------------------- 2026-03-23 02:01:36,673 - DEBUG - No XMPP flaps were noticed during the test 2026-03-23 02:01:36,673 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-03-23 02:01:36,673 - INFO - -------------------------------------------------------------------------------- 2026-03-23 02:01:37,338 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-54047058, ID : 3a87adbe-d4aa-4330-9cff-7b9a5e297bb5