2026-03-25 16:01:55,630 - INFO - Domain Default found not creating 2026-03-25 16:01:55,942 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-59780381 not found, creating it 2026-03-25 16:01:56,593 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-59780381, ID : 1ae850e4-fb0c-4322-b280-2d8934da58b8 2026-03-25 16:01:58,451 - INFO - ================================================================================ 2026-03-25 16:01:58,451 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-25 16:01:58,731 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with 2026-03-25 16:01:58,731 - INFO - Initial checks done. Running the testcase now 2026-03-25 16:01:58,731 - INFO - 2026-03-25 16:01:58,731 - INFO - ================================================================================ 2026-03-25 16:01:58,731 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-25 16:01:58,731 - 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-25 16:01:59,065 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with 2026-03-25 16:01:59,065 - INFO - Initial checks done. Running the testcase now 2026-03-25 16:01:59,066 - INFO - 2026-03-25 16:01:59,532 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59780381:ctest-vn4-99219601, 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-59780381:ctest-vn4-99219601, 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-59780381:ctest-vn4-99219601, 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-59780381:ctest-vn4-99219601, 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-25 16:02:00,177 - DEBUG - Response for create_network : {'network': {'id': '9b32f112-6c90-454d-8737-a4ca20c23050', 'name': 'ctest-vn4-99219601', 'tenant_id': '1ae850e4fb0c4322b2802d8934da58b8', 'project_id': '1ae850e4fb0c4322b2802d8934da58b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-59780381', 'ctest-vn4-99219601'], 'port_security_enabled': True, 'description': ''}} 2026-03-25 16:02:00,330 - DEBUG - Response for create_subnet : {'subnet': {'id': '1b07563c-c13f-4033-9a73-614fbf9d7f06', 'name': '', 'tenant_id': '1ae850e4fb0c4322b2802d8934da58b8', 'network_id': '9b32f112-6c90-454d-8737-a4ca20c23050', 'ip_version': 4, 'cidr': '134.139.200.128/26', 'allocation_pools': [{'start': '134.139.200.130', 'end': '134.139.200.190'}], 'gateway_ip': '134.139.200.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '134.139.200.130', 'tags': [], 'project_id': '1ae850e4fb0c4322b2802d8934da58b8'}} 2026-03-25 16:02:00,557 - DEBUG - Response for create_subnet : {'subnet': {'id': '585270ec-6f45-4998-ae57-3d681479fe70', 'name': '', 'tenant_id': '1ae850e4fb0c4322b2802d8934da58b8', 'network_id': '9b32f112-6c90-454d-8737-a4ca20c23050', 'ip_version': 6, 'cidr': '3f6f:f34c:d449:f5a:ddf6:381e::/96', 'allocation_pools': [{'start': '3f6f:f34c:d449:f5a:ddf6:381e:0:2', 'end': '3f6f:f34c:d449:f5a:ddf6:381e:ffff:fffe'}], 'gateway_ip': '3f6f:f34c:d449:f5a:ddf6:381e:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3f6f:f34c:d449:f5a:ddf6:381e:0:2', 'tags': [], 'project_id': '1ae850e4fb0c4322b2802d8934da58b8'}} 2026-03-25 16:02:00,591 - INFO - Created VN ctest-vn4-99219601 2026-03-25 16:02:00,649 - DEBUG - VN ctest-vn4-99219601 UUID is 9b32f112-6c90-454d-8737-a4ca20c23050 2026-03-25 16:02:00,897 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9b32f112-6c90-454d-8737-a4ca20c23050', 'name': 'ctest-vn4-99219601', 'tenant_id': '1ae850e4fb0c4322b2802d8934da58b8', 'project_id': '1ae850e4fb0c4322b2802d8934da58b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1b07563c-c13f-4033-9a73-614fbf9d7f06', '585270ec-6f45-4998-ae57-3d681479fe70'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-59780381', 'ctest-vn4-99219601'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-59780381', 'ctest-policy1-78284962']], 'subnet_ipam': [{'subnet_cidr': '134.139.200.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3f6f:f34c:d449:f5a:ddf6:381e::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-25 16:02:01,065 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-03-25 16:02:01,414 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-03-25 16:02:01,480 - DEBUG - Requesting: http://10.0.0.242:8082/domain/c357ed48-130c-47be-8475-a8fb3f45bc45 2026-03-25 16:02:01,498 - DEBUG - Requesting: http://10.0.0.242:8082/project/1ae850e4-fb0c-4322-b280-2d8934da58b8 2026-03-25 16:02:01,574 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/9b32f112-6c90-454d-8737-a4ca20c23050 2026-03-25 16:02:01,593 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/9b32f112-6c90-454d-8737-a4ca20c23050 2026-03-25 16:02:01,604 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/b2894cfe-6f91-4cd3-9b1d-5fa0c53b9b21 2026-03-25 16:02:01,611 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/b2894cfe-6f91-4cd3-9b1d-5fa0c53b9b21 2026-03-25 16:02:01,618 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/9d2c598a-d44a-4fd4-9426-fb6496f90492 2026-03-25 16:02:01,626 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-25 16:02:01,626 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/9b32f112-6c90-454d-8737-a4ca20c23050 2026-03-25 16:02:01,638 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/b2894cfe-6f91-4cd3-9b1d-5fa0c53b9b21 2026-03-25 16:02:01,656 - INFO - Verified VN network id 11 for VN 9b32f112-6c90-454d-8737-a4ca20c23050 2026-03-25 16:02:01,656 - INFO - Verifications in API Server for VN ctest-vn4-99219601 passed 2026-03-25 16:02:01,656 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/9b32f112-6c90-454d-8737-a4ca20c23050 2026-03-25 16:02:01,668 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/b2894cfe-6f91-4cd3-9b1d-5fa0c53b9b21 2026-03-25 16:02:01,677 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/b2894cfe-6f91-4cd3-9b1d-5fa0c53b9b21 2026-03-25 16:02:01,685 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/9d2c598a-d44a-4fd4-9426-fb6496f90492 2026-03-25 16:02:01,699 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59780381:ctest-vn4-99219601', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-59780381', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11183265886147462477', 'uuid-lslong': '9743437506879303760'}, 'enable': 'true', 'created': '2026-03-25T16:02:00', 'last-modified': '2026-03-25T16:02:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.831708'} 2026-03-25 16:02:01,709 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-25 16:02:01,709 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-99219601 passed 2026-03-25 16:02:01,709 - DEBUG - ====Verifying policy data for ctest-vn4-99219601 in API_Server ====== 2026-03-25 16:02:01,709 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-03-25 16:02:01,717 - DEBUG - Requesting: http://10.0.0.242:8082/domain/c357ed48-130c-47be-8475-a8fb3f45bc45 2026-03-25 16:02:01,730 - DEBUG - Requesting: http://10.0.0.242:8082/project/1ae850e4-fb0c-4322-b280-2d8934da58b8 2026-03-25 16:02:01,809 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/9b32f112-6c90-454d-8737-a4ca20c23050 2026-03-25 16:02:01,823 - DEBUG - ==>Verifying data for policy with id: 83636976-2e0e-42f9-bb32-367ef3865601, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-59780381', 'ctest-policy1-78284962'] 2026-03-25 16:02:01,823 - INFO - VN ctest-vn4-99219601 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-25 16:02:01,823 - DEBUG - Verifying the vn in opserver 2026-03-25 16:02:01,823 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59780381:ctest-vn4-99219601 virtual network link through opserver 10.0.0.242 2026-03-25 16:02:01,823 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-03-25 16:02:02,131 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-03-25 16:02:02,217 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59780381:ctest-vn4-99219601', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59780381:ctest-vn4-99219601?flat'} 2026-03-25 16:02:02,218 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59780381:ctest-vn4-99219601 is found in opserver 2026-03-25 16:02:02,230 - DEBUG - Do not have enough data to verify VN in agent 2026-03-25 16:02:02,238 - DEBUG - VRF ids for VN ctest-vn4-99219601: {} 2026-03-25 16:02:02,239 - DEBUG - ====Verifying data for ctest-policy1-78284962 in API_Server ====== 2026-03-25 16:02:02,239 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-03-25 16:02:02,246 - DEBUG - Requesting: http://10.0.0.242:8082/domain/c357ed48-130c-47be-8475-a8fb3f45bc45 2026-03-25 16:02:02,263 - DEBUG - Requesting: http://10.0.0.242:8082/project/1ae850e4-fb0c-4322-b280-2d8934da58b8 2026-03-25 16:02:02,347 - DEBUG - Requesting: http://10.0.0.242:8082/network-policy/83636976-2e0e-42f9-bb32-367ef3865601 2026-03-25 16:02:02,360 - INFO - Verified policy ctest-policy1-78284962 in API Server, Result: True 2026-03-25 16:02:02,360 - INFO - Done with setup and verification, moving onto test .. 2026-03-25 16:02:02,369 - INFO - Deleting VN ctest-vn4-99219601 2026-03-25 16:02:02,496 - DEBUG - Response for deleting network () 2026-03-25 16:02:02,496 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/b2894cfe-6f91-4cd3-9b1d-5fa0c53b9b21 2026-03-25 16:02:02,503 - DEBUG - Response Code: 404 2026-03-25 16:02:02,503 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-03-25 16:02:02,510 - DEBUG - Requesting: http://10.0.0.242:8082/domain/c357ed48-130c-47be-8475-a8fb3f45bc45 2026-03-25 16:02:02,571 - DEBUG - Requesting: http://10.0.0.242:8082/project/1ae850e4-fb0c-4322-b280-2d8934da58b8 2026-03-25 16:02:02,648 - INFO - Validated that VN ctest-vn4-99219601 is not found in API Server 2026-03-25 16:02:02,659 - DEBUG - VN ctest-vn4-99219601 is not present in Agent 10.0.0.242 2026-03-25 16:02:02,660 - INFO - Validated that VN ctest-vn4-99219601 is not in any agent 2026-03-25 16:02:02,674 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-99219601 info 2026-03-25 16:02:02,702 - INFO - Deleted policy ctest-policy1-78284962 2026-03-25 16:02:02,873 - DEBUG - policy ctest-policy1-78284962 is not found in API Server 2026-03-25 16:02:03,167 - DEBUG - No XMPP flaps were noticed during the test