2026-03-24 13:46:02,100 - INFO - Domain Default found not creating 2026-03-24 13:46:02,324 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-20786447 not found, creating it 2026-03-24 13:46:02,819 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-20786447, ID : 6d9e5b27-c9c2-4515-b936-cff674b4ee56 2026-03-24 13:46:04,527 - INFO - ================================================================================ 2026-03-24 13:46:04,527 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-24 13:46:04,803 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2026-03-24 13:46:04,803 - INFO - Initial checks done. Running the testcase now 2026-03-24 13:46:04,803 - INFO - 2026-03-24 13:46:04,803 - INFO - ================================================================================ 2026-03-24 13:46:04,803 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-24 13:46:04,803 - 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-24 13:46:05,100 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2026-03-24 13:46:05,100 - INFO - Initial checks done. Running the testcase now 2026-03-24 13:46:05,100 - INFO - 2026-03-24 13:46:05,471 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20786447:ctest-vn4-02999482, 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-20786447:ctest-vn4-02999482, 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-20786447:ctest-vn4-02999482, 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-20786447:ctest-vn4-02999482, 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-24 13:46:06,041 - DEBUG - Response for create_network : {'network': {'id': '37a2a055-4ddb-4d57-92a9-7e4f472497d1', 'name': 'ctest-vn4-02999482', 'tenant_id': '6d9e5b27c9c24515b936cff674b4ee56', 'project_id': '6d9e5b27c9c24515b936cff674b4ee56', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20786447', 'ctest-vn4-02999482'], 'port_security_enabled': True, 'description': ''}} 2026-03-24 13:46:06,274 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ea50191d-fa05-44ec-83c0-2137e52664cb', 'name': '', 'tenant_id': '6d9e5b27c9c24515b936cff674b4ee56', 'network_id': '37a2a055-4ddb-4d57-92a9-7e4f472497d1', 'ip_version': 4, 'cidr': '142.198.194.192/26', 'allocation_pools': [{'start': '142.198.194.194', 'end': '142.198.194.254'}], 'gateway_ip': '142.198.194.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '142.198.194.194', 'tags': [], 'project_id': '6d9e5b27c9c24515b936cff674b4ee56'}} 2026-03-24 13:46:06,504 - DEBUG - Response for create_subnet : {'subnet': {'id': '44b3aca4-e4d1-42e8-8373-b841f1c95b8e', 'name': '', 'tenant_id': '6d9e5b27c9c24515b936cff674b4ee56', 'network_id': '37a2a055-4ddb-4d57-92a9-7e4f472497d1', 'ip_version': 6, 'cidr': '32d1:ca75:d39:3f21:14ac:f727::/96', 'allocation_pools': [{'start': '32d1:ca75:d39:3f21:14ac:f727:0:2', 'end': '32d1:ca75:d39:3f21:14ac:f727:ffff:fffe'}], 'gateway_ip': '32d1:ca75:d39:3f21:14ac:f727:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '32d1:ca75:d39:3f21:14ac:f727:0:2', 'tags': [], 'project_id': '6d9e5b27c9c24515b936cff674b4ee56'}} 2026-03-24 13:46:06,528 - INFO - Created VN ctest-vn4-02999482 2026-03-24 13:46:06,588 - DEBUG - VN ctest-vn4-02999482 UUID is 37a2a055-4ddb-4d57-92a9-7e4f472497d1 2026-03-24 13:46:06,828 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '37a2a055-4ddb-4d57-92a9-7e4f472497d1', 'name': 'ctest-vn4-02999482', 'tenant_id': '6d9e5b27c9c24515b936cff674b4ee56', 'project_id': '6d9e5b27c9c24515b936cff674b4ee56', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ea50191d-fa05-44ec-83c0-2137e52664cb', '44b3aca4-e4d1-42e8-8373-b841f1c95b8e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20786447', 'ctest-vn4-02999482'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20786447', 'ctest-policy1-38771586']], 'subnet_ipam': [{'subnet_cidr': '142.198.194.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '32d1:ca75:d39:3f21:14ac:f727::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-24 13:46:07,007 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-03-24 13:46:07,332 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-03-24 13:46:07,378 - DEBUG - Requesting: http://10.0.0.50:8082/domain/76f104c7-22de-4979-81c0-a4a0d0890adf 2026-03-24 13:46:07,391 - DEBUG - Requesting: http://10.0.0.50:8082/project/6d9e5b27-c9c2-4515-b936-cff674b4ee56 2026-03-24 13:46:07,470 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/37a2a055-4ddb-4d57-92a9-7e4f472497d1 2026-03-24 13:46:07,485 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/37a2a055-4ddb-4d57-92a9-7e4f472497d1 2026-03-24 13:46:07,496 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a6712498-b97b-4115-bf0e-a719b8cc085f 2026-03-24 13:46:07,506 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a6712498-b97b-4115-bf0e-a719b8cc085f 2026-03-24 13:46:07,515 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/cd7b7bfe-a89c-462a-bd3b-637f31c0e65b 2026-03-24 13:46:07,523 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-24 13:46:07,523 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/37a2a055-4ddb-4d57-92a9-7e4f472497d1 2026-03-24 13:46:07,534 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a6712498-b97b-4115-bf0e-a719b8cc085f 2026-03-24 13:46:07,551 - INFO - Verified VN network id 11 for VN 37a2a055-4ddb-4d57-92a9-7e4f472497d1 2026-03-24 13:46:07,551 - INFO - Verifications in API Server for VN ctest-vn4-02999482 passed 2026-03-24 13:46:07,551 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/37a2a055-4ddb-4d57-92a9-7e4f472497d1 2026-03-24 13:46:07,564 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a6712498-b97b-4115-bf0e-a719b8cc085f 2026-03-24 13:46:07,572 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a6712498-b97b-4115-bf0e-a719b8cc085f 2026-03-24 13:46:07,581 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/cd7b7bfe-a89c-462a-bd3b-637f31c0e65b 2026-03-24 13:46:07,595 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20786447:ctest-vn4-02999482', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-20786447', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4008942906552044887', 'uuid-lslong': '10568116879562676177'}, 'enable': 'true', 'created': '2026-03-24T13:46:06', 'last-modified': '2026-03-24T13:46:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.803707'} 2026-03-24 13:46:07,602 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-24 13:46:07,602 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-02999482 passed 2026-03-24 13:46:07,602 - DEBUG - ====Verifying policy data for ctest-vn4-02999482 in API_Server ====== 2026-03-24 13:46:07,602 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-03-24 13:46:07,609 - DEBUG - Requesting: http://10.0.0.50:8082/domain/76f104c7-22de-4979-81c0-a4a0d0890adf 2026-03-24 13:46:07,622 - DEBUG - Requesting: http://10.0.0.50:8082/project/6d9e5b27-c9c2-4515-b936-cff674b4ee56 2026-03-24 13:46:07,702 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/37a2a055-4ddb-4d57-92a9-7e4f472497d1 2026-03-24 13:46:07,713 - DEBUG - ==>Verifying data for policy with id: 91df8ac6-9413-412c-a8c4-804636accf51, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20786447', 'ctest-policy1-38771586'] 2026-03-24 13:46:07,713 - INFO - VN ctest-vn4-02999482 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-24 13:46:07,713 - DEBUG - Verifying the vn in opserver 2026-03-24 13:46:07,713 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20786447:ctest-vn4-02999482 virtual network link through opserver 10.0.0.50 2026-03-24 13:46:07,713 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-03-24 13:46:08,019 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-03-24 13:46:08,097 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20786447:ctest-vn4-02999482', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20786447:ctest-vn4-02999482?flat'} 2026-03-24 13:46:08,097 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20786447:ctest-vn4-02999482 is found in opserver 2026-03-24 13:46:08,108 - DEBUG - Do not have enough data to verify VN in agent 2026-03-24 13:46:08,114 - DEBUG - VRF ids for VN ctest-vn4-02999482: {} 2026-03-24 13:46:08,115 - DEBUG - ====Verifying data for ctest-policy1-38771586 in API_Server ====== 2026-03-24 13:46:08,115 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-03-24 13:46:08,121 - DEBUG - Requesting: http://10.0.0.50:8082/domain/76f104c7-22de-4979-81c0-a4a0d0890adf 2026-03-24 13:46:08,133 - DEBUG - Requesting: http://10.0.0.50:8082/project/6d9e5b27-c9c2-4515-b936-cff674b4ee56 2026-03-24 13:46:08,204 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/91df8ac6-9413-412c-a8c4-804636accf51 2026-03-24 13:46:08,216 - INFO - Verified policy ctest-policy1-38771586 in API Server, Result: True 2026-03-24 13:46:08,216 - INFO - Done with setup and verification, moving onto test .. 2026-03-24 13:46:08,224 - INFO - Deleting VN ctest-vn4-02999482 2026-03-24 13:46:08,392 - DEBUG - Response for deleting network () 2026-03-24 13:46:08,393 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a6712498-b97b-4115-bf0e-a719b8cc085f 2026-03-24 13:46:08,398 - DEBUG - Response Code: 404 2026-03-24 13:46:08,399 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-03-24 13:46:08,406 - DEBUG - Requesting: http://10.0.0.50:8082/domain/76f104c7-22de-4979-81c0-a4a0d0890adf 2026-03-24 13:46:08,463 - DEBUG - Requesting: http://10.0.0.50:8082/project/6d9e5b27-c9c2-4515-b936-cff674b4ee56 2026-03-24 13:46:08,551 - INFO - Validated that VN ctest-vn4-02999482 is not found in API Server 2026-03-24 13:46:08,563 - DEBUG - VN ctest-vn4-02999482 is not present in Agent 10.0.0.50 2026-03-24 13:46:08,563 - INFO - Validated that VN ctest-vn4-02999482 is not in any agent 2026-03-24 13:46:08,582 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-02999482 info 2026-03-24 13:46:08,611 - INFO - Deleted policy ctest-policy1-38771586 2026-03-24 13:46:08,787 - DEBUG - policy ctest-policy1-38771586 is not found in API Server 2026-03-24 13:46:09,057 - DEBUG - No XMPP flaps were noticed during the test 2026-03-24 13:46:09,057 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-03-24 13:46:09,057 - INFO - -------------------------------------------------------------------------------- 2026-03-24 13:46:09,357 - DEBUG - No XMPP flaps were noticed during the test 2026-03-24 13:46:09,357 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-03-24 13:46:09,357 - INFO - -------------------------------------------------------------------------------- 2026-03-24 13:46:10,118 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-20786447, ID : 6d9e5b27-c9c2-4515-b936-cff674b4ee56