2025-12-09 22:12:23,557 - INFO - Domain Default found not creating 2025-12-09 22:12:23,726 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-69150069 not found, creating it 2025-12-09 22:12:24,171 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-69150069, ID : ebba6d6b-9514-4534-acb4-fa0ce67d502c 2025-12-09 22:12:25,635 - INFO - ================================================================================ 2025-12-09 22:12:25,635 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-09 22:12:25,891 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.14': '0'}} with 2025-12-09 22:12:25,891 - INFO - Initial checks done. Running the testcase now 2025-12-09 22:12:25,891 - INFO - 2025-12-09 22:12:25,891 - INFO - ================================================================================ 2025-12-09 22:12:25,891 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-09 22:12:25,891 - 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-12-09 22:12:26,182 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.14': '0'}} with 2025-12-09 22:12:26,182 - INFO - Initial checks done. Running the testcase now 2025-12-09 22:12:26,182 - INFO - 2025-12-09 22:12:26,536 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69150069:ctest-vn4-81170400, 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-69150069:ctest-vn4-81170400, 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-69150069:ctest-vn4-81170400, 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-69150069:ctest-vn4-81170400, 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-12-09 22:12:27,067 - DEBUG - Response for create_network : {'network': {'id': 'db3497cf-4b8c-41d5-9d06-1a088505ae99', 'name': 'ctest-vn4-81170400', 'tenant_id': 'ebba6d6b95144534acb4fa0ce67d502c', 'project_id': 'ebba6d6b95144534acb4fa0ce67d502c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-69150069', 'ctest-vn4-81170400'], 'port_security_enabled': True, 'description': ''}} 2025-12-09 22:12:27,250 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e4b05549-3f4b-4376-8380-c1bd9e02cf08', 'name': '', 'tenant_id': 'ebba6d6b95144534acb4fa0ce67d502c', 'network_id': 'db3497cf-4b8c-41d5-9d06-1a088505ae99', 'ip_version': 4, 'cidr': '21.3.31.128/26', 'allocation_pools': [{'start': '21.3.31.130', 'end': '21.3.31.190'}], 'gateway_ip': '21.3.31.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '21.3.31.130', 'tags': [], 'project_id': 'ebba6d6b95144534acb4fa0ce67d502c'}} 2025-12-09 22:12:27,397 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f239f3f3-86c1-4ae6-bee2-8d1e00d83e9f', 'name': '', 'tenant_id': 'ebba6d6b95144534acb4fa0ce67d502c', 'network_id': 'db3497cf-4b8c-41d5-9d06-1a088505ae99', 'ip_version': 6, 'cidr': '2012:9bee:fac8:3c41:1fd1:ff48::/96', 'allocation_pools': [{'start': '2012:9bee:fac8:3c41:1fd1:ff48:0:2', 'end': '2012:9bee:fac8:3c41:1fd1:ff48:ffff:fffe'}], 'gateway_ip': '2012:9bee:fac8:3c41:1fd1:ff48:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2012:9bee:fac8:3c41:1fd1:ff48:0:2', 'tags': [], 'project_id': 'ebba6d6b95144534acb4fa0ce67d502c'}} 2025-12-09 22:12:27,415 - INFO - Created VN ctest-vn4-81170400 2025-12-09 22:12:27,465 - DEBUG - VN ctest-vn4-81170400 UUID is db3497cf-4b8c-41d5-9d06-1a088505ae99 2025-12-09 22:12:27,652 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'db3497cf-4b8c-41d5-9d06-1a088505ae99', 'name': 'ctest-vn4-81170400', 'tenant_id': 'ebba6d6b95144534acb4fa0ce67d502c', 'project_id': 'ebba6d6b95144534acb4fa0ce67d502c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e4b05549-3f4b-4376-8380-c1bd9e02cf08', 'f239f3f3-86c1-4ae6-bee2-8d1e00d83e9f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-69150069', 'ctest-vn4-81170400'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-69150069', 'ctest-policy1-54992509']], 'subnet_ipam': [{'subnet_cidr': '21.3.31.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2012:9bee:fac8:3c41:1fd1:ff48::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-09 22:12:27,837 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-12-09 22:12:28,135 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-12-09 22:12:28,163 - DEBUG - Requesting: http://10.0.0.19:8082/domain/801b6e3b-8689-4746-bbce-2865015eaf9a 2025-12-09 22:12:28,173 - DEBUG - Requesting: http://10.0.0.19:8082/project/ebba6d6b-9514-4534-acb4-fa0ce67d502c 2025-12-09 22:12:28,243 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/db3497cf-4b8c-41d5-9d06-1a088505ae99 2025-12-09 22:12:28,256 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/db3497cf-4b8c-41d5-9d06-1a088505ae99 2025-12-09 22:12:28,264 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/151f57bd-d1db-4f9d-9298-a015ea99d0d4 2025-12-09 22:12:28,270 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/151f57bd-d1db-4f9d-9298-a015ea99d0d4 2025-12-09 22:12:28,276 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/4f03713d-c634-488d-9f4d-ea42b00c1293 2025-12-09 22:12:28,282 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-09 22:12:28,282 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/db3497cf-4b8c-41d5-9d06-1a088505ae99 2025-12-09 22:12:28,290 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/151f57bd-d1db-4f9d-9298-a015ea99d0d4 2025-12-09 22:12:28,301 - INFO - Verified VN network id 9 for VN db3497cf-4b8c-41d5-9d06-1a088505ae99 2025-12-09 22:12:28,301 - INFO - Verifications in API Server for VN ctest-vn4-81170400 passed 2025-12-09 22:12:28,301 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/db3497cf-4b8c-41d5-9d06-1a088505ae99 2025-12-09 22:12:28,309 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/151f57bd-d1db-4f9d-9298-a015ea99d0d4 2025-12-09 22:12:28,314 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/151f57bd-d1db-4f9d-9298-a015ea99d0d4 2025-12-09 22:12:28,319 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/4f03713d-c634-488d-9f4d-ea42b00c1293 2025-12-09 22:12:28,329 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69150069:ctest-vn4-81170400', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-69150069', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15795416709676679637', 'uuid-lslong': '11314759737708752537'}, 'enable': 'true', 'created': '2025-12-09T22:12:27', 'last-modified': '2025-12-09T22:12:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.700310'} 2025-12-09 22:12:28,334 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-09 22:12:28,335 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-81170400 passed 2025-12-09 22:12:28,335 - DEBUG - ====Verifying policy data for ctest-vn4-81170400 in API_Server ====== 2025-12-09 22:12:28,335 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-12-09 22:12:28,340 - DEBUG - Requesting: http://10.0.0.19:8082/domain/801b6e3b-8689-4746-bbce-2865015eaf9a 2025-12-09 22:12:28,349 - DEBUG - Requesting: http://10.0.0.19:8082/project/ebba6d6b-9514-4534-acb4-fa0ce67d502c 2025-12-09 22:12:28,418 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/db3497cf-4b8c-41d5-9d06-1a088505ae99 2025-12-09 22:12:28,427 - DEBUG - ==>Verifying data for policy with id: e2f6a58a-489d-428e-8414-ce401be288b5, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-69150069', 'ctest-policy1-54992509'] 2025-12-09 22:12:28,427 - INFO - VN ctest-vn4-81170400 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-09 22:12:28,427 - DEBUG - Verifying the vn in opserver 2025-12-09 22:12:28,427 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69150069:ctest-vn4-81170400 virtual network link through opserver 10.0.0.19 2025-12-09 22:12:28,427 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-12-09 22:12:28,730 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-12-09 22:12:28,791 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69150069:ctest-vn4-81170400', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69150069:ctest-vn4-81170400?flat'} 2025-12-09 22:12:28,791 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69150069:ctest-vn4-81170400 is found in opserver 2025-12-09 22:12:28,800 - DEBUG - Do not have enough data to verify VN in agent 2025-12-09 22:12:28,804 - DEBUG - VRF ids for VN ctest-vn4-81170400: {} 2025-12-09 22:12:28,805 - DEBUG - ====Verifying data for ctest-policy1-54992509 in API_Server ====== 2025-12-09 22:12:28,805 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-12-09 22:12:28,810 - DEBUG - Requesting: http://10.0.0.19:8082/domain/801b6e3b-8689-4746-bbce-2865015eaf9a 2025-12-09 22:12:28,821 - DEBUG - Requesting: http://10.0.0.19:8082/project/ebba6d6b-9514-4534-acb4-fa0ce67d502c 2025-12-09 22:12:28,886 - DEBUG - Requesting: http://10.0.0.19:8082/network-policy/e2f6a58a-489d-428e-8414-ce401be288b5 2025-12-09 22:12:28,895 - INFO - Verified policy ctest-policy1-54992509 in API Server, Result: True 2025-12-09 22:12:28,895 - INFO - Done with setup and verification, moving onto test .. 2025-12-09 22:12:28,903 - INFO - Deleting VN ctest-vn4-81170400 2025-12-09 22:12:29,011 - DEBUG - Response for deleting network () 2025-12-09 22:12:29,011 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/151f57bd-d1db-4f9d-9298-a015ea99d0d4 2025-12-09 22:12:29,015 - DEBUG - Response Code: 404 2025-12-09 22:12:29,016 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-12-09 22:12:29,021 - DEBUG - Requesting: http://10.0.0.19:8082/domain/801b6e3b-8689-4746-bbce-2865015eaf9a 2025-12-09 22:12:29,074 - DEBUG - Requesting: http://10.0.0.19:8082/project/ebba6d6b-9514-4534-acb4-fa0ce67d502c 2025-12-09 22:12:29,208 - INFO - Validated that VN ctest-vn4-81170400 is not found in API Server 2025-12-09 22:12:29,217 - DEBUG - VN ctest-vn4-81170400 is not present in Agent 10.0.0.19 2025-12-09 22:12:29,217 - INFO - Validated that VN ctest-vn4-81170400 is not in any agent 2025-12-09 22:12:29,229 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-81170400 info 2025-12-09 22:12:29,251 - INFO - Deleted policy ctest-policy1-54992509 2025-12-09 22:12:29,413 - DEBUG - policy ctest-policy1-54992509 is not found in API Server 2025-12-09 22:12:29,665 - DEBUG - No XMPP flaps were noticed during the test