2026-05-13 12:40:43,758 - INFO - Domain Default found not creating 2026-05-13 12:40:43,921 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-86496593 not found, creating it 2026-05-13 12:40:44,385 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-86496593, ID : 07c5edab-cb2a-4698-82c8-7ec0e4473503 2026-05-13 12:40:45,873 - INFO - ================================================================================ 2026-05-13 12:40:45,873 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-13 12:40:46,127 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-05-13 12:40:46,127 - INFO - Initial checks done. Running the testcase now 2026-05-13 12:40:46,127 - INFO - 2026-05-13 12:40:46,127 - INFO - ================================================================================ 2026-05-13 12:40:46,127 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-13 12:40:46,127 - 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-13 12:40:46,413 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-05-13 12:40:46,414 - INFO - Initial checks done. Running the testcase now 2026-05-13 12:40:46,414 - INFO - 2026-05-13 12:40:46,785 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86496593:ctest-vn4-49763530, 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-86496593:ctest-vn4-49763530, 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-86496593:ctest-vn4-49763530, 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-86496593:ctest-vn4-49763530, 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-13 12:40:47,304 - DEBUG - Response for create_network : {'network': {'id': '9ba7a45c-2826-4937-b95b-44952f20fe75', 'name': 'ctest-vn4-49763530', 'tenant_id': '07c5edabcb2a469882c87ec0e4473503', 'project_id': '07c5edabcb2a469882c87ec0e4473503', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-86496593', 'ctest-vn4-49763530'], 'port_security_enabled': True, 'description': ''}} 2026-05-13 12:40:47,481 - DEBUG - Response for create_subnet : {'subnet': {'id': '815030ae-ba21-4138-8e99-722aa1568cf9', 'name': '', 'tenant_id': '07c5edabcb2a469882c87ec0e4473503', 'network_id': '9ba7a45c-2826-4937-b95b-44952f20fe75', 'ip_version': 4, 'cidr': '149.194.134.0/26', 'allocation_pools': [{'start': '149.194.134.2', 'end': '149.194.134.62'}], 'gateway_ip': '149.194.134.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '149.194.134.2', 'tags': [], 'project_id': '07c5edabcb2a469882c87ec0e4473503'}} 2026-05-13 12:40:47,691 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a51fcb38-e90d-4f27-9991-12e36e5b0b39', 'name': '', 'tenant_id': '07c5edabcb2a469882c87ec0e4473503', 'network_id': '9ba7a45c-2826-4937-b95b-44952f20fe75', 'ip_version': 6, 'cidr': '2e16:70f8:7707:bca0:cc6b:314c::/96', 'allocation_pools': [{'start': '2e16:70f8:7707:bca0:cc6b:314c:0:2', 'end': '2e16:70f8:7707:bca0:cc6b:314c:ffff:fffe'}], 'gateway_ip': '2e16:70f8:7707:bca0:cc6b:314c:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2e16:70f8:7707:bca0:cc6b:314c:0:2', 'tags': [], 'project_id': '07c5edabcb2a469882c87ec0e4473503'}} 2026-05-13 12:40:47,711 - INFO - Created VN ctest-vn4-49763530 2026-05-13 12:40:47,765 - DEBUG - VN ctest-vn4-49763530 UUID is 9ba7a45c-2826-4937-b95b-44952f20fe75 2026-05-13 12:40:47,967 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9ba7a45c-2826-4937-b95b-44952f20fe75', 'name': 'ctest-vn4-49763530', 'tenant_id': '07c5edabcb2a469882c87ec0e4473503', 'project_id': '07c5edabcb2a469882c87ec0e4473503', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['815030ae-ba21-4138-8e99-722aa1568cf9', 'a51fcb38-e90d-4f27-9991-12e36e5b0b39'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-86496593', 'ctest-vn4-49763530'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-86496593', 'ctest-policy1-37879763']], 'subnet_ipam': [{'subnet_cidr': '149.194.134.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2e16:70f8:7707:bca0:cc6b:314c::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-13 12:40:48,122 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-05-13 12:40:48,430 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-05-13 12:40:48,460 - DEBUG - Requesting: http://10.0.0.33:8082/domain/ee76beaa-6c24-4746-81e1-21d9a2a1eb0f 2026-05-13 12:40:48,472 - DEBUG - Requesting: http://10.0.0.33:8082/project/07c5edab-cb2a-4698-82c8-7ec0e4473503 2026-05-13 12:40:48,546 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9ba7a45c-2826-4937-b95b-44952f20fe75 2026-05-13 12:40:48,558 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9ba7a45c-2826-4937-b95b-44952f20fe75 2026-05-13 12:40:48,567 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6384d603-fb2d-43fe-954b-8e8e7514fd6f 2026-05-13 12:40:48,574 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6384d603-fb2d-43fe-954b-8e8e7514fd6f 2026-05-13 12:40:48,581 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/85b93c1b-f92b-4a7b-84a6-2747e4d833f8 2026-05-13 12:40:48,588 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-13 12:40:48,588 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9ba7a45c-2826-4937-b95b-44952f20fe75 2026-05-13 12:40:48,597 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6384d603-fb2d-43fe-954b-8e8e7514fd6f 2026-05-13 12:40:48,611 - INFO - Verified VN network id 11 for VN 9ba7a45c-2826-4937-b95b-44952f20fe75 2026-05-13 12:40:48,611 - INFO - Verifications in API Server for VN ctest-vn4-49763530 passed 2026-05-13 12:40:48,611 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9ba7a45c-2826-4937-b95b-44952f20fe75 2026-05-13 12:40:48,620 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6384d603-fb2d-43fe-954b-8e8e7514fd6f 2026-05-13 12:40:48,628 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6384d603-fb2d-43fe-954b-8e8e7514fd6f 2026-05-13 12:40:48,636 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/85b93c1b-f92b-4a7b-84a6-2747e4d833f8 2026-05-13 12:40:48,648 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86496593:ctest-vn4-49763530', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-86496593', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11216114112707053879', 'uuid-lslong': '13356344527428845173'}, 'enable': 'true', 'created': '2026-05-13T12:40:47', 'last-modified': '2026-05-13T12:40:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.715136'} 2026-05-13 12:40:48,655 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-13 12:40:48,655 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-49763530 passed 2026-05-13 12:40:48,655 - DEBUG - ====Verifying policy data for ctest-vn4-49763530 in API_Server ====== 2026-05-13 12:40:48,655 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-05-13 12:40:48,661 - DEBUG - Requesting: http://10.0.0.33:8082/domain/ee76beaa-6c24-4746-81e1-21d9a2a1eb0f 2026-05-13 12:40:48,673 - DEBUG - Requesting: http://10.0.0.33:8082/project/07c5edab-cb2a-4698-82c8-7ec0e4473503 2026-05-13 12:40:48,742 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9ba7a45c-2826-4937-b95b-44952f20fe75 2026-05-13 12:40:48,759 - DEBUG - ==>Verifying data for policy with id: 4b849166-920f-4f23-b7cb-3095f0cadea6, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-86496593', 'ctest-policy1-37879763'] 2026-05-13 12:40:48,760 - INFO - VN ctest-vn4-49763530 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-13 12:40:48,760 - DEBUG - Verifying the vn in opserver 2026-05-13 12:40:48,760 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86496593:ctest-vn4-49763530 virtual network link through opserver 10.0.0.33 2026-05-13 12:40:48,760 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-05-13 12:40:49,051 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-05-13 12:40:49,114 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86496593:ctest-vn4-49763530', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86496593:ctest-vn4-49763530?flat'} 2026-05-13 12:40:49,114 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86496593:ctest-vn4-49763530 is found in opserver 2026-05-13 12:40:49,123 - DEBUG - Do not have enough data to verify VN in agent 2026-05-13 12:40:49,128 - DEBUG - VRF ids for VN ctest-vn4-49763530: {} 2026-05-13 12:40:49,128 - DEBUG - ====Verifying data for ctest-policy1-37879763 in API_Server ====== 2026-05-13 12:40:49,129 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-05-13 12:40:49,134 - DEBUG - Requesting: http://10.0.0.33:8082/domain/ee76beaa-6c24-4746-81e1-21d9a2a1eb0f 2026-05-13 12:40:49,143 - DEBUG - Requesting: http://10.0.0.33:8082/project/07c5edab-cb2a-4698-82c8-7ec0e4473503 2026-05-13 12:40:49,214 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/4b849166-920f-4f23-b7cb-3095f0cadea6 2026-05-13 12:40:49,223 - INFO - Verified policy ctest-policy1-37879763 in API Server, Result: True 2026-05-13 12:40:49,223 - INFO - Done with setup and verification, moving onto test .. 2026-05-13 12:40:49,231 - INFO - Deleting VN ctest-vn4-49763530 2026-05-13 12:40:49,343 - DEBUG - Response for deleting network () 2026-05-13 12:40:49,343 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6384d603-fb2d-43fe-954b-8e8e7514fd6f 2026-05-13 12:40:49,348 - DEBUG - Response Code: 404 2026-05-13 12:40:49,348 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-05-13 12:40:49,352 - DEBUG - Requesting: http://10.0.0.33:8082/domain/ee76beaa-6c24-4746-81e1-21d9a2a1eb0f 2026-05-13 12:40:49,406 - DEBUG - Requesting: http://10.0.0.33:8082/project/07c5edab-cb2a-4698-82c8-7ec0e4473503 2026-05-13 12:40:49,473 - INFO - Validated that VN ctest-vn4-49763530 is not found in API Server 2026-05-13 12:40:49,482 - DEBUG - VN ctest-vn4-49763530 is not present in Agent 10.0.0.33 2026-05-13 12:40:49,482 - INFO - Validated that VN ctest-vn4-49763530 is not in any agent 2026-05-13 12:40:49,497 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-49763530 info 2026-05-13 12:40:49,524 - INFO - Deleted policy ctest-policy1-37879763 2026-05-13 12:40:49,685 - DEBUG - policy ctest-policy1-37879763 is not found in API Server 2026-05-13 12:40:49,938 - DEBUG - No XMPP flaps were noticed during the test 2026-05-13 12:40:49,938 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03] 2026-05-13 12:40:49,938 - INFO - -------------------------------------------------------------------------------- 2026-05-13 12:40:50,227 - DEBUG - No XMPP flaps were noticed during the test 2026-05-13 12:40:50,227 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-05-13 12:40:50,227 - INFO - -------------------------------------------------------------------------------- 2026-05-13 12:40:50,904 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-86496593, ID : 07c5edab-cb2a-4698-82c8-7ec0e4473503