2026-01-19 02:29:38,385 - INFO - Domain Default found not creating 2026-01-19 02:29:38,560 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-66723880 not found, creating it 2026-01-19 02:29:39,085 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-66723880, ID : 681c6eab-b9a6-4d54-ae32-2c76cbaf35dc 2026-01-19 02:29:40,604 - INFO - ================================================================================ 2026-01-19 02:29:40,604 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-19 02:29:41,872 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.25': '0', '10.20.0.193': '0'}, '10.0.0.65': {'10.20.0.17': '0', '10.20.0.25': '0'}} with 2026-01-19 02:29:41,872 - INFO - Initial checks done. Running the testcase now 2026-01-19 02:29:41,872 - INFO - 2026-01-19 02:29:41,872 - INFO - ================================================================================ 2026-01-19 02:29:41,872 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-19 02:29:41,872 - 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-01-19 02:29:43,137 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.25': '0', '10.20.0.193': '0'}, '10.0.0.65': {'10.20.0.17': '0', '10.20.0.25': '0'}} with 2026-01-19 02:29:43,137 - INFO - Initial checks done. Running the testcase now 2026-01-19 02:29:43,137 - INFO - 2026-01-19 02:29:43,488 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66723880:ctest-vn4-95695489, 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-66723880:ctest-vn4-95695489, 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-66723880:ctest-vn4-95695489, 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-66723880:ctest-vn4-95695489, 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-01-19 02:29:44,134 - DEBUG - Response for create_network : {'network': {'id': 'fba5c40c-916e-48f2-b8b9-c27948d95a89', 'name': 'ctest-vn4-95695489', 'tenant_id': '681c6eabb9a64d54ae322c76cbaf35dc', 'project_id': '681c6eabb9a64d54ae322c76cbaf35dc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-66723880', 'ctest-vn4-95695489'], 'port_security_enabled': True, 'description': ''}} 2026-01-19 02:29:44,438 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a2574014-c96a-484e-aaa2-a75ae0960b92', 'name': '', 'tenant_id': '681c6eabb9a64d54ae322c76cbaf35dc', 'network_id': 'fba5c40c-916e-48f2-b8b9-c27948d95a89', 'ip_version': 4, 'cidr': '96.45.173.128/26', 'allocation_pools': [{'start': '96.45.173.130', 'end': '96.45.173.190'}], 'gateway_ip': '96.45.173.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '96.45.173.130', 'tags': [], 'project_id': '681c6eabb9a64d54ae322c76cbaf35dc'}} 2026-01-19 02:29:44,654 - DEBUG - Response for create_subnet : {'subnet': {'id': '00da51f3-e0f6-43e2-ab6b-f8bb45cd7960', 'name': '', 'tenant_id': '681c6eabb9a64d54ae322c76cbaf35dc', 'network_id': 'fba5c40c-916e-48f2-b8b9-c27948d95a89', 'ip_version': 6, 'cidr': '289f:18a6:be43:6469:62f4:1d0d::/96', 'allocation_pools': [{'start': '289f:18a6:be43:6469:62f4:1d0d:0:2', 'end': '289f:18a6:be43:6469:62f4:1d0d:ffff:fffe'}], 'gateway_ip': '289f:18a6:be43:6469:62f4:1d0d:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '289f:18a6:be43:6469:62f4:1d0d:0:2', 'tags': [], 'project_id': '681c6eabb9a64d54ae322c76cbaf35dc'}} 2026-01-19 02:29:44,676 - INFO - Created VN ctest-vn4-95695489 2026-01-19 02:29:44,687 - DEBUG - VN ctest-vn4-95695489 UUID is fba5c40c-916e-48f2-b8b9-c27948d95a89 2026-01-19 02:29:44,872 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fba5c40c-916e-48f2-b8b9-c27948d95a89', 'name': 'ctest-vn4-95695489', 'tenant_id': '681c6eabb9a64d54ae322c76cbaf35dc', 'project_id': '681c6eabb9a64d54ae322c76cbaf35dc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a2574014-c96a-484e-aaa2-a75ae0960b92', '00da51f3-e0f6-43e2-ab6b-f8bb45cd7960'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-66723880', 'ctest-vn4-95695489'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-66723880', 'ctest-policy1-43123965']], 'subnet_ipam': [{'subnet_cidr': '96.45.173.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '289f:18a6:be43:6469:62f4:1d0d::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-19 02:29:44,977 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-01-19 02:29:45,271 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-01-19 02:29:45,304 - DEBUG - Requesting: http://10.0.0.27:8082/domain/bc123c74-c45e-4d7a-a955-76f59d7a4cc7 2026-01-19 02:29:45,318 - DEBUG - Requesting: http://10.0.0.27:8082/project/681c6eab-b9a6-4d54-ae32-2c76cbaf35dc 2026-01-19 02:29:45,417 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/fba5c40c-916e-48f2-b8b9-c27948d95a89 2026-01-19 02:29:45,428 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/fba5c40c-916e-48f2-b8b9-c27948d95a89 2026-01-19 02:29:45,437 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/971d1e44-85fb-4fbb-9dbc-63fb316396c4 2026-01-19 02:29:45,443 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/971d1e44-85fb-4fbb-9dbc-63fb316396c4 2026-01-19 02:29:45,449 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/a9c15434-de64-4f73-8638-f1cd1308e784 2026-01-19 02:29:45,455 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-19 02:29:45,455 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/fba5c40c-916e-48f2-b8b9-c27948d95a89 2026-01-19 02:29:45,463 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/971d1e44-85fb-4fbb-9dbc-63fb316396c4 2026-01-19 02:29:45,480 - INFO - Verified VN network id 16 for VN fba5c40c-916e-48f2-b8b9-c27948d95a89 2026-01-19 02:29:45,480 - INFO - Verifications in API Server for VN ctest-vn4-95695489 passed 2026-01-19 02:29:45,480 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/fba5c40c-916e-48f2-b8b9-c27948d95a89 2026-01-19 02:29:45,489 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/971d1e44-85fb-4fbb-9dbc-63fb316396c4 2026-01-19 02:29:45,496 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/971d1e44-85fb-4fbb-9dbc-63fb316396c4 2026-01-19 02:29:45,501 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/a9c15434-de64-4f73-8638-f1cd1308e784 2026-01-19 02:29:45,513 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66723880:ctest-vn4-95695489', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-66723880', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18133115032935745778', 'uuid-lslong': '13310883999839246985'}, 'enable': 'true', 'created': '2026-01-19T02:29:44', 'last-modified': '2026-01-19T02:29:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.681641'} 2026-01-19 02:29:45,519 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-19 02:29:45,524 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66723880:ctest-vn4-95695489', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-66723880', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18133115032935745778', 'uuid-lslong': '13310883999839246985'}, 'enable': 'true', 'created': '2026-01-19T02:29:44', 'last-modified': '2026-01-19T02:29:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.690164'} 2026-01-19 02:29:45,529 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-19 02:29:45,534 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66723880:ctest-vn4-95695489', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-66723880', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18133115032935745778', 'uuid-lslong': '13310883999839246985'}, 'enable': 'true', 'created': '2026-01-19T02:29:44', 'last-modified': '2026-01-19T02:29:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.699900'} 2026-01-19 02:29:45,540 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-19 02:29:45,540 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-95695489 passed 2026-01-19 02:29:45,541 - DEBUG - ====Verifying policy data for ctest-vn4-95695489 in API_Server ====== 2026-01-19 02:29:45,541 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-01-19 02:29:45,546 - DEBUG - Requesting: http://10.0.0.27:8082/domain/bc123c74-c45e-4d7a-a955-76f59d7a4cc7 2026-01-19 02:29:45,556 - DEBUG - Requesting: http://10.0.0.27:8082/project/681c6eab-b9a6-4d54-ae32-2c76cbaf35dc 2026-01-19 02:29:45,661 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/fba5c40c-916e-48f2-b8b9-c27948d95a89 2026-01-19 02:29:45,674 - DEBUG - ==>Verifying data for policy with id: 70b67b66-b778-4259-99e5-a73a5f0d9bd2, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-66723880', 'ctest-policy1-43123965'] 2026-01-19 02:29:45,674 - INFO - VN ctest-vn4-95695489 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-19 02:29:45,674 - DEBUG - Verifying the vn in opserver 2026-01-19 02:29:45,674 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66723880:ctest-vn4-95695489 virtual network link through opserver 10.0.0.27 2026-01-19 02:29:45,674 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-01-19 02:29:45,973 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-01-19 02:29:46,045 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66723880:ctest-vn4-95695489', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66723880:ctest-vn4-95695489?flat'} 2026-01-19 02:29:46,045 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66723880:ctest-vn4-95695489 virtual network link through opserver 10.0.0.50 2026-01-19 02:29:46,045 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-01-19 02:29:46,346 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-01-19 02:29:46,415 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66723880:ctest-vn4-95695489', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66723880:ctest-vn4-95695489?flat'} 2026-01-19 02:29:46,415 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66723880:ctest-vn4-95695489 virtual network link through opserver 10.0.0.23 2026-01-19 02:29:46,415 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-01-19 02:29:46,709 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-01-19 02:29:46,767 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66723880:ctest-vn4-95695489', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66723880:ctest-vn4-95695489?flat'} 2026-01-19 02:29:46,767 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66723880:ctest-vn4-95695489 is found in opserver 2026-01-19 02:29:46,787 - DEBUG - Do not have enough data to verify VN in agent 2026-01-19 02:29:46,796 - DEBUG - VRF ids for VN ctest-vn4-95695489: {} 2026-01-19 02:29:46,797 - DEBUG - ====Verifying data for ctest-policy1-43123965 in API_Server ====== 2026-01-19 02:29:46,797 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-01-19 02:29:46,802 - DEBUG - Requesting: http://10.0.0.27:8082/domain/bc123c74-c45e-4d7a-a955-76f59d7a4cc7 2026-01-19 02:29:46,815 - DEBUG - Requesting: http://10.0.0.27:8082/project/681c6eab-b9a6-4d54-ae32-2c76cbaf35dc 2026-01-19 02:29:46,901 - DEBUG - Requesting: http://10.0.0.27:8082/network-policy/70b67b66-b778-4259-99e5-a73a5f0d9bd2 2026-01-19 02:29:46,910 - INFO - Verified policy ctest-policy1-43123965 in API Server, Result: True 2026-01-19 02:29:46,910 - INFO - Done with setup and verification, moving onto test .. 2026-01-19 02:29:46,922 - INFO - Deleting VN ctest-vn4-95695489 2026-01-19 02:29:47,109 - DEBUG - Response for deleting network () 2026-01-19 02:29:47,109 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/971d1e44-85fb-4fbb-9dbc-63fb316396c4 2026-01-19 02:29:47,114 - DEBUG - Response Code: 404 2026-01-19 02:29:47,115 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-01-19 02:29:47,123 - DEBUG - Requesting: http://10.0.0.27:8082/domain/bc123c74-c45e-4d7a-a955-76f59d7a4cc7 2026-01-19 02:29:47,176 - DEBUG - Requesting: http://10.0.0.27:8082/project/681c6eab-b9a6-4d54-ae32-2c76cbaf35dc 2026-01-19 02:29:47,264 - INFO - Validated that VN ctest-vn4-95695489 is not found in API Server 2026-01-19 02:29:47,274 - DEBUG - VN ctest-vn4-95695489 is not present in Agent 10.0.0.249 2026-01-19 02:29:47,286 - DEBUG - VN ctest-vn4-95695489 is not present in Agent 10.0.0.65 2026-01-19 02:29:47,286 - INFO - Validated that VN ctest-vn4-95695489 is not in any agent 2026-01-19 02:29:47,316 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-95695489 info 2026-01-19 02:29:47,354 - INFO - Deleted policy ctest-policy1-43123965 2026-01-19 02:29:47,547 - DEBUG - policy ctest-policy1-43123965 is not found in API Server 2026-01-19 02:29:48,816 - DEBUG - No XMPP flaps were noticed during the test 2026-01-19 02:29:48,816 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07] 2026-01-19 02:29:48,816 - INFO - -------------------------------------------------------------------------------- 2026-01-19 02:29:50,116 - DEBUG - No XMPP flaps were noticed during the test 2026-01-19 02:29:50,117 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:10] 2026-01-19 02:29:50,117 - INFO - -------------------------------------------------------------------------------- 2026-01-19 02:29:50,848 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-66723880, ID : 681c6eab-b9a6-4d54-ae32-2c76cbaf35dc