2025-10-19 09:13:49,876 - INFO - Domain Default found not creating 2025-10-19 09:13:50,045 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-96267827 not found, creating it 2025-10-19 09:13:50,520 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-96267827, ID : eeec1b3c-24f2-4d33-b90c-271449b70af2 2025-10-19 09:13:52,009 - INFO - ================================================================================ 2025-10-19 09:13:52,009 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-19 09:13:52,267 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-10-19 09:13:52,267 - INFO - Initial checks done. Running the testcase now 2025-10-19 09:13:52,267 - INFO - 2025-10-19 09:13:52,267 - INFO - ================================================================================ 2025-10-19 09:13:52,267 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-19 09:13:52,267 - 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-19 09:13:52,551 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-10-19 09:13:52,551 - INFO - Initial checks done. Running the testcase now 2025-10-19 09:13:52,551 - INFO - 2025-10-19 09:13:52,936 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96267827:ctest-vn4-74839876, 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-96267827:ctest-vn4-74839876, 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-96267827:ctest-vn4-74839876, 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-96267827:ctest-vn4-74839876, 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-19 09:13:53,485 - DEBUG - Response for create_network : {'network': {'id': '98a9762c-9a94-4121-89fb-ddb1e65b9de5', 'name': 'ctest-vn4-74839876', 'tenant_id': 'eeec1b3c24f24d33b90c271449b70af2', 'project_id': 'eeec1b3c24f24d33b90c271449b70af2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96267827', 'ctest-vn4-74839876'], 'port_security_enabled': True, 'description': ''}} 2025-10-19 09:13:53,673 - DEBUG - Response for create_subnet : {'subnet': {'id': '65c807dc-e0df-4872-ae6c-ef8d1efcf4b2', 'name': '', 'tenant_id': 'eeec1b3c24f24d33b90c271449b70af2', 'network_id': '98a9762c-9a94-4121-89fb-ddb1e65b9de5', 'ip_version': 4, 'cidr': '69.131.158.128/26', 'allocation_pools': [{'start': '69.131.158.130', 'end': '69.131.158.190'}], 'gateway_ip': '69.131.158.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '69.131.158.130', 'tags': [], 'project_id': 'eeec1b3c24f24d33b90c271449b70af2'}} 2025-10-19 09:13:53,853 - DEBUG - Response for create_subnet : {'subnet': {'id': '8813b9a8-6f25-4d5d-9c40-6468ced9fd9a', 'name': '', 'tenant_id': 'eeec1b3c24f24d33b90c271449b70af2', 'network_id': '98a9762c-9a94-4121-89fb-ddb1e65b9de5', 'ip_version': 6, 'cidr': '31d4:5edc:24d9:693f:a683:ec6c::/96', 'allocation_pools': [{'start': '31d4:5edc:24d9:693f:a683:ec6c:0:2', 'end': '31d4:5edc:24d9:693f:a683:ec6c:ffff:fffe'}], 'gateway_ip': '31d4:5edc:24d9:693f:a683:ec6c:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '31d4:5edc:24d9:693f:a683:ec6c:0:2', 'tags': [], 'project_id': 'eeec1b3c24f24d33b90c271449b70af2'}} 2025-10-19 09:13:53,874 - INFO - Created VN ctest-vn4-74839876 2025-10-19 09:13:53,926 - DEBUG - VN ctest-vn4-74839876 UUID is 98a9762c-9a94-4121-89fb-ddb1e65b9de5 2025-10-19 09:13:54,156 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '98a9762c-9a94-4121-89fb-ddb1e65b9de5', 'name': 'ctest-vn4-74839876', 'tenant_id': 'eeec1b3c24f24d33b90c271449b70af2', 'project_id': 'eeec1b3c24f24d33b90c271449b70af2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['65c807dc-e0df-4872-ae6c-ef8d1efcf4b2', '8813b9a8-6f25-4d5d-9c40-6468ced9fd9a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96267827', 'ctest-vn4-74839876'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96267827', 'ctest-policy1-44338888']], 'subnet_ipam': [{'subnet_cidr': '69.131.158.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '31d4:5edc:24d9:693f:a683:ec6c::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-19 09:13:54,318 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-19 09:13:54,617 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-19 09:13:54,650 - DEBUG - Requesting: http://10.0.0.254:8082/domain/94e2fb0d-e7fe-4dee-8a23-db56e512bd9e 2025-10-19 09:13:54,663 - DEBUG - Requesting: http://10.0.0.254:8082/project/eeec1b3c-24f2-4d33-b90c-271449b70af2 2025-10-19 09:13:54,735 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/98a9762c-9a94-4121-89fb-ddb1e65b9de5 2025-10-19 09:13:54,746 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/98a9762c-9a94-4121-89fb-ddb1e65b9de5 2025-10-19 09:13:54,757 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d0c002d3-59e5-4425-8396-0fc09adb5610 2025-10-19 09:13:54,765 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d0c002d3-59e5-4425-8396-0fc09adb5610 2025-10-19 09:13:54,774 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/491ce349-4d52-4b7e-ac79-258c6ac72d78 2025-10-19 09:13:54,781 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-19 09:13:54,781 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/98a9762c-9a94-4121-89fb-ddb1e65b9de5 2025-10-19 09:13:54,791 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d0c002d3-59e5-4425-8396-0fc09adb5610 2025-10-19 09:13:54,807 - INFO - Verified VN network id 11 for VN 98a9762c-9a94-4121-89fb-ddb1e65b9de5 2025-10-19 09:13:54,807 - INFO - Verifications in API Server for VN ctest-vn4-74839876 passed 2025-10-19 09:13:54,807 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/98a9762c-9a94-4121-89fb-ddb1e65b9de5 2025-10-19 09:13:54,816 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d0c002d3-59e5-4425-8396-0fc09adb5610 2025-10-19 09:13:54,822 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d0c002d3-59e5-4425-8396-0fc09adb5610 2025-10-19 09:13:54,831 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/491ce349-4d52-4b7e-ac79-258c6ac72d78 2025-10-19 09:13:54,842 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96267827:ctest-vn4-74839876', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-96267827', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11000453498773192993', 'uuid-lslong': '9942784358494215653'}, 'enable': 'true', 'created': '2025-10-19T09:13:53', 'last-modified': '2025-10-19T09:13:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.715921'} 2025-10-19 09:13:54,849 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-19 09:13:54,849 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-74839876 passed 2025-10-19 09:13:54,849 - DEBUG - ====Verifying policy data for ctest-vn4-74839876 in API_Server ====== 2025-10-19 09:13:54,849 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-19 09:13:54,854 - DEBUG - Requesting: http://10.0.0.254:8082/domain/94e2fb0d-e7fe-4dee-8a23-db56e512bd9e 2025-10-19 09:13:54,866 - DEBUG - Requesting: http://10.0.0.254:8082/project/eeec1b3c-24f2-4d33-b90c-271449b70af2 2025-10-19 09:13:54,938 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/98a9762c-9a94-4121-89fb-ddb1e65b9de5 2025-10-19 09:13:54,949 - DEBUG - ==>Verifying data for policy with id: 7649cb12-e9cf-4366-9e77-fdeb59611a3c, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96267827', 'ctest-policy1-44338888'] 2025-10-19 09:13:54,949 - INFO - VN ctest-vn4-74839876 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-19 09:13:54,949 - DEBUG - Verifying the vn in opserver 2025-10-19 09:13:54,949 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96267827:ctest-vn4-74839876 virtual network link through opserver 10.0.0.254 2025-10-19 09:13:54,949 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-19 09:13:55,247 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-19 09:13:55,315 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96267827:ctest-vn4-74839876', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96267827:ctest-vn4-74839876?flat'} 2025-10-19 09:13:55,315 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96267827:ctest-vn4-74839876 is found in opserver 2025-10-19 09:13:55,324 - DEBUG - Do not have enough data to verify VN in agent 2025-10-19 09:13:55,329 - DEBUG - VRF ids for VN ctest-vn4-74839876: {} 2025-10-19 09:13:55,329 - DEBUG - ====Verifying data for ctest-policy1-44338888 in API_Server ====== 2025-10-19 09:13:55,329 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-19 09:13:55,334 - DEBUG - Requesting: http://10.0.0.254:8082/domain/94e2fb0d-e7fe-4dee-8a23-db56e512bd9e 2025-10-19 09:13:55,345 - DEBUG - Requesting: http://10.0.0.254:8082/project/eeec1b3c-24f2-4d33-b90c-271449b70af2 2025-10-19 09:13:55,416 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/7649cb12-e9cf-4366-9e77-fdeb59611a3c 2025-10-19 09:13:55,427 - INFO - Verified policy ctest-policy1-44338888 in API Server, Result: True 2025-10-19 09:13:55,427 - INFO - Done with setup and verification, moving onto test .. 2025-10-19 09:13:55,436 - INFO - Deleting VN ctest-vn4-74839876 2025-10-19 09:13:55,555 - DEBUG - Response for deleting network () 2025-10-19 09:13:55,555 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d0c002d3-59e5-4425-8396-0fc09adb5610 2025-10-19 09:13:55,560 - DEBUG - Response Code: 404 2025-10-19 09:13:55,561 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-19 09:13:55,566 - DEBUG - Requesting: http://10.0.0.254:8082/domain/94e2fb0d-e7fe-4dee-8a23-db56e512bd9e 2025-10-19 09:13:55,620 - DEBUG - Requesting: http://10.0.0.254:8082/project/eeec1b3c-24f2-4d33-b90c-271449b70af2 2025-10-19 09:13:55,696 - INFO - Validated that VN ctest-vn4-74839876 is not found in API Server 2025-10-19 09:13:55,706 - DEBUG - VN ctest-vn4-74839876 is not present in Agent 10.0.0.254 2025-10-19 09:13:55,706 - INFO - Validated that VN ctest-vn4-74839876 is not in any agent 2025-10-19 09:13:55,719 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-74839876 info 2025-10-19 09:13:55,749 - INFO - Deleted policy ctest-policy1-44338888 2025-10-19 09:13:55,918 - DEBUG - policy ctest-policy1-44338888 is not found in API Server 2025-10-19 09:13:56,175 - DEBUG - No XMPP flaps were noticed during the test