2025-10-19 22:19:31,229 - INFO - Domain Default found not creating 2025-10-19 22:19:31,378 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-51039091 not found, creating it 2025-10-19 22:19:31,829 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-51039091, ID : 73d06692-1147-442e-b864-75351d98e9dc 2025-10-19 22:19:33,200 - INFO - ================================================================================ 2025-10-19 22:19:33,200 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-19 22:19:33,455 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-10-19 22:19:33,455 - INFO - Initial checks done. Running the testcase now 2025-10-19 22:19:33,455 - INFO - 2025-10-19 22:19:33,456 - INFO - ================================================================================ 2025-10-19 22:19:33,456 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-19 22:19:33,456 - 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-10-19 22:19:33,747 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-10-19 22:19:33,747 - INFO - Initial checks done. Running the testcase now 2025-10-19 22:19:33,747 - INFO - 2025-10-19 22:19:34,094 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51039091:ctest-vn4-02470492, 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-51039091:ctest-vn4-02470492, 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-51039091:ctest-vn4-02470492, 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-51039091:ctest-vn4-02470492, 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-10-19 22:19:34,604 - DEBUG - Response for create_network : {'network': {'id': '0ea51722-0856-4fc6-81b9-83ba3ce0df6f', 'name': 'ctest-vn4-02470492', 'tenant_id': '73d066921147442eb86475351d98e9dc', 'project_id': '73d066921147442eb86475351d98e9dc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51039091', 'ctest-vn4-02470492'], 'port_security_enabled': True, 'description': ''}} 2025-10-19 22:19:34,800 - DEBUG - Response for create_subnet : {'subnet': {'id': '3ff8c587-bc5f-4655-9da4-ea46faf57796', 'name': '', 'tenant_id': '73d066921147442eb86475351d98e9dc', 'network_id': '0ea51722-0856-4fc6-81b9-83ba3ce0df6f', 'ip_version': 4, 'cidr': '63.240.243.128/26', 'allocation_pools': [{'start': '63.240.243.130', 'end': '63.240.243.190'}], 'gateway_ip': '63.240.243.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '63.240.243.130', 'tags': [], 'project_id': '73d066921147442eb86475351d98e9dc'}} 2025-10-19 22:19:34,964 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f20587f6-dcac-4fa8-87c3-7d1550d49e18', 'name': '', 'tenant_id': '73d066921147442eb86475351d98e9dc', 'network_id': '0ea51722-0856-4fc6-81b9-83ba3ce0df6f', 'ip_version': 6, 'cidr': '2f5b:26ee:be91:945a:3446:4ca0::/96', 'allocation_pools': [{'start': '2f5b:26ee:be91:945a:3446:4ca0:0:2', 'end': '2f5b:26ee:be91:945a:3446:4ca0:ffff:fffe'}], 'gateway_ip': '2f5b:26ee:be91:945a:3446:4ca0:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2f5b:26ee:be91:945a:3446:4ca0:0:2', 'tags': [], 'project_id': '73d066921147442eb86475351d98e9dc'}} 2025-10-19 22:19:34,985 - INFO - Created VN ctest-vn4-02470492 2025-10-19 22:19:35,035 - DEBUG - VN ctest-vn4-02470492 UUID is 0ea51722-0856-4fc6-81b9-83ba3ce0df6f 2025-10-19 22:19:35,251 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0ea51722-0856-4fc6-81b9-83ba3ce0df6f', 'name': 'ctest-vn4-02470492', 'tenant_id': '73d066921147442eb86475351d98e9dc', 'project_id': '73d066921147442eb86475351d98e9dc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3ff8c587-bc5f-4655-9da4-ea46faf57796', 'f20587f6-dcac-4fa8-87c3-7d1550d49e18'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51039091', 'ctest-vn4-02470492'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51039091', 'ctest-policy1-63973119']], 'subnet_ipam': [{'subnet_cidr': '63.240.243.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2f5b:26ee:be91:945a:3446:4ca0::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-19 22:19:35,419 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-19 22:19:35,728 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-19 22:19:35,755 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f3e89fc6-49a4-4a62-9594-b72cca40c862 2025-10-19 22:19:35,767 - DEBUG - Requesting: http://10.0.0.254:8082/project/73d06692-1147-442e-b864-75351d98e9dc 2025-10-19 22:19:35,841 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0ea51722-0856-4fc6-81b9-83ba3ce0df6f 2025-10-19 22:19:35,851 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0ea51722-0856-4fc6-81b9-83ba3ce0df6f 2025-10-19 22:19:35,859 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d61f0921-4970-4fd9-b43f-33d5a66fdc6e 2025-10-19 22:19:35,865 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d61f0921-4970-4fd9-b43f-33d5a66fdc6e 2025-10-19 22:19:35,871 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/323d5a42-4c7a-4e92-b081-e6a2e1d99d96 2025-10-19 22:19:35,876 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-19 22:19:35,876 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0ea51722-0856-4fc6-81b9-83ba3ce0df6f 2025-10-19 22:19:35,885 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d61f0921-4970-4fd9-b43f-33d5a66fdc6e 2025-10-19 22:19:35,897 - INFO - Verified VN network id 11 for VN 0ea51722-0856-4fc6-81b9-83ba3ce0df6f 2025-10-19 22:19:35,897 - INFO - Verifications in API Server for VN ctest-vn4-02470492 passed 2025-10-19 22:19:35,897 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0ea51722-0856-4fc6-81b9-83ba3ce0df6f 2025-10-19 22:19:35,905 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d61f0921-4970-4fd9-b43f-33d5a66fdc6e 2025-10-19 22:19:35,910 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d61f0921-4970-4fd9-b43f-33d5a66fdc6e 2025-10-19 22:19:35,915 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/323d5a42-4c7a-4e92-b081-e6a2e1d99d96 2025-10-19 22:19:35,925 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51039091:ctest-vn4-02470492', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-51039091', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1055275122624450502', 'uuid-lslong': '9347647337492701039'}, 'enable': 'true', 'created': '2025-10-19T22:19:34', 'last-modified': '2025-10-19T22:19:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.706443'} 2025-10-19 22:19:35,930 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-19 22:19:35,930 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-02470492 passed 2025-10-19 22:19:35,930 - DEBUG - ====Verifying policy data for ctest-vn4-02470492 in API_Server ====== 2025-10-19 22:19:35,930 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-19 22:19:35,935 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f3e89fc6-49a4-4a62-9594-b72cca40c862 2025-10-19 22:19:35,944 - DEBUG - Requesting: http://10.0.0.254:8082/project/73d06692-1147-442e-b864-75351d98e9dc 2025-10-19 22:19:36,019 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0ea51722-0856-4fc6-81b9-83ba3ce0df6f 2025-10-19 22:19:36,028 - DEBUG - ==>Verifying data for policy with id: 485ad461-2f59-439c-9f58-49809669cd08, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51039091', 'ctest-policy1-63973119'] 2025-10-19 22:19:36,028 - INFO - VN ctest-vn4-02470492 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-19 22:19:36,028 - DEBUG - Verifying the vn in opserver 2025-10-19 22:19:36,028 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51039091:ctest-vn4-02470492 virtual network link through opserver 10.0.0.254 2025-10-19 22:19:36,028 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-19 22:19:36,342 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-19 22:19:36,412 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51039091:ctest-vn4-02470492', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51039091:ctest-vn4-02470492?flat'} 2025-10-19 22:19:36,413 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51039091:ctest-vn4-02470492 is found in opserver 2025-10-19 22:19:36,423 - DEBUG - Do not have enough data to verify VN in agent 2025-10-19 22:19:36,428 - DEBUG - VRF ids for VN ctest-vn4-02470492: {} 2025-10-19 22:19:36,429 - DEBUG - ====Verifying data for ctest-policy1-63973119 in API_Server ====== 2025-10-19 22:19:36,430 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-19 22:19:36,446 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f3e89fc6-49a4-4a62-9594-b72cca40c862 2025-10-19 22:19:36,507 - DEBUG - Requesting: http://10.0.0.254:8082/project/73d06692-1147-442e-b864-75351d98e9dc 2025-10-19 22:19:36,592 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/485ad461-2f59-439c-9f58-49809669cd08 2025-10-19 22:19:36,607 - INFO - Verified policy ctest-policy1-63973119 in API Server, Result: True 2025-10-19 22:19:36,607 - INFO - Done with setup and verification, moving onto test .. 2025-10-19 22:19:36,623 - INFO - Deleting VN ctest-vn4-02470492 2025-10-19 22:19:36,959 - DEBUG - Response for deleting network () 2025-10-19 22:19:36,959 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d61f0921-4970-4fd9-b43f-33d5a66fdc6e 2025-10-19 22:19:36,965 - DEBUG - Response Code: 404 2025-10-19 22:19:36,965 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-19 22:19:36,970 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f3e89fc6-49a4-4a62-9594-b72cca40c862 2025-10-19 22:19:37,025 - DEBUG - Requesting: http://10.0.0.254:8082/project/73d06692-1147-442e-b864-75351d98e9dc 2025-10-19 22:19:37,113 - INFO - Validated that VN ctest-vn4-02470492 is not found in API Server 2025-10-19 22:19:37,124 - DEBUG - VN ctest-vn4-02470492 is not present in Agent 10.0.0.254 2025-10-19 22:19:37,124 - INFO - Validated that VN ctest-vn4-02470492 is not in any agent 2025-10-19 22:19:37,138 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-02470492 info 2025-10-19 22:19:37,167 - INFO - Deleted policy ctest-policy1-63973119 2025-10-19 22:19:37,330 - DEBUG - policy ctest-policy1-63973119 is not found in API Server 2025-10-19 22:19:37,597 - DEBUG - No XMPP flaps were noticed during the test 2025-10-19 22:19:37,597 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-19 22:19:37,597 - INFO - -------------------------------------------------------------------------------- 2025-10-19 22:19:37,890 - DEBUG - No XMPP flaps were noticed during the test 2025-10-19 22:19:37,890 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-19 22:19:37,890 - INFO - -------------------------------------------------------------------------------- 2025-10-19 22:19:38,559 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-51039091, ID : 73d06692-1147-442e-b864-75351d98e9dc