2025-09-16 14:59:54,161 - INFO - Domain Default found not creating 2025-09-16 14:59:54,330 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-03302089 not found, creating it 2025-09-16 14:59:54,802 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-03302089, ID : 33bd3bd3-599d-4595-8d28-f79502b4f36d 2025-09-16 14:59:56,407 - INFO - ================================================================================ 2025-09-16 14:59:56,408 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-16 14:59:56,681 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-09-16 14:59:56,681 - INFO - Initial checks done. Running the testcase now 2025-09-16 14:59:56,681 - INFO - 2025-09-16 14:59:56,681 - INFO - ================================================================================ 2025-09-16 14:59:56,681 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-16 14:59:56,681 - 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-16 14:59:56,970 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-09-16 14:59:56,970 - INFO - Initial checks done. Running the testcase now 2025-09-16 14:59:56,971 - INFO - 2025-09-16 14:59:57,367 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03302089:ctest-vn4-47294113, 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-03302089:ctest-vn4-47294113, 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-03302089:ctest-vn4-47294113, 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-03302089:ctest-vn4-47294113, 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-16 14:59:57,920 - DEBUG - Response for create_network : {'network': {'id': '79707a5d-3dff-4216-b79e-57790b0fd628', 'name': 'ctest-vn4-47294113', 'tenant_id': '33bd3bd3599d45958d28f79502b4f36d', 'project_id': '33bd3bd3599d45958d28f79502b4f36d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03302089', 'ctest-vn4-47294113'], 'port_security_enabled': True, 'description': ''}} 2025-09-16 14:59:58,123 - DEBUG - Response for create_subnet : {'subnet': {'id': '544edc63-140f-422c-b53a-62b265ea2aad', 'name': '', 'tenant_id': '33bd3bd3599d45958d28f79502b4f36d', 'network_id': '79707a5d-3dff-4216-b79e-57790b0fd628', 'ip_version': 4, 'cidr': '223.208.247.128/26', 'allocation_pools': [{'start': '223.208.247.130', 'end': '223.208.247.190'}], 'gateway_ip': '223.208.247.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '223.208.247.130', 'tags': [], 'project_id': '33bd3bd3599d45958d28f79502b4f36d'}} 2025-09-16 14:59:58,329 - DEBUG - Response for create_subnet : {'subnet': {'id': '71673e59-7b8e-4f22-a885-b8876a477a55', 'name': '', 'tenant_id': '33bd3bd3599d45958d28f79502b4f36d', 'network_id': '79707a5d-3dff-4216-b79e-57790b0fd628', 'ip_version': 6, 'cidr': '2833:70f2:3506:ec74:7199:96b8::/96', 'allocation_pools': [{'start': '2833:70f2:3506:ec74:7199:96b8:0:2', 'end': '2833:70f2:3506:ec74:7199:96b8:ffff:fffe'}], 'gateway_ip': '2833:70f2:3506:ec74:7199:96b8:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2833:70f2:3506:ec74:7199:96b8:0:2', 'tags': [], 'project_id': '33bd3bd3599d45958d28f79502b4f36d'}} 2025-09-16 14:59:58,350 - INFO - Created VN ctest-vn4-47294113 2025-09-16 14:59:58,404 - DEBUG - VN ctest-vn4-47294113 UUID is 79707a5d-3dff-4216-b79e-57790b0fd628 2025-09-16 14:59:58,697 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '79707a5d-3dff-4216-b79e-57790b0fd628', 'name': 'ctest-vn4-47294113', 'tenant_id': '33bd3bd3599d45958d28f79502b4f36d', 'project_id': '33bd3bd3599d45958d28f79502b4f36d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['544edc63-140f-422c-b53a-62b265ea2aad', '71673e59-7b8e-4f22-a885-b8876a477a55'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03302089', 'ctest-vn4-47294113'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03302089', 'ctest-policy1-13475403']], 'subnet_ipam': [{'subnet_cidr': '223.208.247.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2833:70f2:3506:ec74:7199:96b8::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-16 14:59:58,864 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-16 14:59:59,200 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-16 14:59:59,231 - DEBUG - Requesting: http://10.0.0.254:8082/domain/594256e9-e44e-4769-a59b-3aac374792fa 2025-09-16 14:59:59,246 - DEBUG - Requesting: http://10.0.0.254:8082/project/33bd3bd3-599d-4595-8d28-f79502b4f36d 2025-09-16 14:59:59,321 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/79707a5d-3dff-4216-b79e-57790b0fd628 2025-09-16 14:59:59,336 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/79707a5d-3dff-4216-b79e-57790b0fd628 2025-09-16 14:59:59,346 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/864facdd-6b9d-46f5-891f-3bdbfbf6465f 2025-09-16 14:59:59,354 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/864facdd-6b9d-46f5-891f-3bdbfbf6465f 2025-09-16 14:59:59,362 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/19ea3b2d-d44e-4652-9022-4e587ed9f91f 2025-09-16 14:59:59,371 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-16 14:59:59,371 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/79707a5d-3dff-4216-b79e-57790b0fd628 2025-09-16 14:59:59,380 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/864facdd-6b9d-46f5-891f-3bdbfbf6465f 2025-09-16 14:59:59,397 - INFO - Verified VN network id 11 for VN 79707a5d-3dff-4216-b79e-57790b0fd628 2025-09-16 14:59:59,397 - INFO - Verifications in API Server for VN ctest-vn4-47294113 passed 2025-09-16 14:59:59,397 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/79707a5d-3dff-4216-b79e-57790b0fd628 2025-09-16 14:59:59,409 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/864facdd-6b9d-46f5-891f-3bdbfbf6465f 2025-09-16 14:59:59,420 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/864facdd-6b9d-46f5-891f-3bdbfbf6465f 2025-09-16 14:59:59,428 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/19ea3b2d-d44e-4652-9022-4e587ed9f91f 2025-09-16 14:59:59,440 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03302089:ctest-vn4-47294113', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-03302089', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8750628616871559702', 'uuid-lslong': '13231108932649342504'}, 'enable': 'true', 'created': '2025-09-16T14:59:57', 'last-modified': '2025-09-16T14:59:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.838064'} 2025-09-16 14:59:59,447 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-16 14:59:59,447 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-47294113 passed 2025-09-16 14:59:59,447 - DEBUG - ====Verifying policy data for ctest-vn4-47294113 in API_Server ====== 2025-09-16 14:59:59,447 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-16 14:59:59,453 - DEBUG - Requesting: http://10.0.0.254:8082/domain/594256e9-e44e-4769-a59b-3aac374792fa 2025-09-16 14:59:59,465 - DEBUG - Requesting: http://10.0.0.254:8082/project/33bd3bd3-599d-4595-8d28-f79502b4f36d 2025-09-16 14:59:59,535 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/79707a5d-3dff-4216-b79e-57790b0fd628 2025-09-16 14:59:59,545 - DEBUG - ==>Verifying data for policy with id: 6052380b-2691-4fda-bea3-7346e4bc24ee, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03302089', 'ctest-policy1-13475403'] 2025-09-16 14:59:59,546 - INFO - VN ctest-vn4-47294113 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-16 14:59:59,546 - DEBUG - Verifying the vn in opserver 2025-09-16 14:59:59,546 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03302089:ctest-vn4-47294113 virtual network link through opserver 10.0.0.254 2025-09-16 14:59:59,546 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-09-16 14:59:59,879 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-09-16 14:59:59,943 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03302089:ctest-vn4-47294113', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03302089:ctest-vn4-47294113?flat'} 2025-09-16 14:59:59,943 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03302089:ctest-vn4-47294113 is found in opserver 2025-09-16 14:59:59,953 - DEBUG - Do not have enough data to verify VN in agent 2025-09-16 14:59:59,958 - DEBUG - VRF ids for VN ctest-vn4-47294113: {} 2025-09-16 14:59:59,958 - DEBUG - ====Verifying data for ctest-policy1-13475403 in API_Server ====== 2025-09-16 14:59:59,958 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-16 14:59:59,964 - DEBUG - Requesting: http://10.0.0.254:8082/domain/594256e9-e44e-4769-a59b-3aac374792fa 2025-09-16 14:59:59,977 - DEBUG - Requesting: http://10.0.0.254:8082/project/33bd3bd3-599d-4595-8d28-f79502b4f36d 2025-09-16 15:00:00,050 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/6052380b-2691-4fda-bea3-7346e4bc24ee 2025-09-16 15:00:00,068 - INFO - Verified policy ctest-policy1-13475403 in API Server, Result: True 2025-09-16 15:00:00,068 - INFO - Done with setup and verification, moving onto test .. 2025-09-16 15:00:00,079 - INFO - Deleting VN ctest-vn4-47294113 2025-09-16 15:00:00,221 - DEBUG - Response for deleting network () 2025-09-16 15:00:00,221 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/864facdd-6b9d-46f5-891f-3bdbfbf6465f 2025-09-16 15:00:00,227 - DEBUG - Response Code: 404 2025-09-16 15:00:00,228 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-16 15:00:00,234 - DEBUG - Requesting: http://10.0.0.254:8082/domain/594256e9-e44e-4769-a59b-3aac374792fa 2025-09-16 15:00:00,295 - DEBUG - Requesting: http://10.0.0.254:8082/project/33bd3bd3-599d-4595-8d28-f79502b4f36d 2025-09-16 15:00:00,367 - INFO - Validated that VN ctest-vn4-47294113 is not found in API Server 2025-09-16 15:00:00,380 - DEBUG - VN ctest-vn4-47294113 is not present in Agent 10.0.0.254 2025-09-16 15:00:00,380 - INFO - Validated that VN ctest-vn4-47294113 is not in any agent 2025-09-16 15:00:00,400 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-47294113 info 2025-09-16 15:00:00,428 - INFO - Deleted policy ctest-policy1-13475403 2025-09-16 15:00:00,595 - DEBUG - policy ctest-policy1-13475403 is not found in API Server 2025-09-16 15:00:00,853 - DEBUG - No XMPP flaps were noticed during the test 2025-09-16 15:00:00,853 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-09-16 15:00:00,853 - INFO - -------------------------------------------------------------------------------- 2025-09-16 15:00:01,141 - DEBUG - No XMPP flaps were noticed during the test 2025-09-16 15:00:01,141 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-09-16 15:00:01,141 - INFO - -------------------------------------------------------------------------------- 2025-09-16 15:00:01,882 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-03302089, ID : 33bd3bd3-599d-4595-8d28-f79502b4f36d