2026-03-03 13:22:24,044 - INFO - Domain Default found not creating 2026-03-03 13:22:24,198 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-27474631 not found, creating it 2026-03-03 13:22:24,653 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-27474631, ID : 4d5c2b58-7ea7-49aa-a409-43140553cc37 2026-03-03 13:22:26,067 - INFO - ================================================================================ 2026-03-03 13:22:26,067 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-03 13:22:26,330 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.14': '0'}} with 2026-03-03 13:22:26,330 - INFO - Initial checks done. Running the testcase now 2026-03-03 13:22:26,330 - INFO - 2026-03-03 13:22:26,330 - INFO - ================================================================================ 2026-03-03 13:22:26,330 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-03 13:22:26,330 - 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-03 13:22:26,618 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.14': '0'}} with 2026-03-03 13:22:26,618 - INFO - Initial checks done. Running the testcase now 2026-03-03 13:22:26,618 - INFO - 2026-03-03 13:22:26,971 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27474631:ctest-vn4-24890064, 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-27474631:ctest-vn4-24890064, 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-27474631:ctest-vn4-24890064, 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-27474631:ctest-vn4-24890064, 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-03 13:22:27,452 - DEBUG - Response for create_network : {'network': {'id': 'c0bac4c2-2627-4fd8-aa5f-354a5328b376', 'name': 'ctest-vn4-24890064', 'tenant_id': '4d5c2b587ea749aaa40943140553cc37', 'project_id': '4d5c2b587ea749aaa40943140553cc37', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-27474631', 'ctest-vn4-24890064'], 'port_security_enabled': True, 'description': ''}} 2026-03-03 13:22:27,641 - DEBUG - Response for create_subnet : {'subnet': {'id': '03cf1d72-ca8a-497e-a65e-d533d416b994', 'name': '', 'tenant_id': '4d5c2b587ea749aaa40943140553cc37', 'network_id': 'c0bac4c2-2627-4fd8-aa5f-354a5328b376', 'ip_version': 4, 'cidr': '34.2.154.128/26', 'allocation_pools': [{'start': '34.2.154.130', 'end': '34.2.154.190'}], 'gateway_ip': '34.2.154.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '34.2.154.130', 'tags': [], 'project_id': '4d5c2b587ea749aaa40943140553cc37'}} 2026-03-03 13:22:27,844 - DEBUG - Response for create_subnet : {'subnet': {'id': '06143b2c-35d4-4605-84b8-1983c3fc9434', 'name': '', 'tenant_id': '4d5c2b587ea749aaa40943140553cc37', 'network_id': 'c0bac4c2-2627-4fd8-aa5f-354a5328b376', 'ip_version': 6, 'cidr': '360e:18d5:6f05:ccc4:3502:ff12::/96', 'allocation_pools': [{'start': '360e:18d5:6f05:ccc4:3502:ff12:0:2', 'end': '360e:18d5:6f05:ccc4:3502:ff12:ffff:fffe'}], 'gateway_ip': '360e:18d5:6f05:ccc4:3502:ff12:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '360e:18d5:6f05:ccc4:3502:ff12:0:2', 'tags': [], 'project_id': '4d5c2b587ea749aaa40943140553cc37'}} 2026-03-03 13:22:27,864 - INFO - Created VN ctest-vn4-24890064 2026-03-03 13:22:27,913 - DEBUG - VN ctest-vn4-24890064 UUID is c0bac4c2-2627-4fd8-aa5f-354a5328b376 2026-03-03 13:22:28,093 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c0bac4c2-2627-4fd8-aa5f-354a5328b376', 'name': 'ctest-vn4-24890064', 'tenant_id': '4d5c2b587ea749aaa40943140553cc37', 'project_id': '4d5c2b587ea749aaa40943140553cc37', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['03cf1d72-ca8a-497e-a65e-d533d416b994', '06143b2c-35d4-4605-84b8-1983c3fc9434'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-27474631', 'ctest-vn4-24890064'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-27474631', 'ctest-policy1-62998901']], 'subnet_ipam': [{'subnet_cidr': '34.2.154.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '360e:18d5:6f05:ccc4:3502:ff12::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-03 13:22:28,265 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-03-03 13:22:28,555 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-03-03 13:22:28,584 - DEBUG - Requesting: http://10.0.0.33:8082/domain/7574b7af-7b8d-4793-a4c7-70ac143f4167 2026-03-03 13:22:28,596 - DEBUG - Requesting: http://10.0.0.33:8082/project/4d5c2b58-7ea7-49aa-a409-43140553cc37 2026-03-03 13:22:28,660 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c0bac4c2-2627-4fd8-aa5f-354a5328b376 2026-03-03 13:22:28,670 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c0bac4c2-2627-4fd8-aa5f-354a5328b376 2026-03-03 13:22:28,678 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e8db8b20-ca04-4cca-bfbc-a344ac3bbd04 2026-03-03 13:22:28,685 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e8db8b20-ca04-4cca-bfbc-a344ac3bbd04 2026-03-03 13:22:28,691 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/844ce623-795f-43d8-ac9b-dd0df63f8874 2026-03-03 13:22:28,697 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-03 13:22:28,697 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c0bac4c2-2627-4fd8-aa5f-354a5328b376 2026-03-03 13:22:28,705 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e8db8b20-ca04-4cca-bfbc-a344ac3bbd04 2026-03-03 13:22:28,717 - INFO - Verified VN network id 12 for VN c0bac4c2-2627-4fd8-aa5f-354a5328b376 2026-03-03 13:22:28,718 - INFO - Verifications in API Server for VN ctest-vn4-24890064 passed 2026-03-03 13:22:28,718 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c0bac4c2-2627-4fd8-aa5f-354a5328b376 2026-03-03 13:22:28,726 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e8db8b20-ca04-4cca-bfbc-a344ac3bbd04 2026-03-03 13:22:28,732 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e8db8b20-ca04-4cca-bfbc-a344ac3bbd04 2026-03-03 13:22:28,738 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/844ce623-795f-43d8-ac9b-dd0df63f8874 2026-03-03 13:22:28,748 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27474631:ctest-vn4-24890064', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-27474631', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13887628739093155800', 'uuid-lslong': '12276589702574289782'}, 'enable': 'true', 'created': '2026-03-03T13:22:27', 'last-modified': '2026-03-03T13:22:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.676452'} 2026-03-03 13:22:28,754 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-03 13:22:28,754 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-24890064 passed 2026-03-03 13:22:28,754 - DEBUG - ====Verifying policy data for ctest-vn4-24890064 in API_Server ====== 2026-03-03 13:22:28,754 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-03-03 13:22:28,761 - DEBUG - Requesting: http://10.0.0.33:8082/domain/7574b7af-7b8d-4793-a4c7-70ac143f4167 2026-03-03 13:22:28,770 - DEBUG - Requesting: http://10.0.0.33:8082/project/4d5c2b58-7ea7-49aa-a409-43140553cc37 2026-03-03 13:22:28,837 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c0bac4c2-2627-4fd8-aa5f-354a5328b376 2026-03-03 13:22:28,845 - DEBUG - ==>Verifying data for policy with id: 9ce6e06f-8cec-416e-b2ca-342984e807ce, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-27474631', 'ctest-policy1-62998901'] 2026-03-03 13:22:28,845 - INFO - VN ctest-vn4-24890064 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-03 13:22:28,845 - DEBUG - Verifying the vn in opserver 2026-03-03 13:22:28,845 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27474631:ctest-vn4-24890064 virtual network link through opserver 10.0.0.33 2026-03-03 13:22:28,845 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-03-03 13:22:29,134 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-03-03 13:22:29,193 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27474631:ctest-vn4-24890064', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27474631:ctest-vn4-24890064?flat'} 2026-03-03 13:22:29,193 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27474631:ctest-vn4-24890064 is found in opserver 2026-03-03 13:22:29,201 - DEBUG - Do not have enough data to verify VN in agent 2026-03-03 13:22:29,205 - DEBUG - VRF ids for VN ctest-vn4-24890064: {} 2026-03-03 13:22:29,206 - DEBUG - ====Verifying data for ctest-policy1-62998901 in API_Server ====== 2026-03-03 13:22:29,206 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-03-03 13:22:29,211 - DEBUG - Requesting: http://10.0.0.33:8082/domain/7574b7af-7b8d-4793-a4c7-70ac143f4167 2026-03-03 13:22:29,220 - DEBUG - Requesting: http://10.0.0.33:8082/project/4d5c2b58-7ea7-49aa-a409-43140553cc37 2026-03-03 13:22:29,293 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/9ce6e06f-8cec-416e-b2ca-342984e807ce 2026-03-03 13:22:29,304 - INFO - Verified policy ctest-policy1-62998901 in API Server, Result: True 2026-03-03 13:22:29,304 - INFO - Done with setup and verification, moving onto test .. 2026-03-03 13:22:29,313 - INFO - Deleting VN ctest-vn4-24890064 2026-03-03 13:22:29,419 - DEBUG - Response for deleting network () 2026-03-03 13:22:29,419 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e8db8b20-ca04-4cca-bfbc-a344ac3bbd04 2026-03-03 13:22:29,423 - DEBUG - Response Code: 404 2026-03-03 13:22:29,424 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-03-03 13:22:29,428 - DEBUG - Requesting: http://10.0.0.33:8082/domain/7574b7af-7b8d-4793-a4c7-70ac143f4167 2026-03-03 13:22:29,478 - DEBUG - Requesting: http://10.0.0.33:8082/project/4d5c2b58-7ea7-49aa-a409-43140553cc37 2026-03-03 13:22:29,550 - INFO - Validated that VN ctest-vn4-24890064 is not found in API Server 2026-03-03 13:22:29,558 - DEBUG - VN ctest-vn4-24890064 is not present in Agent 10.0.0.33 2026-03-03 13:22:29,558 - INFO - Validated that VN ctest-vn4-24890064 is not in any agent 2026-03-03 13:22:29,572 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-24890064 info 2026-03-03 13:22:29,595 - INFO - Deleted policy ctest-policy1-62998901 2026-03-03 13:22:29,757 - DEBUG - policy ctest-policy1-62998901 is not found in API Server 2026-03-03 13:22:30,010 - DEBUG - No XMPP flaps were noticed during the test