2025-10-17 21:33:18,794 - INFO - Domain Default found not creating 2025-10-17 21:33:18,985 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-99946557 not found, creating it 2025-10-17 21:33:19,490 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-99946557, ID : 2c47df0b-b375-4479-ba73-4d5e2be9aa82 2025-10-17 21:33:21,079 - INFO - ================================================================================ 2025-10-17 21:33:21,079 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-17 21:33:21,340 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.17': '0'}} with 2025-10-17 21:33:21,340 - INFO - Initial checks done. Running the testcase now 2025-10-17 21:33:21,340 - INFO - 2025-10-17 21:33:21,340 - INFO - ================================================================================ 2025-10-17 21:33:21,340 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-17 21:33:21,340 - 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-17 21:33:21,632 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.17': '0'}} with 2025-10-17 21:33:21,632 - INFO - Initial checks done. Running the testcase now 2025-10-17 21:33:21,632 - INFO - 2025-10-17 21:33:22,058 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99946557:ctest-vn4-85826551, 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-99946557:ctest-vn4-85826551, 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-99946557:ctest-vn4-85826551, 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-99946557:ctest-vn4-85826551, 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-17 21:33:22,709 - DEBUG - Response for create_network : {'network': {'id': '21f581d6-aa11-40d7-877b-e7f4caadbd7e', 'name': 'ctest-vn4-85826551', 'tenant_id': '2c47df0bb3754479ba734d5e2be9aa82', 'project_id': '2c47df0bb3754479ba734d5e2be9aa82', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-99946557', 'ctest-vn4-85826551'], 'port_security_enabled': True, 'description': ''}} 2025-10-17 21:33:22,864 - DEBUG - Response for create_subnet : {'subnet': {'id': '33e6f2ef-cdcb-4108-b6be-9f0b37b99fc2', 'name': '', 'tenant_id': '2c47df0bb3754479ba734d5e2be9aa82', 'network_id': '21f581d6-aa11-40d7-877b-e7f4caadbd7e', 'ip_version': 4, 'cidr': '168.245.25.128/26', 'allocation_pools': [{'start': '168.245.25.130', 'end': '168.245.25.190'}], 'gateway_ip': '168.245.25.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '168.245.25.130', 'tags': [], 'project_id': '2c47df0bb3754479ba734d5e2be9aa82'}} 2025-10-17 21:33:23,011 - DEBUG - Response for create_subnet : {'subnet': {'id': '2cec7a7f-ffff-4027-83b2-20d04d225f3e', 'name': '', 'tenant_id': '2c47df0bb3754479ba734d5e2be9aa82', 'network_id': '21f581d6-aa11-40d7-877b-e7f4caadbd7e', 'ip_version': 6, 'cidr': '2da3:e7e1:76f9:2802:1a7f:b141::/96', 'allocation_pools': [{'start': '2da3:e7e1:76f9:2802:1a7f:b141:0:2', 'end': '2da3:e7e1:76f9:2802:1a7f:b141:ffff:fffe'}], 'gateway_ip': '2da3:e7e1:76f9:2802:1a7f:b141:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2da3:e7e1:76f9:2802:1a7f:b141:0:2', 'tags': [], 'project_id': '2c47df0bb3754479ba734d5e2be9aa82'}} 2025-10-17 21:33:23,036 - INFO - Created VN ctest-vn4-85826551 2025-10-17 21:33:23,090 - DEBUG - VN ctest-vn4-85826551 UUID is 21f581d6-aa11-40d7-877b-e7f4caadbd7e 2025-10-17 21:33:23,319 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '21f581d6-aa11-40d7-877b-e7f4caadbd7e', 'name': 'ctest-vn4-85826551', 'tenant_id': '2c47df0bb3754479ba734d5e2be9aa82', 'project_id': '2c47df0bb3754479ba734d5e2be9aa82', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['33e6f2ef-cdcb-4108-b6be-9f0b37b99fc2', '2cec7a7f-ffff-4027-83b2-20d04d225f3e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-99946557', 'ctest-vn4-85826551'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-99946557', 'ctest-policy1-46891456']], 'subnet_ipam': [{'subnet_cidr': '168.245.25.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2da3:e7e1:76f9:2802:1a7f:b141::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-17 21:33:23,494 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-10-17 21:33:23,801 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-10-17 21:33:23,836 - DEBUG - Requesting: http://10.0.0.49:8082/domain/697ac883-7292-4624-826f-3acdf3af7702 2025-10-17 21:33:23,849 - DEBUG - Requesting: http://10.0.0.49:8082/project/2c47df0b-b375-4479-ba73-4d5e2be9aa82 2025-10-17 21:33:23,934 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/21f581d6-aa11-40d7-877b-e7f4caadbd7e 2025-10-17 21:33:23,947 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/21f581d6-aa11-40d7-877b-e7f4caadbd7e 2025-10-17 21:33:23,958 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/a72789d8-b187-4d5e-92c6-236ad8291343 2025-10-17 21:33:23,967 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/a72789d8-b187-4d5e-92c6-236ad8291343 2025-10-17 21:33:23,974 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/17e4cd65-5342-481a-871c-5f3050ac7a7f 2025-10-17 21:33:23,981 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-17 21:33:23,981 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/21f581d6-aa11-40d7-877b-e7f4caadbd7e 2025-10-17 21:33:23,991 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/a72789d8-b187-4d5e-92c6-236ad8291343 2025-10-17 21:33:24,008 - INFO - Verified VN network id 11 for VN 21f581d6-aa11-40d7-877b-e7f4caadbd7e 2025-10-17 21:33:24,008 - INFO - Verifications in API Server for VN ctest-vn4-85826551 passed 2025-10-17 21:33:24,008 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/21f581d6-aa11-40d7-877b-e7f4caadbd7e 2025-10-17 21:33:24,020 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/a72789d8-b187-4d5e-92c6-236ad8291343 2025-10-17 21:33:24,029 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/a72789d8-b187-4d5e-92c6-236ad8291343 2025-10-17 21:33:24,037 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/17e4cd65-5342-481a-871c-5f3050ac7a7f 2025-10-17 21:33:24,050 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99946557:ctest-vn4-85826551', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-99946557', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2447004731521974487', 'uuid-lslong': '9762651655814102398'}, 'enable': 'true', 'created': '2025-10-17T21:33:22', 'last-modified': '2025-10-17T21:33:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.762708'} 2025-10-17 21:33:24,056 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-17 21:33:24,057 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-85826551 passed 2025-10-17 21:33:24,057 - DEBUG - ====Verifying policy data for ctest-vn4-85826551 in API_Server ====== 2025-10-17 21:33:24,057 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-10-17 21:33:24,064 - DEBUG - Requesting: http://10.0.0.49:8082/domain/697ac883-7292-4624-826f-3acdf3af7702 2025-10-17 21:33:24,077 - DEBUG - Requesting: http://10.0.0.49:8082/project/2c47df0b-b375-4479-ba73-4d5e2be9aa82 2025-10-17 21:33:24,158 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/21f581d6-aa11-40d7-877b-e7f4caadbd7e 2025-10-17 21:33:24,170 - DEBUG - ==>Verifying data for policy with id: 0f34f8aa-11ae-48b1-88de-111707801940, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-99946557', 'ctest-policy1-46891456'] 2025-10-17 21:33:24,170 - INFO - VN ctest-vn4-85826551 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-17 21:33:24,170 - DEBUG - Verifying the vn in opserver 2025-10-17 21:33:24,170 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99946557:ctest-vn4-85826551 virtual network link through opserver 10.0.0.49 2025-10-17 21:33:24,170 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-10-17 21:33:24,468 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-10-17 21:33:24,537 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99946557:ctest-vn4-85826551', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99946557:ctest-vn4-85826551?flat'} 2025-10-17 21:33:24,537 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99946557:ctest-vn4-85826551 is found in opserver 2025-10-17 21:33:24,549 - DEBUG - Do not have enough data to verify VN in agent 2025-10-17 21:33:24,554 - DEBUG - VRF ids for VN ctest-vn4-85826551: {} 2025-10-17 21:33:24,555 - DEBUG - ====Verifying data for ctest-policy1-46891456 in API_Server ====== 2025-10-17 21:33:24,555 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-10-17 21:33:24,562 - DEBUG - Requesting: http://10.0.0.49:8082/domain/697ac883-7292-4624-826f-3acdf3af7702 2025-10-17 21:33:24,573 - DEBUG - Requesting: http://10.0.0.49:8082/project/2c47df0b-b375-4479-ba73-4d5e2be9aa82 2025-10-17 21:33:24,650 - DEBUG - Requesting: http://10.0.0.49:8082/network-policy/0f34f8aa-11ae-48b1-88de-111707801940 2025-10-17 21:33:24,660 - INFO - Verified policy ctest-policy1-46891456 in API Server, Result: True 2025-10-17 21:33:24,660 - INFO - Done with setup and verification, moving onto test .. 2025-10-17 21:33:24,670 - INFO - Deleting VN ctest-vn4-85826551 2025-10-17 21:33:24,805 - DEBUG - Response for deleting network () 2025-10-17 21:33:24,805 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/a72789d8-b187-4d5e-92c6-236ad8291343 2025-10-17 21:33:24,811 - DEBUG - Response Code: 404 2025-10-17 21:33:24,811 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-10-17 21:33:24,817 - DEBUG - Requesting: http://10.0.0.49:8082/domain/697ac883-7292-4624-826f-3acdf3af7702 2025-10-17 21:33:24,876 - DEBUG - Requesting: http://10.0.0.49:8082/project/2c47df0b-b375-4479-ba73-4d5e2be9aa82 2025-10-17 21:33:24,951 - INFO - Validated that VN ctest-vn4-85826551 is not found in API Server 2025-10-17 21:33:24,961 - DEBUG - VN ctest-vn4-85826551 is not present in Agent 10.0.0.49 2025-10-17 21:33:24,961 - INFO - Validated that VN ctest-vn4-85826551 is not in any agent 2025-10-17 21:33:24,981 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-85826551 info 2025-10-17 21:33:25,010 - INFO - Deleted policy ctest-policy1-46891456 2025-10-17 21:33:25,182 - DEBUG - policy ctest-policy1-46891456 is not found in API Server 2025-10-17 21:33:25,436 - DEBUG - No XMPP flaps were noticed during the test
2025-10-17 21:33:25,436 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-17 21:33:25,436 - INFO - -------------------------------------------------------------------------------- 2025-10-17 21:33:25,732 - DEBUG - No XMPP flaps were noticed during the test
2025-10-17 21:33:25,732 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-17 21:33:25,732 - INFO - -------------------------------------------------------------------------------- 2025-10-17 21:33:26,468 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-99946557, ID : 2c47df0b-b375-4479-ba73-4d5e2be9aa82