2025-11-03 16:45:20,908 - INFO - Domain Default found not creating 2025-11-03 16:45:21,054 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-96125792 not found, creating it 2025-11-03 16:45:21,485 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-96125792, ID : 306b52e1-9d08-4d7e-8243-93956d5461b5 2025-11-03 16:45:22,912 - INFO - ================================================================================ 2025-11-03 16:45:22,912 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-03 16:45:23,164 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with 2025-11-03 16:45:23,164 - INFO - Initial checks done. Running the testcase now 2025-11-03 16:45:23,164 - INFO - 2025-11-03 16:45:23,164 - INFO - ================================================================================ 2025-11-03 16:45:23,165 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-03 16:45:23,165 - 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-11-03 16:45:23,453 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with 2025-11-03 16:45:23,453 - INFO - Initial checks done. Running the testcase now 2025-11-03 16:45:23,453 - INFO - 2025-11-03 16:45:23,791 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96125792:ctest-vn4-01129341, 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-96125792:ctest-vn4-01129341, 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-96125792:ctest-vn4-01129341, 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-96125792:ctest-vn4-01129341, 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-11-03 16:45:24,279 - DEBUG - Response for create_network : {'network': {'id': 'a4e33e79-fd92-42a6-80ac-ee474b05ebe6', 'name': 'ctest-vn4-01129341', 'tenant_id': '306b52e19d084d7e824393956d5461b5', 'project_id': '306b52e19d084d7e824393956d5461b5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96125792', 'ctest-vn4-01129341'], 'port_security_enabled': True, 'description': ''}} 2025-11-03 16:45:24,486 - DEBUG - Response for create_subnet : {'subnet': {'id': '4e8b612b-eb25-4525-866c-6240f19b4ba5', 'name': '', 'tenant_id': '306b52e19d084d7e824393956d5461b5', 'network_id': 'a4e33e79-fd92-42a6-80ac-ee474b05ebe6', 'ip_version': 4, 'cidr': '102.22.231.128/26', 'allocation_pools': [{'start': '102.22.231.130', 'end': '102.22.231.190'}], 'gateway_ip': '102.22.231.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '102.22.231.130', 'tags': [], 'project_id': '306b52e19d084d7e824393956d5461b5'}} 2025-11-03 16:45:24,839 - DEBUG - Response for create_subnet : {'subnet': {'id': '3af7f225-b8d7-4ccd-89b1-208252f7527e', 'name': '', 'tenant_id': '306b52e19d084d7e824393956d5461b5', 'network_id': 'a4e33e79-fd92-42a6-80ac-ee474b05ebe6', 'ip_version': 6, 'cidr': '372c:6f0d:3222:b23f:6b03:bd61::/96', 'allocation_pools': [{'start': '372c:6f0d:3222:b23f:6b03:bd61:0:2', 'end': '372c:6f0d:3222:b23f:6b03:bd61:ffff:fffe'}], 'gateway_ip': '372c:6f0d:3222:b23f:6b03:bd61:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '372c:6f0d:3222:b23f:6b03:bd61:0:2', 'tags': [], 'project_id': '306b52e19d084d7e824393956d5461b5'}} 2025-11-03 16:45:24,859 - INFO - Created VN ctest-vn4-01129341 2025-11-03 16:45:24,912 - DEBUG - VN ctest-vn4-01129341 UUID is a4e33e79-fd92-42a6-80ac-ee474b05ebe6 2025-11-03 16:45:25,108 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a4e33e79-fd92-42a6-80ac-ee474b05ebe6', 'name': 'ctest-vn4-01129341', 'tenant_id': '306b52e19d084d7e824393956d5461b5', 'project_id': '306b52e19d084d7e824393956d5461b5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4e8b612b-eb25-4525-866c-6240f19b4ba5', '3af7f225-b8d7-4ccd-89b1-208252f7527e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96125792', 'ctest-vn4-01129341'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96125792', 'ctest-policy1-25233710']], 'subnet_ipam': [{'subnet_cidr': '102.22.231.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '372c:6f0d:3222:b23f:6b03:bd61::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-03 16:45:25,268 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-11-03 16:45:25,565 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-11-03 16:45:25,596 - DEBUG - Requesting: http://10.0.0.242:8082/domain/6fb115a4-4a13-496d-8d81-8fe8d931463a 2025-11-03 16:45:25,608 - DEBUG - Requesting: http://10.0.0.242:8082/project/306b52e1-9d08-4d7e-8243-93956d5461b5 2025-11-03 16:45:25,676 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a4e33e79-fd92-42a6-80ac-ee474b05ebe6 2025-11-03 16:45:25,688 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a4e33e79-fd92-42a6-80ac-ee474b05ebe6 2025-11-03 16:45:25,698 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/2e93f210-9e79-4ddd-9fca-364c5382ed60 2025-11-03 16:45:25,704 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/2e93f210-9e79-4ddd-9fca-364c5382ed60 2025-11-03 16:45:25,711 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/36d1f857-25bc-48e0-a2f0-f0d61db55b97 2025-11-03 16:45:25,717 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-03 16:45:25,717 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a4e33e79-fd92-42a6-80ac-ee474b05ebe6 2025-11-03 16:45:25,726 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/2e93f210-9e79-4ddd-9fca-364c5382ed60 2025-11-03 16:45:25,740 - INFO - Verified VN network id 10 for VN a4e33e79-fd92-42a6-80ac-ee474b05ebe6 2025-11-03 16:45:25,740 - INFO - Verifications in API Server for VN ctest-vn4-01129341 passed 2025-11-03 16:45:25,740 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a4e33e79-fd92-42a6-80ac-ee474b05ebe6 2025-11-03 16:45:25,750 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/2e93f210-9e79-4ddd-9fca-364c5382ed60 2025-11-03 16:45:25,757 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/2e93f210-9e79-4ddd-9fca-364c5382ed60 2025-11-03 16:45:25,764 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/36d1f857-25bc-48e0-a2f0-f0d61db55b97 2025-11-03 16:45:25,777 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96125792:ctest-vn4-01129341', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-96125792', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11881408935599686310', 'uuid-lslong': '9272047722817776614'}, 'enable': 'true', 'created': '2025-11-03T16:45:24', 'last-modified': '2025-11-03T16:45:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.690500'} 2025-11-03 16:45:25,783 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-03 16:45:25,783 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-01129341 passed 2025-11-03 16:45:25,783 - DEBUG - ====Verifying policy data for ctest-vn4-01129341 in API_Server ====== 2025-11-03 16:45:25,783 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-11-03 16:45:25,788 - DEBUG - Requesting: http://10.0.0.242:8082/domain/6fb115a4-4a13-496d-8d81-8fe8d931463a 2025-11-03 16:45:25,798 - DEBUG - Requesting: http://10.0.0.242:8082/project/306b52e1-9d08-4d7e-8243-93956d5461b5 2025-11-03 16:45:25,863 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a4e33e79-fd92-42a6-80ac-ee474b05ebe6 2025-11-03 16:45:25,872 - DEBUG - ==>Verifying data for policy with id: f3c4e9ca-6051-4005-a4aa-9788664ad7ea, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96125792', 'ctest-policy1-25233710'] 2025-11-03 16:45:25,872 - INFO - VN ctest-vn4-01129341 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-03 16:45:25,872 - DEBUG - Verifying the vn in opserver 2025-11-03 16:45:25,872 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96125792:ctest-vn4-01129341 virtual network link through opserver 10.0.0.242 2025-11-03 16:45:25,872 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-11-03 16:45:26,161 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-11-03 16:45:26,213 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96125792:ctest-vn4-01129341', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96125792:ctest-vn4-01129341?flat'} 2025-11-03 16:45:26,213 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96125792:ctest-vn4-01129341 is found in opserver 2025-11-03 16:45:26,223 - DEBUG - Do not have enough data to verify VN in agent 2025-11-03 16:45:26,227 - DEBUG - VRF ids for VN ctest-vn4-01129341: {} 2025-11-03 16:45:26,228 - DEBUG - ====Verifying data for ctest-policy1-25233710 in API_Server ====== 2025-11-03 16:45:26,228 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-11-03 16:45:26,232 - DEBUG - Requesting: http://10.0.0.242:8082/domain/6fb115a4-4a13-496d-8d81-8fe8d931463a 2025-11-03 16:45:26,241 - DEBUG - Requesting: http://10.0.0.242:8082/project/306b52e1-9d08-4d7e-8243-93956d5461b5 2025-11-03 16:45:26,311 - DEBUG - Requesting: http://10.0.0.242:8082/network-policy/f3c4e9ca-6051-4005-a4aa-9788664ad7ea 2025-11-03 16:45:26,318 - INFO - Verified policy ctest-policy1-25233710 in API Server, Result: True 2025-11-03 16:45:26,318 - INFO - Done with setup and verification, moving onto test .. 2025-11-03 16:45:26,325 - INFO - Deleting VN ctest-vn4-01129341 2025-11-03 16:45:26,433 - DEBUG - Response for deleting network () 2025-11-03 16:45:26,434 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/2e93f210-9e79-4ddd-9fca-364c5382ed60 2025-11-03 16:45:26,438 - DEBUG - Response Code: 404 2025-11-03 16:45:26,438 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-11-03 16:45:26,442 - DEBUG - Requesting: http://10.0.0.242:8082/domain/6fb115a4-4a13-496d-8d81-8fe8d931463a 2025-11-03 16:45:26,493 - DEBUG - Requesting: http://10.0.0.242:8082/project/306b52e1-9d08-4d7e-8243-93956d5461b5 2025-11-03 16:45:26,566 - INFO - Validated that VN ctest-vn4-01129341 is not found in API Server 2025-11-03 16:45:26,575 - DEBUG - VN ctest-vn4-01129341 is not present in Agent 10.0.0.242 2025-11-03 16:45:26,575 - INFO - Validated that VN ctest-vn4-01129341 is not in any agent 2025-11-03 16:45:26,589 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-01129341 info 2025-11-03 16:45:26,611 - INFO - Deleted policy ctest-policy1-25233710 2025-11-03 16:45:26,775 - DEBUG - policy ctest-policy1-25233710 is not found in API Server 2025-11-03 16:45:27,028 - DEBUG - No XMPP flaps were noticed during the test
2025-11-03 16:45:27,028 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-11-03 16:45:27,028 - INFO - -------------------------------------------------------------------------------- 2025-11-03 16:45:27,317 - DEBUG - No XMPP flaps were noticed during the test
2025-11-03 16:45:27,317 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-11-03 16:45:27,318 - INFO - -------------------------------------------------------------------------------- 2025-11-03 16:45:27,960 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-96125792, ID : 306b52e1-9d08-4d7e-8243-93956d5461b5