2026-03-14 00:29:46,342 - INFO - Domain Default found not creating 2026-03-14 00:29:46,506 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-08755712 not found, creating it 2026-03-14 00:29:46,955 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-08755712, ID : 5940c1b2-4eec-4dec-beca-93671bf611d0 2026-03-14 00:29:48,444 - INFO - ================================================================================ 2026-03-14 00:29:48,444 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-14 00:29:48,700 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with 2026-03-14 00:29:48,700 - INFO - Initial checks done. Running the testcase now 2026-03-14 00:29:48,700 - INFO - 2026-03-14 00:29:48,701 - INFO - ================================================================================ 2026-03-14 00:29:48,701 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-14 00:29:48,701 - 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-14 00:29:48,989 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with 2026-03-14 00:29:48,989 - INFO - Initial checks done. Running the testcase now 2026-03-14 00:29:48,989 - INFO - 2026-03-14 00:29:49,347 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08755712:ctest-vn4-27279672, 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-08755712:ctest-vn4-27279672, 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-08755712:ctest-vn4-27279672, 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-08755712:ctest-vn4-27279672, 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-14 00:29:49,850 - DEBUG - Response for create_network : {'network': {'id': '12115b0a-e1a3-450f-9c83-4ef6bb911a8c', 'name': 'ctest-vn4-27279672', 'tenant_id': '5940c1b24eec4decbeca93671bf611d0', 'project_id': '5940c1b24eec4decbeca93671bf611d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-08755712', 'ctest-vn4-27279672'], 'port_security_enabled': True, 'description': ''}} 2026-03-14 00:29:50,052 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f6430c5a-087f-4885-b8d7-e90b82f4ddff', 'name': '', 'tenant_id': '5940c1b24eec4decbeca93671bf611d0', 'network_id': '12115b0a-e1a3-450f-9c83-4ef6bb911a8c', 'ip_version': 4, 'cidr': '199.84.130.64/26', 'allocation_pools': [{'start': '199.84.130.66', 'end': '199.84.130.126'}], 'gateway_ip': '199.84.130.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '199.84.130.66', 'tags': [], 'project_id': '5940c1b24eec4decbeca93671bf611d0'}} 2026-03-14 00:29:50,227 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b08c4e42-4b7a-48c9-b67e-1a71207bb61d', 'name': '', 'tenant_id': '5940c1b24eec4decbeca93671bf611d0', 'network_id': '12115b0a-e1a3-450f-9c83-4ef6bb911a8c', 'ip_version': 6, 'cidr': '2137:3236:1d0f:57cd:2251:64cd::/96', 'allocation_pools': [{'start': '2137:3236:1d0f:57cd:2251:64cd:0:2', 'end': '2137:3236:1d0f:57cd:2251:64cd:ffff:fffe'}], 'gateway_ip': '2137:3236:1d0f:57cd:2251:64cd:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2137:3236:1d0f:57cd:2251:64cd:0:2', 'tags': [], 'project_id': '5940c1b24eec4decbeca93671bf611d0'}} 2026-03-14 00:29:50,246 - INFO - Created VN ctest-vn4-27279672 2026-03-14 00:29:50,295 - DEBUG - VN ctest-vn4-27279672 UUID is 12115b0a-e1a3-450f-9c83-4ef6bb911a8c 2026-03-14 00:29:50,499 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '12115b0a-e1a3-450f-9c83-4ef6bb911a8c', 'name': 'ctest-vn4-27279672', 'tenant_id': '5940c1b24eec4decbeca93671bf611d0', 'project_id': '5940c1b24eec4decbeca93671bf611d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f6430c5a-087f-4885-b8d7-e90b82f4ddff', 'b08c4e42-4b7a-48c9-b67e-1a71207bb61d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-08755712', 'ctest-vn4-27279672'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-08755712', 'ctest-policy1-66041567']], 'subnet_ipam': [{'subnet_cidr': '199.84.130.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2137:3236:1d0f:57cd:2251:64cd::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-14 00:29:50,659 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-03-14 00:29:50,970 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-03-14 00:29:51,007 - DEBUG - Requesting: http://10.0.0.249:8082/domain/56d0b843-db41-480a-9ce1-f5fc7f95ba33 2026-03-14 00:29:51,020 - DEBUG - Requesting: http://10.0.0.249:8082/project/5940c1b2-4eec-4dec-beca-93671bf611d0 2026-03-14 00:29:51,096 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/12115b0a-e1a3-450f-9c83-4ef6bb911a8c 2026-03-14 00:29:51,110 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/12115b0a-e1a3-450f-9c83-4ef6bb911a8c 2026-03-14 00:29:51,123 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/83196d61-3d37-42dc-b1ad-08ce10f44643 2026-03-14 00:29:51,130 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/83196d61-3d37-42dc-b1ad-08ce10f44643 2026-03-14 00:29:51,137 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/20cabf5f-a6ea-4e1c-aeab-5deec8fa83e0 2026-03-14 00:29:51,145 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-14 00:29:51,145 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/12115b0a-e1a3-450f-9c83-4ef6bb911a8c 2026-03-14 00:29:51,155 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/83196d61-3d37-42dc-b1ad-08ce10f44643 2026-03-14 00:29:51,171 - INFO - Verified VN network id 11 for VN 12115b0a-e1a3-450f-9c83-4ef6bb911a8c 2026-03-14 00:29:51,171 - INFO - Verifications in API Server for VN ctest-vn4-27279672 passed 2026-03-14 00:29:51,171 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/12115b0a-e1a3-450f-9c83-4ef6bb911a8c 2026-03-14 00:29:51,185 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/83196d61-3d37-42dc-b1ad-08ce10f44643 2026-03-14 00:29:51,194 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/83196d61-3d37-42dc-b1ad-08ce10f44643 2026-03-14 00:29:51,203 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/20cabf5f-a6ea-4e1c-aeab-5deec8fa83e0 2026-03-14 00:29:51,215 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08755712:ctest-vn4-27279672', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-08755712', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1301921869580158223', 'uuid-lslong': '11277944713481624204'}, 'enable': 'true', 'created': '2026-03-14T00:29:49', 'last-modified': '2026-03-14T00:29:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.747965'} 2026-03-14 00:29:51,220 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-14 00:29:51,221 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-27279672 passed 2026-03-14 00:29:51,221 - DEBUG - ====Verifying policy data for ctest-vn4-27279672 in API_Server ====== 2026-03-14 00:29:51,221 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-03-14 00:29:51,226 - DEBUG - Requesting: http://10.0.0.249:8082/domain/56d0b843-db41-480a-9ce1-f5fc7f95ba33 2026-03-14 00:29:51,236 - DEBUG - Requesting: http://10.0.0.249:8082/project/5940c1b2-4eec-4dec-beca-93671bf611d0 2026-03-14 00:29:51,307 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/12115b0a-e1a3-450f-9c83-4ef6bb911a8c 2026-03-14 00:29:51,316 - DEBUG - ==>Verifying data for policy with id: 9d673391-8d42-4f4e-b490-b8e9868a28a9, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-08755712', 'ctest-policy1-66041567'] 2026-03-14 00:29:51,316 - INFO - VN ctest-vn4-27279672 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-14 00:29:51,316 - DEBUG - Verifying the vn in opserver 2026-03-14 00:29:51,316 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08755712:ctest-vn4-27279672 virtual network link through opserver 10.0.0.249 2026-03-14 00:29:51,316 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-03-14 00:29:51,608 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-03-14 00:29:51,672 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08755712:ctest-vn4-27279672', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08755712:ctest-vn4-27279672?flat'} 2026-03-14 00:29:51,672 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08755712:ctest-vn4-27279672 is found in opserver 2026-03-14 00:29:51,682 - DEBUG - Do not have enough data to verify VN in agent 2026-03-14 00:29:51,686 - DEBUG - VRF ids for VN ctest-vn4-27279672: {} 2026-03-14 00:29:51,687 - DEBUG - ====Verifying data for ctest-policy1-66041567 in API_Server ====== 2026-03-14 00:29:51,687 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-03-14 00:29:51,692 - DEBUG - Requesting: http://10.0.0.249:8082/domain/56d0b843-db41-480a-9ce1-f5fc7f95ba33 2026-03-14 00:29:51,703 - DEBUG - Requesting: http://10.0.0.249:8082/project/5940c1b2-4eec-4dec-beca-93671bf611d0 2026-03-14 00:29:51,773 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/9d673391-8d42-4f4e-b490-b8e9868a28a9 2026-03-14 00:29:51,783 - INFO - Verified policy ctest-policy1-66041567 in API Server, Result: True 2026-03-14 00:29:51,783 - INFO - Done with setup and verification, moving onto test .. 2026-03-14 00:29:51,791 - INFO - Deleting VN ctest-vn4-27279672 2026-03-14 00:29:51,916 - DEBUG - Response for deleting network () 2026-03-14 00:29:51,916 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/83196d61-3d37-42dc-b1ad-08ce10f44643 2026-03-14 00:29:51,921 - DEBUG - Response Code: 404 2026-03-14 00:29:51,921 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-03-14 00:29:51,926 - DEBUG - Requesting: http://10.0.0.249:8082/domain/56d0b843-db41-480a-9ce1-f5fc7f95ba33 2026-03-14 00:29:51,980 - DEBUG - Requesting: http://10.0.0.249:8082/project/5940c1b2-4eec-4dec-beca-93671bf611d0 2026-03-14 00:29:52,053 - INFO - Validated that VN ctest-vn4-27279672 is not found in API Server 2026-03-14 00:29:52,062 - DEBUG - VN ctest-vn4-27279672 is not present in Agent 10.0.0.249 2026-03-14 00:29:52,062 - INFO - Validated that VN ctest-vn4-27279672 is not in any agent 2026-03-14 00:29:52,076 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-27279672 info 2026-03-14 00:29:52,101 - INFO - Deleted policy ctest-policy1-66041567 2026-03-14 00:29:52,263 - DEBUG - policy ctest-policy1-66041567 is not found in API Server 2026-03-14 00:29:52,517 - DEBUG - No XMPP flaps were noticed during the test 2026-03-14 00:29:52,517 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-03-14 00:29:52,517 - INFO - -------------------------------------------------------------------------------- 2026-03-14 00:29:52,803 - DEBUG - No XMPP flaps were noticed during the test 2026-03-14 00:29:52,803 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-03-14 00:29:52,803 - INFO - -------------------------------------------------------------------------------- 2026-03-14 00:29:53,502 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-08755712, ID : 5940c1b2-4eec-4dec-beca-93671bf611d0