2026-01-15 09:12:46,992 - INFO - Domain Default found not creating 2026-01-15 09:12:47,151 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-04185027 not found, creating it 2026-01-15 09:12:47,649 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-04185027, ID : ef5d259f-bcf0-44dc-a054-7035880d0c85 2026-01-15 09:12:49,057 - INFO - ================================================================================ 2026-01-15 09:12:49,057 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-15 09:12:49,315 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.242': '0'}} with 2026-01-15 09:12:49,315 - INFO - Initial checks done. Running the testcase now 2026-01-15 09:12:49,316 - INFO - 2026-01-15 09:12:49,316 - INFO - ================================================================================ 2026-01-15 09:12:49,316 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-15 09:12:49,316 - 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-01-15 09:12:49,603 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.242': '0'}} with 2026-01-15 09:12:49,603 - INFO - Initial checks done. Running the testcase now 2026-01-15 09:12:49,603 - INFO - 2026-01-15 09:12:49,952 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04185027:ctest-vn4-13518791, 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-04185027:ctest-vn4-13518791, 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-04185027:ctest-vn4-13518791, 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-04185027:ctest-vn4-13518791, 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-01-15 09:12:50,446 - DEBUG - Response for create_network : {'network': {'id': 'd37d800f-6471-407e-965f-8a6b8444b6b7', 'name': 'ctest-vn4-13518791', 'tenant_id': 'ef5d259fbcf044dca0547035880d0c85', 'project_id': 'ef5d259fbcf044dca0547035880d0c85', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04185027', 'ctest-vn4-13518791'], 'port_security_enabled': True, 'description': ''}} 2026-01-15 09:12:50,650 - DEBUG - Response for create_subnet : {'subnet': {'id': '4f4fb359-2032-4e70-a33a-159ffacc2597', 'name': '', 'tenant_id': 'ef5d259fbcf044dca0547035880d0c85', 'network_id': 'd37d800f-6471-407e-965f-8a6b8444b6b7', 'ip_version': 4, 'cidr': '189.148.7.128/26', 'allocation_pools': [{'start': '189.148.7.130', 'end': '189.148.7.190'}], 'gateway_ip': '189.148.7.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '189.148.7.130', 'tags': [], 'project_id': 'ef5d259fbcf044dca0547035880d0c85'}} 2026-01-15 09:12:50,854 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e80e0533-9483-406e-8493-43d536aca00b', 'name': '', 'tenant_id': 'ef5d259fbcf044dca0547035880d0c85', 'network_id': 'd37d800f-6471-407e-965f-8a6b8444b6b7', 'ip_version': 6, 'cidr': '3d2a:244c:b533:8874:f07:d035::/96', 'allocation_pools': [{'start': '3d2a:244c:b533:8874:f07:d035:0:2', 'end': '3d2a:244c:b533:8874:f07:d035:ffff:fffe'}], 'gateway_ip': '3d2a:244c:b533:8874:f07:d035:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3d2a:244c:b533:8874:f07:d035:0:2', 'tags': [], 'project_id': 'ef5d259fbcf044dca0547035880d0c85'}} 2026-01-15 09:12:50,873 - INFO - Created VN ctest-vn4-13518791 2026-01-15 09:12:50,926 - DEBUG - VN ctest-vn4-13518791 UUID is d37d800f-6471-407e-965f-8a6b8444b6b7 2026-01-15 09:12:51,122 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd37d800f-6471-407e-965f-8a6b8444b6b7', 'name': 'ctest-vn4-13518791', 'tenant_id': 'ef5d259fbcf044dca0547035880d0c85', 'project_id': 'ef5d259fbcf044dca0547035880d0c85', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4f4fb359-2032-4e70-a33a-159ffacc2597', 'e80e0533-9483-406e-8493-43d536aca00b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04185027', 'ctest-vn4-13518791'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04185027', 'ctest-policy1-88288853']], 'subnet_ipam': [{'subnet_cidr': '189.148.7.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3d2a:244c:b533:8874:f07:d035::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-15 09:12:51,286 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-15 09:12:51,590 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-15 09:12:51,618 - DEBUG - Requesting: http://10.0.0.22:8082/domain/8043ddf2-b842-4863-a86d-8f79735d90aa 2026-01-15 09:12:51,631 - DEBUG - Requesting: http://10.0.0.22:8082/project/ef5d259f-bcf0-44dc-a054-7035880d0c85 2026-01-15 09:12:51,708 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d37d800f-6471-407e-965f-8a6b8444b6b7 2026-01-15 09:12:51,721 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d37d800f-6471-407e-965f-8a6b8444b6b7 2026-01-15 09:12:51,730 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/cb45a8ae-9714-4fe7-be31-c57841894954 2026-01-15 09:12:51,736 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/cb45a8ae-9714-4fe7-be31-c57841894954 2026-01-15 09:12:51,744 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/d9665ee0-9881-41cb-89bc-a943ca8439a8 2026-01-15 09:12:51,751 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-15 09:12:51,751 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d37d800f-6471-407e-965f-8a6b8444b6b7 2026-01-15 09:12:51,761 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/cb45a8ae-9714-4fe7-be31-c57841894954 2026-01-15 09:12:51,777 - INFO - Verified VN network id 11 for VN d37d800f-6471-407e-965f-8a6b8444b6b7 2026-01-15 09:12:51,777 - INFO - Verifications in API Server for VN ctest-vn4-13518791 passed 2026-01-15 09:12:51,777 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d37d800f-6471-407e-965f-8a6b8444b6b7 2026-01-15 09:12:51,788 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/cb45a8ae-9714-4fe7-be31-c57841894954 2026-01-15 09:12:51,794 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/cb45a8ae-9714-4fe7-be31-c57841894954 2026-01-15 09:12:51,802 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/d9665ee0-9881-41cb-89bc-a943ca8439a8 2026-01-15 09:12:51,815 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04185027:ctest-vn4-13518791', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-04185027', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15239477517689634942', 'uuid-lslong': '10835531422861932215'}, 'enable': 'true', 'created': '2026-01-15T09:12:50', 'last-modified': '2026-01-15T09:12:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.714422'} 2026-01-15 09:12:51,821 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-15 09:12:51,821 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-13518791 passed 2026-01-15 09:12:51,821 - DEBUG - ====Verifying policy data for ctest-vn4-13518791 in API_Server ====== 2026-01-15 09:12:51,821 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-15 09:12:51,826 - DEBUG - Requesting: http://10.0.0.22:8082/domain/8043ddf2-b842-4863-a86d-8f79735d90aa 2026-01-15 09:12:51,838 - DEBUG - Requesting: http://10.0.0.22:8082/project/ef5d259f-bcf0-44dc-a054-7035880d0c85 2026-01-15 09:12:51,906 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d37d800f-6471-407e-965f-8a6b8444b6b7 2026-01-15 09:12:51,917 - DEBUG - ==>Verifying data for policy with id: 6d5244a7-61d5-4043-b3d7-83cbe3f17c08, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04185027', 'ctest-policy1-88288853'] 2026-01-15 09:12:51,917 - INFO - VN ctest-vn4-13518791 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-15 09:12:51,917 - DEBUG - Verifying the vn in opserver 2026-01-15 09:12:51,917 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04185027:ctest-vn4-13518791 virtual network link through opserver 10.0.0.22 2026-01-15 09:12:51,917 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-01-15 09:12:52,207 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-01-15 09:12:52,280 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04185027:ctest-vn4-13518791', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04185027:ctest-vn4-13518791?flat'} 2026-01-15 09:12:52,280 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04185027:ctest-vn4-13518791 is found in opserver 2026-01-15 09:12:52,290 - DEBUG - Do not have enough data to verify VN in agent 2026-01-15 09:12:52,294 - DEBUG - VRF ids for VN ctest-vn4-13518791: {} 2026-01-15 09:12:52,295 - DEBUG - ====Verifying data for ctest-policy1-88288853 in API_Server ====== 2026-01-15 09:12:52,295 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-15 09:12:52,300 - DEBUG - Requesting: http://10.0.0.22:8082/domain/8043ddf2-b842-4863-a86d-8f79735d90aa 2026-01-15 09:12:52,310 - DEBUG - Requesting: http://10.0.0.22:8082/project/ef5d259f-bcf0-44dc-a054-7035880d0c85 2026-01-15 09:12:52,378 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/6d5244a7-61d5-4043-b3d7-83cbe3f17c08 2026-01-15 09:12:52,389 - INFO - Verified policy ctest-policy1-88288853 in API Server, Result: True 2026-01-15 09:12:52,389 - INFO - Done with setup and verification, moving onto test .. 2026-01-15 09:12:52,397 - INFO - Deleting VN ctest-vn4-13518791 2026-01-15 09:12:52,512 - DEBUG - Response for deleting network () 2026-01-15 09:12:52,512 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/cb45a8ae-9714-4fe7-be31-c57841894954 2026-01-15 09:12:52,518 - DEBUG - Response Code: 404 2026-01-15 09:12:52,519 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-15 09:12:52,525 - DEBUG - Requesting: http://10.0.0.22:8082/domain/8043ddf2-b842-4863-a86d-8f79735d90aa 2026-01-15 09:12:52,579 - DEBUG - Requesting: http://10.0.0.22:8082/project/ef5d259f-bcf0-44dc-a054-7035880d0c85 2026-01-15 09:12:52,655 - INFO - Validated that VN ctest-vn4-13518791 is not found in API Server 2026-01-15 09:12:52,665 - DEBUG - VN ctest-vn4-13518791 is not present in Agent 10.0.0.22 2026-01-15 09:12:52,665 - INFO - Validated that VN ctest-vn4-13518791 is not in any agent 2026-01-15 09:12:52,679 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-13518791 info 2026-01-15 09:12:52,705 - INFO - Deleted policy ctest-policy1-88288853 2026-01-15 09:12:52,870 - DEBUG - policy ctest-policy1-88288853 is not found in API Server 2026-01-15 09:12:53,124 - DEBUG - No XMPP flaps were noticed during the test