2026-03-12 02:29:06,159 - INFO - Domain Default found not creating 2026-03-12 02:29:06,311 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-60328883 not found, creating it 2026-03-12 02:29:06,808 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-60328883, ID : 7476dc73-793d-43b7-82cb-2d3f41dc806f 2026-03-12 02:29:08,342 - INFO - ================================================================================ 2026-03-12 02:29:08,343 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-12 02:29:09,626 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.17': '0', '10.20.0.129': '0'}, '10.0.0.133': {'10.20.0.17': '0', '10.20.0.129': '0'}} with 2026-03-12 02:29:09,626 - INFO - Initial checks done. Running the testcase now 2026-03-12 02:29:09,627 - INFO - 2026-03-12 02:29:09,627 - INFO - ================================================================================ 2026-03-12 02:29:09,627 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-12 02:29:09,627 - 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-12 02:29:10,903 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.17': '0', '10.20.0.129': '0'}, '10.0.0.133': {'10.20.0.17': '0', '10.20.0.129': '0'}} with 2026-03-12 02:29:10,903 - INFO - Initial checks done. Running the testcase now 2026-03-12 02:29:10,903 - INFO - 2026-03-12 02:29:11,249 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60328883:ctest-vn4-37885476, 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-60328883:ctest-vn4-37885476, 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-60328883:ctest-vn4-37885476, 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-60328883:ctest-vn4-37885476, 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-12 02:29:11,914 - DEBUG - Response for create_network : {'network': {'id': '0f40919c-022b-4401-8274-c04fe543036e', 'name': 'ctest-vn4-37885476', 'tenant_id': '7476dc73793d43b782cb2d3f41dc806f', 'project_id': '7476dc73793d43b782cb2d3f41dc806f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-60328883', 'ctest-vn4-37885476'], 'port_security_enabled': True, 'description': ''}} 2026-03-12 02:29:12,285 - DEBUG - Response for create_subnet : {'subnet': {'id': '8b401d68-3173-478b-a784-9f65cccdf954', 'name': '', 'tenant_id': '7476dc73793d43b782cb2d3f41dc806f', 'network_id': '0f40919c-022b-4401-8274-c04fe543036e', 'ip_version': 4, 'cidr': '93.157.83.192/26', 'allocation_pools': [{'start': '93.157.83.194', 'end': '93.157.83.254'}], 'gateway_ip': '93.157.83.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '93.157.83.194', 'tags': [], 'project_id': '7476dc73793d43b782cb2d3f41dc806f'}} 2026-03-12 02:29:12,550 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bc52057d-3a73-4d20-bf2a-faa5d01e9672', 'name': '', 'tenant_id': '7476dc73793d43b782cb2d3f41dc806f', 'network_id': '0f40919c-022b-4401-8274-c04fe543036e', 'ip_version': 6, 'cidr': '21c9:6b71:d206:a693:1882:fc03::/96', 'allocation_pools': [{'start': '21c9:6b71:d206:a693:1882:fc03:0:2', 'end': '21c9:6b71:d206:a693:1882:fc03:ffff:fffe'}], 'gateway_ip': '21c9:6b71:d206:a693:1882:fc03:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '21c9:6b71:d206:a693:1882:fc03:0:2', 'tags': [], 'project_id': '7476dc73793d43b782cb2d3f41dc806f'}} 2026-03-12 02:29:12,575 - INFO - Created VN ctest-vn4-37885476 2026-03-12 02:29:12,590 - DEBUG - VN ctest-vn4-37885476 UUID is 0f40919c-022b-4401-8274-c04fe543036e 2026-03-12 02:29:12,808 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0f40919c-022b-4401-8274-c04fe543036e', 'name': 'ctest-vn4-37885476', 'tenant_id': '7476dc73793d43b782cb2d3f41dc806f', 'project_id': '7476dc73793d43b782cb2d3f41dc806f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8b401d68-3173-478b-a784-9f65cccdf954', 'bc52057d-3a73-4d20-bf2a-faa5d01e9672'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-60328883', 'ctest-vn4-37885476'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-60328883', 'ctest-policy1-95294133']], 'subnet_ipam': [{'subnet_cidr': '93.157.83.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '21c9:6b71:d206:a693:1882:fc03::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-12 02:29:12,907 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-03-12 02:29:13,210 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-03-12 02:29:13,240 - DEBUG - Requesting: http://10.0.0.27:8082/domain/816a5ced-493e-44a0-a931-7e59b7e8c6c2 2026-03-12 02:29:13,255 - DEBUG - Requesting: http://10.0.0.27:8082/project/7476dc73-793d-43b7-82cb-2d3f41dc806f 2026-03-12 02:29:13,344 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/0f40919c-022b-4401-8274-c04fe543036e 2026-03-12 02:29:13,362 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/0f40919c-022b-4401-8274-c04fe543036e 2026-03-12 02:29:13,373 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/23c0e1c6-eaa6-41c3-9c86-7b5bfd30c4a7 2026-03-12 02:29:13,382 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/23c0e1c6-eaa6-41c3-9c86-7b5bfd30c4a7 2026-03-12 02:29:13,389 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/13db6285-b2b8-4933-9f7d-a52bcb980ff1 2026-03-12 02:29:13,396 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-12 02:29:13,396 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/0f40919c-022b-4401-8274-c04fe543036e 2026-03-12 02:29:13,408 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/23c0e1c6-eaa6-41c3-9c86-7b5bfd30c4a7 2026-03-12 02:29:13,424 - INFO - Verified VN network id 11 for VN 0f40919c-022b-4401-8274-c04fe543036e 2026-03-12 02:29:13,424 - INFO - Verifications in API Server for VN ctest-vn4-37885476 passed 2026-03-12 02:29:13,424 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/0f40919c-022b-4401-8274-c04fe543036e 2026-03-12 02:29:13,438 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/23c0e1c6-eaa6-41c3-9c86-7b5bfd30c4a7 2026-03-12 02:29:13,448 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/23c0e1c6-eaa6-41c3-9c86-7b5bfd30c4a7 2026-03-12 02:29:13,457 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/13db6285-b2b8-4933-9f7d-a52bcb980ff1 2026-03-12 02:29:13,471 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60328883:ctest-vn4-37885476', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-60328883', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1099038408315716609', 'uuid-lslong': '9400349771610391406'}, 'enable': 'true', 'created': '2026-03-12T02:29:11', 'last-modified': '2026-03-12T02:29:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.725937'} 2026-03-12 02:29:13,478 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-12 02:29:13,484 - DEBUG - Control-node 10.0.0.73 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60328883:ctest-vn4-37885476', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-60328883', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1099038408315716609', 'uuid-lslong': '9400349771610391406'}, 'enable': 'true', 'created': '2026-03-12T02:29:11', 'last-modified': '2026-03-12T02:29:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.741933'} 2026-03-12 02:29:13,490 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-12 02:29:13,496 - DEBUG - Control-node 10.0.0.131 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60328883:ctest-vn4-37885476', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-60328883', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1099038408315716609', 'uuid-lslong': '9400349771610391406'}, 'enable': 'true', 'created': '2026-03-12T02:29:11', 'last-modified': '2026-03-12T02:29:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.753972'} 2026-03-12 02:29:13,502 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-12 02:29:13,502 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-37885476 passed 2026-03-12 02:29:13,502 - DEBUG - ====Verifying policy data for ctest-vn4-37885476 in API_Server ====== 2026-03-12 02:29:13,502 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-03-12 02:29:13,509 - DEBUG - Requesting: http://10.0.0.27:8082/domain/816a5ced-493e-44a0-a931-7e59b7e8c6c2 2026-03-12 02:29:13,520 - DEBUG - Requesting: http://10.0.0.27:8082/project/7476dc73-793d-43b7-82cb-2d3f41dc806f 2026-03-12 02:29:13,616 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/0f40919c-022b-4401-8274-c04fe543036e 2026-03-12 02:29:13,627 - DEBUG - ==>Verifying data for policy with id: f1fa4def-43a7-411e-bb1c-d744406bcb4d, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-60328883', 'ctest-policy1-95294133'] 2026-03-12 02:29:13,627 - INFO - VN ctest-vn4-37885476 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-12 02:29:13,627 - DEBUG - Verifying the vn in opserver 2026-03-12 02:29:13,627 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60328883:ctest-vn4-37885476 virtual network link through opserver 10.0.0.27 2026-03-12 02:29:13,627 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-03-12 02:29:13,919 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-03-12 02:29:13,981 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60328883:ctest-vn4-37885476', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60328883:ctest-vn4-37885476?flat'} 2026-03-12 02:29:13,981 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60328883:ctest-vn4-37885476 virtual network link through opserver 10.0.0.73 2026-03-12 02:29:13,981 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks 2026-03-12 02:29:14,271 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks 2026-03-12 02:29:14,336 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60328883:ctest-vn4-37885476', 'href': 'http://10.0.0.73:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60328883:ctest-vn4-37885476?flat'} 2026-03-12 02:29:14,336 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60328883:ctest-vn4-37885476 virtual network link through opserver 10.0.0.131 2026-03-12 02:29:14,336 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks 2026-03-12 02:29:14,625 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks 2026-03-12 02:29:14,682 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60328883:ctest-vn4-37885476', 'href': 'http://10.0.0.131:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60328883:ctest-vn4-37885476?flat'} 2026-03-12 02:29:14,682 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60328883:ctest-vn4-37885476 is found in opserver 2026-03-12 02:29:14,703 - DEBUG - Do not have enough data to verify VN in agent 2026-03-12 02:29:14,713 - DEBUG - VRF ids for VN ctest-vn4-37885476: {} 2026-03-12 02:29:14,713 - DEBUG - ====Verifying data for ctest-policy1-95294133 in API_Server ====== 2026-03-12 02:29:14,714 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-03-12 02:29:14,719 - DEBUG - Requesting: http://10.0.0.27:8082/domain/816a5ced-493e-44a0-a931-7e59b7e8c6c2 2026-03-12 02:29:14,730 - DEBUG - Requesting: http://10.0.0.27:8082/project/7476dc73-793d-43b7-82cb-2d3f41dc806f 2026-03-12 02:29:14,818 - DEBUG - Requesting: http://10.0.0.27:8082/network-policy/f1fa4def-43a7-411e-bb1c-d744406bcb4d 2026-03-12 02:29:14,827 - INFO - Verified policy ctest-policy1-95294133 in API Server, Result: True 2026-03-12 02:29:14,827 - INFO - Done with setup and verification, moving onto test .. 2026-03-12 02:29:14,839 - INFO - Deleting VN ctest-vn4-37885476 2026-03-12 02:29:15,040 - DEBUG - Response for deleting network () 2026-03-12 02:29:15,040 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/23c0e1c6-eaa6-41c3-9c86-7b5bfd30c4a7 2026-03-12 02:29:15,051 - DEBUG - Response Code: 404 2026-03-12 02:29:15,052 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-03-12 02:29:15,061 - DEBUG - Requesting: http://10.0.0.27:8082/domain/816a5ced-493e-44a0-a931-7e59b7e8c6c2 2026-03-12 02:29:15,074 - DEBUG - Requesting: http://10.0.0.27:8082/project/7476dc73-793d-43b7-82cb-2d3f41dc806f 2026-03-12 02:29:15,174 - INFO - Validated that VN ctest-vn4-37885476 is not found in API Server 2026-03-12 02:29:15,184 - DEBUG - VN ctest-vn4-37885476 is not present in Agent 10.0.0.23 2026-03-12 02:29:15,194 - DEBUG - VN ctest-vn4-37885476 is not present in Agent 10.0.0.133 2026-03-12 02:29:15,194 - INFO - Validated that VN ctest-vn4-37885476 is not in any agent 2026-03-12 02:29:15,227 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-37885476 info 2026-03-12 02:29:15,274 - INFO - Deleted policy ctest-policy1-95294133 2026-03-12 02:29:15,484 - DEBUG - policy ctest-policy1-95294133 is not found in API Server 2026-03-12 02:29:16,774 - DEBUG - No XMPP flaps were noticed during the test
2026-03-12 02:29:16,774 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07]
2026-03-12 02:29:16,774 - INFO - -------------------------------------------------------------------------------- 2026-03-12 02:29:18,042 - DEBUG - No XMPP flaps were noticed during the test
2026-03-12 02:29:18,042 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:10]
2026-03-12 02:29:18,042 - INFO - -------------------------------------------------------------------------------- 2026-03-12 02:29:18,792 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-60328883, ID : 7476dc73-793d-43b7-82cb-2d3f41dc806f