2026-05-27 16:35:58,422 - INFO - Domain Default found not creating 2026-05-27 16:35:58,604 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-87608753 not found, creating it 2026-05-27 16:35:59,283 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-87608753, ID : da688f03-9e39-49f3-bbb5-76a5bf508da5 2026-05-27 16:36:01,475 - INFO - ================================================================================ 2026-05-27 16:36:01,475 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-27 16:36:02,772 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.254': '0', '10.20.0.25': '0'}, '10.0.0.242': {'10.20.0.254': '0', '10.20.0.25': '0'}} with 2026-05-27 16:36:02,772 - INFO - Initial checks done. Running the testcase now 2026-05-27 16:36:02,772 - INFO - 2026-05-27 16:36:02,772 - INFO - ================================================================================ 2026-05-27 16:36:02,772 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-27 16:36:02,772 - 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-05-27 16:36:04,079 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.254': '0', '10.20.0.25': '0'}, '10.0.0.242': {'10.20.0.254': '0', '10.20.0.25': '0'}} with 2026-05-27 16:36:04,079 - INFO - Initial checks done. Running the testcase now 2026-05-27 16:36:04,079 - INFO - 2026-05-27 16:36:04,421 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87608753:ctest-vn4-28138160, 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-87608753:ctest-vn4-28138160, 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-87608753:ctest-vn4-28138160, 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-87608753:ctest-vn4-28138160, 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-05-27 16:36:05,120 - DEBUG - Response for create_network : {'network': {'id': '9b81b4c4-a7df-4cd7-a401-97c69a54d481', 'name': 'ctest-vn4-28138160', 'tenant_id': 'da688f039e3949f3bbb576a5bf508da5', 'project_id': 'da688f039e3949f3bbb576a5bf508da5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87608753', 'ctest-vn4-28138160'], 'port_security_enabled': True, 'description': ''}} 2026-05-27 16:36:05,457 - DEBUG - Response for create_subnet : {'subnet': {'id': '1bad1798-c889-4b62-890d-64d25c71b6f9', 'name': '', 'tenant_id': 'da688f039e3949f3bbb576a5bf508da5', 'network_id': '9b81b4c4-a7df-4cd7-a401-97c69a54d481', 'ip_version': 4, 'cidr': '170.237.237.64/26', 'allocation_pools': [{'start': '170.237.237.66', 'end': '170.237.237.126'}], 'gateway_ip': '170.237.237.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '170.237.237.66', 'tags': [], 'project_id': 'da688f039e3949f3bbb576a5bf508da5'}} 2026-05-27 16:36:05,697 - DEBUG - Response for create_subnet : {'subnet': {'id': '52a57fa6-44e2-4f46-859e-b23c63f02c55', 'name': '', 'tenant_id': 'da688f039e3949f3bbb576a5bf508da5', 'network_id': '9b81b4c4-a7df-4cd7-a401-97c69a54d481', 'ip_version': 6, 'cidr': '2d47:fc80:261f:647a:539d:b500::/96', 'allocation_pools': [{'start': '2d47:fc80:261f:647a:539d:b500:0:2', 'end': '2d47:fc80:261f:647a:539d:b500:ffff:fffe'}], 'gateway_ip': '2d47:fc80:261f:647a:539d:b500:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2d47:fc80:261f:647a:539d:b500:0:2', 'tags': [], 'project_id': 'da688f039e3949f3bbb576a5bf508da5'}} 2026-05-27 16:36:05,726 - INFO - Created VN ctest-vn4-28138160 2026-05-27 16:36:05,740 - DEBUG - VN ctest-vn4-28138160 UUID is 9b81b4c4-a7df-4cd7-a401-97c69a54d481 2026-05-27 16:36:05,988 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9b81b4c4-a7df-4cd7-a401-97c69a54d481', 'name': 'ctest-vn4-28138160', 'tenant_id': 'da688f039e3949f3bbb576a5bf508da5', 'project_id': 'da688f039e3949f3bbb576a5bf508da5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1bad1798-c889-4b62-890d-64d25c71b6f9', '52a57fa6-44e2-4f46-859e-b23c63f02c55'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87608753', 'ctest-vn4-28138160'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87608753', 'ctest-policy1-37809725']], 'subnet_ipam': [{'subnet_cidr': '170.237.237.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2d47:fc80:261f:647a:539d:b500::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-27 16:36:06,106 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-27 16:36:06,404 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-27 16:36:06,439 - DEBUG - Requesting: http://10.0.0.50:8082/domain/dd011215-fca5-4e74-b1da-d431e9fe9325 2026-05-27 16:36:06,459 - DEBUG - Requesting: http://10.0.0.50:8082/project/da688f03-9e39-49f3-bbb5-76a5bf508da5 2026-05-27 16:36:06,572 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9b81b4c4-a7df-4cd7-a401-97c69a54d481 2026-05-27 16:36:06,587 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9b81b4c4-a7df-4cd7-a401-97c69a54d481 2026-05-27 16:36:06,598 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/af54c598-bef0-4a06-b9e5-1cc338be93c5 2026-05-27 16:36:06,610 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/af54c598-bef0-4a06-b9e5-1cc338be93c5 2026-05-27 16:36:06,619 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/dcf4e4b9-b9f3-486f-8c24-59b5f45ded6b 2026-05-27 16:36:06,627 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-27 16:36:06,627 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9b81b4c4-a7df-4cd7-a401-97c69a54d481 2026-05-27 16:36:06,640 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/af54c598-bef0-4a06-b9e5-1cc338be93c5 2026-05-27 16:36:06,659 - INFO - Verified VN network id 13 for VN 9b81b4c4-a7df-4cd7-a401-97c69a54d481 2026-05-27 16:36:06,659 - INFO - Verifications in API Server for VN ctest-vn4-28138160 passed 2026-05-27 16:36:06,659 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9b81b4c4-a7df-4cd7-a401-97c69a54d481 2026-05-27 16:36:06,671 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/af54c598-bef0-4a06-b9e5-1cc338be93c5 2026-05-27 16:36:06,679 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/af54c598-bef0-4a06-b9e5-1cc338be93c5 2026-05-27 16:36:06,688 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/dcf4e4b9-b9f3-486f-8c24-59b5f45ded6b 2026-05-27 16:36:06,704 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87608753:ctest-vn4-28138160', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-87608753', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11205436104597523671', 'uuid-lslong': '11817893776445461633'}, 'enable': 'true', 'created': '2026-05-27T16:36:05', 'last-modified': '2026-05-27T16:36:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.773549'} 2026-05-27 16:36:06,711 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-27 16:36:06,717 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87608753:ctest-vn4-28138160', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-87608753', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11205436104597523671', 'uuid-lslong': '11817893776445461633'}, 'enable': 'true', 'created': '2026-05-27T16:36:05', 'last-modified': '2026-05-27T16:36:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.783830'} 2026-05-27 16:36:06,728 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-27 16:36:06,734 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87608753:ctest-vn4-28138160', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-87608753', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11205436104597523671', 'uuid-lslong': '11817893776445461633'}, 'enable': 'true', 'created': '2026-05-27T16:36:05', 'last-modified': '2026-05-27T16:36:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.799834'} 2026-05-27 16:36:06,741 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-27 16:36:06,741 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-28138160 passed 2026-05-27 16:36:06,742 - DEBUG - ====Verifying policy data for ctest-vn4-28138160 in API_Server ====== 2026-05-27 16:36:06,742 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-27 16:36:06,753 - DEBUG - Requesting: http://10.0.0.50:8082/domain/dd011215-fca5-4e74-b1da-d431e9fe9325 2026-05-27 16:36:06,767 - DEBUG - Requesting: http://10.0.0.50:8082/project/da688f03-9e39-49f3-bbb5-76a5bf508da5 2026-05-27 16:36:06,872 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9b81b4c4-a7df-4cd7-a401-97c69a54d481 2026-05-27 16:36:06,893 - DEBUG - ==>Verifying data for policy with id: 10e60893-6302-4a6f-b546-c20e66116e46, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87608753', 'ctest-policy1-37809725'] 2026-05-27 16:36:06,893 - INFO - VN ctest-vn4-28138160 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-27 16:36:06,894 - DEBUG - Verifying the vn in opserver 2026-05-27 16:36:06,894 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87608753:ctest-vn4-28138160 virtual network link through opserver 10.0.0.50 2026-05-27 16:36:06,894 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-05-27 16:36:07,239 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-05-27 16:36:07,314 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87608753:ctest-vn4-28138160', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87608753:ctest-vn4-28138160?flat'} 2026-05-27 16:36:07,314 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87608753:ctest-vn4-28138160 virtual network link through opserver 10.0.0.22 2026-05-27 16:36:07,315 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-05-27 16:36:07,617 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-05-27 16:36:07,731 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87608753:ctest-vn4-28138160', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87608753:ctest-vn4-28138160?flat'} 2026-05-27 16:36:07,731 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87608753:ctest-vn4-28138160 virtual network link through opserver 10.0.0.129 2026-05-27 16:36:07,731 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2026-05-27 16:36:08,034 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2026-05-27 16:36:08,107 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87608753:ctest-vn4-28138160', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87608753:ctest-vn4-28138160?flat'} 2026-05-27 16:36:08,107 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87608753:ctest-vn4-28138160 is found in opserver 2026-05-27 16:36:08,131 - DEBUG - Do not have enough data to verify VN in agent 2026-05-27 16:36:08,143 - DEBUG - VRF ids for VN ctest-vn4-28138160: {} 2026-05-27 16:36:08,143 - DEBUG - ====Verifying data for ctest-policy1-37809725 in API_Server ====== 2026-05-27 16:36:08,143 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-27 16:36:08,150 - DEBUG - Requesting: http://10.0.0.50:8082/domain/dd011215-fca5-4e74-b1da-d431e9fe9325 2026-05-27 16:36:08,162 - DEBUG - Requesting: http://10.0.0.50:8082/project/da688f03-9e39-49f3-bbb5-76a5bf508da5 2026-05-27 16:36:08,264 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/10e60893-6302-4a6f-b546-c20e66116e46 2026-05-27 16:36:08,275 - INFO - Verified policy ctest-policy1-37809725 in API Server, Result: True 2026-05-27 16:36:08,275 - INFO - Done with setup and verification, moving onto test .. 2026-05-27 16:36:08,288 - INFO - Deleting VN ctest-vn4-28138160 2026-05-27 16:36:08,520 - DEBUG - Response for deleting network () 2026-05-27 16:36:08,520 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/af54c598-bef0-4a06-b9e5-1cc338be93c5 2026-05-27 16:36:08,528 - DEBUG - Response Code: 404 2026-05-27 16:36:08,528 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-27 16:36:08,542 - DEBUG - Requesting: http://10.0.0.50:8082/domain/dd011215-fca5-4e74-b1da-d431e9fe9325 2026-05-27 16:36:08,600 - DEBUG - Requesting: http://10.0.0.50:8082/project/da688f03-9e39-49f3-bbb5-76a5bf508da5 2026-05-27 16:36:08,712 - INFO - Validated that VN ctest-vn4-28138160 is not found in API Server 2026-05-27 16:36:08,723 - DEBUG - VN ctest-vn4-28138160 is not present in Agent 10.0.0.241 2026-05-27 16:36:08,736 - DEBUG - VN ctest-vn4-28138160 is not present in Agent 10.0.0.242 2026-05-27 16:36:08,736 - INFO - Validated that VN ctest-vn4-28138160 is not in any agent 2026-05-27 16:36:08,776 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-28138160 info 2026-05-27 16:36:08,826 - INFO - Deleted policy ctest-policy1-37809725 2026-05-27 16:36:09,034 - DEBUG - policy ctest-policy1-37809725 is not found in API Server 2026-05-27 16:36:10,326 - DEBUG - No XMPP flaps were noticed during the test
2026-05-27 16:36:10,326 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:08]
2026-05-27 16:36:10,327 - INFO - -------------------------------------------------------------------------------- 2026-05-27 16:36:11,618 - DEBUG - No XMPP flaps were noticed during the test
2026-05-27 16:36:11,619 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:10]
2026-05-27 16:36:11,619 - INFO - -------------------------------------------------------------------------------- 2026-05-27 16:36:12,413 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-87608753, ID : da688f03-9e39-49f3-bbb5-76a5bf508da5