2026-02-04 16:46:05,378 - INFO - Domain Default found not creating 2026-02-04 16:46:05,536 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-55273775 not found, creating it 2026-02-04 16:46:05,973 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-55273775, ID : db4d4179-6968-4d4d-94b2-396798127991 2026-02-04 16:46:07,436 - INFO - ================================================================================ 2026-02-04 16:46:07,437 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-04 16:46:07,697 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-02-04 16:46:07,697 - INFO - Initial checks done. Running the testcase now 2026-02-04 16:46:07,697 - INFO - 2026-02-04 16:46:07,697 - INFO - ================================================================================ 2026-02-04 16:46:07,697 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-04 16:46:07,697 - 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-02-04 16:46:07,989 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-02-04 16:46:07,989 - INFO - Initial checks done. Running the testcase now 2026-02-04 16:46:07,989 - INFO - 2026-02-04 16:46:08,350 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55273775:ctest-vn4-24908755, 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-55273775:ctest-vn4-24908755, 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-55273775:ctest-vn4-24908755, 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-55273775:ctest-vn4-24908755, 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-02-04 16:46:08,833 - DEBUG - Response for create_network : {'network': {'id': '8972c423-ea37-4748-8d92-2d3186bd7893', 'name': 'ctest-vn4-24908755', 'tenant_id': 'db4d417969684d4d94b2396798127991', 'project_id': 'db4d417969684d4d94b2396798127991', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-55273775', 'ctest-vn4-24908755'], 'port_security_enabled': True, 'description': ''}} 2026-02-04 16:46:09,045 - DEBUG - Response for create_subnet : {'subnet': {'id': '796531bc-56d6-4774-84dd-27a0e9daab4f', 'name': '', 'tenant_id': 'db4d417969684d4d94b2396798127991', 'network_id': '8972c423-ea37-4748-8d92-2d3186bd7893', 'ip_version': 4, 'cidr': '194.104.31.128/26', 'allocation_pools': [{'start': '194.104.31.130', 'end': '194.104.31.190'}], 'gateway_ip': '194.104.31.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '194.104.31.130', 'tags': [], 'project_id': 'db4d417969684d4d94b2396798127991'}} 2026-02-04 16:46:09,229 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c554ff13-f6e4-4a4b-85f0-88c1cea389a1', 'name': '', 'tenant_id': 'db4d417969684d4d94b2396798127991', 'network_id': '8972c423-ea37-4748-8d92-2d3186bd7893', 'ip_version': 6, 'cidr': '293f:ad72:a431:5024:1876:f2a8::/96', 'allocation_pools': [{'start': '293f:ad72:a431:5024:1876:f2a8:0:2', 'end': '293f:ad72:a431:5024:1876:f2a8:ffff:fffe'}], 'gateway_ip': '293f:ad72:a431:5024:1876:f2a8:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '293f:ad72:a431:5024:1876:f2a8:0:2', 'tags': [], 'project_id': 'db4d417969684d4d94b2396798127991'}} 2026-02-04 16:46:09,250 - INFO - Created VN ctest-vn4-24908755 2026-02-04 16:46:09,301 - DEBUG - VN ctest-vn4-24908755 UUID is 8972c423-ea37-4748-8d92-2d3186bd7893 2026-02-04 16:46:09,498 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8972c423-ea37-4748-8d92-2d3186bd7893', 'name': 'ctest-vn4-24908755', 'tenant_id': 'db4d417969684d4d94b2396798127991', 'project_id': 'db4d417969684d4d94b2396798127991', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['796531bc-56d6-4774-84dd-27a0e9daab4f', 'c554ff13-f6e4-4a4b-85f0-88c1cea389a1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-55273775', 'ctest-vn4-24908755'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-55273775', 'ctest-policy1-07620851']], 'subnet_ipam': [{'subnet_cidr': '194.104.31.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '293f:ad72:a431:5024:1876:f2a8::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-04 16:46:09,661 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-04 16:46:09,953 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-04 16:46:09,981 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a99fb49a-81a3-4ff0-991e-add9885af21d 2026-02-04 16:46:09,992 - DEBUG - Requesting: http://10.0.0.38:8082/project/db4d4179-6968-4d4d-94b2-396798127991 2026-02-04 16:46:10,061 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8972c423-ea37-4748-8d92-2d3186bd7893 2026-02-04 16:46:10,072 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8972c423-ea37-4748-8d92-2d3186bd7893 2026-02-04 16:46:10,081 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f85929cb-009c-4c22-832e-4d3727860b43 2026-02-04 16:46:10,088 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f85929cb-009c-4c22-832e-4d3727860b43 2026-02-04 16:46:10,093 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/9271de0f-91d3-4373-ada2-4f9a0f1b3b1b 2026-02-04 16:46:10,099 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-04 16:46:10,099 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8972c423-ea37-4748-8d92-2d3186bd7893 2026-02-04 16:46:10,107 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f85929cb-009c-4c22-832e-4d3727860b43 2026-02-04 16:46:10,119 - INFO - Verified VN network id 11 for VN 8972c423-ea37-4748-8d92-2d3186bd7893 2026-02-04 16:46:10,119 - INFO - Verifications in API Server for VN ctest-vn4-24908755 passed 2026-02-04 16:46:10,119 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8972c423-ea37-4748-8d92-2d3186bd7893 2026-02-04 16:46:10,128 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f85929cb-009c-4c22-832e-4d3727860b43 2026-02-04 16:46:10,133 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f85929cb-009c-4c22-832e-4d3727860b43 2026-02-04 16:46:10,139 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/9271de0f-91d3-4373-ada2-4f9a0f1b3b1b 2026-02-04 16:46:10,149 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55273775:ctest-vn4-24908755', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-55273775', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9904194189073532744', 'uuid-lslong': '10201265796684806291'}, 'enable': 'true', 'created': '2026-02-04T16:46:08', 'last-modified': '2026-02-04T16:46:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.674223'} 2026-02-04 16:46:10,155 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-04 16:46:10,155 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-24908755 passed 2026-02-04 16:46:10,155 - DEBUG - ====Verifying policy data for ctest-vn4-24908755 in API_Server ====== 2026-02-04 16:46:10,155 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-04 16:46:10,161 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a99fb49a-81a3-4ff0-991e-add9885af21d 2026-02-04 16:46:10,171 - DEBUG - Requesting: http://10.0.0.38:8082/project/db4d4179-6968-4d4d-94b2-396798127991 2026-02-04 16:46:10,239 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8972c423-ea37-4748-8d92-2d3186bd7893 2026-02-04 16:46:10,248 - DEBUG - ==>Verifying data for policy with id: 4277b326-b42e-43fb-9e64-48ab1d03b374, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-55273775', 'ctest-policy1-07620851'] 2026-02-04 16:46:10,248 - INFO - VN ctest-vn4-24908755 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-04 16:46:10,248 - DEBUG - Verifying the vn in opserver 2026-02-04 16:46:10,248 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55273775:ctest-vn4-24908755 virtual network link through opserver 10.0.0.38 2026-02-04 16:46:10,248 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-04 16:46:10,538 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-04 16:46:10,595 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55273775:ctest-vn4-24908755', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55273775:ctest-vn4-24908755?flat'} 2026-02-04 16:46:10,595 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55273775:ctest-vn4-24908755 is found in opserver 2026-02-04 16:46:10,604 - DEBUG - Do not have enough data to verify VN in agent 2026-02-04 16:46:10,608 - DEBUG - VRF ids for VN ctest-vn4-24908755: {} 2026-02-04 16:46:10,608 - DEBUG - ====Verifying data for ctest-policy1-07620851 in API_Server ====== 2026-02-04 16:46:10,609 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-04 16:46:10,613 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a99fb49a-81a3-4ff0-991e-add9885af21d 2026-02-04 16:46:10,622 - DEBUG - Requesting: http://10.0.0.38:8082/project/db4d4179-6968-4d4d-94b2-396798127991 2026-02-04 16:46:10,690 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/4277b326-b42e-43fb-9e64-48ab1d03b374 2026-02-04 16:46:10,699 - INFO - Verified policy ctest-policy1-07620851 in API Server, Result: True 2026-02-04 16:46:10,699 - INFO - Done with setup and verification, moving onto test .. 2026-02-04 16:46:10,705 - INFO - Deleting VN ctest-vn4-24908755 2026-02-04 16:46:10,814 - DEBUG - Response for deleting network () 2026-02-04 16:46:10,814 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f85929cb-009c-4c22-832e-4d3727860b43 2026-02-04 16:46:10,818 - DEBUG - Response Code: 404 2026-02-04 16:46:10,818 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-04 16:46:10,823 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a99fb49a-81a3-4ff0-991e-add9885af21d 2026-02-04 16:46:10,877 - DEBUG - Requesting: http://10.0.0.38:8082/project/db4d4179-6968-4d4d-94b2-396798127991 2026-02-04 16:46:10,947 - INFO - Validated that VN ctest-vn4-24908755 is not found in API Server 2026-02-04 16:46:10,955 - DEBUG - VN ctest-vn4-24908755 is not present in Agent 10.0.0.38 2026-02-04 16:46:10,955 - INFO - Validated that VN ctest-vn4-24908755 is not in any agent 2026-02-04 16:46:10,966 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-24908755 info 2026-02-04 16:46:10,990 - INFO - Deleted policy ctest-policy1-07620851 2026-02-04 16:46:11,152 - DEBUG - policy ctest-policy1-07620851 is not found in API Server 2026-02-04 16:46:11,405 - DEBUG - No XMPP flaps were noticed during the test