2026-03-30 13:02:19,284 - INFO - Domain Default found not creating 2026-03-30 13:02:19,488 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-43096330 not found, creating it 2026-03-30 13:02:20,029 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-43096330, ID : 03d7194f-74ab-4bc3-a843-6ab21e661f22 2026-03-30 13:02:21,639 - INFO - ================================================================================ 2026-03-30 13:02:21,640 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-30 13:02:21,911 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with 2026-03-30 13:02:21,911 - INFO - Initial checks done. Running the testcase now 2026-03-30 13:02:21,911 - INFO - 2026-03-30 13:02:21,911 - INFO - ================================================================================ 2026-03-30 13:02:21,911 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-30 13:02:21,911 - 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-30 13:02:22,200 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with 2026-03-30 13:02:22,200 - INFO - Initial checks done. Running the testcase now 2026-03-30 13:02:22,200 - INFO - 2026-03-30 13:02:22,581 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43096330:ctest-vn4-28085267, 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-43096330:ctest-vn4-28085267, 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-43096330:ctest-vn4-28085267, 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-43096330:ctest-vn4-28085267, 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-30 13:02:23,144 - DEBUG - Response for create_network : {'network': {'id': '870a1567-f229-40f3-bcc7-89a45483ce1d', 'name': 'ctest-vn4-28085267', 'tenant_id': '03d7194f74ab4bc3a8436ab21e661f22', 'project_id': '03d7194f74ab4bc3a8436ab21e661f22', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43096330', 'ctest-vn4-28085267'], 'port_security_enabled': True, 'description': ''}} 2026-03-30 13:02:23,370 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ff2a15f3-29a8-4149-94eb-6390b1667cfc', 'name': '', 'tenant_id': '03d7194f74ab4bc3a8436ab21e661f22', 'network_id': '870a1567-f229-40f3-bcc7-89a45483ce1d', 'ip_version': 4, 'cidr': '139.47.178.64/26', 'allocation_pools': [{'start': '139.47.178.66', 'end': '139.47.178.126'}], 'gateway_ip': '139.47.178.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '139.47.178.66', 'tags': [], 'project_id': '03d7194f74ab4bc3a8436ab21e661f22'}} 2026-03-30 13:02:23,534 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f5794ea7-822a-49c9-a3b1-d5d42373efaa', 'name': '', 'tenant_id': '03d7194f74ab4bc3a8436ab21e661f22', 'network_id': '870a1567-f229-40f3-bcc7-89a45483ce1d', 'ip_version': 6, 'cidr': '2a14:b854:fda2:f70:7802:b9e3::/96', 'allocation_pools': [{'start': '2a14:b854:fda2:f70:7802:b9e3:0:2', 'end': '2a14:b854:fda2:f70:7802:b9e3:ffff:fffe'}], 'gateway_ip': '2a14:b854:fda2:f70:7802:b9e3:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2a14:b854:fda2:f70:7802:b9e3:0:2', 'tags': [], 'project_id': '03d7194f74ab4bc3a8436ab21e661f22'}} 2026-03-30 13:02:23,558 - INFO - Created VN ctest-vn4-28085267 2026-03-30 13:02:23,611 - DEBUG - VN ctest-vn4-28085267 UUID is 870a1567-f229-40f3-bcc7-89a45483ce1d 2026-03-30 13:02:23,853 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '870a1567-f229-40f3-bcc7-89a45483ce1d', 'name': 'ctest-vn4-28085267', 'tenant_id': '03d7194f74ab4bc3a8436ab21e661f22', 'project_id': '03d7194f74ab4bc3a8436ab21e661f22', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ff2a15f3-29a8-4149-94eb-6390b1667cfc', 'f5794ea7-822a-49c9-a3b1-d5d42373efaa'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43096330', 'ctest-vn4-28085267'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43096330', 'ctest-policy1-51470766']], 'subnet_ipam': [{'subnet_cidr': '139.47.178.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2a14:b854:fda2:f70:7802:b9e3::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-30 13:02:24,023 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-03-30 13:02:24,338 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-03-30 13:02:24,380 - DEBUG - Requesting: http://10.0.0.242:8082/domain/94b85dcd-cd06-48b3-9922-1dd10cfce00f 2026-03-30 13:02:24,398 - DEBUG - Requesting: http://10.0.0.242:8082/project/03d7194f-74ab-4bc3-a843-6ab21e661f22 2026-03-30 13:02:24,481 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/870a1567-f229-40f3-bcc7-89a45483ce1d 2026-03-30 13:02:24,495 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/870a1567-f229-40f3-bcc7-89a45483ce1d 2026-03-30 13:02:24,507 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/684c2874-3d55-4040-a556-4edd3081cd63 2026-03-30 13:02:24,516 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/684c2874-3d55-4040-a556-4edd3081cd63 2026-03-30 13:02:24,525 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/9e57ba6d-9351-49ae-b88f-f5b629c68377 2026-03-30 13:02:24,533 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-30 13:02:24,533 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/870a1567-f229-40f3-bcc7-89a45483ce1d 2026-03-30 13:02:24,545 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/684c2874-3d55-4040-a556-4edd3081cd63 2026-03-30 13:02:24,559 - INFO - Verified VN network id 11 for VN 870a1567-f229-40f3-bcc7-89a45483ce1d 2026-03-30 13:02:24,559 - INFO - Verifications in API Server for VN ctest-vn4-28085267 passed 2026-03-30 13:02:24,559 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/870a1567-f229-40f3-bcc7-89a45483ce1d 2026-03-30 13:02:24,570 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/684c2874-3d55-4040-a556-4edd3081cd63 2026-03-30 13:02:24,579 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/684c2874-3d55-4040-a556-4edd3081cd63 2026-03-30 13:02:24,587 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/9e57ba6d-9351-49ae-b88f-f5b629c68377 2026-03-30 13:02:24,601 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43096330:ctest-vn4-28085267', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-43096330', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9730613481075982579', 'uuid-lslong': '13602992538381438493'}, 'enable': 'true', 'created': '2026-03-30T13:02:23', 'last-modified': '2026-03-30T13:02:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.777773'} 2026-03-30 13:02:24,610 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-30 13:02:24,610 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-28085267 passed 2026-03-30 13:02:24,610 - DEBUG - ====Verifying policy data for ctest-vn4-28085267 in API_Server ====== 2026-03-30 13:02:24,610 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-03-30 13:02:24,617 - DEBUG - Requesting: http://10.0.0.242:8082/domain/94b85dcd-cd06-48b3-9922-1dd10cfce00f 2026-03-30 13:02:24,630 - DEBUG - Requesting: http://10.0.0.242:8082/project/03d7194f-74ab-4bc3-a843-6ab21e661f22 2026-03-30 13:02:24,706 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/870a1567-f229-40f3-bcc7-89a45483ce1d 2026-03-30 13:02:24,721 - DEBUG - ==>Verifying data for policy with id: 114289b1-242b-4d32-98bf-cf10d5821e4c, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43096330', 'ctest-policy1-51470766'] 2026-03-30 13:02:24,721 - INFO - VN ctest-vn4-28085267 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-30 13:02:24,721 - DEBUG - Verifying the vn in opserver 2026-03-30 13:02:24,721 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43096330:ctest-vn4-28085267 virtual network link through opserver 10.0.0.242 2026-03-30 13:02:24,721 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-03-30 13:02:25,035 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-03-30 13:02:25,115 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43096330:ctest-vn4-28085267', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43096330:ctest-vn4-28085267?flat'} 2026-03-30 13:02:25,115 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43096330:ctest-vn4-28085267 is found in opserver 2026-03-30 13:02:25,127 - DEBUG - Do not have enough data to verify VN in agent 2026-03-30 13:02:25,134 - DEBUG - VRF ids for VN ctest-vn4-28085267: {} 2026-03-30 13:02:25,134 - DEBUG - ====Verifying data for ctest-policy1-51470766 in API_Server ====== 2026-03-30 13:02:25,134 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-03-30 13:02:25,141 - DEBUG - Requesting: http://10.0.0.242:8082/domain/94b85dcd-cd06-48b3-9922-1dd10cfce00f 2026-03-30 13:02:25,153 - DEBUG - Requesting: http://10.0.0.242:8082/project/03d7194f-74ab-4bc3-a843-6ab21e661f22 2026-03-30 13:02:25,235 - DEBUG - Requesting: http://10.0.0.242:8082/network-policy/114289b1-242b-4d32-98bf-cf10d5821e4c 2026-03-30 13:02:25,247 - INFO - Verified policy ctest-policy1-51470766 in API Server, Result: True 2026-03-30 13:02:25,248 - INFO - Done with setup and verification, moving onto test .. 2026-03-30 13:02:25,257 - INFO - Deleting VN ctest-vn4-28085267 2026-03-30 13:02:25,384 - DEBUG - Response for deleting network () 2026-03-30 13:02:25,384 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/684c2874-3d55-4040-a556-4edd3081cd63 2026-03-30 13:02:25,389 - DEBUG - Response Code: 404 2026-03-30 13:02:25,390 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-03-30 13:02:25,395 - DEBUG - Requesting: http://10.0.0.242:8082/domain/94b85dcd-cd06-48b3-9922-1dd10cfce00f 2026-03-30 13:02:25,450 - DEBUG - Requesting: http://10.0.0.242:8082/project/03d7194f-74ab-4bc3-a843-6ab21e661f22 2026-03-30 13:02:25,524 - INFO - Validated that VN ctest-vn4-28085267 is not found in API Server 2026-03-30 13:02:25,534 - DEBUG - VN ctest-vn4-28085267 is not present in Agent 10.0.0.242 2026-03-30 13:02:25,534 - INFO - Validated that VN ctest-vn4-28085267 is not in any agent 2026-03-30 13:02:25,550 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-28085267 info 2026-03-30 13:02:25,589 - INFO - Deleted policy ctest-policy1-51470766 2026-03-30 13:02:25,763 - DEBUG - policy ctest-policy1-51470766 is not found in API Server 2026-03-30 13:02:26,021 - DEBUG - No XMPP flaps were noticed during the test
2026-03-30 13:02:26,021 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-03-30 13:02:26,021 - INFO - -------------------------------------------------------------------------------- 2026-03-30 13:02:26,329 - DEBUG - No XMPP flaps were noticed during the test
2026-03-30 13:02:26,329 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-03-30 13:02:26,329 - INFO - -------------------------------------------------------------------------------- 2026-03-30 13:02:27,044 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-43096330, ID : 03d7194f-74ab-4bc3-a843-6ab21e661f22