2026-02-09 21:57:28,180 - INFO - Domain Default found not creating 2026-02-09 21:57:28,347 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-29398450 not found, creating it 2026-02-09 21:57:28,818 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-29398450, ID : a7a4a47f-1e71-49d0-bf8a-1f44f8aa47e2 2026-02-09 21:57:30,336 - INFO - ================================================================================ 2026-02-09 21:57:30,337 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-09 21:57:30,598 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.254': '0'}} with 2026-02-09 21:57:30,598 - INFO - Initial checks done. Running the testcase now 2026-02-09 21:57:30,598 - INFO - 2026-02-09 21:57:30,598 - INFO - ================================================================================ 2026-02-09 21:57:30,598 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-09 21:57:30,598 - 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-09 21:57:30,885 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.254': '0'}} with 2026-02-09 21:57:30,885 - INFO - Initial checks done. Running the testcase now 2026-02-09 21:57:30,885 - INFO - 2026-02-09 21:57:31,240 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29398450:ctest-vn4-98043785, 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-29398450:ctest-vn4-98043785, 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-29398450:ctest-vn4-98043785, 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-29398450:ctest-vn4-98043785, 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-09 21:57:31,752 - DEBUG - Response for create_network : {'network': {'id': '71194999-8cb5-4c60-92df-54a7a11086a8', 'name': 'ctest-vn4-98043785', 'tenant_id': 'a7a4a47f1e7149d0bf8a1f44f8aa47e2', 'project_id': 'a7a4a47f1e7149d0bf8a1f44f8aa47e2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29398450', 'ctest-vn4-98043785'], 'port_security_enabled': True, 'description': ''}} 2026-02-09 21:57:31,958 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f668deb0-6f9a-45e0-9a8f-704eebe27871', 'name': '', 'tenant_id': 'a7a4a47f1e7149d0bf8a1f44f8aa47e2', 'network_id': '71194999-8cb5-4c60-92df-54a7a11086a8', 'ip_version': 4, 'cidr': '23.4.21.192/26', 'allocation_pools': [{'start': '23.4.21.194', 'end': '23.4.21.254'}], 'gateway_ip': '23.4.21.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '23.4.21.194', 'tags': [], 'project_id': 'a7a4a47f1e7149d0bf8a1f44f8aa47e2'}} 2026-02-09 21:57:32,104 - DEBUG - Response for create_subnet : {'subnet': {'id': '6009dc8b-ec5b-419e-8244-5d53b4dfaa33', 'name': '', 'tenant_id': 'a7a4a47f1e7149d0bf8a1f44f8aa47e2', 'network_id': '71194999-8cb5-4c60-92df-54a7a11086a8', 'ip_version': 6, 'cidr': '29a2:542d:9f85:e5ce:83e2:f88e::/96', 'allocation_pools': [{'start': '29a2:542d:9f85:e5ce:83e2:f88e:0:2', 'end': '29a2:542d:9f85:e5ce:83e2:f88e:ffff:fffe'}], 'gateway_ip': '29a2:542d:9f85:e5ce:83e2:f88e:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '29a2:542d:9f85:e5ce:83e2:f88e:0:2', 'tags': [], 'project_id': 'a7a4a47f1e7149d0bf8a1f44f8aa47e2'}} 2026-02-09 21:57:32,122 - INFO - Created VN ctest-vn4-98043785 2026-02-09 21:57:32,173 - DEBUG - VN ctest-vn4-98043785 UUID is 71194999-8cb5-4c60-92df-54a7a11086a8 2026-02-09 21:57:32,351 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '71194999-8cb5-4c60-92df-54a7a11086a8', 'name': 'ctest-vn4-98043785', 'tenant_id': 'a7a4a47f1e7149d0bf8a1f44f8aa47e2', 'project_id': 'a7a4a47f1e7149d0bf8a1f44f8aa47e2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f668deb0-6f9a-45e0-9a8f-704eebe27871', '6009dc8b-ec5b-419e-8244-5d53b4dfaa33'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29398450', 'ctest-vn4-98043785'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29398450', 'ctest-policy1-87189009']], 'subnet_ipam': [{'subnet_cidr': '23.4.21.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '29a2:542d:9f85:e5ce:83e2:f88e::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-09 21:57:32,513 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-02-09 21:57:32,806 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-02-09 21:57:32,835 - DEBUG - Requesting: http://10.0.0.130:8082/domain/ba55c2a5-9cca-440a-870c-5f103e86b0b2 2026-02-09 21:57:32,845 - DEBUG - Requesting: http://10.0.0.130:8082/project/a7a4a47f-1e71-49d0-bf8a-1f44f8aa47e2 2026-02-09 21:57:32,919 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/71194999-8cb5-4c60-92df-54a7a11086a8 2026-02-09 21:57:32,930 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/71194999-8cb5-4c60-92df-54a7a11086a8 2026-02-09 21:57:32,938 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/2b4a84b6-73b1-46bd-bc01-83be6bfc3528 2026-02-09 21:57:32,944 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/2b4a84b6-73b1-46bd-bc01-83be6bfc3528 2026-02-09 21:57:32,949 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/a9107bb5-417b-4c60-8fa5-1e0c0e72c08a 2026-02-09 21:57:32,954 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-09 21:57:32,955 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/71194999-8cb5-4c60-92df-54a7a11086a8 2026-02-09 21:57:32,962 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/2b4a84b6-73b1-46bd-bc01-83be6bfc3528 2026-02-09 21:57:32,974 - INFO - Verified VN network id 11 for VN 71194999-8cb5-4c60-92df-54a7a11086a8 2026-02-09 21:57:32,974 - INFO - Verifications in API Server for VN ctest-vn4-98043785 passed 2026-02-09 21:57:32,974 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/71194999-8cb5-4c60-92df-54a7a11086a8 2026-02-09 21:57:32,982 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/2b4a84b6-73b1-46bd-bc01-83be6bfc3528 2026-02-09 21:57:32,988 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/2b4a84b6-73b1-46bd-bc01-83be6bfc3528 2026-02-09 21:57:32,995 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/a9107bb5-417b-4c60-8fa5-1e0c0e72c08a 2026-02-09 21:57:33,005 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29398450:ctest-vn4-98043785', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-29398450', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8149625924543138912', 'uuid-lslong': '10583270728282441384'}, 'enable': 'true', 'created': '2026-02-09T21:57:31', 'last-modified': '2026-02-09T21:57:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.678086'} 2026-02-09 21:57:33,012 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-09 21:57:33,012 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-98043785 passed 2026-02-09 21:57:33,012 - DEBUG - ====Verifying policy data for ctest-vn4-98043785 in API_Server ====== 2026-02-09 21:57:33,012 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-02-09 21:57:33,017 - DEBUG - Requesting: http://10.0.0.130:8082/domain/ba55c2a5-9cca-440a-870c-5f103e86b0b2 2026-02-09 21:57:33,027 - DEBUG - Requesting: http://10.0.0.130:8082/project/a7a4a47f-1e71-49d0-bf8a-1f44f8aa47e2 2026-02-09 21:57:33,107 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/71194999-8cb5-4c60-92df-54a7a11086a8 2026-02-09 21:57:33,117 - DEBUG - ==>Verifying data for policy with id: 98c2c9c2-db35-4c02-a31d-47fd3dde647f, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29398450', 'ctest-policy1-87189009'] 2026-02-09 21:57:33,117 - INFO - VN ctest-vn4-98043785 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-09 21:57:33,117 - DEBUG - Verifying the vn in opserver 2026-02-09 21:57:33,117 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29398450:ctest-vn4-98043785 virtual network link through opserver 10.0.0.130 2026-02-09 21:57:33,118 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2026-02-09 21:57:33,424 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2026-02-09 21:57:33,482 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29398450:ctest-vn4-98043785', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29398450:ctest-vn4-98043785?flat'} 2026-02-09 21:57:33,482 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29398450:ctest-vn4-98043785 is found in opserver 2026-02-09 21:57:33,489 - DEBUG - Do not have enough data to verify VN in agent 2026-02-09 21:57:33,493 - DEBUG - VRF ids for VN ctest-vn4-98043785: {} 2026-02-09 21:57:33,493 - DEBUG - ====Verifying data for ctest-policy1-87189009 in API_Server ====== 2026-02-09 21:57:33,493 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-02-09 21:57:33,498 - DEBUG - Requesting: http://10.0.0.130:8082/domain/ba55c2a5-9cca-440a-870c-5f103e86b0b2 2026-02-09 21:57:33,507 - DEBUG - Requesting: http://10.0.0.130:8082/project/a7a4a47f-1e71-49d0-bf8a-1f44f8aa47e2 2026-02-09 21:57:33,572 - DEBUG - Requesting: http://10.0.0.130:8082/network-policy/98c2c9c2-db35-4c02-a31d-47fd3dde647f 2026-02-09 21:57:33,580 - INFO - Verified policy ctest-policy1-87189009 in API Server, Result: True 2026-02-09 21:57:33,580 - INFO - Done with setup and verification, moving onto test .. 2026-02-09 21:57:33,586 - INFO - Deleting VN ctest-vn4-98043785 2026-02-09 21:57:33,682 - DEBUG - Response for deleting network () 2026-02-09 21:57:33,682 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/2b4a84b6-73b1-46bd-bc01-83be6bfc3528 2026-02-09 21:57:33,685 - DEBUG - Response Code: 404 2026-02-09 21:57:33,686 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-02-09 21:57:33,689 - DEBUG - Requesting: http://10.0.0.130:8082/domain/ba55c2a5-9cca-440a-870c-5f103e86b0b2 2026-02-09 21:57:33,741 - DEBUG - Requesting: http://10.0.0.130:8082/project/a7a4a47f-1e71-49d0-bf8a-1f44f8aa47e2 2026-02-09 21:57:33,811 - INFO - Validated that VN ctest-vn4-98043785 is not found in API Server 2026-02-09 21:57:33,819 - DEBUG - VN ctest-vn4-98043785 is not present in Agent 10.0.0.130 2026-02-09 21:57:33,819 - INFO - Validated that VN ctest-vn4-98043785 is not in any agent 2026-02-09 21:57:33,832 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-98043785 info 2026-02-09 21:57:33,852 - INFO - Deleted policy ctest-policy1-87189009 2026-02-09 21:57:34,021 - DEBUG - policy ctest-policy1-87189009 is not found in API Server 2026-02-09 21:57:34,277 - DEBUG - No XMPP flaps were noticed during the test 2026-02-09 21:57:34,277 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-09 21:57:34,277 - INFO - -------------------------------------------------------------------------------- 2026-02-09 21:57:34,566 - DEBUG - No XMPP flaps were noticed during the test 2026-02-09 21:57:34,566 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-09 21:57:34,566 - INFO - -------------------------------------------------------------------------------- 2026-02-09 21:57:35,236 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-29398450, ID : a7a4a47f-1e71-49d0-bf8a-1f44f8aa47e2