2025-09-11 08:28:47,666 - INFO - Domain Default found not creating 2025-09-11 08:28:47,819 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-20413000 not found, creating it 2025-09-11 08:28:48,266 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-20413000, ID : c9607fea-84c1-47c9-87b4-eed187d529a0 2025-09-11 08:28:49,701 - INFO - ================================================================================ 2025-09-11 08:28:49,701 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-11 08:28:49,957 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.14': '0'}} with 2025-09-11 08:28:49,957 - INFO - Initial checks done. Running the testcase now 2025-09-11 08:28:49,957 - INFO - 2025-09-11 08:28:49,957 - INFO - ================================================================================ 2025-09-11 08:28:49,957 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-11 08:28:49,957 - 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-11 08:28:50,245 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.14': '0'}} with 2025-09-11 08:28:50,245 - INFO - Initial checks done. Running the testcase now 2025-09-11 08:28:50,245 - INFO - 2025-09-11 08:28:50,595 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20413000:ctest-vn4-24768716, 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-20413000:ctest-vn4-24768716, 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-20413000:ctest-vn4-24768716, 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-20413000:ctest-vn4-24768716, 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-11 08:28:51,085 - DEBUG - Response for create_network : {'network': {'id': '2a1105ca-5f98-4dcf-9488-d0371d034338', 'name': 'ctest-vn4-24768716', 'tenant_id': 'c9607fea84c147c987b4eed187d529a0', 'project_id': 'c9607fea84c147c987b4eed187d529a0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20413000', 'ctest-vn4-24768716'], 'port_security_enabled': True, 'description': ''}} 2025-09-11 08:28:51,291 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c008f267-5365-4aea-9ff2-f71339ac511a', 'name': '', 'tenant_id': 'c9607fea84c147c987b4eed187d529a0', 'network_id': '2a1105ca-5f98-4dcf-9488-d0371d034338', 'ip_version': 4, 'cidr': '30.218.45.0/26', 'allocation_pools': [{'start': '30.218.45.2', 'end': '30.218.45.62'}], 'gateway_ip': '30.218.45.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '30.218.45.2', 'tags': [], 'project_id': 'c9607fea84c147c987b4eed187d529a0'}} 2025-09-11 08:28:51,468 - DEBUG - Response for create_subnet : {'subnet': {'id': '4e2e4aef-0d37-43de-bb39-c8fae7255176', 'name': '', 'tenant_id': 'c9607fea84c147c987b4eed187d529a0', 'network_id': '2a1105ca-5f98-4dcf-9488-d0371d034338', 'ip_version': 6, 'cidr': '2cdb:5463:ecbd:4389:6088:9841::/96', 'allocation_pools': [{'start': '2cdb:5463:ecbd:4389:6088:9841:0:2', 'end': '2cdb:5463:ecbd:4389:6088:9841:ffff:fffe'}], 'gateway_ip': '2cdb:5463:ecbd:4389:6088:9841:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2cdb:5463:ecbd:4389:6088:9841:0:2', 'tags': [], 'project_id': 'c9607fea84c147c987b4eed187d529a0'}} 2025-09-11 08:28:51,491 - INFO - Created VN ctest-vn4-24768716 2025-09-11 08:28:51,543 - DEBUG - VN ctest-vn4-24768716 UUID is 2a1105ca-5f98-4dcf-9488-d0371d034338 2025-09-11 08:28:51,756 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2a1105ca-5f98-4dcf-9488-d0371d034338', 'name': 'ctest-vn4-24768716', 'tenant_id': 'c9607fea84c147c987b4eed187d529a0', 'project_id': 'c9607fea84c147c987b4eed187d529a0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c008f267-5365-4aea-9ff2-f71339ac511a', '4e2e4aef-0d37-43de-bb39-c8fae7255176'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20413000', 'ctest-vn4-24768716'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20413000', 'ctest-policy1-91830582']], 'subnet_ipam': [{'subnet_cidr': '30.218.45.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2cdb:5463:ecbd:4389:6088:9841::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-11 08:28:51,923 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-09-11 08:28:52,213 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-09-11 08:28:52,243 - DEBUG - Requesting: http://10.0.0.141:8082/domain/6c547376-c615-47b1-85c3-d80e32421a8a 2025-09-11 08:28:52,255 - DEBUG - Requesting: http://10.0.0.141:8082/project/c9607fea-84c1-47c9-87b4-eed187d529a0 2025-09-11 08:28:52,331 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/2a1105ca-5f98-4dcf-9488-d0371d034338 2025-09-11 08:28:52,345 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/2a1105ca-5f98-4dcf-9488-d0371d034338 2025-09-11 08:28:52,354 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/7d7d21a1-1607-4fd4-9bbc-d7d13e0f9e87 2025-09-11 08:28:52,361 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/7d7d21a1-1607-4fd4-9bbc-d7d13e0f9e87 2025-09-11 08:28:52,367 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/6bd1b1b0-618c-4d71-904e-e399f468428a 2025-09-11 08:28:52,373 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-11 08:28:52,373 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/2a1105ca-5f98-4dcf-9488-d0371d034338 2025-09-11 08:28:52,382 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/7d7d21a1-1607-4fd4-9bbc-d7d13e0f9e87 2025-09-11 08:28:52,458 - INFO - Verified VN network id 9 for VN 2a1105ca-5f98-4dcf-9488-d0371d034338 2025-09-11 08:28:52,458 - INFO - Verifications in API Server for VN ctest-vn4-24768716 passed 2025-09-11 08:28:52,459 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/2a1105ca-5f98-4dcf-9488-d0371d034338 2025-09-11 08:28:52,468 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/7d7d21a1-1607-4fd4-9bbc-d7d13e0f9e87 2025-09-11 08:28:52,475 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/7d7d21a1-1607-4fd4-9bbc-d7d13e0f9e87 2025-09-11 08:28:52,481 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/6bd1b1b0-618c-4d71-904e-e399f468428a 2025-09-11 08:28:52,493 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20413000:ctest-vn4-24768716', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-20413000', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3031210390942404047', 'uuid-lslong': '10703033449574515512'}, 'enable': 'true', 'created': '2025-09-11T08:28:51', 'last-modified': '2025-09-11T08:28:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.759594'} 2025-09-11 08:28:52,501 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-11 08:28:52,501 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-24768716 passed 2025-09-11 08:28:52,501 - DEBUG - ====Verifying policy data for ctest-vn4-24768716 in API_Server ====== 2025-09-11 08:28:52,501 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-09-11 08:28:52,508 - DEBUG - Requesting: http://10.0.0.141:8082/domain/6c547376-c615-47b1-85c3-d80e32421a8a 2025-09-11 08:28:52,521 - DEBUG - Requesting: http://10.0.0.141:8082/project/c9607fea-84c1-47c9-87b4-eed187d529a0 2025-09-11 08:28:52,590 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/2a1105ca-5f98-4dcf-9488-d0371d034338 2025-09-11 08:28:52,602 - DEBUG - ==>Verifying data for policy with id: 5a4468b9-69c7-449f-8240-36a7329607df, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20413000', 'ctest-policy1-91830582'] 2025-09-11 08:28:52,603 - INFO - VN ctest-vn4-24768716 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-11 08:28:52,603 - DEBUG - Verifying the vn in opserver 2025-09-11 08:28:52,603 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20413000:ctest-vn4-24768716 virtual network link through opserver 10.0.0.141 2025-09-11 08:28:52,603 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-09-11 08:28:52,894 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-09-11 08:28:52,945 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20413000:ctest-vn4-24768716', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20413000:ctest-vn4-24768716?flat'} 2025-09-11 08:28:52,945 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20413000:ctest-vn4-24768716 is found in opserver 2025-09-11 08:28:52,955 - DEBUG - Do not have enough data to verify VN in agent 2025-09-11 08:28:52,959 - DEBUG - VRF ids for VN ctest-vn4-24768716: {} 2025-09-11 08:28:52,960 - DEBUG - ====Verifying data for ctest-policy1-91830582 in API_Server ====== 2025-09-11 08:28:52,960 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-09-11 08:28:52,965 - DEBUG - Requesting: http://10.0.0.141:8082/domain/6c547376-c615-47b1-85c3-d80e32421a8a 2025-09-11 08:28:52,975 - DEBUG - Requesting: http://10.0.0.141:8082/project/c9607fea-84c1-47c9-87b4-eed187d529a0 2025-09-11 08:28:53,043 - DEBUG - Requesting: http://10.0.0.141:8082/network-policy/5a4468b9-69c7-449f-8240-36a7329607df 2025-09-11 08:28:53,053 - INFO - Verified policy ctest-policy1-91830582 in API Server, Result: True 2025-09-11 08:28:53,054 - INFO - Done with setup and verification, moving onto test .. 2025-09-11 08:28:53,062 - INFO - Deleting VN ctest-vn4-24768716 2025-09-11 08:28:53,171 - DEBUG - Response for deleting network () 2025-09-11 08:28:53,172 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/7d7d21a1-1607-4fd4-9bbc-d7d13e0f9e87 2025-09-11 08:28:53,177 - DEBUG - Response Code: 404 2025-09-11 08:28:53,177 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-09-11 08:28:53,183 - DEBUG - Requesting: http://10.0.0.141:8082/domain/6c547376-c615-47b1-85c3-d80e32421a8a 2025-09-11 08:28:53,241 - DEBUG - Requesting: http://10.0.0.141:8082/project/c9607fea-84c1-47c9-87b4-eed187d529a0 2025-09-11 08:28:53,313 - INFO - Validated that VN ctest-vn4-24768716 is not found in API Server 2025-09-11 08:28:53,323 - DEBUG - VN ctest-vn4-24768716 is not present in Agent 10.0.0.141 2025-09-11 08:28:53,323 - INFO - Validated that VN ctest-vn4-24768716 is not in any agent 2025-09-11 08:28:53,336 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-24768716 info 2025-09-11 08:28:53,360 - INFO - Deleted policy ctest-policy1-91830582 2025-09-11 08:28:53,531 - DEBUG - policy ctest-policy1-91830582 is not found in API Server 2025-09-11 08:28:53,784 - DEBUG - No XMPP flaps were noticed during the test
2025-09-11 08:28:53,784 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-09-11 08:28:53,784 - INFO - -------------------------------------------------------------------------------- 2025-09-11 08:28:54,072 - DEBUG - No XMPP flaps were noticed during the test
2025-09-11 08:28:54,072 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-09-11 08:28:54,072 - INFO - -------------------------------------------------------------------------------- 2025-09-11 08:28:54,750 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-20413000, ID : c9607fea-84c1-47c9-87b4-eed187d529a0