2026-04-20 02:08:55,152 - INFO - Domain Default found not creating 2026-04-20 02:08:55,321 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-25956077 not found, creating it 2026-04-20 02:08:55,769 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-25956077, ID : b945cf6c-8386-40d8-b196-bef153c18175 2026-04-20 02:08:57,198 - INFO - ================================================================================ 2026-04-20 02:08:57,198 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-20 02:08:57,452 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.14': '0'}} with 2026-04-20 02:08:57,452 - INFO - Initial checks done. Running the testcase now 2026-04-20 02:08:57,452 - INFO - 2026-04-20 02:08:57,452 - INFO - ================================================================================ 2026-04-20 02:08:57,452 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-20 02:08:57,452 - 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-04-20 02:08:57,741 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.14': '0'}} with 2026-04-20 02:08:57,741 - INFO - Initial checks done. Running the testcase now 2026-04-20 02:08:57,741 - INFO - 2026-04-20 02:08:58,100 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25956077:ctest-vn4-18053630, 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-25956077:ctest-vn4-18053630, 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-25956077:ctest-vn4-18053630, 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-25956077:ctest-vn4-18053630, 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-04-20 02:08:58,591 - DEBUG - Response for create_network : {'network': {'id': '81a7a762-06f6-4b8d-95a4-22be46cfbe82', 'name': 'ctest-vn4-18053630', 'tenant_id': 'b945cf6c838640d8b196bef153c18175', 'project_id': 'b945cf6c838640d8b196bef153c18175', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25956077', 'ctest-vn4-18053630'], 'port_security_enabled': True, 'description': ''}} 2026-04-20 02:08:58,745 - DEBUG - Response for create_subnet : {'subnet': {'id': '432e9f85-d10e-439d-b29c-6faf3f26f883', 'name': '', 'tenant_id': 'b945cf6c838640d8b196bef153c18175', 'network_id': '81a7a762-06f6-4b8d-95a4-22be46cfbe82', 'ip_version': 4, 'cidr': '82.225.237.64/26', 'allocation_pools': [{'start': '82.225.237.66', 'end': '82.225.237.126'}], 'gateway_ip': '82.225.237.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '82.225.237.66', 'tags': [], 'project_id': 'b945cf6c838640d8b196bef153c18175'}} 2026-04-20 02:08:58,929 - DEBUG - Response for create_subnet : {'subnet': {'id': '2ff0405e-c196-4f05-ab7d-2df6d152cc57', 'name': '', 'tenant_id': 'b945cf6c838640d8b196bef153c18175', 'network_id': '81a7a762-06f6-4b8d-95a4-22be46cfbe82', 'ip_version': 6, 'cidr': '2ad1:c0c2:e215:f9f0:6509:b62f::/96', 'allocation_pools': [{'start': '2ad1:c0c2:e215:f9f0:6509:b62f:0:2', 'end': '2ad1:c0c2:e215:f9f0:6509:b62f:ffff:fffe'}], 'gateway_ip': '2ad1:c0c2:e215:f9f0:6509:b62f:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2ad1:c0c2:e215:f9f0:6509:b62f:0:2', 'tags': [], 'project_id': 'b945cf6c838640d8b196bef153c18175'}} 2026-04-20 02:08:58,949 - INFO - Created VN ctest-vn4-18053630 2026-04-20 02:08:59,004 - DEBUG - VN ctest-vn4-18053630 UUID is 81a7a762-06f6-4b8d-95a4-22be46cfbe82 2026-04-20 02:08:59,206 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '81a7a762-06f6-4b8d-95a4-22be46cfbe82', 'name': 'ctest-vn4-18053630', 'tenant_id': 'b945cf6c838640d8b196bef153c18175', 'project_id': 'b945cf6c838640d8b196bef153c18175', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['432e9f85-d10e-439d-b29c-6faf3f26f883', '2ff0405e-c196-4f05-ab7d-2df6d152cc57'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25956077', 'ctest-vn4-18053630'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25956077', 'ctest-policy1-35861328']], 'subnet_ipam': [{'subnet_cidr': '82.225.237.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2ad1:c0c2:e215:f9f0:6509:b62f::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-20 02:08:59,372 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-04-20 02:08:59,666 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-04-20 02:08:59,699 - DEBUG - Requesting: http://10.0.0.249:8082/domain/8e255323-6bbc-4c0a-9dd3-2082d101b6ba 2026-04-20 02:08:59,711 - DEBUG - Requesting: http://10.0.0.249:8082/project/b945cf6c-8386-40d8-b196-bef153c18175 2026-04-20 02:08:59,781 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/81a7a762-06f6-4b8d-95a4-22be46cfbe82 2026-04-20 02:08:59,792 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/81a7a762-06f6-4b8d-95a4-22be46cfbe82 2026-04-20 02:08:59,801 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/4d7cd314-fb29-468b-9d32-480679eaa175 2026-04-20 02:08:59,808 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/4d7cd314-fb29-468b-9d32-480679eaa175 2026-04-20 02:08:59,815 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/13d2e11f-f168-44cc-9628-3ac057789b6e 2026-04-20 02:08:59,822 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-20 02:08:59,822 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/81a7a762-06f6-4b8d-95a4-22be46cfbe82 2026-04-20 02:08:59,831 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/4d7cd314-fb29-468b-9d32-480679eaa175 2026-04-20 02:08:59,843 - INFO - Verified VN network id 11 for VN 81a7a762-06f6-4b8d-95a4-22be46cfbe82 2026-04-20 02:08:59,843 - INFO - Verifications in API Server for VN ctest-vn4-18053630 passed 2026-04-20 02:08:59,843 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/81a7a762-06f6-4b8d-95a4-22be46cfbe82 2026-04-20 02:08:59,852 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/4d7cd314-fb29-468b-9d32-480679eaa175 2026-04-20 02:08:59,859 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/4d7cd314-fb29-468b-9d32-480679eaa175 2026-04-20 02:08:59,865 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/13d2e11f-f168-44cc-9628-3ac057789b6e 2026-04-20 02:08:59,875 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25956077:ctest-vn4-18053630', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-25956077', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9342619991468821389', 'uuid-lslong': '10782781608458960514'}, 'enable': 'true', 'created': '2026-04-20T02:08:58', 'last-modified': '2026-04-20T02:08:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.703137'} 2026-04-20 02:08:59,881 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-20 02:08:59,883 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-18053630 passed 2026-04-20 02:08:59,883 - DEBUG - ====Verifying policy data for ctest-vn4-18053630 in API_Server ====== 2026-04-20 02:08:59,883 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-04-20 02:08:59,889 - DEBUG - Requesting: http://10.0.0.249:8082/domain/8e255323-6bbc-4c0a-9dd3-2082d101b6ba 2026-04-20 02:08:59,899 - DEBUG - Requesting: http://10.0.0.249:8082/project/b945cf6c-8386-40d8-b196-bef153c18175 2026-04-20 02:08:59,968 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/81a7a762-06f6-4b8d-95a4-22be46cfbe82 2026-04-20 02:08:59,976 - DEBUG - ==>Verifying data for policy with id: ffdb241e-fdfa-431d-bcde-506292c19d81, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25956077', 'ctest-policy1-35861328'] 2026-04-20 02:08:59,977 - INFO - VN ctest-vn4-18053630 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-20 02:08:59,977 - DEBUG - Verifying the vn in opserver 2026-04-20 02:08:59,977 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25956077:ctest-vn4-18053630 virtual network link through opserver 10.0.0.249 2026-04-20 02:08:59,977 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-04-20 02:09:00,272 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-04-20 02:09:00,326 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25956077:ctest-vn4-18053630', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25956077:ctest-vn4-18053630?flat'} 2026-04-20 02:09:00,326 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25956077:ctest-vn4-18053630 is found in opserver 2026-04-20 02:09:00,335 - DEBUG - Do not have enough data to verify VN in agent 2026-04-20 02:09:00,340 - DEBUG - VRF ids for VN ctest-vn4-18053630: {} 2026-04-20 02:09:00,341 - DEBUG - ====Verifying data for ctest-policy1-35861328 in API_Server ====== 2026-04-20 02:09:00,341 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-04-20 02:09:00,347 - DEBUG - Requesting: http://10.0.0.249:8082/domain/8e255323-6bbc-4c0a-9dd3-2082d101b6ba 2026-04-20 02:09:00,357 - DEBUG - Requesting: http://10.0.0.249:8082/project/b945cf6c-8386-40d8-b196-bef153c18175 2026-04-20 02:09:00,427 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/ffdb241e-fdfa-431d-bcde-506292c19d81 2026-04-20 02:09:00,437 - INFO - Verified policy ctest-policy1-35861328 in API Server, Result: True 2026-04-20 02:09:00,437 - INFO - Done with setup and verification, moving onto test .. 2026-04-20 02:09:00,445 - INFO - Deleting VN ctest-vn4-18053630 2026-04-20 02:09:00,562 - DEBUG - Response for deleting network () 2026-04-20 02:09:00,562 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/4d7cd314-fb29-468b-9d32-480679eaa175 2026-04-20 02:09:00,567 - DEBUG - Response Code: 404 2026-04-20 02:09:00,567 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-04-20 02:09:00,572 - DEBUG - Requesting: http://10.0.0.249:8082/domain/8e255323-6bbc-4c0a-9dd3-2082d101b6ba 2026-04-20 02:09:00,628 - DEBUG - Requesting: http://10.0.0.249:8082/project/b945cf6c-8386-40d8-b196-bef153c18175 2026-04-20 02:09:00,696 - INFO - Validated that VN ctest-vn4-18053630 is not found in API Server 2026-04-20 02:09:00,705 - DEBUG - VN ctest-vn4-18053630 is not present in Agent 10.0.0.249 2026-04-20 02:09:00,705 - INFO - Validated that VN ctest-vn4-18053630 is not in any agent 2026-04-20 02:09:00,719 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-18053630 info 2026-04-20 02:09:00,744 - INFO - Deleted policy ctest-policy1-35861328 2026-04-20 02:09:00,908 - DEBUG - policy ctest-policy1-35861328 is not found in API Server 2026-04-20 02:09:01,160 - DEBUG - No XMPP flaps were noticed during the test