2026-06-19 14:29:02,170 - INFO - Domain Default found not creating 2026-06-19 14:29:02,377 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-06228977 not found, creating it 2026-06-19 14:29:02,915 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-06228977, ID : 384581bc-e3df-47a4-b04d-3100c83721fd 2026-06-19 14:29:04,506 - INFO - ================================================================================ 2026-06-19 14:29:04,506 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-19 14:29:05,774 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.25': '0', '10.20.0.193': '0'}, '10.0.0.242': {'10.20.0.25': '0', '10.20.0.193': '0'}} with 2026-06-19 14:29:05,774 - INFO - Initial checks done. Running the testcase now 2026-06-19 14:29:05,774 - INFO - 2026-06-19 14:29:05,774 - INFO - ================================================================================ 2026-06-19 14:29:05,774 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-19 14:29:05,774 - 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-06-19 14:29:07,040 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.25': '0', '10.20.0.193': '0'}, '10.0.0.242': {'10.20.0.25': '0', '10.20.0.193': '0'}} with 2026-06-19 14:29:07,040 - INFO - Initial checks done. Running the testcase now 2026-06-19 14:29:07,040 - INFO - 2026-06-19 14:29:07,387 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06228977:ctest-vn4-74417920, 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-06228977:ctest-vn4-74417920, 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-06228977:ctest-vn4-74417920, 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-06228977:ctest-vn4-74417920, 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-06-19 14:29:07,989 - DEBUG - Response for create_network : {'network': {'id': '0d3c65c8-9991-465b-9849-ec0d829ad044', 'name': 'ctest-vn4-74417920', 'tenant_id': '384581bce3df47a4b04d3100c83721fd', 'project_id': '384581bce3df47a4b04d3100c83721fd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06228977', 'ctest-vn4-74417920'], 'port_security_enabled': True, 'description': ''}} 2026-06-19 14:29:08,227 - DEBUG - Response for create_subnet : {'subnet': {'id': '7724fddd-e435-4e30-9096-c8b52aeaa05b', 'name': '', 'tenant_id': '384581bce3df47a4b04d3100c83721fd', 'network_id': '0d3c65c8-9991-465b-9849-ec0d829ad044', 'ip_version': 4, 'cidr': '54.204.216.192/26', 'allocation_pools': [{'start': '54.204.216.194', 'end': '54.204.216.254'}], 'gateway_ip': '54.204.216.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '54.204.216.194', 'tags': [], 'project_id': '384581bce3df47a4b04d3100c83721fd'}} 2026-06-19 14:29:08,444 - DEBUG - Response for create_subnet : {'subnet': {'id': '4de2d110-a7cf-4741-baa9-f601624730d6', 'name': '', 'tenant_id': '384581bce3df47a4b04d3100c83721fd', 'network_id': '0d3c65c8-9991-465b-9849-ec0d829ad044', 'ip_version': 6, 'cidr': '3654:75de:be3d:7a28:b051:4edb::/96', 'allocation_pools': [{'start': '3654:75de:be3d:7a28:b051:4edb:0:2', 'end': '3654:75de:be3d:7a28:b051:4edb:ffff:fffe'}], 'gateway_ip': '3654:75de:be3d:7a28:b051:4edb:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3654:75de:be3d:7a28:b051:4edb:0:2', 'tags': [], 'project_id': '384581bce3df47a4b04d3100c83721fd'}} 2026-06-19 14:29:08,466 - INFO - Created VN ctest-vn4-74417920 2026-06-19 14:29:08,477 - DEBUG - VN ctest-vn4-74417920 UUID is 0d3c65c8-9991-465b-9849-ec0d829ad044 2026-06-19 14:29:08,667 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0d3c65c8-9991-465b-9849-ec0d829ad044', 'name': 'ctest-vn4-74417920', 'tenant_id': '384581bce3df47a4b04d3100c83721fd', 'project_id': '384581bce3df47a4b04d3100c83721fd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7724fddd-e435-4e30-9096-c8b52aeaa05b', '4de2d110-a7cf-4741-baa9-f601624730d6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06228977', 'ctest-vn4-74417920'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06228977', 'ctest-policy1-80645417']], 'subnet_ipam': [{'subnet_cidr': '54.204.216.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3654:75de:be3d:7a28:b051:4edb::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-19 14:29:08,756 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-19 14:29:09,072 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-19 14:29:09,095 - DEBUG - Requesting: http://10.0.0.38:8082/domain/aebc79a0-242c-4231-9b01-470290ed3bc5 2026-06-19 14:29:09,108 - DEBUG - Requesting: http://10.0.0.38:8082/project/384581bc-e3df-47a4-b04d-3100c83721fd 2026-06-19 14:29:09,191 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0d3c65c8-9991-465b-9849-ec0d829ad044 2026-06-19 14:29:09,207 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0d3c65c8-9991-465b-9849-ec0d829ad044 2026-06-19 14:29:09,218 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c2b9e3d6-5e48-46d6-a9a5-10eaf4a04926 2026-06-19 14:29:09,225 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c2b9e3d6-5e48-46d6-a9a5-10eaf4a04926 2026-06-19 14:29:09,232 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b67d2aa7-4942-4ff2-b81e-08f79129e44b 2026-06-19 14:29:09,238 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-19 14:29:09,238 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0d3c65c8-9991-465b-9849-ec0d829ad044 2026-06-19 14:29:09,247 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c2b9e3d6-5e48-46d6-a9a5-10eaf4a04926 2026-06-19 14:29:09,262 - INFO - Verified VN network id 14 for VN 0d3c65c8-9991-465b-9849-ec0d829ad044 2026-06-19 14:29:09,262 - INFO - Verifications in API Server for VN ctest-vn4-74417920 passed 2026-06-19 14:29:09,263 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0d3c65c8-9991-465b-9849-ec0d829ad044 2026-06-19 14:29:09,272 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c2b9e3d6-5e48-46d6-a9a5-10eaf4a04926 2026-06-19 14:29:09,278 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c2b9e3d6-5e48-46d6-a9a5-10eaf4a04926 2026-06-19 14:29:09,284 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b67d2aa7-4942-4ff2-b81e-08f79129e44b 2026-06-19 14:29:09,295 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06228977:ctest-vn4-74417920', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-06228977', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '953749133340001883', 'uuid-lslong': '10973561509834838084'}, 'enable': 'true', 'created': '2026-06-19T14:29:07', 'last-modified': '2026-06-19T14:29:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.664996'} 2026-06-19 14:29:09,300 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-19 14:29:09,304 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06228977:ctest-vn4-74417920', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-06228977', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '953749133340001883', 'uuid-lslong': '10973561509834838084'}, 'enable': 'true', 'created': '2026-06-19T14:29:07', 'last-modified': '2026-06-19T14:29:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.686639'} 2026-06-19 14:29:09,309 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-19 14:29:09,314 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06228977:ctest-vn4-74417920', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-06228977', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '953749133340001883', 'uuid-lslong': '10973561509834838084'}, 'enable': 'true', 'created': '2026-06-19T14:29:07', 'last-modified': '2026-06-19T14:29:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.696275'} 2026-06-19 14:29:09,320 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-19 14:29:09,320 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-74417920 passed 2026-06-19 14:29:09,320 - DEBUG - ====Verifying policy data for ctest-vn4-74417920 in API_Server ====== 2026-06-19 14:29:09,320 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-19 14:29:09,325 - DEBUG - Requesting: http://10.0.0.38:8082/domain/aebc79a0-242c-4231-9b01-470290ed3bc5 2026-06-19 14:29:09,335 - DEBUG - Requesting: http://10.0.0.38:8082/project/384581bc-e3df-47a4-b04d-3100c83721fd 2026-06-19 14:29:09,424 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0d3c65c8-9991-465b-9849-ec0d829ad044 2026-06-19 14:29:09,434 - DEBUG - ==>Verifying data for policy with id: 6e5511dd-dc7e-45bb-8bc6-0b3c09ecf651, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06228977', 'ctest-policy1-80645417'] 2026-06-19 14:29:09,434 - INFO - VN ctest-vn4-74417920 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-19 14:29:09,434 - DEBUG - Verifying the vn in opserver 2026-06-19 14:29:09,434 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06228977:ctest-vn4-74417920 virtual network link through opserver 10.0.0.38 2026-06-19 14:29:09,434 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-06-19 14:29:09,754 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-06-19 14:29:09,799 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06228977:ctest-vn4-74417920', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06228977:ctest-vn4-74417920?flat'} 2026-06-19 14:29:09,799 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06228977:ctest-vn4-74417920 virtual network link through opserver 10.0.0.19 2026-06-19 14:29:09,799 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2026-06-19 14:29:10,111 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2026-06-19 14:29:10,158 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06228977:ctest-vn4-74417920', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06228977:ctest-vn4-74417920?flat'} 2026-06-19 14:29:10,158 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06228977:ctest-vn4-74417920 virtual network link through opserver 10.0.0.129 2026-06-19 14:29:10,158 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2026-06-19 14:29:10,476 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2026-06-19 14:29:10,525 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06228977:ctest-vn4-74417920', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06228977:ctest-vn4-74417920?flat'} 2026-06-19 14:29:10,526 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06228977:ctest-vn4-74417920 is found in opserver 2026-06-19 14:29:10,546 - DEBUG - Do not have enough data to verify VN in agent 2026-06-19 14:29:10,557 - DEBUG - VRF ids for VN ctest-vn4-74417920: {} 2026-06-19 14:29:10,557 - DEBUG - ====Verifying data for ctest-policy1-80645417 in API_Server ====== 2026-06-19 14:29:10,557 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-19 14:29:10,562 - DEBUG - Requesting: http://10.0.0.38:8082/domain/aebc79a0-242c-4231-9b01-470290ed3bc5 2026-06-19 14:29:10,573 - DEBUG - Requesting: http://10.0.0.38:8082/project/384581bc-e3df-47a4-b04d-3100c83721fd 2026-06-19 14:29:10,661 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/6e5511dd-dc7e-45bb-8bc6-0b3c09ecf651 2026-06-19 14:29:10,668 - INFO - Verified policy ctest-policy1-80645417 in API Server, Result: True 2026-06-19 14:29:10,669 - INFO - Done with setup and verification, moving onto test .. 2026-06-19 14:29:10,678 - INFO - Deleting VN ctest-vn4-74417920 2026-06-19 14:29:10,852 - DEBUG - Response for deleting network () 2026-06-19 14:29:10,852 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c2b9e3d6-5e48-46d6-a9a5-10eaf4a04926 2026-06-19 14:29:10,860 - DEBUG - Response Code: 404 2026-06-19 14:29:10,860 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-19 14:29:10,867 - DEBUG - Requesting: http://10.0.0.38:8082/domain/aebc79a0-242c-4231-9b01-470290ed3bc5 2026-06-19 14:29:10,878 - DEBUG - Requesting: http://10.0.0.38:8082/project/384581bc-e3df-47a4-b04d-3100c83721fd 2026-06-19 14:29:10,960 - INFO - Validated that VN ctest-vn4-74417920 is not found in API Server 2026-06-19 14:29:10,969 - DEBUG - VN ctest-vn4-74417920 is not present in Agent 10.0.0.241 2026-06-19 14:29:10,979 - DEBUG - VN ctest-vn4-74417920 is not present in Agent 10.0.0.242 2026-06-19 14:29:10,979 - INFO - Validated that VN ctest-vn4-74417920 is not in any agent 2026-06-19 14:29:11,006 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-74417920 info 2026-06-19 14:29:11,043 - INFO - Deleted policy ctest-policy1-80645417 2026-06-19 14:29:11,228 - DEBUG - policy ctest-policy1-80645417 is not found in API Server 2026-06-19 14:29:12,504 - DEBUG - No XMPP flaps were noticed during the test 2026-06-19 14:29:12,504 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07] 2026-06-19 14:29:12,504 - INFO - -------------------------------------------------------------------------------- 2026-06-19 14:29:13,756 - DEBUG - No XMPP flaps were noticed during the test 2026-06-19 14:29:13,756 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:09] 2026-06-19 14:29:13,757 - INFO - -------------------------------------------------------------------------------- 2026-06-19 14:29:14,468 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-06228977, ID : 384581bc-e3df-47a4-b04d-3100c83721fd