2025-12-09 12:08:27,309 - INFO - Domain Default found not creating 2025-12-09 12:08:27,465 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-72432468 not found, creating it 2025-12-09 12:08:27,904 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-72432468, ID : 92f38ab4-a862-4e90-a3b4-65074195bc53 2025-12-09 12:08:29,303 - INFO - ================================================================================ 2025-12-09 12:08:29,303 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-09 12:08:29,558 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with 2025-12-09 12:08:29,558 - INFO - Initial checks done. Running the testcase now 2025-12-09 12:08:29,558 - INFO - 2025-12-09 12:08:29,558 - INFO - ================================================================================ 2025-12-09 12:08:29,558 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-09 12:08:29,558 - 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. 2025-12-09 12:08:29,845 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with 2025-12-09 12:08:29,845 - INFO - Initial checks done. Running the testcase now 2025-12-09 12:08:29,845 - INFO - 2025-12-09 12:08:30,163 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72432468:ctest-vn4-85926896, 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-72432468:ctest-vn4-85926896, 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-72432468:ctest-vn4-85926896, 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-72432468:ctest-vn4-85926896, 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] 2025-12-09 12:08:30,668 - DEBUG - Response for create_network : {'network': {'id': 'de5a93aa-9902-46cf-b4e9-99ac5cbde8b2', 'name': 'ctest-vn4-85926896', 'tenant_id': '92f38ab4a8624e90a3b465074195bc53', 'project_id': '92f38ab4a8624e90a3b465074195bc53', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-72432468', 'ctest-vn4-85926896'], 'port_security_enabled': True, 'description': ''}} 2025-12-09 12:08:30,820 - DEBUG - Response for create_subnet : {'subnet': {'id': '4a144af3-f0ab-4c09-8273-039175dfc57a', 'name': '', 'tenant_id': '92f38ab4a8624e90a3b465074195bc53', 'network_id': 'de5a93aa-9902-46cf-b4e9-99ac5cbde8b2', 'ip_version': 4, 'cidr': '92.160.142.0/26', 'allocation_pools': [{'start': '92.160.142.2', 'end': '92.160.142.62'}], 'gateway_ip': '92.160.142.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '92.160.142.2', 'tags': [], 'project_id': '92f38ab4a8624e90a3b465074195bc53'}} 2025-12-09 12:08:30,972 - DEBUG - Response for create_subnet : {'subnet': {'id': '637fb020-4051-4d77-8346-158f9a97ae2f', 'name': '', 'tenant_id': '92f38ab4a8624e90a3b465074195bc53', 'network_id': 'de5a93aa-9902-46cf-b4e9-99ac5cbde8b2', 'ip_version': 6, 'cidr': '2f65:5487:e3b1:df25:adc7:be24::/96', 'allocation_pools': [{'start': '2f65:5487:e3b1:df25:adc7:be24:0:2', 'end': '2f65:5487:e3b1:df25:adc7:be24:ffff:fffe'}], 'gateway_ip': '2f65:5487:e3b1:df25:adc7:be24:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2f65:5487:e3b1:df25:adc7:be24:0:2', 'tags': [], 'project_id': '92f38ab4a8624e90a3b465074195bc53'}} 2025-12-09 12:08:30,991 - INFO - Created VN ctest-vn4-85926896 2025-12-09 12:08:31,040 - DEBUG - VN ctest-vn4-85926896 UUID is de5a93aa-9902-46cf-b4e9-99ac5cbde8b2 2025-12-09 12:08:31,225 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'de5a93aa-9902-46cf-b4e9-99ac5cbde8b2', 'name': 'ctest-vn4-85926896', 'tenant_id': '92f38ab4a8624e90a3b465074195bc53', 'project_id': '92f38ab4a8624e90a3b465074195bc53', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4a144af3-f0ab-4c09-8273-039175dfc57a', '637fb020-4051-4d77-8346-158f9a97ae2f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-72432468', 'ctest-vn4-85926896'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-72432468', 'ctest-policy1-30942705']], 'subnet_ipam': [{'subnet_cidr': '92.160.142.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2f65:5487:e3b1:df25:adc7:be24::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-09 12:08:31,388 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-09 12:08:31,649 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-09 12:08:31,679 - DEBUG - Requesting: http://10.0.0.38:8082/domain/74950727-4669-4385-884c-f729302b5d4d 2025-12-09 12:08:31,690 - DEBUG - Requesting: http://10.0.0.38:8082/project/92f38ab4-a862-4e90-a3b4-65074195bc53 2025-12-09 12:08:31,762 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/de5a93aa-9902-46cf-b4e9-99ac5cbde8b2 2025-12-09 12:08:31,774 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/de5a93aa-9902-46cf-b4e9-99ac5cbde8b2 2025-12-09 12:08:31,783 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a88bc133-02a2-4e99-ad69-4fdd08d4bdd4 2025-12-09 12:08:31,790 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a88bc133-02a2-4e99-ad69-4fdd08d4bdd4 2025-12-09 12:08:31,796 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4b3c94dc-4769-48e6-9a7d-27dec4079ef3 2025-12-09 12:08:31,802 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-09 12:08:31,802 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/de5a93aa-9902-46cf-b4e9-99ac5cbde8b2 2025-12-09 12:08:31,810 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a88bc133-02a2-4e99-ad69-4fdd08d4bdd4 2025-12-09 12:08:31,824 - INFO - Verified VN network id 12 for VN de5a93aa-9902-46cf-b4e9-99ac5cbde8b2 2025-12-09 12:08:31,824 - INFO - Verifications in API Server for VN ctest-vn4-85926896 passed 2025-12-09 12:08:31,824 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/de5a93aa-9902-46cf-b4e9-99ac5cbde8b2 2025-12-09 12:08:31,833 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a88bc133-02a2-4e99-ad69-4fdd08d4bdd4 2025-12-09 12:08:31,839 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a88bc133-02a2-4e99-ad69-4fdd08d4bdd4 2025-12-09 12:08:31,845 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4b3c94dc-4769-48e6-9a7d-27dec4079ef3 2025-12-09 12:08:31,856 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72432468:ctest-vn4-85926896', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-72432468', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16022280985244747471', 'uuid-lslong': '13036119561969985714'}, 'enable': 'true', 'created': '2025-12-09T12:08:30', 'last-modified': '2025-12-09T12:08:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.653351'} 2025-12-09 12:08:31,862 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-09 12:08:31,862 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-85926896 passed 2025-12-09 12:08:31,862 - DEBUG - ====Verifying policy data for ctest-vn4-85926896 in API_Server ====== 2025-12-09 12:08:31,862 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-09 12:08:31,867 - DEBUG - Requesting: http://10.0.0.38:8082/domain/74950727-4669-4385-884c-f729302b5d4d 2025-12-09 12:08:31,877 - DEBUG - Requesting: http://10.0.0.38:8082/project/92f38ab4-a862-4e90-a3b4-65074195bc53 2025-12-09 12:08:31,945 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/de5a93aa-9902-46cf-b4e9-99ac5cbde8b2 2025-12-09 12:08:31,954 - DEBUG - ==>Verifying data for policy with id: b3fd6f5e-867e-43f1-869f-ed557d7b97de, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-72432468', 'ctest-policy1-30942705'] 2025-12-09 12:08:31,954 - INFO - VN ctest-vn4-85926896 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-09 12:08:31,954 - DEBUG - Verifying the vn in opserver 2025-12-09 12:08:31,954 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72432468:ctest-vn4-85926896 virtual network link through opserver 10.0.0.38 2025-12-09 12:08:31,954 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-12-09 12:08:32,213 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-12-09 12:08:32,273 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72432468:ctest-vn4-85926896', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72432468:ctest-vn4-85926896?flat'} 2025-12-09 12:08:32,273 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72432468:ctest-vn4-85926896 is found in opserver 2025-12-09 12:08:32,284 - DEBUG - Do not have enough data to verify VN in agent 2025-12-09 12:08:32,289 - DEBUG - VRF ids for VN ctest-vn4-85926896: {} 2025-12-09 12:08:32,290 - DEBUG - ====Verifying data for ctest-policy1-30942705 in API_Server ====== 2025-12-09 12:08:32,290 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-09 12:08:32,294 - DEBUG - Requesting: http://10.0.0.38:8082/domain/74950727-4669-4385-884c-f729302b5d4d 2025-12-09 12:08:32,303 - DEBUG - Requesting: http://10.0.0.38:8082/project/92f38ab4-a862-4e90-a3b4-65074195bc53 2025-12-09 12:08:32,369 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/b3fd6f5e-867e-43f1-869f-ed557d7b97de 2025-12-09 12:08:32,379 - INFO - Verified policy ctest-policy1-30942705 in API Server, Result: True 2025-12-09 12:08:32,379 - INFO - Done with setup and verification, moving onto test .. 2025-12-09 12:08:32,386 - INFO - Deleting VN ctest-vn4-85926896 2025-12-09 12:08:32,492 - DEBUG - Response for deleting network () 2025-12-09 12:08:32,493 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a88bc133-02a2-4e99-ad69-4fdd08d4bdd4 2025-12-09 12:08:32,496 - DEBUG - Response Code: 404 2025-12-09 12:08:32,497 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-09 12:08:32,501 - DEBUG - Requesting: http://10.0.0.38:8082/domain/74950727-4669-4385-884c-f729302b5d4d 2025-12-09 12:08:32,557 - DEBUG - Requesting: http://10.0.0.38:8082/project/92f38ab4-a862-4e90-a3b4-65074195bc53 2025-12-09 12:08:32,625 - INFO - Validated that VN ctest-vn4-85926896 is not found in API Server 2025-12-09 12:08:32,633 - DEBUG - VN ctest-vn4-85926896 is not present in Agent 10.0.0.38 2025-12-09 12:08:32,633 - INFO - Validated that VN ctest-vn4-85926896 is not in any agent 2025-12-09 12:08:32,644 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-85926896 info 2025-12-09 12:08:32,665 - INFO - Deleted policy ctest-policy1-30942705 2025-12-09 12:08:32,824 - DEBUG - policy ctest-policy1-30942705 is not found in API Server 2025-12-09 12:08:33,081 - DEBUG - No XMPP flaps were noticed during the test 2025-12-09 12:08:33,081 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-12-09 12:08:33,081 - INFO - -------------------------------------------------------------------------------- 2025-12-09 12:08:33,371 - DEBUG - No XMPP flaps were noticed during the test 2025-12-09 12:08:33,371 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-12-09 12:08:33,372 - INFO - -------------------------------------------------------------------------------- 2025-12-09 12:08:34,026 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-72432468, ID : 92f38ab4-a862-4e90-a3b4-65074195bc53