2026-02-04 10:06:07,178 - INFO - Domain Default found not creating 2026-02-04 10:06:07,334 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-95437211 not found, creating it 2026-02-04 10:06:07,780 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-95437211, ID : 9a6e995c-ea23-431b-b6bf-5a93e415d96f 2026-02-04 10:06:09,188 - INFO - ================================================================================ 2026-02-04 10:06:09,188 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-04 10:06:09,442 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-02-04 10:06:09,442 - INFO - Initial checks done. Running the testcase now 2026-02-04 10:06:09,442 - INFO - 2026-02-04 10:06:09,442 - INFO - ================================================================================ 2026-02-04 10:06:09,442 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-04 10:06:09,442 - 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-04 10:06:09,735 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-02-04 10:06:09,735 - INFO - Initial checks done. Running the testcase now 2026-02-04 10:06:09,735 - INFO - 2026-02-04 10:06:10,080 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95437211:ctest-vn4-49325274, 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-95437211:ctest-vn4-49325274, 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-95437211:ctest-vn4-49325274, 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-95437211:ctest-vn4-49325274, 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-04 10:06:10,562 - DEBUG - Response for create_network : {'network': {'id': 'ccfd5472-3b05-42bf-82ad-ec8e597af442', 'name': 'ctest-vn4-49325274', 'tenant_id': '9a6e995cea23431bb6bf5a93e415d96f', 'project_id': '9a6e995cea23431bb6bf5a93e415d96f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95437211', 'ctest-vn4-49325274'], 'port_security_enabled': True, 'description': ''}} 2026-02-04 10:06:10,751 - DEBUG - Response for create_subnet : {'subnet': {'id': '6f817ef8-271e-4f53-afaf-ca2a65caed1b', 'name': '', 'tenant_id': '9a6e995cea23431bb6bf5a93e415d96f', 'network_id': 'ccfd5472-3b05-42bf-82ad-ec8e597af442', 'ip_version': 4, 'cidr': '17.133.71.64/26', 'allocation_pools': [{'start': '17.133.71.66', 'end': '17.133.71.126'}], 'gateway_ip': '17.133.71.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '17.133.71.66', 'tags': [], 'project_id': '9a6e995cea23431bb6bf5a93e415d96f'}} 2026-02-04 10:06:10,912 - DEBUG - Response for create_subnet : {'subnet': {'id': '85134ac3-1e27-4050-b0ad-f8b3108a4c87', 'name': '', 'tenant_id': '9a6e995cea23431bb6bf5a93e415d96f', 'network_id': 'ccfd5472-3b05-42bf-82ad-ec8e597af442', 'ip_version': 6, 'cidr': '3deb:3907:e265:d068:169a:97f::/96', 'allocation_pools': [{'start': '3deb:3907:e265:d068:169a:97f:0:2', 'end': '3deb:3907:e265:d068:169a:97f:ffff:fffe'}], 'gateway_ip': '3deb:3907:e265:d068:169a:97f:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3deb:3907:e265:d068:169a:97f:0:2', 'tags': [], 'project_id': '9a6e995cea23431bb6bf5a93e415d96f'}} 2026-02-04 10:06:10,988 - INFO - Created VN ctest-vn4-49325274 2026-02-04 10:06:11,041 - DEBUG - VN ctest-vn4-49325274 UUID is ccfd5472-3b05-42bf-82ad-ec8e597af442 2026-02-04 10:06:11,227 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ccfd5472-3b05-42bf-82ad-ec8e597af442', 'name': 'ctest-vn4-49325274', 'tenant_id': '9a6e995cea23431bb6bf5a93e415d96f', 'project_id': '9a6e995cea23431bb6bf5a93e415d96f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6f817ef8-271e-4f53-afaf-ca2a65caed1b', '85134ac3-1e27-4050-b0ad-f8b3108a4c87'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95437211', 'ctest-vn4-49325274'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95437211', 'ctest-policy1-34284319']], 'subnet_ipam': [{'subnet_cidr': '17.133.71.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3deb:3907:e265:d068:169a:97f::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-04 10:06:11,390 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-04 10:06:11,680 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-04 10:06:11,710 - DEBUG - Requesting: http://10.0.0.38:8082/domain/47153d5d-ff6d-41fb-8db9-9156d15971d1 2026-02-04 10:06:11,721 - DEBUG - Requesting: http://10.0.0.38:8082/project/9a6e995c-ea23-431b-b6bf-5a93e415d96f 2026-02-04 10:06:11,792 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ccfd5472-3b05-42bf-82ad-ec8e597af442 2026-02-04 10:06:11,805 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ccfd5472-3b05-42bf-82ad-ec8e597af442 2026-02-04 10:06:11,815 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b6d8bb3c-033a-41fe-95c2-4f6e1a026869 2026-02-04 10:06:11,822 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b6d8bb3c-033a-41fe-95c2-4f6e1a026869 2026-02-04 10:06:11,828 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/67dfc0cc-2b68-4660-ada6-cbd691a67036 2026-02-04 10:06:11,834 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-04 10:06:11,834 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ccfd5472-3b05-42bf-82ad-ec8e597af442 2026-02-04 10:06:11,842 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b6d8bb3c-033a-41fe-95c2-4f6e1a026869 2026-02-04 10:06:11,855 - INFO - Verified VN network id 12 for VN ccfd5472-3b05-42bf-82ad-ec8e597af442 2026-02-04 10:06:11,856 - INFO - Verifications in API Server for VN ctest-vn4-49325274 passed 2026-02-04 10:06:11,856 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ccfd5472-3b05-42bf-82ad-ec8e597af442 2026-02-04 10:06:11,864 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b6d8bb3c-033a-41fe-95c2-4f6e1a026869 2026-02-04 10:06:11,870 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b6d8bb3c-033a-41fe-95c2-4f6e1a026869 2026-02-04 10:06:11,876 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/67dfc0cc-2b68-4660-ada6-cbd691a67036 2026-02-04 10:06:11,886 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95437211:ctest-vn4-49325274', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-95437211', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14771055202438300351', 'uuid-lslong': '9416442492032316482'}, 'enable': 'true', 'created': '2026-02-04T10:06:10', 'last-modified': '2026-02-04T10:06:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.684286'} 2026-02-04 10:06:11,892 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-04 10:06:11,892 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-49325274 passed 2026-02-04 10:06:11,892 - DEBUG - ====Verifying policy data for ctest-vn4-49325274 in API_Server ====== 2026-02-04 10:06:11,892 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-04 10:06:11,897 - DEBUG - Requesting: http://10.0.0.38:8082/domain/47153d5d-ff6d-41fb-8db9-9156d15971d1 2026-02-04 10:06:11,907 - DEBUG - Requesting: http://10.0.0.38:8082/project/9a6e995c-ea23-431b-b6bf-5a93e415d96f 2026-02-04 10:06:11,975 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ccfd5472-3b05-42bf-82ad-ec8e597af442 2026-02-04 10:06:11,986 - DEBUG - ==>Verifying data for policy with id: 6332c116-bf3c-4800-8958-11891561e087, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95437211', 'ctest-policy1-34284319'] 2026-02-04 10:06:11,986 - INFO - VN ctest-vn4-49325274 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-04 10:06:11,986 - DEBUG - Verifying the vn in opserver 2026-02-04 10:06:11,986 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95437211:ctest-vn4-49325274 virtual network link through opserver 10.0.0.38 2026-02-04 10:06:11,986 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-04 10:06:12,276 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-04 10:06:12,331 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95437211:ctest-vn4-49325274', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95437211:ctest-vn4-49325274?flat'} 2026-02-04 10:06:12,331 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95437211:ctest-vn4-49325274 is found in opserver 2026-02-04 10:06:12,340 - DEBUG - Do not have enough data to verify VN in agent 2026-02-04 10:06:12,344 - DEBUG - VRF ids for VN ctest-vn4-49325274: {} 2026-02-04 10:06:12,344 - DEBUG - ====Verifying data for ctest-policy1-34284319 in API_Server ====== 2026-02-04 10:06:12,344 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-04 10:06:12,350 - DEBUG - Requesting: http://10.0.0.38:8082/domain/47153d5d-ff6d-41fb-8db9-9156d15971d1 2026-02-04 10:06:12,360 - DEBUG - Requesting: http://10.0.0.38:8082/project/9a6e995c-ea23-431b-b6bf-5a93e415d96f 2026-02-04 10:06:12,426 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/6332c116-bf3c-4800-8958-11891561e087 2026-02-04 10:06:12,435 - INFO - Verified policy ctest-policy1-34284319 in API Server, Result: True 2026-02-04 10:06:12,435 - INFO - Done with setup and verification, moving onto test .. 2026-02-04 10:06:12,443 - INFO - Deleting VN ctest-vn4-49325274 2026-02-04 10:06:12,542 - DEBUG - Response for deleting network () 2026-02-04 10:06:12,542 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b6d8bb3c-033a-41fe-95c2-4f6e1a026869 2026-02-04 10:06:12,546 - DEBUG - Response Code: 404 2026-02-04 10:06:12,547 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-04 10:06:12,551 - DEBUG - Requesting: http://10.0.0.38:8082/domain/47153d5d-ff6d-41fb-8db9-9156d15971d1 2026-02-04 10:06:12,606 - DEBUG - Requesting: http://10.0.0.38:8082/project/9a6e995c-ea23-431b-b6bf-5a93e415d96f 2026-02-04 10:06:12,672 - INFO - Validated that VN ctest-vn4-49325274 is not found in API Server 2026-02-04 10:06:12,680 - DEBUG - VN ctest-vn4-49325274 is not present in Agent 10.0.0.38 2026-02-04 10:06:12,680 - INFO - Validated that VN ctest-vn4-49325274 is not in any agent 2026-02-04 10:06:12,695 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-49325274 info 2026-02-04 10:06:12,719 - INFO - Deleted policy ctest-policy1-34284319 2026-02-04 10:06:12,877 - DEBUG - policy ctest-policy1-34284319 is not found in API Server 2026-02-04 10:06:13,130 - DEBUG - No XMPP flaps were noticed during the test
2026-02-04 10:06:13,130 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-04 10:06:13,130 - INFO - -------------------------------------------------------------------------------- 2026-02-04 10:06:13,418 - DEBUG - No XMPP flaps were noticed during the test
2026-02-04 10:06:13,418 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-04 10:06:13,418 - INFO - -------------------------------------------------------------------------------- 2026-02-04 10:06:14,107 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-95437211, ID : 9a6e995c-ea23-431b-b6bf-5a93e415d96f