2026-02-12 16:25:09,547 - INFO - Domain Default found not creating 2026-02-12 16:25:09,751 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-41709069 not found, creating it 2026-02-12 16:25:10,248 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-41709069, ID : 1baa8b88-9348-48ab-a665-315bc249e87b 2026-02-12 16:25:11,818 - INFO - ================================================================================ 2026-02-12 16:25:11,819 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-12 16:25:12,072 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-02-12 16:25:12,072 - INFO - Initial checks done. Running the testcase now 2026-02-12 16:25:12,072 - INFO - 2026-02-12 16:25:12,072 - INFO - ================================================================================ 2026-02-12 16:25:12,072 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-12 16:25:12,072 - 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-02-12 16:25:12,364 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-02-12 16:25:12,365 - INFO - Initial checks done. Running the testcase now 2026-02-12 16:25:12,365 - INFO - 2026-02-12 16:25:12,719 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41709069:ctest-vn4-79779100, 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-41709069:ctest-vn4-79779100, 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-41709069:ctest-vn4-79779100, 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-41709069:ctest-vn4-79779100, 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-02-12 16:25:13,244 - DEBUG - Response for create_network : {'network': {'id': 'f281bb43-a05d-46b4-b866-15d865fa5c79', 'name': 'ctest-vn4-79779100', 'tenant_id': '1baa8b88934848aba665315bc249e87b', 'project_id': '1baa8b88934848aba665315bc249e87b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-41709069', 'ctest-vn4-79779100'], 'port_security_enabled': True, 'description': ''}} 2026-02-12 16:25:13,473 - DEBUG - Response for create_subnet : {'subnet': {'id': 'af9d3a70-8390-4f9e-81a2-a3a2e47a6dbc', 'name': '', 'tenant_id': '1baa8b88934848aba665315bc249e87b', 'network_id': 'f281bb43-a05d-46b4-b866-15d865fa5c79', 'ip_version': 4, 'cidr': '154.213.52.128/26', 'allocation_pools': [{'start': '154.213.52.130', 'end': '154.213.52.190'}], 'gateway_ip': '154.213.52.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '154.213.52.130', 'tags': [], 'project_id': '1baa8b88934848aba665315bc249e87b'}} 2026-02-12 16:25:13,621 - DEBUG - Response for create_subnet : {'subnet': {'id': '0e22eaee-cb57-4cd1-9d04-45d861a7374f', 'name': '', 'tenant_id': '1baa8b88934848aba665315bc249e87b', 'network_id': 'f281bb43-a05d-46b4-b866-15d865fa5c79', 'ip_version': 6, 'cidr': '35fd:d6ea:92e7:3e6b:f1c6:5b0::/96', 'allocation_pools': [{'start': '35fd:d6ea:92e7:3e6b:f1c6:5b0:0:2', 'end': '35fd:d6ea:92e7:3e6b:f1c6:5b0:ffff:fffe'}], 'gateway_ip': '35fd:d6ea:92e7:3e6b:f1c6:5b0:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '35fd:d6ea:92e7:3e6b:f1c6:5b0:0:2', 'tags': [], 'project_id': '1baa8b88934848aba665315bc249e87b'}} 2026-02-12 16:25:13,648 - INFO - Created VN ctest-vn4-79779100 2026-02-12 16:25:13,703 - DEBUG - VN ctest-vn4-79779100 UUID is f281bb43-a05d-46b4-b866-15d865fa5c79 2026-02-12 16:25:13,920 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f281bb43-a05d-46b4-b866-15d865fa5c79', 'name': 'ctest-vn4-79779100', 'tenant_id': '1baa8b88934848aba665315bc249e87b', 'project_id': '1baa8b88934848aba665315bc249e87b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['af9d3a70-8390-4f9e-81a2-a3a2e47a6dbc', '0e22eaee-cb57-4cd1-9d04-45d861a7374f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-41709069', 'ctest-vn4-79779100'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-41709069', 'ctest-policy1-73032964']], 'subnet_ipam': [{'subnet_cidr': '154.213.52.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '35fd:d6ea:92e7:3e6b:f1c6:5b0::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-12 16:25:14,087 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-12 16:25:14,382 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-12 16:25:14,413 - DEBUG - Requesting: http://10.0.0.38:8082/domain/eb7189ad-c31e-42ff-8f4a-7174600316f4 2026-02-12 16:25:14,426 - DEBUG - Requesting: http://10.0.0.38:8082/project/1baa8b88-9348-48ab-a665-315bc249e87b 2026-02-12 16:25:14,496 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f281bb43-a05d-46b4-b866-15d865fa5c79 2026-02-12 16:25:14,510 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f281bb43-a05d-46b4-b866-15d865fa5c79 2026-02-12 16:25:14,522 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7ffb5571-e6ef-4681-9ac9-d9e2cdd60683 2026-02-12 16:25:14,530 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7ffb5571-e6ef-4681-9ac9-d9e2cdd60683 2026-02-12 16:25:14,539 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/35554cb2-5588-434d-9f3c-61c3613e402b 2026-02-12 16:25:14,547 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-12 16:25:14,547 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f281bb43-a05d-46b4-b866-15d865fa5c79 2026-02-12 16:25:14,559 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7ffb5571-e6ef-4681-9ac9-d9e2cdd60683 2026-02-12 16:25:14,574 - INFO - Verified VN network id 12 for VN f281bb43-a05d-46b4-b866-15d865fa5c79 2026-02-12 16:25:14,575 - INFO - Verifications in API Server for VN ctest-vn4-79779100 passed 2026-02-12 16:25:14,575 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f281bb43-a05d-46b4-b866-15d865fa5c79 2026-02-12 16:25:14,585 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7ffb5571-e6ef-4681-9ac9-d9e2cdd60683 2026-02-12 16:25:14,592 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7ffb5571-e6ef-4681-9ac9-d9e2cdd60683 2026-02-12 16:25:14,599 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/35554cb2-5588-434d-9f3c-61c3613e402b 2026-02-12 16:25:14,611 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41709069:ctest-vn4-79779100', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-41709069', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17474453928301905588', 'uuid-lslong': '13287331769771252857'}, 'enable': 'true', 'created': '2026-02-12T16:25:13', 'last-modified': '2026-02-12T16:25:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.715596'} 2026-02-12 16:25:14,617 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-12 16:25:14,617 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-79779100 passed 2026-02-12 16:25:14,618 - DEBUG - ====Verifying policy data for ctest-vn4-79779100 in API_Server ====== 2026-02-12 16:25:14,618 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-12 16:25:14,624 - DEBUG - Requesting: http://10.0.0.38:8082/domain/eb7189ad-c31e-42ff-8f4a-7174600316f4 2026-02-12 16:25:14,636 - DEBUG - Requesting: http://10.0.0.38:8082/project/1baa8b88-9348-48ab-a665-315bc249e87b 2026-02-12 16:25:14,711 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f281bb43-a05d-46b4-b866-15d865fa5c79 2026-02-12 16:25:14,719 - DEBUG - ==>Verifying data for policy with id: bc0b68ce-c44d-4611-b345-63bc9e85c8dc, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-41709069', 'ctest-policy1-73032964'] 2026-02-12 16:25:14,719 - INFO - VN ctest-vn4-79779100 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-12 16:25:14,720 - DEBUG - Verifying the vn in opserver 2026-02-12 16:25:14,720 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41709069:ctest-vn4-79779100 virtual network link through opserver 10.0.0.38 2026-02-12 16:25:14,720 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-12 16:25:15,014 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-12 16:25:15,076 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41709069:ctest-vn4-79779100', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41709069:ctest-vn4-79779100?flat'} 2026-02-12 16:25:15,076 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41709069:ctest-vn4-79779100 is found in opserver 2026-02-12 16:25:15,086 - DEBUG - Do not have enough data to verify VN in agent 2026-02-12 16:25:15,090 - DEBUG - VRF ids for VN ctest-vn4-79779100: {} 2026-02-12 16:25:15,090 - DEBUG - ====Verifying data for ctest-policy1-73032964 in API_Server ====== 2026-02-12 16:25:15,090 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-12 16:25:15,096 - DEBUG - Requesting: http://10.0.0.38:8082/domain/eb7189ad-c31e-42ff-8f4a-7174600316f4 2026-02-12 16:25:15,105 - DEBUG - Requesting: http://10.0.0.38:8082/project/1baa8b88-9348-48ab-a665-315bc249e87b 2026-02-12 16:25:15,172 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/bc0b68ce-c44d-4611-b345-63bc9e85c8dc 2026-02-12 16:25:15,181 - INFO - Verified policy ctest-policy1-73032964 in API Server, Result: True 2026-02-12 16:25:15,181 - INFO - Done with setup and verification, moving onto test .. 2026-02-12 16:25:15,188 - INFO - Deleting VN ctest-vn4-79779100 2026-02-12 16:25:15,300 - DEBUG - Response for deleting network () 2026-02-12 16:25:15,300 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7ffb5571-e6ef-4681-9ac9-d9e2cdd60683 2026-02-12 16:25:15,304 - DEBUG - Response Code: 404 2026-02-12 16:25:15,304 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-12 16:25:15,309 - DEBUG - Requesting: http://10.0.0.38:8082/domain/eb7189ad-c31e-42ff-8f4a-7174600316f4 2026-02-12 16:25:15,368 - DEBUG - Requesting: http://10.0.0.38:8082/project/1baa8b88-9348-48ab-a665-315bc249e87b 2026-02-12 16:25:15,440 - INFO - Validated that VN ctest-vn4-79779100 is not found in API Server 2026-02-12 16:25:15,450 - DEBUG - VN ctest-vn4-79779100 is not present in Agent 10.0.0.38 2026-02-12 16:25:15,451 - INFO - Validated that VN ctest-vn4-79779100 is not in any agent 2026-02-12 16:25:15,464 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-79779100 info 2026-02-12 16:25:15,486 - INFO - Deleted policy ctest-policy1-73032964 2026-02-12 16:25:15,647 - DEBUG - policy ctest-policy1-73032964 is not found in API Server 2026-02-12 16:25:15,904 - DEBUG - No XMPP flaps were noticed during the test 2026-02-12 16:25:15,904 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03] 2026-02-12 16:25:15,904 - INFO - -------------------------------------------------------------------------------- 2026-02-12 16:25:16,192 - DEBUG - No XMPP flaps were noticed during the test 2026-02-12 16:25:16,192 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-02-12 16:25:16,192 - INFO - -------------------------------------------------------------------------------- 2026-02-12 16:25:16,864 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-41709069, ID : 1baa8b88-9348-48ab-a665-315bc249e87b