2025-11-10 21:18:49,551 - INFO - Domain Default found not creating 2025-11-10 21:18:49,727 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-12746128 not found, creating it 2025-11-10 21:18:50,178 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-12746128, ID : ef4e4a49-9d24-42a7-95f0-f67af37e5f9b 2025-11-10 21:18:52,327 - INFO - ================================================================================ 2025-11-10 21:18:52,327 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-10 21:18:52,589 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with 2025-11-10 21:18:52,590 - INFO - Initial checks done. Running the testcase now 2025-11-10 21:18:52,590 - INFO - 2025-11-10 21:18:52,590 - INFO - ================================================================================ 2025-11-10 21:18:52,590 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-10 21:18:52,593 - 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-10 21:18:52,888 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with 2025-11-10 21:18:52,888 - INFO - Initial checks done. Running the testcase now 2025-11-10 21:18:52,888 - INFO - 2025-11-10 21:18:53,218 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12746128:ctest-vn4-98445691, 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-12746128:ctest-vn4-98445691, 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-12746128:ctest-vn4-98445691, 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-12746128:ctest-vn4-98445691, 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-10 21:18:53,739 - DEBUG - Response for create_network : {'network': {'id': 'b77aa913-1c2e-45eb-a7a9-25af498e220e', 'name': 'ctest-vn4-98445691', 'tenant_id': 'ef4e4a499d2442a795f0f67af37e5f9b', 'project_id': 'ef4e4a499d2442a795f0f67af37e5f9b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-12746128', 'ctest-vn4-98445691'], 'port_security_enabled': True, 'description': ''}} 2025-11-10 21:18:53,934 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e4ac9223-4d9c-4677-8c9b-769c5643c887', 'name': '', 'tenant_id': 'ef4e4a499d2442a795f0f67af37e5f9b', 'network_id': 'b77aa913-1c2e-45eb-a7a9-25af498e220e', 'ip_version': 4, 'cidr': '149.249.203.0/26', 'allocation_pools': [{'start': '149.249.203.2', 'end': '149.249.203.62'}], 'gateway_ip': '149.249.203.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '149.249.203.2', 'tags': [], 'project_id': 'ef4e4a499d2442a795f0f67af37e5f9b'}} 2025-11-10 21:18:54,089 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a71510c6-7fe7-4b7d-b858-8d82aa598446', 'name': '', 'tenant_id': 'ef4e4a499d2442a795f0f67af37e5f9b', 'network_id': 'b77aa913-1c2e-45eb-a7a9-25af498e220e', 'ip_version': 6, 'cidr': '2c64:2133:5809:abaf:e671:d25::/96', 'allocation_pools': [{'start': '2c64:2133:5809:abaf:e671:d25:0:2', 'end': '2c64:2133:5809:abaf:e671:d25:ffff:fffe'}], 'gateway_ip': '2c64:2133:5809:abaf:e671:d25:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2c64:2133:5809:abaf:e671:d25:0:2', 'tags': [], 'project_id': 'ef4e4a499d2442a795f0f67af37e5f9b'}} 2025-11-10 21:18:54,110 - INFO - Created VN ctest-vn4-98445691 2025-11-10 21:18:54,163 - DEBUG - VN ctest-vn4-98445691 UUID is b77aa913-1c2e-45eb-a7a9-25af498e220e 2025-11-10 21:18:54,384 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b77aa913-1c2e-45eb-a7a9-25af498e220e', 'name': 'ctest-vn4-98445691', 'tenant_id': 'ef4e4a499d2442a795f0f67af37e5f9b', 'project_id': 'ef4e4a499d2442a795f0f67af37e5f9b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e4ac9223-4d9c-4677-8c9b-769c5643c887', 'a71510c6-7fe7-4b7d-b858-8d82aa598446'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-12746128', 'ctest-vn4-98445691'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-12746128', 'ctest-policy1-97480650']], 'subnet_ipam': [{'subnet_cidr': '149.249.203.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2c64:2133:5809:abaf:e671:d25::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-10 21:18:54,547 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-10 21:18:54,838 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-10 21:18:54,867 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4baaae83-4e16-48cc-88ed-1396e487d748 2025-11-10 21:18:54,879 - DEBUG - Requesting: http://10.0.0.38:8082/project/ef4e4a49-9d24-42a7-95f0-f67af37e5f9b 2025-11-10 21:18:54,952 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b77aa913-1c2e-45eb-a7a9-25af498e220e 2025-11-10 21:18:54,963 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b77aa913-1c2e-45eb-a7a9-25af498e220e 2025-11-10 21:18:54,973 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b1ba00c3-8886-4806-9554-ec890ae5dd97 2025-11-10 21:18:54,980 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b1ba00c3-8886-4806-9554-ec890ae5dd97 2025-11-10 21:18:54,987 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/794d654f-1ace-43eb-99f4-1141c5967de1 2025-11-10 21:18:54,995 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-10 21:18:54,995 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b77aa913-1c2e-45eb-a7a9-25af498e220e 2025-11-10 21:18:55,005 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b1ba00c3-8886-4806-9554-ec890ae5dd97 2025-11-10 21:18:55,019 - INFO - Verified VN network id 11 for VN b77aa913-1c2e-45eb-a7a9-25af498e220e 2025-11-10 21:18:55,019 - INFO - Verifications in API Server for VN ctest-vn4-98445691 passed 2025-11-10 21:18:55,019 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b77aa913-1c2e-45eb-a7a9-25af498e220e 2025-11-10 21:18:55,030 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b1ba00c3-8886-4806-9554-ec890ae5dd97 2025-11-10 21:18:55,037 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b1ba00c3-8886-4806-9554-ec890ae5dd97 2025-11-10 21:18:55,043 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/794d654f-1ace-43eb-99f4-1141c5967de1 2025-11-10 21:18:55,055 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12746128:ctest-vn4-98445691', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-12746128', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13221065555641779691', 'uuid-lslong': '12081228910181622286'}, 'enable': 'true', 'created': '2025-11-10T21:18:53', 'last-modified': '2025-11-10T21:18:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.711788'} 2025-11-10 21:18:55,060 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-10 21:18:55,060 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-98445691 passed 2025-11-10 21:18:55,060 - DEBUG - ====Verifying policy data for ctest-vn4-98445691 in API_Server ====== 2025-11-10 21:18:55,061 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-10 21:18:55,065 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4baaae83-4e16-48cc-88ed-1396e487d748 2025-11-10 21:18:55,076 - DEBUG - Requesting: http://10.0.0.38:8082/project/ef4e4a49-9d24-42a7-95f0-f67af37e5f9b 2025-11-10 21:18:55,145 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b77aa913-1c2e-45eb-a7a9-25af498e220e 2025-11-10 21:18:55,154 - DEBUG - ==>Verifying data for policy with id: 0da97476-b715-457c-a178-69c9dab17d5c, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-12746128', 'ctest-policy1-97480650'] 2025-11-10 21:18:55,154 - INFO - VN ctest-vn4-98445691 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-10 21:18:55,154 - DEBUG - Verifying the vn in opserver 2025-11-10 21:18:55,154 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12746128:ctest-vn4-98445691 virtual network link through opserver 10.0.0.38 2025-11-10 21:18:55,154 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-11-10 21:18:55,462 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-11-10 21:18:55,517 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12746128:ctest-vn4-98445691', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12746128:ctest-vn4-98445691?flat'} 2025-11-10 21:18:55,517 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12746128:ctest-vn4-98445691 is found in opserver 2025-11-10 21:18:55,526 - DEBUG - Do not have enough data to verify VN in agent 2025-11-10 21:18:55,530 - DEBUG - VRF ids for VN ctest-vn4-98445691: {} 2025-11-10 21:18:55,531 - DEBUG - ====Verifying data for ctest-policy1-97480650 in API_Server ====== 2025-11-10 21:18:55,531 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-10 21:18:55,537 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4baaae83-4e16-48cc-88ed-1396e487d748 2025-11-10 21:18:55,547 - DEBUG - Requesting: http://10.0.0.38:8082/project/ef4e4a49-9d24-42a7-95f0-f67af37e5f9b 2025-11-10 21:18:55,619 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/0da97476-b715-457c-a178-69c9dab17d5c 2025-11-10 21:18:55,627 - INFO - Verified policy ctest-policy1-97480650 in API Server, Result: True 2025-11-10 21:18:55,627 - INFO - Done with setup and verification, moving onto test .. 2025-11-10 21:18:55,634 - INFO - Deleting VN ctest-vn4-98445691 2025-11-10 21:18:55,744 - DEBUG - Response for deleting network () 2025-11-10 21:18:55,744 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b1ba00c3-8886-4806-9554-ec890ae5dd97 2025-11-10 21:18:55,748 - DEBUG - Response Code: 404 2025-11-10 21:18:55,748 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-10 21:18:55,752 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4baaae83-4e16-48cc-88ed-1396e487d748 2025-11-10 21:18:55,803 - DEBUG - Requesting: http://10.0.0.38:8082/project/ef4e4a49-9d24-42a7-95f0-f67af37e5f9b 2025-11-10 21:18:55,872 - INFO - Validated that VN ctest-vn4-98445691 is not found in API Server 2025-11-10 21:18:55,880 - DEBUG - VN ctest-vn4-98445691 is not present in Agent 10.0.0.38 2025-11-10 21:18:55,880 - INFO - Validated that VN ctest-vn4-98445691 is not in any agent 2025-11-10 21:18:55,902 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-98445691 info 2025-11-10 21:18:55,926 - INFO - Deleted policy ctest-policy1-97480650 2025-11-10 21:18:56,087 - DEBUG - policy ctest-policy1-97480650 is not found in API Server 2025-11-10 21:18:56,343 - DEBUG - No XMPP flaps were noticed during the test 2025-11-10 21:18:56,343 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-11-10 21:18:56,343 - INFO - -------------------------------------------------------------------------------- 2025-11-10 21:18:56,639 - DEBUG - No XMPP flaps were noticed during the test 2025-11-10 21:18:56,640 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-11-10 21:18:56,640 - INFO - -------------------------------------------------------------------------------- 2025-11-10 21:18:57,319 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-12746128, ID : ef4e4a49-9d24-42a7-95f0-f67af37e5f9b