2026-07-08 19:33:52,916 - INFO - Domain Default found not creating 2026-07-08 19:33:53,135 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-91048583 not found, creating it 2026-07-08 19:33:53,667 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-91048583, ID : 0cff9ead-0bb7-4baf-8b95-20c12101fe95 2026-07-08 19:33:55,651 - INFO - ================================================================================ 2026-07-08 19:33:55,652 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-07-08 19:33:55,921 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-07-08 19:33:55,921 - INFO - Initial checks done. Running the testcase now 2026-07-08 19:33:55,921 - INFO - 2026-07-08 19:33:55,922 - INFO - ================================================================================ 2026-07-08 19:33:55,922 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-07-08 19:33:55,922 - 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-07-08 19:33:56,220 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-07-08 19:33:56,220 - INFO - Initial checks done. Running the testcase now 2026-07-08 19:33:56,220 - INFO - 2026-07-08 19:33:56,691 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91048583:ctest-vn4-81666838, 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-91048583:ctest-vn4-81666838, 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-91048583:ctest-vn4-81666838, 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-91048583:ctest-vn4-81666838, 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-07-08 19:33:57,289 - DEBUG - Response for create_network : {'network': {'id': 'a25dbf2a-2ed8-4ae6-b375-a24acc83ecf6', 'name': 'ctest-vn4-81666838', 'tenant_id': '0cff9ead0bb74baf8b9520c12101fe95', 'project_id': '0cff9ead0bb74baf8b9520c12101fe95', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-91048583', 'ctest-vn4-81666838'], 'port_security_enabled': True, 'description': ''}} 2026-07-08 19:33:57,505 - DEBUG - Response for create_subnet : {'subnet': {'id': '3becb0fb-54ed-4138-9395-08e4c23732c7', 'name': '', 'tenant_id': '0cff9ead0bb74baf8b9520c12101fe95', 'network_id': 'a25dbf2a-2ed8-4ae6-b375-a24acc83ecf6', 'ip_version': 4, 'cidr': '160.179.193.64/26', 'allocation_pools': [{'start': '160.179.193.66', 'end': '160.179.193.126'}], 'gateway_ip': '160.179.193.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '160.179.193.66', 'tags': [], 'project_id': '0cff9ead0bb74baf8b9520c12101fe95'}} 2026-07-08 19:33:57,750 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e59d4301-9286-4148-81dc-bedacb35fc9c', 'name': '', 'tenant_id': '0cff9ead0bb74baf8b9520c12101fe95', 'network_id': 'a25dbf2a-2ed8-4ae6-b375-a24acc83ecf6', 'ip_version': 6, 'cidr': '38a7:364e:7cdc:3a7a:7f0:bfc5::/96', 'allocation_pools': [{'start': '38a7:364e:7cdc:3a7a:7f0:bfc5:0:2', 'end': '38a7:364e:7cdc:3a7a:7f0:bfc5:ffff:fffe'}], 'gateway_ip': '38a7:364e:7cdc:3a7a:7f0:bfc5:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '38a7:364e:7cdc:3a7a:7f0:bfc5:0:2', 'tags': [], 'project_id': '0cff9ead0bb74baf8b9520c12101fe95'}} 2026-07-08 19:33:57,774 - INFO - Created VN ctest-vn4-81666838 2026-07-08 19:33:57,827 - DEBUG - VN ctest-vn4-81666838 UUID is a25dbf2a-2ed8-4ae6-b375-a24acc83ecf6 2026-07-08 19:33:58,075 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a25dbf2a-2ed8-4ae6-b375-a24acc83ecf6', 'name': 'ctest-vn4-81666838', 'tenant_id': '0cff9ead0bb74baf8b9520c12101fe95', 'project_id': '0cff9ead0bb74baf8b9520c12101fe95', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3becb0fb-54ed-4138-9395-08e4c23732c7', 'e59d4301-9286-4148-81dc-bedacb35fc9c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-91048583', 'ctest-vn4-81666838'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-91048583', 'ctest-policy1-39944934']], 'subnet_ipam': [{'subnet_cidr': '160.179.193.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '38a7:364e:7cdc:3a7a:7f0:bfc5::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-07-08 19:33:58,247 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-07-08 19:33:58,649 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-07-08 19:33:58,685 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6e4ca09f-e3c3-4299-a425-4f25de16d556 2026-07-08 19:33:58,706 - DEBUG - Requesting: http://10.0.0.38:8082/project/0cff9ead-0bb7-4baf-8b95-20c12101fe95 2026-07-08 19:33:58,801 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a25dbf2a-2ed8-4ae6-b375-a24acc83ecf6 2026-07-08 19:33:58,816 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a25dbf2a-2ed8-4ae6-b375-a24acc83ecf6 2026-07-08 19:33:58,829 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6a0e2aca-ccb9-41f8-bd9c-b62b00239064 2026-07-08 19:33:58,838 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6a0e2aca-ccb9-41f8-bd9c-b62b00239064 2026-07-08 19:33:58,847 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1c6239b2-0d5e-4e6c-9b52-a25e138a0380 2026-07-08 19:33:58,855 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-07-08 19:33:58,855 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a25dbf2a-2ed8-4ae6-b375-a24acc83ecf6 2026-07-08 19:33:58,867 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6a0e2aca-ccb9-41f8-bd9c-b62b00239064 2026-07-08 19:33:58,886 - INFO - Verified VN network id 11 for VN a25dbf2a-2ed8-4ae6-b375-a24acc83ecf6 2026-07-08 19:33:58,886 - INFO - Verifications in API Server for VN ctest-vn4-81666838 passed 2026-07-08 19:33:58,886 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a25dbf2a-2ed8-4ae6-b375-a24acc83ecf6 2026-07-08 19:33:58,901 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6a0e2aca-ccb9-41f8-bd9c-b62b00239064 2026-07-08 19:33:58,913 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6a0e2aca-ccb9-41f8-bd9c-b62b00239064 2026-07-08 19:33:58,924 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1c6239b2-0d5e-4e6c-9b52-a25e138a0380 2026-07-08 19:33:58,941 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91048583:ctest-vn4-81666838', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-91048583', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11699717594873875174', 'uuid-lslong': '12931420347206724854'}, 'enable': 'true', 'created': '2026-07-08T19:33:57', 'last-modified': '2026-07-08T19:33:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.900906'} 2026-07-08 19:33:58,949 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-07-08 19:33:58,949 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-81666838 passed 2026-07-08 19:33:58,950 - DEBUG - ====Verifying policy data for ctest-vn4-81666838 in API_Server ====== 2026-07-08 19:33:58,950 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-07-08 19:33:58,957 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6e4ca09f-e3c3-4299-a425-4f25de16d556 2026-07-08 19:33:58,973 - DEBUG - Requesting: http://10.0.0.38:8082/project/0cff9ead-0bb7-4baf-8b95-20c12101fe95 2026-07-08 19:33:59,055 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a25dbf2a-2ed8-4ae6-b375-a24acc83ecf6 2026-07-08 19:33:59,068 - DEBUG - ==>Verifying data for policy with id: 61eafadd-042f-4319-a94e-95a3736ca330, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-91048583', 'ctest-policy1-39944934'] 2026-07-08 19:33:59,068 - INFO - VN ctest-vn4-81666838 Policy verification: verify_vn_policy_in_api_server, status: True 2026-07-08 19:33:59,068 - DEBUG - Verifying the vn in opserver 2026-07-08 19:33:59,068 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91048583:ctest-vn4-81666838 virtual network link through opserver 10.0.0.38 2026-07-08 19:33:59,068 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-07-08 19:33:59,476 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-07-08 19:33:59,546 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91048583:ctest-vn4-81666838', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91048583:ctest-vn4-81666838?flat'} 2026-07-08 19:33:59,546 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91048583:ctest-vn4-81666838 is found in opserver 2026-07-08 19:33:59,559 - DEBUG - Do not have enough data to verify VN in agent 2026-07-08 19:33:59,565 - DEBUG - VRF ids for VN ctest-vn4-81666838: {} 2026-07-08 19:33:59,566 - DEBUG - ====Verifying data for ctest-policy1-39944934 in API_Server ====== 2026-07-08 19:33:59,566 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-07-08 19:33:59,573 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6e4ca09f-e3c3-4299-a425-4f25de16d556 2026-07-08 19:33:59,588 - DEBUG - Requesting: http://10.0.0.38:8082/project/0cff9ead-0bb7-4baf-8b95-20c12101fe95 2026-07-08 19:33:59,664 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/61eafadd-042f-4319-a94e-95a3736ca330 2026-07-08 19:33:59,678 - INFO - Verified policy ctest-policy1-39944934 in API Server, Result: True 2026-07-08 19:33:59,678 - INFO - Done with setup and verification, moving onto test .. 2026-07-08 19:33:59,688 - INFO - Deleting VN ctest-vn4-81666838 2026-07-08 19:33:59,839 - DEBUG - Response for deleting network () 2026-07-08 19:33:59,839 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6a0e2aca-ccb9-41f8-bd9c-b62b00239064 2026-07-08 19:33:59,846 - DEBUG - Response Code: 404 2026-07-08 19:33:59,846 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-07-08 19:33:59,853 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6e4ca09f-e3c3-4299-a425-4f25de16d556 2026-07-08 19:33:59,911 - DEBUG - Requesting: http://10.0.0.38:8082/project/0cff9ead-0bb7-4baf-8b95-20c12101fe95 2026-07-08 19:33:59,992 - INFO - Validated that VN ctest-vn4-81666838 is not found in API Server 2026-07-08 19:34:00,005 - DEBUG - VN ctest-vn4-81666838 is not present in Agent 10.0.0.38 2026-07-08 19:34:00,005 - INFO - Validated that VN ctest-vn4-81666838 is not in any agent 2026-07-08 19:34:00,028 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-81666838 info 2026-07-08 19:34:00,064 - INFO - Deleted policy ctest-policy1-39944934 2026-07-08 19:34:00,247 - DEBUG - policy ctest-policy1-39944934 is not found in API Server 2026-07-08 19:34:00,514 - DEBUG - No XMPP flaps were noticed during the test