2026-01-29 13:10:47,468 - INFO - Domain Default found not creating 2026-01-29 13:10:47,673 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-63414102 not found, creating it 2026-01-29 13:10:48,141 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-63414102, ID : 6893d43c-b6f0-41c5-af6b-26d83124de00 2026-01-29 13:10:49,724 - INFO - ================================================================================ 2026-01-29 13:10:49,724 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-29 13:10:49,979 - DEBUG - Nothing to compare xmpp stats {'10.0.0.133': {'10.20.0.17': '0'}} with 2026-01-29 13:10:49,979 - INFO - Initial checks done. Running the testcase now 2026-01-29 13:10:49,979 - INFO - 2026-01-29 13:10:49,979 - INFO - ================================================================================ 2026-01-29 13:10:49,980 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-29 13:10:49,980 - 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-29 13:10:50,275 - DEBUG - Nothing to compare xmpp stats {'10.0.0.133': {'10.20.0.17': '0'}} with 2026-01-29 13:10:50,275 - INFO - Initial checks done. Running the testcase now 2026-01-29 13:10:50,275 - INFO - 2026-01-29 13:10:50,648 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63414102:ctest-vn4-27505620, 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-63414102:ctest-vn4-27505620, 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-63414102:ctest-vn4-27505620, 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-63414102:ctest-vn4-27505620, 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-29 13:10:51,174 - DEBUG - Response for create_network : {'network': {'id': '6bf11af5-fd2d-49ec-af34-f06c83c05b23', 'name': 'ctest-vn4-27505620', 'tenant_id': '6893d43cb6f041c5af6b26d83124de00', 'project_id': '6893d43cb6f041c5af6b26d83124de00', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-63414102', 'ctest-vn4-27505620'], 'port_security_enabled': True, 'description': ''}} 2026-01-29 13:10:51,406 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e05cdc22-d50a-4f09-b949-30f9c45089f3', 'name': '', 'tenant_id': '6893d43cb6f041c5af6b26d83124de00', 'network_id': '6bf11af5-fd2d-49ec-af34-f06c83c05b23', 'ip_version': 4, 'cidr': '131.201.169.192/26', 'allocation_pools': [{'start': '131.201.169.194', 'end': '131.201.169.254'}], 'gateway_ip': '131.201.169.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '131.201.169.194', 'tags': [], 'project_id': '6893d43cb6f041c5af6b26d83124de00'}} 2026-01-29 13:10:51,623 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f737f7ac-0bce-4c74-bcb1-c79a8d97cae2', 'name': '', 'tenant_id': '6893d43cb6f041c5af6b26d83124de00', 'network_id': '6bf11af5-fd2d-49ec-af34-f06c83c05b23', 'ip_version': 6, 'cidr': '2e74:7368:baa9:14b1:9a4f:5dba::/96', 'allocation_pools': [{'start': '2e74:7368:baa9:14b1:9a4f:5dba:0:2', 'end': '2e74:7368:baa9:14b1:9a4f:5dba:ffff:fffe'}], 'gateway_ip': '2e74:7368:baa9:14b1:9a4f:5dba:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2e74:7368:baa9:14b1:9a4f:5dba:0:2', 'tags': [], 'project_id': '6893d43cb6f041c5af6b26d83124de00'}} 2026-01-29 13:10:51,644 - INFO - Created VN ctest-vn4-27505620 2026-01-29 13:10:51,697 - DEBUG - VN ctest-vn4-27505620 UUID is 6bf11af5-fd2d-49ec-af34-f06c83c05b23 2026-01-29 13:10:51,918 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6bf11af5-fd2d-49ec-af34-f06c83c05b23', 'name': 'ctest-vn4-27505620', 'tenant_id': '6893d43cb6f041c5af6b26d83124de00', 'project_id': '6893d43cb6f041c5af6b26d83124de00', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e05cdc22-d50a-4f09-b949-30f9c45089f3', 'f737f7ac-0bce-4c74-bcb1-c79a8d97cae2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-63414102', 'ctest-vn4-27505620'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-63414102', 'ctest-policy1-28351489']], 'subnet_ipam': [{'subnet_cidr': '131.201.169.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2e74:7368:baa9:14b1:9a4f:5dba::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-29 13:10:52,085 - DEBUG - Requesting: http://10.0.0.133:8082/domains 2026-01-29 13:10:52,383 - DEBUG - Requesting: http://10.0.0.133:8082/domains 2026-01-29 13:10:52,419 - DEBUG - Requesting: http://10.0.0.133:8082/domain/92359388-5d0f-4739-b4e5-e01c04542787 2026-01-29 13:10:52,433 - DEBUG - Requesting: http://10.0.0.133:8082/project/6893d43c-b6f0-41c5-af6b-26d83124de00 2026-01-29 13:10:52,510 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/6bf11af5-fd2d-49ec-af34-f06c83c05b23 2026-01-29 13:10:52,525 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/6bf11af5-fd2d-49ec-af34-f06c83c05b23 2026-01-29 13:10:52,537 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/06cdb8a8-3b62-475f-b366-3bb0bf08e79f 2026-01-29 13:10:52,546 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/06cdb8a8-3b62-475f-b366-3bb0bf08e79f 2026-01-29 13:10:52,553 - DEBUG - Requesting: http://10.0.0.133:8082/route-target/9bd19189-78c8-4a86-bfa9-9f5301f06447 2026-01-29 13:10:52,561 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-29 13:10:52,562 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/6bf11af5-fd2d-49ec-af34-f06c83c05b23 2026-01-29 13:10:52,574 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/06cdb8a8-3b62-475f-b366-3bb0bf08e79f 2026-01-29 13:10:52,592 - INFO - Verified VN network id 11 for VN 6bf11af5-fd2d-49ec-af34-f06c83c05b23 2026-01-29 13:10:52,592 - INFO - Verifications in API Server for VN ctest-vn4-27505620 passed 2026-01-29 13:10:52,592 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/6bf11af5-fd2d-49ec-af34-f06c83c05b23 2026-01-29 13:10:52,603 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/06cdb8a8-3b62-475f-b366-3bb0bf08e79f 2026-01-29 13:10:52,611 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/06cdb8a8-3b62-475f-b366-3bb0bf08e79f 2026-01-29 13:10:52,619 - DEBUG - Requesting: http://10.0.0.133:8082/route-target/9bd19189-78c8-4a86-bfa9-9f5301f06447 2026-01-29 13:10:52,631 - DEBUG - Control-node 10.0.0.133 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63414102:ctest-vn4-27505620', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-63414102', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7778027675262470636', 'uuid-lslong': '12624980004283898659'}, 'enable': 'true', 'created': '2026-01-29T13:10:51', 'last-modified': '2026-01-29T13:10:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.748924'} 2026-01-29 13:10:52,637 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-29 13:10:52,638 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-27505620 passed 2026-01-29 13:10:52,638 - DEBUG - ====Verifying policy data for ctest-vn4-27505620 in API_Server ====== 2026-01-29 13:10:52,638 - DEBUG - Requesting: http://10.0.0.133:8082/domains 2026-01-29 13:10:52,645 - DEBUG - Requesting: http://10.0.0.133:8082/domain/92359388-5d0f-4739-b4e5-e01c04542787 2026-01-29 13:10:52,656 - DEBUG - Requesting: http://10.0.0.133:8082/project/6893d43c-b6f0-41c5-af6b-26d83124de00 2026-01-29 13:10:52,730 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/6bf11af5-fd2d-49ec-af34-f06c83c05b23 2026-01-29 13:10:52,743 - DEBUG - ==>Verifying data for policy with id: 301e8af6-64b6-4c7c-ac87-e84793124b72, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-63414102', 'ctest-policy1-28351489'] 2026-01-29 13:10:52,743 - INFO - VN ctest-vn4-27505620 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-29 13:10:52,743 - DEBUG - Verifying the vn in opserver 2026-01-29 13:10:52,743 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63414102:ctest-vn4-27505620 virtual network link through opserver 10.0.0.133 2026-01-29 13:10:52,744 - DEBUG - Requesting: http://10.0.0.133:8081/analytics/uves/virtual-networks 2026-01-29 13:10:53,043 - DEBUG - Requesting: http://10.0.0.133:8081/analytics/uves/virtual-networks 2026-01-29 13:10:53,115 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63414102:ctest-vn4-27505620', 'href': 'http://10.0.0.133:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63414102:ctest-vn4-27505620?flat'} 2026-01-29 13:10:53,115 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63414102:ctest-vn4-27505620 is found in opserver 2026-01-29 13:10:53,124 - DEBUG - Do not have enough data to verify VN in agent 2026-01-29 13:10:53,128 - DEBUG - VRF ids for VN ctest-vn4-27505620: {} 2026-01-29 13:10:53,129 - DEBUG - ====Verifying data for ctest-policy1-28351489 in API_Server ====== 2026-01-29 13:10:53,129 - DEBUG - Requesting: http://10.0.0.133:8082/domains 2026-01-29 13:10:53,135 - DEBUG - Requesting: http://10.0.0.133:8082/domain/92359388-5d0f-4739-b4e5-e01c04542787 2026-01-29 13:10:53,146 - DEBUG - Requesting: http://10.0.0.133:8082/project/6893d43c-b6f0-41c5-af6b-26d83124de00 2026-01-29 13:10:53,226 - DEBUG - Requesting: http://10.0.0.133:8082/network-policy/301e8af6-64b6-4c7c-ac87-e84793124b72 2026-01-29 13:10:53,238 - INFO - Verified policy ctest-policy1-28351489 in API Server, Result: True 2026-01-29 13:10:53,238 - INFO - Done with setup and verification, moving onto test .. 2026-01-29 13:10:53,248 - INFO - Deleting VN ctest-vn4-27505620 2026-01-29 13:10:53,389 - DEBUG - Response for deleting network () 2026-01-29 13:10:53,389 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/06cdb8a8-3b62-475f-b366-3bb0bf08e79f 2026-01-29 13:10:53,395 - DEBUG - Response Code: 404 2026-01-29 13:10:53,395 - DEBUG - Requesting: http://10.0.0.133:8082/domains 2026-01-29 13:10:53,401 - DEBUG - Requesting: http://10.0.0.133:8082/domain/92359388-5d0f-4739-b4e5-e01c04542787 2026-01-29 13:10:53,455 - DEBUG - Requesting: http://10.0.0.133:8082/project/6893d43c-b6f0-41c5-af6b-26d83124de00 2026-01-29 13:10:53,538 - INFO - Validated that VN ctest-vn4-27505620 is not found in API Server 2026-01-29 13:10:53,549 - DEBUG - VN ctest-vn4-27505620 is not present in Agent 10.0.0.133 2026-01-29 13:10:53,549 - INFO - Validated that VN ctest-vn4-27505620 is not in any agent 2026-01-29 13:10:53,567 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-27505620 info 2026-01-29 13:10:53,598 - INFO - Deleted policy ctest-policy1-28351489 2026-01-29 13:10:53,773 - DEBUG - policy ctest-policy1-28351489 is not found in API Server 2026-01-29 13:10:54,028 - DEBUG - No XMPP flaps were noticed during the test 2026-01-29 13:10:54,028 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-01-29 13:10:54,028 - INFO - -------------------------------------------------------------------------------- 2026-01-29 13:10:54,329 - DEBUG - No XMPP flaps were noticed during the test 2026-01-29 13:10:54,329 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-01-29 13:10:54,329 - INFO - -------------------------------------------------------------------------------- 2026-01-29 13:10:55,041 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-63414102, ID : 6893d43c-b6f0-41c5-af6b-26d83124de00