2026-02-03 06:18:02,721 - INFO - Domain Default found not creating 2026-02-03 06:18:02,881 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-96896064 not found, creating it 2026-02-03 06:18:03,340 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-96896064, ID : fa668a4e-6bfe-4fe9-9e43-67926582c0c9 2026-02-03 06:18:04,751 - INFO - ================================================================================ 2026-02-03 06:18:04,752 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-03 06:18:05,004 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2026-02-03 06:18:05,004 - INFO - Initial checks done. Running the testcase now 2026-02-03 06:18:05,004 - INFO - 2026-02-03 06:18:05,004 - INFO - ================================================================================ 2026-02-03 06:18:05,004 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-03 06:18:05,004 - 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-03 06:18:05,293 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2026-02-03 06:18:05,293 - INFO - Initial checks done. Running the testcase now 2026-02-03 06:18:05,293 - INFO - 2026-02-03 06:18:05,638 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96896064:ctest-vn4-08072565, 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-96896064:ctest-vn4-08072565, 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-96896064:ctest-vn4-08072565, 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-96896064:ctest-vn4-08072565, 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-03 06:18:06,126 - DEBUG - Response for create_network : {'network': {'id': '1fae4f98-4715-4d76-a1dd-841af1e189d6', 'name': 'ctest-vn4-08072565', 'tenant_id': 'fa668a4e6bfe4fe99e4367926582c0c9', 'project_id': 'fa668a4e6bfe4fe99e4367926582c0c9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96896064', 'ctest-vn4-08072565'], 'port_security_enabled': True, 'description': ''}} 2026-02-03 06:18:06,337 - DEBUG - Response for create_subnet : {'subnet': {'id': '22cf44b6-3d87-4202-befc-1d3a48efb731', 'name': '', 'tenant_id': 'fa668a4e6bfe4fe99e4367926582c0c9', 'network_id': '1fae4f98-4715-4d76-a1dd-841af1e189d6', 'ip_version': 4, 'cidr': '212.108.46.192/26', 'allocation_pools': [{'start': '212.108.46.194', 'end': '212.108.46.254'}], 'gateway_ip': '212.108.46.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '212.108.46.194', 'tags': [], 'project_id': 'fa668a4e6bfe4fe99e4367926582c0c9'}} 2026-02-03 06:18:06,529 - DEBUG - Response for create_subnet : {'subnet': {'id': '32fb7977-d0fa-4ff3-a1fe-bf5fe13c5994', 'name': '', 'tenant_id': 'fa668a4e6bfe4fe99e4367926582c0c9', 'network_id': '1fae4f98-4715-4d76-a1dd-841af1e189d6', 'ip_version': 6, 'cidr': '3c17:893c:dc15:bb39:da38:ffa4::/96', 'allocation_pools': [{'start': '3c17:893c:dc15:bb39:da38:ffa4:0:2', 'end': '3c17:893c:dc15:bb39:da38:ffa4:ffff:fffe'}], 'gateway_ip': '3c17:893c:dc15:bb39:da38:ffa4:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3c17:893c:dc15:bb39:da38:ffa4:0:2', 'tags': [], 'project_id': 'fa668a4e6bfe4fe99e4367926582c0c9'}} 2026-02-03 06:18:06,547 - INFO - Created VN ctest-vn4-08072565 2026-02-03 06:18:06,599 - DEBUG - VN ctest-vn4-08072565 UUID is 1fae4f98-4715-4d76-a1dd-841af1e189d6 2026-02-03 06:18:06,786 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1fae4f98-4715-4d76-a1dd-841af1e189d6', 'name': 'ctest-vn4-08072565', 'tenant_id': 'fa668a4e6bfe4fe99e4367926582c0c9', 'project_id': 'fa668a4e6bfe4fe99e4367926582c0c9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['22cf44b6-3d87-4202-befc-1d3a48efb731', '32fb7977-d0fa-4ff3-a1fe-bf5fe13c5994'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96896064', 'ctest-vn4-08072565'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96896064', 'ctest-policy1-28841030']], 'subnet_ipam': [{'subnet_cidr': '212.108.46.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3c17:893c:dc15:bb39:da38:ffa4::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-03 06:18:06,947 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-03 06:18:07,240 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-03 06:18:07,270 - DEBUG - Requesting: http://10.0.0.22:8082/domain/078c5f1d-539d-41ab-abb3-64d3f6e7731d 2026-02-03 06:18:07,281 - DEBUG - Requesting: http://10.0.0.22:8082/project/fa668a4e-6bfe-4fe9-9e43-67926582c0c9 2026-02-03 06:18:07,350 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/1fae4f98-4715-4d76-a1dd-841af1e189d6 2026-02-03 06:18:07,364 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/1fae4f98-4715-4d76-a1dd-841af1e189d6 2026-02-03 06:18:07,374 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/dddb3bf1-5cb6-413e-9108-4ee3759c9c9e 2026-02-03 06:18:07,382 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/dddb3bf1-5cb6-413e-9108-4ee3759c9c9e 2026-02-03 06:18:07,388 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/2bad1623-63b2-43d6-9f40-889566c41808 2026-02-03 06:18:07,397 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-03 06:18:07,397 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/1fae4f98-4715-4d76-a1dd-841af1e189d6 2026-02-03 06:18:07,408 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/dddb3bf1-5cb6-413e-9108-4ee3759c9c9e 2026-02-03 06:18:07,421 - INFO - Verified VN network id 11 for VN 1fae4f98-4715-4d76-a1dd-841af1e189d6 2026-02-03 06:18:07,422 - INFO - Verifications in API Server for VN ctest-vn4-08072565 passed 2026-02-03 06:18:07,422 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/1fae4f98-4715-4d76-a1dd-841af1e189d6 2026-02-03 06:18:07,430 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/dddb3bf1-5cb6-413e-9108-4ee3759c9c9e 2026-02-03 06:18:07,436 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/dddb3bf1-5cb6-413e-9108-4ee3759c9c9e 2026-02-03 06:18:07,442 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/2bad1623-63b2-43d6-9f40-889566c41808 2026-02-03 06:18:07,454 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96896064:ctest-vn4-08072565', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-96896064', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2282849576569621878', 'uuid-lslong': '11663623861221558742'}, 'enable': 'true', 'created': '2026-02-03T06:18:06', 'last-modified': '2026-02-03T06:18:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.693116'} 2026-02-03 06:18:07,459 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-03 06:18:07,460 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-08072565 passed 2026-02-03 06:18:07,460 - DEBUG - ====Verifying policy data for ctest-vn4-08072565 in API_Server ====== 2026-02-03 06:18:07,460 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-03 06:18:07,465 - DEBUG - Requesting: http://10.0.0.22:8082/domain/078c5f1d-539d-41ab-abb3-64d3f6e7731d 2026-02-03 06:18:07,476 - DEBUG - Requesting: http://10.0.0.22:8082/project/fa668a4e-6bfe-4fe9-9e43-67926582c0c9 2026-02-03 06:18:07,544 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/1fae4f98-4715-4d76-a1dd-841af1e189d6 2026-02-03 06:18:07,554 - DEBUG - ==>Verifying data for policy with id: d5de784e-ccba-4bfa-a36e-7feb8f55ee63, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96896064', 'ctest-policy1-28841030'] 2026-02-03 06:18:07,554 - INFO - VN ctest-vn4-08072565 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-03 06:18:07,554 - DEBUG - Verifying the vn in opserver 2026-02-03 06:18:07,554 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96896064:ctest-vn4-08072565 virtual network link through opserver 10.0.0.22 2026-02-03 06:18:07,554 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-02-03 06:18:07,848 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-02-03 06:18:07,906 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96896064:ctest-vn4-08072565', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96896064:ctest-vn4-08072565?flat'} 2026-02-03 06:18:07,906 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96896064:ctest-vn4-08072565 is found in opserver 2026-02-03 06:18:07,914 - DEBUG - Do not have enough data to verify VN in agent 2026-02-03 06:18:07,920 - DEBUG - VRF ids for VN ctest-vn4-08072565: {} 2026-02-03 06:18:07,920 - DEBUG - ====Verifying data for ctest-policy1-28841030 in API_Server ====== 2026-02-03 06:18:07,920 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-03 06:18:07,926 - DEBUG - Requesting: http://10.0.0.22:8082/domain/078c5f1d-539d-41ab-abb3-64d3f6e7731d 2026-02-03 06:18:07,939 - DEBUG - Requesting: http://10.0.0.22:8082/project/fa668a4e-6bfe-4fe9-9e43-67926582c0c9 2026-02-03 06:18:08,006 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/d5de784e-ccba-4bfa-a36e-7feb8f55ee63 2026-02-03 06:18:08,016 - INFO - Verified policy ctest-policy1-28841030 in API Server, Result: True 2026-02-03 06:18:08,016 - INFO - Done with setup and verification, moving onto test .. 2026-02-03 06:18:08,023 - INFO - Deleting VN ctest-vn4-08072565 2026-02-03 06:18:08,147 - DEBUG - Response for deleting network () 2026-02-03 06:18:08,147 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/dddb3bf1-5cb6-413e-9108-4ee3759c9c9e 2026-02-03 06:18:08,152 - DEBUG - Response Code: 404 2026-02-03 06:18:08,152 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-03 06:18:08,157 - DEBUG - Requesting: http://10.0.0.22:8082/domain/078c5f1d-539d-41ab-abb3-64d3f6e7731d 2026-02-03 06:18:08,209 - DEBUG - Requesting: http://10.0.0.22:8082/project/fa668a4e-6bfe-4fe9-9e43-67926582c0c9 2026-02-03 06:18:08,278 - INFO - Validated that VN ctest-vn4-08072565 is not found in API Server 2026-02-03 06:18:08,287 - DEBUG - VN ctest-vn4-08072565 is not present in Agent 10.0.0.22 2026-02-03 06:18:08,287 - INFO - Validated that VN ctest-vn4-08072565 is not in any agent 2026-02-03 06:18:08,301 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-08072565 info 2026-02-03 06:18:08,326 - INFO - Deleted policy ctest-policy1-28841030 2026-02-03 06:18:08,487 - DEBUG - policy ctest-policy1-28841030 is not found in API Server 2026-02-03 06:18:08,739 - DEBUG - No XMPP flaps were noticed during the test
2026-02-03 06:18:08,740 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03]
2026-02-03 06:18:08,740 - INFO - -------------------------------------------------------------------------------- 2026-02-03 06:18:09,028 - DEBUG - No XMPP flaps were noticed during the test
2026-02-03 06:18:09,028 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-02-03 06:18:09,028 - INFO - -------------------------------------------------------------------------------- 2026-02-03 06:18:09,679 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-96896064, ID : fa668a4e-6bfe-4fe9-9e43-67926582c0c9