2025-09-10 16:30:08,193 - INFO - Domain Default found not creating 2025-09-10 16:30:08,333 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-64505739 not found, creating it 2025-09-10 16:30:08,799 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-64505739, ID : 57dee88e-1f08-43f4-b519-1dc3bbd994fb 2025-09-10 16:30:10,250 - INFO - ================================================================================ 2025-09-10 16:30:10,251 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-10 16:30:10,505 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.14': '0'}} with 2025-09-10 16:30:10,505 - INFO - Initial checks done. Running the testcase now 2025-09-10 16:30:10,505 - INFO - 2025-09-10 16:30:10,505 - INFO - ================================================================================ 2025-09-10 16:30:10,505 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-10 16:30:10,505 - 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-10 16:30:10,791 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.14': '0'}} with 2025-09-10 16:30:10,791 - INFO - Initial checks done. Running the testcase now 2025-09-10 16:30:10,791 - INFO - 2025-09-10 16:30:11,138 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64505739:ctest-vn4-88972907, 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-64505739:ctest-vn4-88972907, 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-64505739:ctest-vn4-88972907, 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-64505739:ctest-vn4-88972907, 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-10 16:30:11,641 - DEBUG - Response for create_network : {'network': {'id': '590965d1-7f14-4bc9-99a9-94f05b9128d3', 'name': 'ctest-vn4-88972907', 'tenant_id': '57dee88e1f0843f4b5191dc3bbd994fb', 'project_id': '57dee88e1f0843f4b5191dc3bbd994fb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-64505739', 'ctest-vn4-88972907'], 'port_security_enabled': True, 'description': ''}} 2025-09-10 16:30:11,833 - DEBUG - Response for create_subnet : {'subnet': {'id': '0f93c15d-2030-491a-a098-12f65d5877ae', 'name': '', 'tenant_id': '57dee88e1f0843f4b5191dc3bbd994fb', 'network_id': '590965d1-7f14-4bc9-99a9-94f05b9128d3', 'ip_version': 4, 'cidr': '48.9.161.0/26', 'allocation_pools': [{'start': '48.9.161.2', 'end': '48.9.161.62'}], 'gateway_ip': '48.9.161.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '48.9.161.2', 'tags': [], 'project_id': '57dee88e1f0843f4b5191dc3bbd994fb'}} 2025-09-10 16:30:12,015 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e24a9506-6ca6-4bc5-846e-00f95c2b333b', 'name': '', 'tenant_id': '57dee88e1f0843f4b5191dc3bbd994fb', 'network_id': '590965d1-7f14-4bc9-99a9-94f05b9128d3', 'ip_version': 6, 'cidr': '2095:c9c7:80a6:8123:4f81:bfa8::/96', 'allocation_pools': [{'start': '2095:c9c7:80a6:8123:4f81:bfa8:0:2', 'end': '2095:c9c7:80a6:8123:4f81:bfa8:ffff:fffe'}], 'gateway_ip': '2095:c9c7:80a6:8123:4f81:bfa8:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2095:c9c7:80a6:8123:4f81:bfa8:0:2', 'tags': [], 'project_id': '57dee88e1f0843f4b5191dc3bbd994fb'}} 2025-09-10 16:30:12,036 - INFO - Created VN ctest-vn4-88972907 2025-09-10 16:30:12,086 - DEBUG - VN ctest-vn4-88972907 UUID is 590965d1-7f14-4bc9-99a9-94f05b9128d3 2025-09-10 16:30:12,341 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '590965d1-7f14-4bc9-99a9-94f05b9128d3', 'name': 'ctest-vn4-88972907', 'tenant_id': '57dee88e1f0843f4b5191dc3bbd994fb', 'project_id': '57dee88e1f0843f4b5191dc3bbd994fb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0f93c15d-2030-491a-a098-12f65d5877ae', 'e24a9506-6ca6-4bc5-846e-00f95c2b333b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-64505739', 'ctest-vn4-88972907'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-64505739', 'ctest-policy1-36806395']], 'subnet_ipam': [{'subnet_cidr': '48.9.161.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2095:c9c7:80a6:8123:4f81:bfa8::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-10 16:30:12,510 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-09-10 16:30:12,804 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-09-10 16:30:12,831 - DEBUG - Requesting: http://10.0.0.27:8082/domain/bcd568e3-00d3-4962-a539-a11b527d928e 2025-09-10 16:30:12,846 - DEBUG - Requesting: http://10.0.0.27:8082/project/57dee88e-1f08-43f4-b519-1dc3bbd994fb 2025-09-10 16:30:12,918 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/590965d1-7f14-4bc9-99a9-94f05b9128d3 2025-09-10 16:30:12,931 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/590965d1-7f14-4bc9-99a9-94f05b9128d3 2025-09-10 16:30:12,942 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/daaec709-40f7-406f-9cd0-28baecd6b36d 2025-09-10 16:30:12,949 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/daaec709-40f7-406f-9cd0-28baecd6b36d 2025-09-10 16:30:12,957 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/163c1001-242f-4cd2-b2fc-c7f1eaa867d8 2025-09-10 16:30:12,965 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-10 16:30:12,966 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/590965d1-7f14-4bc9-99a9-94f05b9128d3 2025-09-10 16:30:12,977 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/daaec709-40f7-406f-9cd0-28baecd6b36d 2025-09-10 16:30:12,991 - INFO - Verified VN network id 11 for VN 590965d1-7f14-4bc9-99a9-94f05b9128d3 2025-09-10 16:30:12,991 - INFO - Verifications in API Server for VN ctest-vn4-88972907 passed 2025-09-10 16:30:12,992 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/590965d1-7f14-4bc9-99a9-94f05b9128d3 2025-09-10 16:30:13,001 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/daaec709-40f7-406f-9cd0-28baecd6b36d 2025-09-10 16:30:13,009 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/daaec709-40f7-406f-9cd0-28baecd6b36d 2025-09-10 16:30:13,018 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/163c1001-242f-4cd2-b2fc-c7f1eaa867d8 2025-09-10 16:30:13,031 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64505739:ctest-vn4-88972907', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-64505739', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6415771094620589001', 'uuid-lslong': '11072544918916376787'}, 'enable': 'true', 'created': '2025-09-10T16:30:11', 'last-modified': '2025-09-10T16:30:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.722338'} 2025-09-10 16:30:13,038 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-10 16:30:13,038 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-88972907 passed 2025-09-10 16:30:13,038 - DEBUG - ====Verifying policy data for ctest-vn4-88972907 in API_Server ====== 2025-09-10 16:30:13,038 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-09-10 16:30:13,044 - DEBUG - Requesting: http://10.0.0.27:8082/domain/bcd568e3-00d3-4962-a539-a11b527d928e 2025-09-10 16:30:13,057 - DEBUG - Requesting: http://10.0.0.27:8082/project/57dee88e-1f08-43f4-b519-1dc3bbd994fb 2025-09-10 16:30:13,132 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/590965d1-7f14-4bc9-99a9-94f05b9128d3 2025-09-10 16:30:13,141 - DEBUG - ==>Verifying data for policy with id: 041acde2-d089-44a1-b11e-ea135c60c1e0, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-64505739', 'ctest-policy1-36806395'] 2025-09-10 16:30:13,141 - INFO - VN ctest-vn4-88972907 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-10 16:30:13,141 - DEBUG - Verifying the vn in opserver 2025-09-10 16:30:13,142 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64505739:ctest-vn4-88972907 virtual network link through opserver 10.0.0.27 2025-09-10 16:30:13,142 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-09-10 16:30:13,439 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-09-10 16:30:13,507 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64505739:ctest-vn4-88972907', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64505739:ctest-vn4-88972907?flat'} 2025-09-10 16:30:13,507 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64505739:ctest-vn4-88972907 is found in opserver 2025-09-10 16:30:13,517 - DEBUG - Do not have enough data to verify VN in agent 2025-09-10 16:30:13,522 - DEBUG - VRF ids for VN ctest-vn4-88972907: {} 2025-09-10 16:30:13,522 - DEBUG - ====Verifying data for ctest-policy1-36806395 in API_Server ====== 2025-09-10 16:30:13,522 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-09-10 16:30:13,527 - DEBUG - Requesting: http://10.0.0.27:8082/domain/bcd568e3-00d3-4962-a539-a11b527d928e 2025-09-10 16:30:13,537 - DEBUG - Requesting: http://10.0.0.27:8082/project/57dee88e-1f08-43f4-b519-1dc3bbd994fb 2025-09-10 16:30:13,610 - DEBUG - Requesting: http://10.0.0.27:8082/network-policy/041acde2-d089-44a1-b11e-ea135c60c1e0 2025-09-10 16:30:13,619 - INFO - Verified policy ctest-policy1-36806395 in API Server, Result: True 2025-09-10 16:30:13,619 - INFO - Done with setup and verification, moving onto test .. 2025-09-10 16:30:13,628 - INFO - Deleting VN ctest-vn4-88972907 2025-09-10 16:30:13,734 - DEBUG - Response for deleting network () 2025-09-10 16:30:13,734 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/daaec709-40f7-406f-9cd0-28baecd6b36d 2025-09-10 16:30:13,739 - DEBUG - Response Code: 404 2025-09-10 16:30:13,739 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-09-10 16:30:13,744 - DEBUG - Requesting: http://10.0.0.27:8082/domain/bcd568e3-00d3-4962-a539-a11b527d928e 2025-09-10 16:30:13,795 - DEBUG - Requesting: http://10.0.0.27:8082/project/57dee88e-1f08-43f4-b519-1dc3bbd994fb 2025-09-10 16:30:13,863 - INFO - Validated that VN ctest-vn4-88972907 is not found in API Server 2025-09-10 16:30:13,873 - DEBUG - VN ctest-vn4-88972907 is not present in Agent 10.0.0.27 2025-09-10 16:30:13,873 - INFO - Validated that VN ctest-vn4-88972907 is not in any agent 2025-09-10 16:30:13,887 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-88972907 info 2025-09-10 16:30:13,919 - INFO - Deleted policy ctest-policy1-36806395 2025-09-10 16:30:14,081 - DEBUG - policy ctest-policy1-36806395 is not found in API Server 2025-09-10 16:30:14,334 - DEBUG - No XMPP flaps were noticed during the test 2025-09-10 16:30:14,334 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-09-10 16:30:14,334 - INFO - -------------------------------------------------------------------------------- 2025-09-10 16:30:14,639 - DEBUG - No XMPP flaps were noticed during the test 2025-09-10 16:30:14,639 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-09-10 16:30:14,639 - INFO - -------------------------------------------------------------------------------- 2025-09-10 16:30:15,350 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-64505739, ID : 57dee88e-1f08-43f4-b519-1dc3bbd994fb