2026-03-06 05:24:25,833 - INFO - Domain Default found not creating 2026-03-06 05:24:26,009 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-12790924 not found, creating it 2026-03-06 05:24:26,460 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-12790924, ID : 3bb8cb29-39b5-488d-b96b-9fd2673d23f5 2026-03-06 05:24:27,915 - INFO - ================================================================================ 2026-03-06 05:24:27,915 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-06 05:24:28,174 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-03-06 05:24:28,174 - INFO - Initial checks done. Running the testcase now 2026-03-06 05:24:28,174 - INFO - 2026-03-06 05:24:28,174 - INFO - ================================================================================ 2026-03-06 05:24:28,174 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-06 05:24:28,174 - 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-06 05:24:28,465 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-03-06 05:24:28,465 - INFO - Initial checks done. Running the testcase now 2026-03-06 05:24:28,465 - INFO - 2026-03-06 05:24:28,814 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12790924:ctest-vn4-34607581, 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-12790924:ctest-vn4-34607581, 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-12790924:ctest-vn4-34607581, 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-12790924:ctest-vn4-34607581, 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-06 05:24:29,310 - DEBUG - Response for create_network : {'network': {'id': 'b1739555-e1eb-4960-bd15-a7fba5af09f1', 'name': 'ctest-vn4-34607581', 'tenant_id': '3bb8cb2939b5488db96b9fd2673d23f5', 'project_id': '3bb8cb2939b5488db96b9fd2673d23f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-12790924', 'ctest-vn4-34607581'], 'port_security_enabled': True, 'description': ''}} 2026-03-06 05:24:29,513 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cc74b57b-e57b-429e-91e2-ba6d3487ac7f', 'name': '', 'tenant_id': '3bb8cb2939b5488db96b9fd2673d23f5', 'network_id': 'b1739555-e1eb-4960-bd15-a7fba5af09f1', 'ip_version': 4, 'cidr': '50.113.138.0/26', 'allocation_pools': [{'start': '50.113.138.2', 'end': '50.113.138.62'}], 'gateway_ip': '50.113.138.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '50.113.138.2', 'tags': [], 'project_id': '3bb8cb2939b5488db96b9fd2673d23f5'}} 2026-03-06 05:24:29,677 - DEBUG - Response for create_subnet : {'subnet': {'id': '8728ee94-2209-4ac8-9ac8-a60a7ae5e79e', 'name': '', 'tenant_id': '3bb8cb2939b5488db96b9fd2673d23f5', 'network_id': 'b1739555-e1eb-4960-bd15-a7fba5af09f1', 'ip_version': 6, 'cidr': '255f:3b1a:6196:fae3:1f98:9e5a::/96', 'allocation_pools': [{'start': '255f:3b1a:6196:fae3:1f98:9e5a:0:2', 'end': '255f:3b1a:6196:fae3:1f98:9e5a:ffff:fffe'}], 'gateway_ip': '255f:3b1a:6196:fae3:1f98:9e5a:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '255f:3b1a:6196:fae3:1f98:9e5a:0:2', 'tags': [], 'project_id': '3bb8cb2939b5488db96b9fd2673d23f5'}} 2026-03-06 05:24:29,753 - INFO - Created VN ctest-vn4-34607581 2026-03-06 05:24:29,805 - DEBUG - VN ctest-vn4-34607581 UUID is b1739555-e1eb-4960-bd15-a7fba5af09f1 2026-03-06 05:24:30,000 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b1739555-e1eb-4960-bd15-a7fba5af09f1', 'name': 'ctest-vn4-34607581', 'tenant_id': '3bb8cb2939b5488db96b9fd2673d23f5', 'project_id': '3bb8cb2939b5488db96b9fd2673d23f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cc74b57b-e57b-429e-91e2-ba6d3487ac7f', '8728ee94-2209-4ac8-9ac8-a60a7ae5e79e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-12790924', 'ctest-vn4-34607581'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-12790924', 'ctest-policy1-45338303']], 'subnet_ipam': [{'subnet_cidr': '50.113.138.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '255f:3b1a:6196:fae3:1f98:9e5a::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-06 05:24:30,165 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-06 05:24:30,466 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-06 05:24:30,499 - DEBUG - Requesting: http://10.0.0.38:8082/domain/8e062cac-a287-47c7-bf36-3d306af41172 2026-03-06 05:24:30,511 - DEBUG - Requesting: http://10.0.0.38:8082/project/3bb8cb29-39b5-488d-b96b-9fd2673d23f5 2026-03-06 05:24:30,579 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b1739555-e1eb-4960-bd15-a7fba5af09f1 2026-03-06 05:24:30,591 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b1739555-e1eb-4960-bd15-a7fba5af09f1 2026-03-06 05:24:30,601 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/136ac7dd-84ef-4cf4-9eab-70c9a363269c 2026-03-06 05:24:30,607 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/136ac7dd-84ef-4cf4-9eab-70c9a363269c 2026-03-06 05:24:30,614 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/d202a2d1-d903-4cf9-aac7-25f8fc6e82a8 2026-03-06 05:24:30,621 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-06 05:24:30,621 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b1739555-e1eb-4960-bd15-a7fba5af09f1 2026-03-06 05:24:30,630 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/136ac7dd-84ef-4cf4-9eab-70c9a363269c 2026-03-06 05:24:30,644 - INFO - Verified VN network id 9 for VN b1739555-e1eb-4960-bd15-a7fba5af09f1 2026-03-06 05:24:30,645 - INFO - Verifications in API Server for VN ctest-vn4-34607581 passed 2026-03-06 05:24:30,645 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b1739555-e1eb-4960-bd15-a7fba5af09f1 2026-03-06 05:24:30,654 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/136ac7dd-84ef-4cf4-9eab-70c9a363269c 2026-03-06 05:24:30,660 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/136ac7dd-84ef-4cf4-9eab-70c9a363269c 2026-03-06 05:24:30,667 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/d202a2d1-d903-4cf9-aac7-25f8fc6e82a8 2026-03-06 05:24:30,680 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12790924:ctest-vn4-34607581', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-12790924', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12786727963130022240', 'uuid-lslong': '13624980946937645553'}, 'enable': 'true', 'created': '2026-03-06T05:24:29', 'last-modified': '2026-03-06T05:24:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.707296'} 2026-03-06 05:24:30,686 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-06 05:24:30,686 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-34607581 passed 2026-03-06 05:24:30,686 - DEBUG - ====Verifying policy data for ctest-vn4-34607581 in API_Server ====== 2026-03-06 05:24:30,686 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-06 05:24:30,692 - DEBUG - Requesting: http://10.0.0.38:8082/domain/8e062cac-a287-47c7-bf36-3d306af41172 2026-03-06 05:24:30,703 - DEBUG - Requesting: http://10.0.0.38:8082/project/3bb8cb29-39b5-488d-b96b-9fd2673d23f5 2026-03-06 05:24:30,768 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b1739555-e1eb-4960-bd15-a7fba5af09f1 2026-03-06 05:24:30,776 - DEBUG - ==>Verifying data for policy with id: f1901d40-c857-4e38-9d28-f25fd7a0d954, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-12790924', 'ctest-policy1-45338303'] 2026-03-06 05:24:30,776 - INFO - VN ctest-vn4-34607581 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-06 05:24:30,777 - DEBUG - Verifying the vn in opserver 2026-03-06 05:24:30,777 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12790924:ctest-vn4-34607581 virtual network link through opserver 10.0.0.38 2026-03-06 05:24:30,777 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-03-06 05:24:31,072 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-03-06 05:24:31,144 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12790924:ctest-vn4-34607581', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12790924:ctest-vn4-34607581?flat'} 2026-03-06 05:24:31,144 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12790924:ctest-vn4-34607581 is found in opserver 2026-03-06 05:24:31,153 - DEBUG - Do not have enough data to verify VN in agent 2026-03-06 05:24:31,157 - DEBUG - VRF ids for VN ctest-vn4-34607581: {} 2026-03-06 05:24:31,157 - DEBUG - ====Verifying data for ctest-policy1-45338303 in API_Server ====== 2026-03-06 05:24:31,157 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-06 05:24:31,163 - DEBUG - Requesting: http://10.0.0.38:8082/domain/8e062cac-a287-47c7-bf36-3d306af41172 2026-03-06 05:24:31,174 - DEBUG - Requesting: http://10.0.0.38:8082/project/3bb8cb29-39b5-488d-b96b-9fd2673d23f5 2026-03-06 05:24:31,241 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/f1901d40-c857-4e38-9d28-f25fd7a0d954 2026-03-06 05:24:31,249 - INFO - Verified policy ctest-policy1-45338303 in API Server, Result: True 2026-03-06 05:24:31,249 - INFO - Done with setup and verification, moving onto test .. 2026-03-06 05:24:31,256 - INFO - Deleting VN ctest-vn4-34607581 2026-03-06 05:24:31,365 - DEBUG - Response for deleting network () 2026-03-06 05:24:31,365 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/136ac7dd-84ef-4cf4-9eab-70c9a363269c 2026-03-06 05:24:31,370 - DEBUG - Response Code: 404 2026-03-06 05:24:31,370 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-06 05:24:31,374 - DEBUG - Requesting: http://10.0.0.38:8082/domain/8e062cac-a287-47c7-bf36-3d306af41172 2026-03-06 05:24:31,425 - DEBUG - Requesting: http://10.0.0.38:8082/project/3bb8cb29-39b5-488d-b96b-9fd2673d23f5 2026-03-06 05:24:31,491 - INFO - Validated that VN ctest-vn4-34607581 is not found in API Server 2026-03-06 05:24:31,501 - DEBUG - VN ctest-vn4-34607581 is not present in Agent 10.0.0.38 2026-03-06 05:24:31,501 - INFO - Validated that VN ctest-vn4-34607581 is not in any agent 2026-03-06 05:24:31,513 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-34607581 info 2026-03-06 05:24:31,533 - INFO - Deleted policy ctest-policy1-45338303 2026-03-06 05:24:31,700 - DEBUG - policy ctest-policy1-45338303 is not found in API Server 2026-03-06 05:24:31,969 - DEBUG - No XMPP flaps were noticed during the test