2026-09-10 14:32:30,385 - INFO - Domain Default found not creating 2026-09-10 14:32:30,566 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-61310504 not found, creating it 2026-09-10 14:32:31,087 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-61310504, ID : d4fb9e4d-ba80-48bd-a940-d6d8f59fcc62 2026-09-10 14:32:32,787 - INFO - ================================================================================ 2026-09-10 14:32:32,787 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-10 14:32:33,060 - DEBUG - Nothing to compare xmpp stats {'10.0.0.190': {'10.20.0.25': '0'}} with 2026-09-10 14:32:33,060 - INFO - Initial checks done. Running the testcase now 2026-09-10 14:32:33,060 - INFO - 2026-09-10 14:32:33,060 - INFO - ================================================================================ 2026-09-10 14:32:33,060 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-10 14:32:33,060 - 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-09-10 14:32:33,354 - DEBUG - Nothing to compare xmpp stats {'10.0.0.190': {'10.20.0.25': '0'}} with 2026-09-10 14:32:33,354 - INFO - Initial checks done. Running the testcase now 2026-09-10 14:32:33,354 - INFO - 2026-09-10 14:32:33,777 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61310504:ctest-vn4-80006005, 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-61310504:ctest-vn4-80006005, 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-61310504:ctest-vn4-80006005, 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-61310504:ctest-vn4-80006005, 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-09-10 14:32:34,354 - DEBUG - Response for create_network : {'network': {'id': '18b7e00e-d591-44b9-b7ba-259f82faa93d', 'name': 'ctest-vn4-80006005', 'tenant_id': 'd4fb9e4dba8048bda940d6d8f59fcc62', 'project_id': 'd4fb9e4dba8048bda940d6d8f59fcc62', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-61310504', 'ctest-vn4-80006005'], 'port_security_enabled': True, 'description': ''}} 2026-09-10 14:32:34,561 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c40af8e1-7901-4d3e-bb9a-51b412da4054', 'name': '', 'tenant_id': 'd4fb9e4dba8048bda940d6d8f59fcc62', 'network_id': '18b7e00e-d591-44b9-b7ba-259f82faa93d', 'ip_version': 4, 'cidr': '111.245.80.64/26', 'allocation_pools': [{'start': '111.245.80.66', 'end': '111.245.80.126'}], 'gateway_ip': '111.245.80.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '111.245.80.66', 'tags': [], 'project_id': 'd4fb9e4dba8048bda940d6d8f59fcc62'}} 2026-09-10 14:32:34,769 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd7f85460-0374-4143-b10b-b26944c152c8', 'name': '', 'tenant_id': 'd4fb9e4dba8048bda940d6d8f59fcc62', 'network_id': '18b7e00e-d591-44b9-b7ba-259f82faa93d', 'ip_version': 6, 'cidr': '2113:4b78:78be:c581:a073:c693::/96', 'allocation_pools': [{'start': '2113:4b78:78be:c581:a073:c693:0:2', 'end': '2113:4b78:78be:c581:a073:c693:ffff:fffe'}], 'gateway_ip': '2113:4b78:78be:c581:a073:c693:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2113:4b78:78be:c581:a073:c693:0:2', 'tags': [], 'project_id': 'd4fb9e4dba8048bda940d6d8f59fcc62'}} 2026-09-10 14:32:34,798 - INFO - Created VN ctest-vn4-80006005 2026-09-10 14:32:34,853 - DEBUG - VN ctest-vn4-80006005 UUID is 18b7e00e-d591-44b9-b7ba-259f82faa93d 2026-09-10 14:32:35,084 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '18b7e00e-d591-44b9-b7ba-259f82faa93d', 'name': 'ctest-vn4-80006005', 'tenant_id': 'd4fb9e4dba8048bda940d6d8f59fcc62', 'project_id': 'd4fb9e4dba8048bda940d6d8f59fcc62', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['c40af8e1-7901-4d3e-bb9a-51b412da4054', 'd7f85460-0374-4143-b10b-b26944c152c8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-61310504', 'ctest-vn4-80006005'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-61310504', 'ctest-policy1-95016718']], 'subnet_ipam': [{'subnet_cidr': '111.245.80.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2113:4b78:78be:c581:a073:c693::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-10 14:32:35,261 - DEBUG - Requesting: http://10.0.0.190:8082/domains 2026-09-10 14:32:35,603 - DEBUG - Requesting: http://10.0.0.190:8082/domains 2026-09-10 14:32:35,636 - DEBUG - Requesting: http://10.0.0.190:8082/domain/0fcd04cf-7cae-44e6-8aa6-9255982429dc 2026-09-10 14:32:35,651 - DEBUG - Requesting: http://10.0.0.190:8082/project/d4fb9e4d-ba80-48bd-a940-d6d8f59fcc62 2026-09-10 14:32:35,730 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/18b7e00e-d591-44b9-b7ba-259f82faa93d 2026-09-10 14:32:35,745 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/18b7e00e-d591-44b9-b7ba-259f82faa93d 2026-09-10 14:32:35,757 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/25cd6507-2672-4803-b6b7-b686d6c97a97 2026-09-10 14:32:35,765 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/25cd6507-2672-4803-b6b7-b686d6c97a97 2026-09-10 14:32:35,774 - DEBUG - Requesting: http://10.0.0.190:8082/route-target/d38b890d-518c-4cc6-b419-6365ff260b4d 2026-09-10 14:32:35,783 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-10 14:32:35,783 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/18b7e00e-d591-44b9-b7ba-259f82faa93d 2026-09-10 14:32:35,795 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/25cd6507-2672-4803-b6b7-b686d6c97a97 2026-09-10 14:32:35,812 - INFO - Verified VN network id 12 for VN 18b7e00e-d591-44b9-b7ba-259f82faa93d 2026-09-10 14:32:35,812 - INFO - Verifications in API Server for VN ctest-vn4-80006005 passed 2026-09-10 14:32:35,812 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/18b7e00e-d591-44b9-b7ba-259f82faa93d 2026-09-10 14:32:35,823 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/25cd6507-2672-4803-b6b7-b686d6c97a97 2026-09-10 14:32:35,834 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/25cd6507-2672-4803-b6b7-b686d6c97a97 2026-09-10 14:32:35,842 - DEBUG - Requesting: http://10.0.0.190:8082/route-target/d38b890d-518c-4cc6-b419-6365ff260b4d 2026-09-10 14:32:35,857 - DEBUG - Control-node 10.0.0.190 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61310504:ctest-vn4-80006005', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-61310504', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1781138531965551801', 'uuid-lslong': '13238935421636487485'}, 'enable': 'true', 'created': '2026-09-10T14:32:34', 'last-modified': '2026-09-10T14:32:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.813682'} 2026-09-10 14:32:35,864 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-10 14:32:35,864 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-80006005 passed 2026-09-10 14:32:35,864 - DEBUG - ====Verifying policy data for ctest-vn4-80006005 in API_Server ====== 2026-09-10 14:32:35,864 - DEBUG - Requesting: http://10.0.0.190:8082/domains 2026-09-10 14:32:35,871 - DEBUG - Requesting: http://10.0.0.190:8082/domain/0fcd04cf-7cae-44e6-8aa6-9255982429dc 2026-09-10 14:32:35,884 - DEBUG - Requesting: http://10.0.0.190:8082/project/d4fb9e4d-ba80-48bd-a940-d6d8f59fcc62 2026-09-10 14:32:35,970 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/18b7e00e-d591-44b9-b7ba-259f82faa93d 2026-09-10 14:32:35,982 - DEBUG - ==>Verifying data for policy with id: a4b98270-7753-4556-873c-96bfeedb30a0, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-61310504', 'ctest-policy1-95016718'] 2026-09-10 14:32:35,982 - INFO - VN ctest-vn4-80006005 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-10 14:32:35,982 - DEBUG - Verifying the vn in opserver 2026-09-10 14:32:35,982 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61310504:ctest-vn4-80006005 virtual network link through opserver 10.0.0.190 2026-09-10 14:32:35,982 - DEBUG - Requesting: http://10.0.0.190:8081/analytics/uves/virtual-networks 2026-09-10 14:32:36,317 - DEBUG - Requesting: http://10.0.0.190:8081/analytics/uves/virtual-networks 2026-09-10 14:32:36,385 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61310504:ctest-vn4-80006005', 'href': 'http://10.0.0.190:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61310504:ctest-vn4-80006005?flat'} 2026-09-10 14:32:36,385 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61310504:ctest-vn4-80006005 is found in opserver 2026-09-10 14:32:36,398 - DEBUG - Do not have enough data to verify VN in agent 2026-09-10 14:32:36,404 - DEBUG - VRF ids for VN ctest-vn4-80006005: {} 2026-09-10 14:32:36,405 - DEBUG - ====Verifying data for ctest-policy1-95016718 in API_Server ====== 2026-09-10 14:32:36,405 - DEBUG - Requesting: http://10.0.0.190:8082/domains 2026-09-10 14:32:36,412 - DEBUG - Requesting: http://10.0.0.190:8082/domain/0fcd04cf-7cae-44e6-8aa6-9255982429dc 2026-09-10 14:32:36,428 - DEBUG - Requesting: http://10.0.0.190:8082/project/d4fb9e4d-ba80-48bd-a940-d6d8f59fcc62 2026-09-10 14:32:36,509 - DEBUG - Requesting: http://10.0.0.190:8082/network-policy/a4b98270-7753-4556-873c-96bfeedb30a0 2026-09-10 14:32:36,519 - INFO - Verified policy ctest-policy1-95016718 in API Server, Result: True 2026-09-10 14:32:36,519 - INFO - Done with setup and verification, moving onto test .. 2026-09-10 14:32:36,529 - INFO - Deleting VN ctest-vn4-80006005 2026-09-10 14:32:36,677 - DEBUG - Response for deleting network () 2026-09-10 14:32:36,677 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/25cd6507-2672-4803-b6b7-b686d6c97a97 2026-09-10 14:32:36,683 - DEBUG - Response Code: 404 2026-09-10 14:32:36,683 - DEBUG - Requesting: http://10.0.0.190:8082/domains 2026-09-10 14:32:36,689 - DEBUG - Requesting: http://10.0.0.190:8082/domain/0fcd04cf-7cae-44e6-8aa6-9255982429dc 2026-09-10 14:32:36,746 - DEBUG - Requesting: http://10.0.0.190:8082/project/d4fb9e4d-ba80-48bd-a940-d6d8f59fcc62 2026-09-10 14:32:36,826 - INFO - Validated that VN ctest-vn4-80006005 is not found in API Server 2026-09-10 14:32:36,838 - DEBUG - VN ctest-vn4-80006005 is not present in Agent 10.0.0.190 2026-09-10 14:32:36,838 - INFO - Validated that VN ctest-vn4-80006005 is not in any agent 2026-09-10 14:32:36,858 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-80006005 info 2026-09-10 14:32:36,895 - INFO - Deleted policy ctest-policy1-95016718 2026-09-10 14:32:37,076 - DEBUG - policy ctest-policy1-95016718 is not found in API Server 2026-09-10 14:32:37,346 - DEBUG - No XMPP flaps were noticed during the test
2026-09-10 14:32:37,346 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-09-10 14:32:37,346 - INFO - -------------------------------------------------------------------------------- 2026-09-10 14:32:37,644 - DEBUG - No XMPP flaps were noticed during the test
2026-09-10 14:32:37,644 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-09-10 14:32:37,645 - INFO - -------------------------------------------------------------------------------- 2026-09-10 14:32:38,438 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-61310504, ID : d4fb9e4d-ba80-48bd-a940-d6d8f59fcc62