2026-02-11 14:15:36,065 - INFO - Domain Default found not creating 2026-02-11 14:15:36,258 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-55752949 not found, creating it 2026-02-11 14:15:36,743 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-55752949, ID : e2862d8c-86ef-4ec9-97fd-e950f053304f 2026-02-11 14:15:38,290 - INFO - ================================================================================ 2026-02-11 14:15:38,290 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-11 14:15:38,552 - DEBUG - Nothing to compare xmpp stats {'10.0.0.128': {'10.20.0.254': '0'}} with 2026-02-11 14:15:38,552 - INFO - Initial checks done. Running the testcase now 2026-02-11 14:15:38,552 - INFO - 2026-02-11 14:15:38,552 - INFO - ================================================================================ 2026-02-11 14:15:38,552 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-11 14:15:38,552 - 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-11 14:15:38,841 - DEBUG - Nothing to compare xmpp stats {'10.0.0.128': {'10.20.0.254': '0'}} with 2026-02-11 14:15:38,841 - INFO - Initial checks done. Running the testcase now 2026-02-11 14:15:38,841 - INFO - 2026-02-11 14:15:39,216 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55752949:ctest-vn4-67497604, 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-55752949:ctest-vn4-67497604, 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-55752949:ctest-vn4-67497604, 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-55752949:ctest-vn4-67497604, 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-11 14:15:39,740 - DEBUG - Response for create_network : {'network': {'id': 'd6598c50-28b9-45b7-abd8-b1a4851d55fd', 'name': 'ctest-vn4-67497604', 'tenant_id': 'e2862d8c86ef4ec997fde950f053304f', 'project_id': 'e2862d8c86ef4ec997fde950f053304f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-55752949', 'ctest-vn4-67497604'], 'port_security_enabled': True, 'description': ''}} 2026-02-11 14:15:39,914 - DEBUG - Response for create_subnet : {'subnet': {'id': '34914d8e-695d-4c5a-b720-5e893de6a96e', 'name': '', 'tenant_id': 'e2862d8c86ef4ec997fde950f053304f', 'network_id': 'd6598c50-28b9-45b7-abd8-b1a4851d55fd', 'ip_version': 4, 'cidr': '174.207.95.192/26', 'allocation_pools': [{'start': '174.207.95.194', 'end': '174.207.95.254'}], 'gateway_ip': '174.207.95.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '174.207.95.194', 'tags': [], 'project_id': 'e2862d8c86ef4ec997fde950f053304f'}} 2026-02-11 14:15:40,135 - DEBUG - Response for create_subnet : {'subnet': {'id': '111491a2-f3e2-40fb-bf2f-0f050e09bdda', 'name': '', 'tenant_id': 'e2862d8c86ef4ec997fde950f053304f', 'network_id': 'd6598c50-28b9-45b7-abd8-b1a4851d55fd', 'ip_version': 6, 'cidr': '22b9:7f91:8be4:fb8a:62db:9549::/96', 'allocation_pools': [{'start': '22b9:7f91:8be4:fb8a:62db:9549:0:2', 'end': '22b9:7f91:8be4:fb8a:62db:9549:ffff:fffe'}], 'gateway_ip': '22b9:7f91:8be4:fb8a:62db:9549:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '22b9:7f91:8be4:fb8a:62db:9549:0:2', 'tags': [], 'project_id': 'e2862d8c86ef4ec997fde950f053304f'}} 2026-02-11 14:15:40,158 - INFO - Created VN ctest-vn4-67497604 2026-02-11 14:15:40,212 - DEBUG - VN ctest-vn4-67497604 UUID is d6598c50-28b9-45b7-abd8-b1a4851d55fd 2026-02-11 14:15:40,441 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd6598c50-28b9-45b7-abd8-b1a4851d55fd', 'name': 'ctest-vn4-67497604', 'tenant_id': 'e2862d8c86ef4ec997fde950f053304f', 'project_id': 'e2862d8c86ef4ec997fde950f053304f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['34914d8e-695d-4c5a-b720-5e893de6a96e', '111491a2-f3e2-40fb-bf2f-0f050e09bdda'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-55752949', 'ctest-vn4-67497604'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-55752949', 'ctest-policy1-63347736']], 'subnet_ipam': [{'subnet_cidr': '174.207.95.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '22b9:7f91:8be4:fb8a:62db:9549::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-11 14:15:40,600 - DEBUG - Requesting: http://10.0.0.128:8082/domains 2026-02-11 14:15:40,900 - DEBUG - Requesting: http://10.0.0.128:8082/domains 2026-02-11 14:15:40,941 - DEBUG - Requesting: http://10.0.0.128:8082/domain/eceaaea9-cc4a-4a20-81d8-a37593aaf5b7 2026-02-11 14:15:40,956 - DEBUG - Requesting: http://10.0.0.128:8082/project/e2862d8c-86ef-4ec9-97fd-e950f053304f 2026-02-11 14:15:41,030 - DEBUG - Requesting: http://10.0.0.128:8082/virtual-network/d6598c50-28b9-45b7-abd8-b1a4851d55fd 2026-02-11 14:15:41,043 - DEBUG - Requesting: http://10.0.0.128:8082/virtual-network/d6598c50-28b9-45b7-abd8-b1a4851d55fd 2026-02-11 14:15:41,053 - DEBUG - Requesting: http://10.0.0.128:8082/routing-instance/d357fe15-8f6a-44e0-a8bf-4b60ae4c1e4d 2026-02-11 14:15:41,061 - DEBUG - Requesting: http://10.0.0.128:8082/routing-instance/d357fe15-8f6a-44e0-a8bf-4b60ae4c1e4d 2026-02-11 14:15:41,069 - DEBUG - Requesting: http://10.0.0.128:8082/route-target/1869bbb2-0c3e-4271-a1de-8aa89e54de58 2026-02-11 14:15:41,076 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-11 14:15:41,076 - DEBUG - Requesting: http://10.0.0.128:8082/virtual-network/d6598c50-28b9-45b7-abd8-b1a4851d55fd 2026-02-11 14:15:41,087 - DEBUG - Requesting: http://10.0.0.128:8082/routing-instance/d357fe15-8f6a-44e0-a8bf-4b60ae4c1e4d 2026-02-11 14:15:41,104 - INFO - Verified VN network id 10 for VN d6598c50-28b9-45b7-abd8-b1a4851d55fd 2026-02-11 14:15:41,104 - INFO - Verifications in API Server for VN ctest-vn4-67497604 passed 2026-02-11 14:15:41,104 - DEBUG - Requesting: http://10.0.0.128:8082/virtual-network/d6598c50-28b9-45b7-abd8-b1a4851d55fd 2026-02-11 14:15:41,115 - DEBUG - Requesting: http://10.0.0.128:8082/routing-instance/d357fe15-8f6a-44e0-a8bf-4b60ae4c1e4d 2026-02-11 14:15:41,123 - DEBUG - Requesting: http://10.0.0.128:8082/routing-instance/d357fe15-8f6a-44e0-a8bf-4b60ae4c1e4d 2026-02-11 14:15:41,131 - DEBUG - Requesting: http://10.0.0.128:8082/route-target/1869bbb2-0c3e-4271-a1de-8aa89e54de58 2026-02-11 14:15:41,144 - DEBUG - Control-node 10.0.0.128 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55752949:ctest-vn4-67497604', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-55752949', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15445530672952329655', 'uuid-lslong': '12382842495621223933'}, 'enable': 'true', 'created': '2026-02-11T14:15:39', 'last-modified': '2026-02-11T14:15:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.736687'} 2026-02-11 14:15:41,150 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-11 14:15:41,151 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-67497604 passed 2026-02-11 14:15:41,151 - DEBUG - ====Verifying policy data for ctest-vn4-67497604 in API_Server ====== 2026-02-11 14:15:41,151 - DEBUG - Requesting: http://10.0.0.128:8082/domains 2026-02-11 14:15:41,157 - DEBUG - Requesting: http://10.0.0.128:8082/domain/eceaaea9-cc4a-4a20-81d8-a37593aaf5b7 2026-02-11 14:15:41,168 - DEBUG - Requesting: http://10.0.0.128:8082/project/e2862d8c-86ef-4ec9-97fd-e950f053304f 2026-02-11 14:15:41,241 - DEBUG - Requesting: http://10.0.0.128:8082/virtual-network/d6598c50-28b9-45b7-abd8-b1a4851d55fd 2026-02-11 14:15:41,252 - DEBUG - ==>Verifying data for policy with id: ad186d03-e76c-4f66-9bc1-eb851e9ffd42, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-55752949', 'ctest-policy1-63347736'] 2026-02-11 14:15:41,252 - INFO - VN ctest-vn4-67497604 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-11 14:15:41,252 - DEBUG - Verifying the vn in opserver 2026-02-11 14:15:41,253 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55752949:ctest-vn4-67497604 virtual network link through opserver 10.0.0.128 2026-02-11 14:15:41,253 - DEBUG - Requesting: http://10.0.0.128:8081/analytics/uves/virtual-networks 2026-02-11 14:15:41,551 - DEBUG - Requesting: http://10.0.0.128:8081/analytics/uves/virtual-networks 2026-02-11 14:15:41,630 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55752949:ctest-vn4-67497604', 'href': 'http://10.0.0.128:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55752949:ctest-vn4-67497604?flat'} 2026-02-11 14:15:41,630 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55752949:ctest-vn4-67497604 is found in opserver 2026-02-11 14:15:41,642 - DEBUG - Do not have enough data to verify VN in agent 2026-02-11 14:15:41,649 - DEBUG - VRF ids for VN ctest-vn4-67497604: {} 2026-02-11 14:15:41,650 - DEBUG - ====Verifying data for ctest-policy1-63347736 in API_Server ====== 2026-02-11 14:15:41,650 - DEBUG - Requesting: http://10.0.0.128:8082/domains 2026-02-11 14:15:41,659 - DEBUG - Requesting: http://10.0.0.128:8082/domain/eceaaea9-cc4a-4a20-81d8-a37593aaf5b7 2026-02-11 14:15:41,672 - DEBUG - Requesting: http://10.0.0.128:8082/project/e2862d8c-86ef-4ec9-97fd-e950f053304f 2026-02-11 14:15:41,748 - DEBUG - Requesting: http://10.0.0.128:8082/network-policy/ad186d03-e76c-4f66-9bc1-eb851e9ffd42 2026-02-11 14:15:41,759 - INFO - Verified policy ctest-policy1-63347736 in API Server, Result: True 2026-02-11 14:15:41,759 - INFO - Done with setup and verification, moving onto test .. 2026-02-11 14:15:41,768 - INFO - Deleting VN ctest-vn4-67497604 2026-02-11 14:15:41,892 - DEBUG - Response for deleting network () 2026-02-11 14:15:41,892 - DEBUG - Requesting: http://10.0.0.128:8082/routing-instance/d357fe15-8f6a-44e0-a8bf-4b60ae4c1e4d 2026-02-11 14:15:41,898 - DEBUG - Response Code: 404 2026-02-11 14:15:41,898 - DEBUG - Requesting: http://10.0.0.128:8082/domains 2026-02-11 14:15:41,903 - DEBUG - Requesting: http://10.0.0.128:8082/domain/eceaaea9-cc4a-4a20-81d8-a37593aaf5b7 2026-02-11 14:15:41,957 - DEBUG - Requesting: http://10.0.0.128:8082/project/e2862d8c-86ef-4ec9-97fd-e950f053304f 2026-02-11 14:15:42,035 - INFO - Validated that VN ctest-vn4-67497604 is not found in API Server 2026-02-11 14:15:42,046 - DEBUG - VN ctest-vn4-67497604 is not present in Agent 10.0.0.128 2026-02-11 14:15:42,046 - INFO - Validated that VN ctest-vn4-67497604 is not in any agent 2026-02-11 14:15:42,062 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-67497604 info 2026-02-11 14:15:42,090 - INFO - Deleted policy ctest-policy1-63347736 2026-02-11 14:15:42,268 - DEBUG - policy ctest-policy1-63347736 is not found in API Server 2026-02-11 14:15:42,530 - DEBUG - No XMPP flaps were noticed during the test
2026-02-11 14:15:42,530 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-11 14:15:42,530 - INFO - -------------------------------------------------------------------------------- 2026-02-11 14:15:42,818 - DEBUG - No XMPP flaps were noticed during the test
2026-02-11 14:15:42,818 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-11 14:15:42,818 - INFO - -------------------------------------------------------------------------------- 2026-02-11 14:15:43,528 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-55752949, ID : e2862d8c-86ef-4ec9-97fd-e950f053304f