2025-09-15 02:09:56,871 - INFO - Domain Default found not creating 2025-09-15 02:09:57,023 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-12857057 not found, creating it 2025-09-15 02:09:57,487 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-12857057, ID : b46ac696-136c-418b-8f9a-0a23fbd70bd3 2025-09-15 02:09:58,862 - INFO - ================================================================================ 2025-09-15 02:09:58,862 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-15 02:09:59,115 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.249': '0'}} with 2025-09-15 02:09:59,115 - INFO - Initial checks done. Running the testcase now 2025-09-15 02:09:59,115 - INFO - 2025-09-15 02:09:59,115 - INFO - ================================================================================ 2025-09-15 02:09:59,115 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-15 02:09:59,115 - 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-09-15 02:09:59,406 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.249': '0'}} with 2025-09-15 02:09:59,407 - INFO - Initial checks done. Running the testcase now 2025-09-15 02:09:59,407 - INFO - 2025-09-15 02:09:59,746 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12857057:ctest-vn4-98029548, 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-12857057:ctest-vn4-98029548, 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-12857057:ctest-vn4-98029548, 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-12857057:ctest-vn4-98029548, 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-09-15 02:10:00,255 - DEBUG - Response for create_network : {'network': {'id': '74958222-1141-4dd3-90e4-eca1fa99d98f', 'name': 'ctest-vn4-98029548', 'tenant_id': 'b46ac696136c418b8f9a0a23fbd70bd3', 'project_id': 'b46ac696136c418b8f9a0a23fbd70bd3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-12857057', 'ctest-vn4-98029548'], 'port_security_enabled': True, 'description': ''}} 2025-09-15 02:10:00,464 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cf7109b4-85e7-4566-a8a3-7b7489aa4e70', 'name': '', 'tenant_id': 'b46ac696136c418b8f9a0a23fbd70bd3', 'network_id': '74958222-1141-4dd3-90e4-eca1fa99d98f', 'ip_version': 4, 'cidr': '188.54.246.192/26', 'allocation_pools': [{'start': '188.54.246.194', 'end': '188.54.246.254'}], 'gateway_ip': '188.54.246.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '188.54.246.194', 'tags': [], 'project_id': 'b46ac696136c418b8f9a0a23fbd70bd3'}} 2025-09-15 02:10:00,664 - DEBUG - Response for create_subnet : {'subnet': {'id': '27d681c6-9779-4bd1-8f6d-4ce224eeea34', 'name': '', 'tenant_id': 'b46ac696136c418b8f9a0a23fbd70bd3', 'network_id': '74958222-1141-4dd3-90e4-eca1fa99d98f', 'ip_version': 6, 'cidr': '2453:9726:1670:531:adc4:88bf::/96', 'allocation_pools': [{'start': '2453:9726:1670:531:adc4:88bf:0:2', 'end': '2453:9726:1670:531:adc4:88bf:ffff:fffe'}], 'gateway_ip': '2453:9726:1670:531:adc4:88bf:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2453:9726:1670:531:adc4:88bf:0:2', 'tags': [], 'project_id': 'b46ac696136c418b8f9a0a23fbd70bd3'}} 2025-09-15 02:10:00,686 - INFO - Created VN ctest-vn4-98029548 2025-09-15 02:10:00,738 - DEBUG - VN ctest-vn4-98029548 UUID is 74958222-1141-4dd3-90e4-eca1fa99d98f 2025-09-15 02:10:01,006 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '74958222-1141-4dd3-90e4-eca1fa99d98f', 'name': 'ctest-vn4-98029548', 'tenant_id': 'b46ac696136c418b8f9a0a23fbd70bd3', 'project_id': 'b46ac696136c418b8f9a0a23fbd70bd3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cf7109b4-85e7-4566-a8a3-7b7489aa4e70', '27d681c6-9779-4bd1-8f6d-4ce224eeea34'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-12857057', 'ctest-vn4-98029548'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-12857057', 'ctest-policy1-02591936']], 'subnet_ipam': [{'subnet_cidr': '188.54.246.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2453:9726:1670:531:adc4:88bf::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-15 02:10:01,178 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-09-15 02:10:01,471 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-09-15 02:10:01,502 - DEBUG - Requesting: http://10.0.0.141:8082/domain/378cc995-6219-495f-a260-3d3cddf6d01c 2025-09-15 02:10:01,517 - DEBUG - Requesting: http://10.0.0.141:8082/project/b46ac696-136c-418b-8f9a-0a23fbd70bd3 2025-09-15 02:10:01,594 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/74958222-1141-4dd3-90e4-eca1fa99d98f 2025-09-15 02:10:01,608 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/74958222-1141-4dd3-90e4-eca1fa99d98f 2025-09-15 02:10:01,618 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/fb09ed80-684c-418b-b9a2-923917750940 2025-09-15 02:10:01,625 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/fb09ed80-684c-418b-b9a2-923917750940 2025-09-15 02:10:01,632 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/152bcc7a-61bd-44c9-ac73-865d7364b288 2025-09-15 02:10:01,638 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-15 02:10:01,638 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/74958222-1141-4dd3-90e4-eca1fa99d98f 2025-09-15 02:10:01,648 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/fb09ed80-684c-418b-b9a2-923917750940 2025-09-15 02:10:01,662 - INFO - Verified VN network id 11 for VN 74958222-1141-4dd3-90e4-eca1fa99d98f 2025-09-15 02:10:01,662 - INFO - Verifications in API Server for VN ctest-vn4-98029548 passed 2025-09-15 02:10:01,662 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/74958222-1141-4dd3-90e4-eca1fa99d98f 2025-09-15 02:10:01,672 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/fb09ed80-684c-418b-b9a2-923917750940 2025-09-15 02:10:01,679 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/fb09ed80-684c-418b-b9a2-923917750940 2025-09-15 02:10:01,686 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/152bcc7a-61bd-44c9-ac73-865d7364b288 2025-09-15 02:10:01,697 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12857057:ctest-vn4-98029548', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-12857057', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8400763762759519699', 'uuid-lslong': '10440730016589928847'}, 'enable': 'true', 'created': '2025-09-15T02:10:00', 'last-modified': '2025-09-15T02:10:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.778733'} 2025-09-15 02:10:01,704 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-15 02:10:01,704 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-98029548 passed 2025-09-15 02:10:01,704 - DEBUG - ====Verifying policy data for ctest-vn4-98029548 in API_Server ====== 2025-09-15 02:10:01,704 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-09-15 02:10:01,710 - DEBUG - Requesting: http://10.0.0.141:8082/domain/378cc995-6219-495f-a260-3d3cddf6d01c 2025-09-15 02:10:01,720 - DEBUG - Requesting: http://10.0.0.141:8082/project/b46ac696-136c-418b-8f9a-0a23fbd70bd3 2025-09-15 02:10:01,792 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/74958222-1141-4dd3-90e4-eca1fa99d98f 2025-09-15 02:10:01,800 - DEBUG - ==>Verifying data for policy with id: 2bdd8b10-983a-45d8-b3ee-1daf19acfacb, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-12857057', 'ctest-policy1-02591936'] 2025-09-15 02:10:01,800 - INFO - VN ctest-vn4-98029548 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-15 02:10:01,800 - DEBUG - Verifying the vn in opserver 2025-09-15 02:10:01,800 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12857057:ctest-vn4-98029548 virtual network link through opserver 10.0.0.141 2025-09-15 02:10:01,801 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-09-15 02:10:02,090 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-09-15 02:10:02,139 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12857057:ctest-vn4-98029548', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12857057:ctest-vn4-98029548?flat'} 2025-09-15 02:10:02,139 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12857057:ctest-vn4-98029548 is found in opserver 2025-09-15 02:10:02,148 - DEBUG - Do not have enough data to verify VN in agent 2025-09-15 02:10:02,152 - DEBUG - VRF ids for VN ctest-vn4-98029548: {} 2025-09-15 02:10:02,152 - DEBUG - ====Verifying data for ctest-policy1-02591936 in API_Server ====== 2025-09-15 02:10:02,152 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-09-15 02:10:02,157 - DEBUG - Requesting: http://10.0.0.141:8082/domain/378cc995-6219-495f-a260-3d3cddf6d01c 2025-09-15 02:10:02,167 - DEBUG - Requesting: http://10.0.0.141:8082/project/b46ac696-136c-418b-8f9a-0a23fbd70bd3 2025-09-15 02:10:02,233 - DEBUG - Requesting: http://10.0.0.141:8082/network-policy/2bdd8b10-983a-45d8-b3ee-1daf19acfacb 2025-09-15 02:10:02,241 - INFO - Verified policy ctest-policy1-02591936 in API Server, Result: True 2025-09-15 02:10:02,242 - INFO - Done with setup and verification, moving onto test .. 2025-09-15 02:10:02,250 - INFO - Deleting VN ctest-vn4-98029548 2025-09-15 02:10:02,367 - DEBUG - Response for deleting network () 2025-09-15 02:10:02,367 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/fb09ed80-684c-418b-b9a2-923917750940 2025-09-15 02:10:02,372 - DEBUG - Response Code: 404 2025-09-15 02:10:02,373 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-09-15 02:10:02,378 - DEBUG - Requesting: http://10.0.0.141:8082/domain/378cc995-6219-495f-a260-3d3cddf6d01c 2025-09-15 02:10:02,430 - DEBUG - Requesting: http://10.0.0.141:8082/project/b46ac696-136c-418b-8f9a-0a23fbd70bd3 2025-09-15 02:10:02,500 - INFO - Validated that VN ctest-vn4-98029548 is not found in API Server 2025-09-15 02:10:02,508 - DEBUG - VN ctest-vn4-98029548 is not present in Agent 10.0.0.141 2025-09-15 02:10:02,508 - INFO - Validated that VN ctest-vn4-98029548 is not in any agent 2025-09-15 02:10:02,523 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-98029548 info 2025-09-15 02:10:02,547 - INFO - Deleted policy ctest-policy1-02591936 2025-09-15 02:10:02,705 - DEBUG - policy ctest-policy1-02591936 is not found in API Server 2025-09-15 02:10:02,959 - DEBUG - No XMPP flaps were noticed during the test 2025-09-15 02:10:02,959 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03] 2025-09-15 02:10:02,959 - INFO - -------------------------------------------------------------------------------- 2025-09-15 02:10:03,246 - DEBUG - No XMPP flaps were noticed during the test 2025-09-15 02:10:03,246 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-09-15 02:10:03,246 - INFO - -------------------------------------------------------------------------------- 2025-09-15 02:10:03,912 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-12857057, ID : b46ac696-136c-418b-8f9a-0a23fbd70bd3