2025-10-31 16:25:41,066 - INFO - Domain Default found not creating 2025-10-31 16:25:41,326 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-06397548 not found, creating it 2025-10-31 16:25:42,034 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-06397548, ID : 031781b5-0296-4e8e-83a9-7b146bdca068 2025-10-31 16:25:44,238 - INFO - ================================================================================ 2025-10-31 16:25:44,239 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-31 16:25:44,568 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2025-10-31 16:25:44,568 - INFO - Initial checks done. Running the testcase now 2025-10-31 16:25:44,569 - INFO - 2025-10-31 16:25:44,569 - INFO - ================================================================================ 2025-10-31 16:25:44,569 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-31 16:25:44,569 - 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-31 16:25:44,908 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2025-10-31 16:25:44,908 - INFO - Initial checks done. Running the testcase now 2025-10-31 16:25:44,909 - INFO - 2025-10-31 16:25:45,372 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06397548:ctest-vn4-05174049, 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-06397548:ctest-vn4-05174049, 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-06397548:ctest-vn4-05174049, 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-06397548:ctest-vn4-05174049, 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-31 16:25:46,006 - DEBUG - Response for create_network : {'network': {'id': 'a53adaf8-61f1-4cca-b166-253f49247b28', 'name': 'ctest-vn4-05174049', 'tenant_id': '031781b502964e8e83a97b146bdca068', 'project_id': '031781b502964e8e83a97b146bdca068', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06397548', 'ctest-vn4-05174049'], 'port_security_enabled': True, 'description': ''}} 2025-10-31 16:25:46,258 - DEBUG - Response for create_subnet : {'subnet': {'id': '72780019-0a97-4316-8fef-645f6ba7cdcd', 'name': '', 'tenant_id': '031781b502964e8e83a97b146bdca068', 'network_id': 'a53adaf8-61f1-4cca-b166-253f49247b28', 'ip_version': 4, 'cidr': '32.235.6.0/26', 'allocation_pools': [{'start': '32.235.6.2', 'end': '32.235.6.62'}], 'gateway_ip': '32.235.6.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '32.235.6.2', 'tags': [], 'project_id': '031781b502964e8e83a97b146bdca068'}} 2025-10-31 16:25:46,517 - DEBUG - Response for create_subnet : {'subnet': {'id': '3297a0b1-a733-4fa6-86b8-20489e0e4c9f', 'name': '', 'tenant_id': '031781b502964e8e83a97b146bdca068', 'network_id': 'a53adaf8-61f1-4cca-b166-253f49247b28', 'ip_version': 6, 'cidr': '2e76:8c97:9c3a:102f:8753:de26::/96', 'allocation_pools': [{'start': '2e76:8c97:9c3a:102f:8753:de26:0:2', 'end': '2e76:8c97:9c3a:102f:8753:de26:ffff:fffe'}], 'gateway_ip': '2e76:8c97:9c3a:102f:8753:de26:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2e76:8c97:9c3a:102f:8753:de26:0:2', 'tags': [], 'project_id': '031781b502964e8e83a97b146bdca068'}} 2025-10-31 16:25:46,547 - INFO - Created VN ctest-vn4-05174049 2025-10-31 16:25:46,610 - DEBUG - VN ctest-vn4-05174049 UUID is a53adaf8-61f1-4cca-b166-253f49247b28 2025-10-31 16:25:46,982 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a53adaf8-61f1-4cca-b166-253f49247b28', 'name': 'ctest-vn4-05174049', 'tenant_id': '031781b502964e8e83a97b146bdca068', 'project_id': '031781b502964e8e83a97b146bdca068', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['72780019-0a97-4316-8fef-645f6ba7cdcd', '3297a0b1-a733-4fa6-86b8-20489e0e4c9f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06397548', 'ctest-vn4-05174049'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06397548', 'ctest-policy1-45280794']], 'subnet_ipam': [{'subnet_cidr': '32.235.6.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2e76:8c97:9c3a:102f:8753:de26::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-31 16:25:47,153 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-10-31 16:25:47,471 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-10-31 16:25:47,548 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ca8d3a8d-2b3f-4146-b439-65996d4dbb4f 2025-10-31 16:25:47,579 - DEBUG - Requesting: http://10.0.0.50:8082/project/031781b5-0296-4e8e-83a9-7b146bdca068 2025-10-31 16:25:47,696 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a53adaf8-61f1-4cca-b166-253f49247b28 2025-10-31 16:25:47,721 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a53adaf8-61f1-4cca-b166-253f49247b28 2025-10-31 16:25:47,742 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/12e06b59-0ecb-49ef-8cc9-4bb2e5dcf3df 2025-10-31 16:25:47,760 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/12e06b59-0ecb-49ef-8cc9-4bb2e5dcf3df 2025-10-31 16:25:47,778 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/a953c763-0f04-4db9-a223-0d699099822c 2025-10-31 16:25:47,793 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-31 16:25:47,793 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a53adaf8-61f1-4cca-b166-253f49247b28 2025-10-31 16:25:47,813 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/12e06b59-0ecb-49ef-8cc9-4bb2e5dcf3df 2025-10-31 16:25:47,843 - INFO - Verified VN network id 11 for VN a53adaf8-61f1-4cca-b166-253f49247b28 2025-10-31 16:25:47,843 - INFO - Verifications in API Server for VN ctest-vn4-05174049 passed 2025-10-31 16:25:47,843 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a53adaf8-61f1-4cca-b166-253f49247b28 2025-10-31 16:25:47,869 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/12e06b59-0ecb-49ef-8cc9-4bb2e5dcf3df 2025-10-31 16:25:47,884 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/12e06b59-0ecb-49ef-8cc9-4bb2e5dcf3df 2025-10-31 16:25:47,899 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/a953c763-0f04-4db9-a223-0d699099822c 2025-10-31 16:25:47,924 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06397548:ctest-vn4-05174049', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-06397548', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11906069325237275850', 'uuid-lslong': '12782945546078026536'}, 'enable': 'true', 'created': '2025-10-31T16:25:45', 'last-modified': '2025-10-31T16:25:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.992735'} 2025-10-31 16:25:47,936 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-31 16:25:47,936 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-05174049 passed 2025-10-31 16:25:47,936 - DEBUG - ====Verifying policy data for ctest-vn4-05174049 in API_Server ====== 2025-10-31 16:25:47,936 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-10-31 16:25:47,944 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ca8d3a8d-2b3f-4146-b439-65996d4dbb4f 2025-10-31 16:25:47,968 - DEBUG - Requesting: http://10.0.0.50:8082/project/031781b5-0296-4e8e-83a9-7b146bdca068 2025-10-31 16:25:48,051 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a53adaf8-61f1-4cca-b166-253f49247b28 2025-10-31 16:25:48,062 - DEBUG - ==>Verifying data for policy with id: acb8bdc5-3ada-4eb5-8334-03d545643912, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06397548', 'ctest-policy1-45280794'] 2025-10-31 16:25:48,062 - INFO - VN ctest-vn4-05174049 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-31 16:25:48,062 - DEBUG - Verifying the vn in opserver 2025-10-31 16:25:48,062 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06397548:ctest-vn4-05174049 virtual network link through opserver 10.0.0.50 2025-10-31 16:25:48,062 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-10-31 16:25:48,407 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-10-31 16:25:48,486 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06397548:ctest-vn4-05174049', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06397548:ctest-vn4-05174049?flat'} 2025-10-31 16:25:48,486 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06397548:ctest-vn4-05174049 is found in opserver 2025-10-31 16:25:48,502 - DEBUG - Do not have enough data to verify VN in agent 2025-10-31 16:25:48,509 - DEBUG - VRF ids for VN ctest-vn4-05174049: {} 2025-10-31 16:25:48,509 - DEBUG - ====Verifying data for ctest-policy1-45280794 in API_Server ====== 2025-10-31 16:25:48,509 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-10-31 16:25:48,521 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ca8d3a8d-2b3f-4146-b439-65996d4dbb4f 2025-10-31 16:25:48,549 - DEBUG - Requesting: http://10.0.0.50:8082/project/031781b5-0296-4e8e-83a9-7b146bdca068 2025-10-31 16:25:48,666 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/acb8bdc5-3ada-4eb5-8334-03d545643912 2025-10-31 16:25:48,693 - INFO - Verified policy ctest-policy1-45280794 in API Server, Result: True 2025-10-31 16:25:48,693 - INFO - Done with setup and verification, moving onto test .. 2025-10-31 16:25:48,706 - INFO - Deleting VN ctest-vn4-05174049 2025-10-31 16:25:48,871 - DEBUG - Response for deleting network () 2025-10-31 16:25:48,871 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/12e06b59-0ecb-49ef-8cc9-4bb2e5dcf3df 2025-10-31 16:25:48,876 - DEBUG - Response Code: 404 2025-10-31 16:25:48,877 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-10-31 16:25:48,882 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ca8d3a8d-2b3f-4146-b439-65996d4dbb4f 2025-10-31 16:25:48,933 - DEBUG - Requesting: http://10.0.0.50:8082/project/031781b5-0296-4e8e-83a9-7b146bdca068 2025-10-31 16:25:49,011 - INFO - Validated that VN ctest-vn4-05174049 is not found in API Server 2025-10-31 16:25:49,024 - DEBUG - VN ctest-vn4-05174049 is not present in Agent 10.0.0.50 2025-10-31 16:25:49,024 - INFO - Validated that VN ctest-vn4-05174049 is not in any agent 2025-10-31 16:25:49,040 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-05174049 info 2025-10-31 16:25:49,067 - INFO - Deleted policy ctest-policy1-45280794 2025-10-31 16:25:49,253 - DEBUG - policy ctest-policy1-45280794 is not found in API Server 2025-10-31 16:25:49,589 - DEBUG - No XMPP flaps were noticed during the test
2025-10-31 16:25:49,589 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-10-31 16:25:49,589 - INFO - -------------------------------------------------------------------------------- 2025-10-31 16:25:49,921 - DEBUG - No XMPP flaps were noticed during the test
2025-10-31 16:25:49,921 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-10-31 16:25:49,921 - INFO - -------------------------------------------------------------------------------- 2025-10-31 16:25:50,869 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-06397548, ID : 031781b5-0296-4e8e-83a9-7b146bdca068