2026-03-24 15:35:47,069 - INFO - Domain Default found not creating 2026-03-24 15:35:47,273 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-25640738 not found, creating it 2026-03-24 15:35:47,816 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-25640738, ID : 1af1dd6f-ce6a-45fe-a269-4ebf791a28b5 2026-03-24 15:35:49,451 - INFO - ================================================================================ 2026-03-24 15:35:49,451 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-24 15:35:49,724 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-03-24 15:35:49,724 - INFO - Initial checks done. Running the testcase now 2026-03-24 15:35:49,724 - INFO - 2026-03-24 15:35:49,724 - INFO - ================================================================================ 2026-03-24 15:35:49,724 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-24 15:35:49,725 - 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-24 15:35:50,020 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-03-24 15:35:50,020 - INFO - Initial checks done. Running the testcase now 2026-03-24 15:35:50,020 - INFO - 2026-03-24 15:35:50,411 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25640738:ctest-vn4-43763150, 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-25640738:ctest-vn4-43763150, 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-25640738:ctest-vn4-43763150, 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-25640738:ctest-vn4-43763150, 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-24 15:35:51,133 - DEBUG - Response for create_network : {'network': {'id': '35390506-d398-42f0-adb4-68c56f09fe9e', 'name': 'ctest-vn4-43763150', 'tenant_id': '1af1dd6fce6a45fea2694ebf791a28b5', 'project_id': '1af1dd6fce6a45fea2694ebf791a28b5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25640738', 'ctest-vn4-43763150'], 'port_security_enabled': True, 'description': ''}} 2026-03-24 15:35:51,475 - DEBUG - Response for create_subnet : {'subnet': {'id': '1cfc4331-0573-4b3f-b8d1-2fd2f77a5bec', 'name': '', 'tenant_id': '1af1dd6fce6a45fea2694ebf791a28b5', 'network_id': '35390506-d398-42f0-adb4-68c56f09fe9e', 'ip_version': 4, 'cidr': '70.122.129.64/26', 'allocation_pools': [{'start': '70.122.129.66', 'end': '70.122.129.126'}], 'gateway_ip': '70.122.129.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '70.122.129.66', 'tags': [], 'project_id': '1af1dd6fce6a45fea2694ebf791a28b5'}} 2026-03-24 15:35:51,704 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c95a95de-0d6f-4e89-bed0-d5adce75323a', 'name': '', 'tenant_id': '1af1dd6fce6a45fea2694ebf791a28b5', 'network_id': '35390506-d398-42f0-adb4-68c56f09fe9e', 'ip_version': 6, 'cidr': '2f9c:5ba1:3252:f964:57ae:94fc::/96', 'allocation_pools': [{'start': '2f9c:5ba1:3252:f964:57ae:94fc:0:2', 'end': '2f9c:5ba1:3252:f964:57ae:94fc:ffff:fffe'}], 'gateway_ip': '2f9c:5ba1:3252:f964:57ae:94fc:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2f9c:5ba1:3252:f964:57ae:94fc:0:2', 'tags': [], 'project_id': '1af1dd6fce6a45fea2694ebf791a28b5'}} 2026-03-24 15:35:51,726 - INFO - Created VN ctest-vn4-43763150 2026-03-24 15:35:51,779 - DEBUG - VN ctest-vn4-43763150 UUID is 35390506-d398-42f0-adb4-68c56f09fe9e 2026-03-24 15:35:52,011 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '35390506-d398-42f0-adb4-68c56f09fe9e', 'name': 'ctest-vn4-43763150', 'tenant_id': '1af1dd6fce6a45fea2694ebf791a28b5', 'project_id': '1af1dd6fce6a45fea2694ebf791a28b5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1cfc4331-0573-4b3f-b8d1-2fd2f77a5bec', 'c95a95de-0d6f-4e89-bed0-d5adce75323a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25640738', 'ctest-vn4-43763150'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25640738', 'ctest-policy1-36571673']], 'subnet_ipam': [{'subnet_cidr': '70.122.129.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2f9c:5ba1:3252:f964:57ae:94fc::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-24 15:35:52,180 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-24 15:35:52,482 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-24 15:35:52,518 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4d11412f-45ef-4562-ab17-cb9dcfac57d1 2026-03-24 15:35:52,534 - DEBUG - Requesting: http://10.0.0.38:8082/project/1af1dd6f-ce6a-45fe-a269-4ebf791a28b5 2026-03-24 15:35:52,610 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/35390506-d398-42f0-adb4-68c56f09fe9e 2026-03-24 15:35:52,623 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/35390506-d398-42f0-adb4-68c56f09fe9e 2026-03-24 15:35:52,637 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c4c3d816-9f5a-4c62-bced-397b70b6b158 2026-03-24 15:35:52,644 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c4c3d816-9f5a-4c62-bced-397b70b6b158 2026-03-24 15:35:52,651 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/d8b2e23c-94d5-4ace-9d94-347f1a015c01 2026-03-24 15:35:52,659 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-24 15:35:52,659 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/35390506-d398-42f0-adb4-68c56f09fe9e 2026-03-24 15:35:52,673 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c4c3d816-9f5a-4c62-bced-397b70b6b158 2026-03-24 15:35:52,691 - INFO - Verified VN network id 12 for VN 35390506-d398-42f0-adb4-68c56f09fe9e 2026-03-24 15:35:52,692 - INFO - Verifications in API Server for VN ctest-vn4-43763150 passed 2026-03-24 15:35:52,692 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/35390506-d398-42f0-adb4-68c56f09fe9e 2026-03-24 15:35:52,703 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c4c3d816-9f5a-4c62-bced-397b70b6b158 2026-03-24 15:35:52,711 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c4c3d816-9f5a-4c62-bced-397b70b6b158 2026-03-24 15:35:52,721 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/d8b2e23c-94d5-4ace-9d94-347f1a015c01 2026-03-24 15:35:52,735 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25640738:ctest-vn4-43763150', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-25640738', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3835102084560601840', 'uuid-lslong': '12516744461550223006'}, 'enable': 'true', 'created': '2026-03-24T15:35:51', 'last-modified': '2026-03-24T15:35:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.754703'} 2026-03-24 15:35:52,743 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-24 15:35:52,743 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-43763150 passed 2026-03-24 15:35:52,743 - DEBUG - ====Verifying policy data for ctest-vn4-43763150 in API_Server ====== 2026-03-24 15:35:52,743 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-24 15:35:52,749 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4d11412f-45ef-4562-ab17-cb9dcfac57d1 2026-03-24 15:35:52,761 - DEBUG - Requesting: http://10.0.0.38:8082/project/1af1dd6f-ce6a-45fe-a269-4ebf791a28b5 2026-03-24 15:35:52,836 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/35390506-d398-42f0-adb4-68c56f09fe9e 2026-03-24 15:35:52,848 - DEBUG - ==>Verifying data for policy with id: efca4a2c-c612-4a7d-ab27-72942cb5afa2, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25640738', 'ctest-policy1-36571673'] 2026-03-24 15:35:52,848 - INFO - VN ctest-vn4-43763150 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-24 15:35:52,848 - DEBUG - Verifying the vn in opserver 2026-03-24 15:35:52,848 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25640738:ctest-vn4-43763150 virtual network link through opserver 10.0.0.38 2026-03-24 15:35:52,849 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-03-24 15:35:53,153 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-03-24 15:35:53,230 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25640738:ctest-vn4-43763150', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25640738:ctest-vn4-43763150?flat'} 2026-03-24 15:35:53,230 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25640738:ctest-vn4-43763150 is found in opserver 2026-03-24 15:35:53,242 - DEBUG - Do not have enough data to verify VN in agent 2026-03-24 15:35:53,248 - DEBUG - VRF ids for VN ctest-vn4-43763150: {} 2026-03-24 15:35:53,248 - DEBUG - ====Verifying data for ctest-policy1-36571673 in API_Server ====== 2026-03-24 15:35:53,248 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-24 15:35:53,255 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4d11412f-45ef-4562-ab17-cb9dcfac57d1 2026-03-24 15:35:53,269 - DEBUG - Requesting: http://10.0.0.38:8082/project/1af1dd6f-ce6a-45fe-a269-4ebf791a28b5 2026-03-24 15:35:53,346 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/efca4a2c-c612-4a7d-ab27-72942cb5afa2 2026-03-24 15:35:53,356 - INFO - Verified policy ctest-policy1-36571673 in API Server, Result: True 2026-03-24 15:35:53,356 - INFO - Done with setup and verification, moving onto test .. 2026-03-24 15:35:53,367 - INFO - Deleting VN ctest-vn4-43763150 2026-03-24 15:35:53,497 - DEBUG - Response for deleting network () 2026-03-24 15:35:53,497 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c4c3d816-9f5a-4c62-bced-397b70b6b158 2026-03-24 15:35:53,503 - DEBUG - Response Code: 404 2026-03-24 15:35:53,503 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-24 15:35:53,510 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4d11412f-45ef-4562-ab17-cb9dcfac57d1 2026-03-24 15:35:53,566 - DEBUG - Requesting: http://10.0.0.38:8082/project/1af1dd6f-ce6a-45fe-a269-4ebf791a28b5 2026-03-24 15:35:53,640 - INFO - Validated that VN ctest-vn4-43763150 is not found in API Server 2026-03-24 15:35:53,651 - DEBUG - VN ctest-vn4-43763150 is not present in Agent 10.0.0.38 2026-03-24 15:35:53,651 - INFO - Validated that VN ctest-vn4-43763150 is not in any agent 2026-03-24 15:35:53,667 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-43763150 info 2026-03-24 15:35:53,697 - INFO - Deleted policy ctest-policy1-36571673 2026-03-24 15:35:53,887 - DEBUG - policy ctest-policy1-36571673 is not found in API Server 2026-03-24 15:35:54,149 - DEBUG - No XMPP flaps were noticed during the test
2026-03-24 15:35:54,149 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-03-24 15:35:54,149 - INFO - -------------------------------------------------------------------------------- 2026-03-24 15:35:54,457 - DEBUG - No XMPP flaps were noticed during the test
2026-03-24 15:35:54,457 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-03-24 15:35:54,457 - INFO - -------------------------------------------------------------------------------- 2026-03-24 15:35:55,173 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-25640738, ID : 1af1dd6f-ce6a-45fe-a269-4ebf791a28b5