2026-06-15 15:48:46,502 - INFO - Domain Default found not creating 2026-06-15 15:48:46,616 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-87654938 not found, creating it 2026-06-15 15:48:47,076 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-87654938, ID : 0702cd56-4b09-414e-ab49-48f0f7c7aee0 2026-06-15 15:48:48,464 - INFO - ================================================================================ 2026-06-15 15:48:48,464 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-15 15:48:48,720 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-06-15 15:48:48,720 - INFO - Initial checks done. Running the testcase now 2026-06-15 15:48:48,720 - INFO - 2026-06-15 15:48:48,720 - INFO - ================================================================================ 2026-06-15 15:48:48,720 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-15 15:48:48,720 - 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-06-15 15:48:49,011 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-06-15 15:48:49,011 - INFO - Initial checks done. Running the testcase now 2026-06-15 15:48:49,012 - INFO - 2026-06-15 15:48:49,369 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87654938:ctest-vn4-45871032, 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-87654938:ctest-vn4-45871032, 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-87654938:ctest-vn4-45871032, 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-87654938:ctest-vn4-45871032, 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-06-15 15:48:49,838 - DEBUG - Response for create_network : {'network': {'id': 'e1cc06e2-59bf-4776-9da3-c3fe9ef23301', 'name': 'ctest-vn4-45871032', 'tenant_id': '0702cd564b09414eab4948f0f7c7aee0', 'project_id': '0702cd564b09414eab4948f0f7c7aee0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87654938', 'ctest-vn4-45871032'], 'port_security_enabled': True, 'description': ''}} 2026-06-15 15:48:50,022 - DEBUG - Response for create_subnet : {'subnet': {'id': '535cc872-a9ff-402c-9caa-61ba3d6cf547', 'name': '', 'tenant_id': '0702cd564b09414eab4948f0f7c7aee0', 'network_id': 'e1cc06e2-59bf-4776-9da3-c3fe9ef23301', 'ip_version': 4, 'cidr': '65.125.120.128/26', 'allocation_pools': [{'start': '65.125.120.130', 'end': '65.125.120.190'}], 'gateway_ip': '65.125.120.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '65.125.120.130', 'tags': [], 'project_id': '0702cd564b09414eab4948f0f7c7aee0'}} 2026-06-15 15:48:50,180 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a1789385-8001-491f-a764-91b078b4d7f5', 'name': '', 'tenant_id': '0702cd564b09414eab4948f0f7c7aee0', 'network_id': 'e1cc06e2-59bf-4776-9da3-c3fe9ef23301', 'ip_version': 6, 'cidr': '3a6c:8097:4e5:8fac:2a43:7e9::/96', 'allocation_pools': [{'start': '3a6c:8097:4e5:8fac:2a43:7e9:0:2', 'end': '3a6c:8097:4e5:8fac:2a43:7e9:ffff:fffe'}], 'gateway_ip': '3a6c:8097:4e5:8fac:2a43:7e9:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3a6c:8097:4e5:8fac:2a43:7e9:0:2', 'tags': [], 'project_id': '0702cd564b09414eab4948f0f7c7aee0'}} 2026-06-15 15:48:50,193 - INFO - Created VN ctest-vn4-45871032 2026-06-15 15:48:50,243 - DEBUG - VN ctest-vn4-45871032 UUID is e1cc06e2-59bf-4776-9da3-c3fe9ef23301 2026-06-15 15:48:50,405 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e1cc06e2-59bf-4776-9da3-c3fe9ef23301', 'name': 'ctest-vn4-45871032', 'tenant_id': '0702cd564b09414eab4948f0f7c7aee0', 'project_id': '0702cd564b09414eab4948f0f7c7aee0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['535cc872-a9ff-402c-9caa-61ba3d6cf547', 'a1789385-8001-491f-a764-91b078b4d7f5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87654938', 'ctest-vn4-45871032'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87654938', 'ctest-policy1-30633791']], 'subnet_ipam': [{'subnet_cidr': '65.125.120.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3a6c:8097:4e5:8fac:2a43:7e9::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-15 15:48:50,555 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-15 15:48:50,872 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-15 15:48:50,899 - DEBUG - Requesting: http://10.0.0.50:8082/domain/523b4a15-bd43-4e34-938c-4416669f21aa 2026-06-15 15:48:50,910 - DEBUG - Requesting: http://10.0.0.50:8082/project/0702cd56-4b09-414e-ab49-48f0f7c7aee0 2026-06-15 15:48:50,981 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e1cc06e2-59bf-4776-9da3-c3fe9ef23301 2026-06-15 15:48:50,990 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e1cc06e2-59bf-4776-9da3-c3fe9ef23301 2026-06-15 15:48:50,998 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d2e24c3a-836b-4418-93c9-1fcfde5b4ea7 2026-06-15 15:48:51,002 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d2e24c3a-836b-4418-93c9-1fcfde5b4ea7 2026-06-15 15:48:51,007 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/00e7dc4e-fba8-49db-a5b7-fd728525e263 2026-06-15 15:48:51,012 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-15 15:48:51,012 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e1cc06e2-59bf-4776-9da3-c3fe9ef23301 2026-06-15 15:48:51,019 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d2e24c3a-836b-4418-93c9-1fcfde5b4ea7 2026-06-15 15:48:51,028 - INFO - Verified VN network id 11 for VN e1cc06e2-59bf-4776-9da3-c3fe9ef23301 2026-06-15 15:48:51,028 - INFO - Verifications in API Server for VN ctest-vn4-45871032 passed 2026-06-15 15:48:51,029 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e1cc06e2-59bf-4776-9da3-c3fe9ef23301 2026-06-15 15:48:51,035 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d2e24c3a-836b-4418-93c9-1fcfde5b4ea7 2026-06-15 15:48:51,040 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d2e24c3a-836b-4418-93c9-1fcfde5b4ea7 2026-06-15 15:48:51,045 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/00e7dc4e-fba8-49db-a5b7-fd728525e263 2026-06-15 15:48:51,053 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87654938:ctest-vn4-45871032', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-87654938', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16270387123020842870', 'uuid-lslong': '11359138183514305281'}, 'enable': 'true', 'created': '2026-06-15T15:48:49', 'last-modified': '2026-06-15T15:48:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.670560'} 2026-06-15 15:48:51,058 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-15 15:48:51,058 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-45871032 passed 2026-06-15 15:48:51,058 - DEBUG - ====Verifying policy data for ctest-vn4-45871032 in API_Server ====== 2026-06-15 15:48:51,058 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-15 15:48:51,062 - DEBUG - Requesting: http://10.0.0.50:8082/domain/523b4a15-bd43-4e34-938c-4416669f21aa 2026-06-15 15:48:51,070 - DEBUG - Requesting: http://10.0.0.50:8082/project/0702cd56-4b09-414e-ab49-48f0f7c7aee0 2026-06-15 15:48:51,134 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e1cc06e2-59bf-4776-9da3-c3fe9ef23301 2026-06-15 15:48:51,141 - DEBUG - ==>Verifying data for policy with id: 260b5a1f-0b1b-409f-b581-55e41fd9640b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87654938', 'ctest-policy1-30633791'] 2026-06-15 15:48:51,141 - INFO - VN ctest-vn4-45871032 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-15 15:48:51,141 - DEBUG - Verifying the vn in opserver 2026-06-15 15:48:51,141 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87654938:ctest-vn4-45871032 virtual network link through opserver 10.0.0.50 2026-06-15 15:48:51,141 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-06-15 15:48:51,453 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-06-15 15:48:51,497 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87654938:ctest-vn4-45871032', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87654938:ctest-vn4-45871032?flat'} 2026-06-15 15:48:51,497 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87654938:ctest-vn4-45871032 is found in opserver 2026-06-15 15:48:51,506 - DEBUG - Do not have enough data to verify VN in agent 2026-06-15 15:48:51,510 - DEBUG - VRF ids for VN ctest-vn4-45871032: {} 2026-06-15 15:48:51,510 - DEBUG - ====Verifying data for ctest-policy1-30633791 in API_Server ====== 2026-06-15 15:48:51,510 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-15 15:48:51,517 - DEBUG - Requesting: http://10.0.0.50:8082/domain/523b4a15-bd43-4e34-938c-4416669f21aa 2026-06-15 15:48:51,528 - DEBUG - Requesting: http://10.0.0.50:8082/project/0702cd56-4b09-414e-ab49-48f0f7c7aee0 2026-06-15 15:48:51,595 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/260b5a1f-0b1b-409f-b581-55e41fd9640b 2026-06-15 15:48:51,603 - INFO - Verified policy ctest-policy1-30633791 in API Server, Result: True 2026-06-15 15:48:51,603 - INFO - Done with setup and verification, moving onto test .. 2026-06-15 15:48:51,610 - INFO - Deleting VN ctest-vn4-45871032 2026-06-15 15:48:51,704 - DEBUG - Response for deleting network () 2026-06-15 15:48:51,705 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d2e24c3a-836b-4418-93c9-1fcfde5b4ea7 2026-06-15 15:48:51,708 - DEBUG - Response Code: 404 2026-06-15 15:48:51,708 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-15 15:48:51,712 - DEBUG - Requesting: http://10.0.0.50:8082/domain/523b4a15-bd43-4e34-938c-4416669f21aa 2026-06-15 15:48:51,767 - DEBUG - Requesting: http://10.0.0.50:8082/project/0702cd56-4b09-414e-ab49-48f0f7c7aee0 2026-06-15 15:48:51,830 - INFO - Validated that VN ctest-vn4-45871032 is not found in API Server 2026-06-15 15:48:51,837 - DEBUG - VN ctest-vn4-45871032 is not present in Agent 10.0.0.50 2026-06-15 15:48:51,837 - INFO - Validated that VN ctest-vn4-45871032 is not in any agent 2026-06-15 15:48:51,849 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-45871032 info 2026-06-15 15:48:51,866 - INFO - Deleted policy ctest-policy1-30633791 2026-06-15 15:48:52,027 - DEBUG - policy ctest-policy1-30633791 is not found in API Server 2026-06-15 15:48:52,279 - DEBUG - No XMPP flaps were noticed during the test