2025-11-10 01:41:55,918 - INFO - Reading existing Domain with UUID ac1d6412-51c4-40dc-abeb-d81d08131878 2025-11-10 01:41:55,930 - INFO - Using existing domain ['admin_domain'](ac1d6412-51c4-40dc-abeb-d81d08131878) 2025-11-10 01:41:56,126 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-88946593 not found, creating it 2025-11-10 01:41:56,619 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-88946593, ID : 95cc0a03-5290-4a5f-86fc-bfe166aa9727 2025-11-10 01:41:58,203 - INFO - ================================================================================ 2025-11-10 01:41:58,203 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-10 01:41:58,570 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.0.0.129': '0'}} with 2025-11-10 01:41:58,570 - INFO - Initial checks done. Running the testcase now 2025-11-10 01:41:58,570 - INFO - 2025-11-10 01:41:58,570 - INFO - ================================================================================ 2025-11-10 01:41:58,570 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-10 01:41:58,571 - 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 01:41:58,946 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.0.0.129': '0'}} with 2025-11-10 01:41:58,946 - INFO - Initial checks done. Running the testcase now 2025-11-10 01:41:58,946 - INFO - 2025-11-10 01:41:59,303 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-88946593:ctest-vn4-24798673, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-88946593:ctest-vn4-24798673, 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 = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-88946593:ctest-vn4-24798673, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-88946593:ctest-vn4-24798673, 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 01:41:59,981 - DEBUG - Response for create_network : {'network': {'id': 'b71325c0-5e0a-4a0e-b1ef-7fce40af15ff', 'name': 'ctest-vn4-24798673', 'tenant_id': '95cc0a0352904a5f86fcbfe166aa9727', 'project_id': '95cc0a0352904a5f86fcbfe166aa9727', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88946593', 'ctest-vn4-24798673'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2025-11-10 01:42:00,177 - DEBUG - Response for create_subnet : {'subnet': {'id': '6b4e369d-2a2b-4de5-ac94-3162b7346268', 'name': '', 'tenant_id': '95cc0a0352904a5f86fcbfe166aa9727', 'network_id': 'b71325c0-5e0a-4a0e-b1ef-7fce40af15ff', 'ip_version': 4, 'cidr': '148.12.145.128/26', 'allocation_pools': [{'start': '148.12.145.130', 'end': '148.12.145.190'}], 'gateway_ip': '148.12.145.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-11-10T01:42:00.083160', 'updated_at': '2025-11-10T01:42:00.083160', 'dns_server_address': '148.12.145.130', 'tags': [], 'project_id': '95cc0a0352904a5f86fcbfe166aa9727'}} 2025-11-10 01:42:00,413 - DEBUG - Response for create_subnet : {'subnet': {'id': '1d9764b9-e630-4b77-a3dc-87070f9dcaab', 'name': '', 'tenant_id': '95cc0a0352904a5f86fcbfe166aa9727', 'network_id': 'b71325c0-5e0a-4a0e-b1ef-7fce40af15ff', 'ip_version': 6, 'cidr': '2dc1:375b:d47e:5f93:2d6a:b0a0::/96', 'allocation_pools': [{'start': '2dc1:375b:d47e:5f93:2d6a:b0a0:0:2', 'end': '2dc1:375b:d47e:5f93:2d6a:b0a0:ffff:fffe'}], 'gateway_ip': '2dc1:375b:d47e:5f93:2d6a:b0a0:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-11-10T01:42:00.324095', 'updated_at': '2025-11-10T01:42:00.324095', 'dns_server_address': '2dc1:375b:d47e:5f93:2d6a:b0a0:0:2', 'tags': [], 'project_id': '95cc0a0352904a5f86fcbfe166aa9727'}} 2025-11-10 01:42:00,480 - INFO - Created VN ctest-vn4-24798673 2025-11-10 01:42:00,533 - DEBUG - VN ctest-vn4-24798673 UUID is b71325c0-5e0a-4a0e-b1ef-7fce40af15ff 2025-11-10 01:42:00,972 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b71325c0-5e0a-4a0e-b1ef-7fce40af15ff', 'name': 'ctest-vn4-24798673', 'tenant_id': '95cc0a0352904a5f86fcbfe166aa9727', 'project_id': '95cc0a0352904a5f86fcbfe166aa9727', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6b4e369d-2a2b-4de5-ac94-3162b7346268', '1d9764b9-e630-4b77-a3dc-87070f9dcaab'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88946593', 'ctest-vn4-24798673'], 'policys': [['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88946593', 'ctest-policy1-30495824']], 'subnet_ipam': [{'subnet_cidr': '148.12.145.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2dc1:375b:d47e:5f93:2d6a:b0a0::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-11-10T01:41:59.906329', 'updated_at': '2025-11-10T01:42:00.336145'}} 2025-11-10 01:42:01,149 - DEBUG - Requesting: https://10.0.0.129:8082/domains 2025-11-10 01:42:01,498 - DEBUG - Requesting: https://10.0.0.129:8082/domains 2025-11-10 01:42:01,573 - DEBUG - Requesting: https://10.0.0.129:8082/domain/ac1d6412-51c4-40dc-abeb-d81d08131878 2025-11-10 01:42:01,630 - DEBUG - Requesting: https://10.0.0.129:8082/project/95cc0a03-5290-4a5f-86fc-bfe166aa9727 2025-11-10 01:42:01,707 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/b71325c0-5e0a-4a0e-b1ef-7fce40af15ff 2025-11-10 01:42:01,767 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/b71325c0-5e0a-4a0e-b1ef-7fce40af15ff 2025-11-10 01:42:01,823 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/9862573e-0bbd-49a6-a03a-d1b938da2392 2025-11-10 01:42:01,874 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/9862573e-0bbd-49a6-a03a-d1b938da2392 2025-11-10 01:42:01,926 - DEBUG - Requesting: https://10.0.0.129:8082/route-target/940543db-4384-4ffa-a14d-cacb249c4ae2 2025-11-10 01:42:01,978 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-10 01:42:01,978 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/b71325c0-5e0a-4a0e-b1ef-7fce40af15ff 2025-11-10 01:42:02,032 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/9862573e-0bbd-49a6-a03a-d1b938da2392 2025-11-10 01:42:02,093 - INFO - Verified VN network id 11 for VN b71325c0-5e0a-4a0e-b1ef-7fce40af15ff 2025-11-10 01:42:02,093 - INFO - Verifications in API Server for VN ctest-vn4-24798673 passed 2025-11-10 01:42:02,093 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/b71325c0-5e0a-4a0e-b1ef-7fce40af15ff 2025-11-10 01:42:02,147 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/9862573e-0bbd-49a6-a03a-d1b938da2392 2025-11-10 01:42:02,198 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/9862573e-0bbd-49a6-a03a-d1b938da2392 2025-11-10 01:42:02,250 - DEBUG - Requesting: https://10.0.0.129:8082/route-target/940543db-4384-4ffa-a14d-cacb249c4ae2 2025-11-10 01:42:02,354 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-88946593:ctest-vn4-24798673', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-88946593', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13191929241639995918', 'uuid-lslong': '12821607187972298239'}, 'enable': 'true', 'created': '2025-11-10T01:41:59', 'last-modified': '2025-11-10T01:42:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.410368'} 2025-11-10 01:42:02,403 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-10 01:42:02,403 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-24798673 passed 2025-11-10 01:42:02,403 - DEBUG - ====Verifying policy data for ctest-vn4-24798673 in API_Server ====== 2025-11-10 01:42:02,403 - DEBUG - Requesting: https://10.0.0.129:8082/domains 2025-11-10 01:42:02,453 - DEBUG - Requesting: https://10.0.0.129:8082/domain/ac1d6412-51c4-40dc-abeb-d81d08131878 2025-11-10 01:42:02,514 - DEBUG - Requesting: https://10.0.0.129:8082/project/95cc0a03-5290-4a5f-86fc-bfe166aa9727 2025-11-10 01:42:02,598 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/b71325c0-5e0a-4a0e-b1ef-7fce40af15ff 2025-11-10 01:42:02,652 - DEBUG - ==>Verifying data for policy with id: b54a44da-404f-4e71-ba2e-5783a79fb8e6, fqn: ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88946593', 'ctest-policy1-30495824'] 2025-11-10 01:42:02,652 - INFO - VN ctest-vn4-24798673 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-10 01:42:02,652 - DEBUG - Verifying the vn in opserver 2025-11-10 01:42:02,652 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-88946593:ctest-vn4-24798673 virtual network link through opserver 10.0.0.129 2025-11-10 01:42:02,652 - DEBUG - Requesting: https://10.0.0.129:8081/analytics/uves/virtual-networks 2025-11-10 01:42:02,991 - DEBUG - Requesting: https://10.0.0.129:8081/analytics/uves/virtual-networks 2025-11-10 01:42:03,133 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-88946593:ctest-vn4-24798673', 'href': 'https://10.0.0.129:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-88946593:ctest-vn4-24798673?flat'} 2025-11-10 01:42:03,134 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-88946593:ctest-vn4-24798673 is found in opserver 2025-11-10 01:42:03,233 - DEBUG - Do not have enough data to verify VN in agent 2025-11-10 01:42:03,281 - DEBUG - VRF ids for VN ctest-vn4-24798673: {} 2025-11-10 01:42:03,282 - DEBUG - ====Verifying data for ctest-policy1-30495824 in API_Server ====== 2025-11-10 01:42:03,282 - DEBUG - Requesting: https://10.0.0.129:8082/domains 2025-11-10 01:42:03,333 - DEBUG - Requesting: https://10.0.0.129:8082/domain/ac1d6412-51c4-40dc-abeb-d81d08131878 2025-11-10 01:42:03,394 - DEBUG - Requesting: https://10.0.0.129:8082/project/95cc0a03-5290-4a5f-86fc-bfe166aa9727 2025-11-10 01:42:03,466 - DEBUG - Requesting: https://10.0.0.129:8082/network-policy/b54a44da-404f-4e71-ba2e-5783a79fb8e6 2025-11-10 01:42:03,519 - INFO - Verified policy ctest-policy1-30495824 in API Server, Result: True 2025-11-10 01:42:03,519 - INFO - Done with setup and verification, moving onto test .. 2025-11-10 01:42:03,527 - INFO - Deleting VN ctest-vn4-24798673 2025-11-10 01:42:03,708 - DEBUG - Response for deleting network () 2025-11-10 01:42:03,708 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/9862573e-0bbd-49a6-a03a-d1b938da2392 2025-11-10 01:42:03,757 - DEBUG - Response Code: 404 2025-11-10 01:42:03,757 - DEBUG - Requesting: https://10.0.0.129:8082/domains 2025-11-10 01:42:03,809 - DEBUG - Requesting: https://10.0.0.129:8082/domain/ac1d6412-51c4-40dc-abeb-d81d08131878 2025-11-10 01:42:03,866 - DEBUG - Requesting: https://10.0.0.129:8082/project/95cc0a03-5290-4a5f-86fc-bfe166aa9727 2025-11-10 01:42:03,938 - INFO - Validated that VN ctest-vn4-24798673 is not found in API Server 2025-11-10 01:42:04,037 - DEBUG - VN ctest-vn4-24798673 is not present in Agent 10.0.0.129 2025-11-10 01:42:04,037 - INFO - Validated that VN ctest-vn4-24798673 is not in any agent 2025-11-10 01:42:04,182 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-24798673 info 2025-11-10 01:42:04,207 - INFO - Deleted policy ctest-policy1-30495824 2025-11-10 01:42:04,369 - DEBUG - policy ctest-policy1-30495824 is not found in API Server 2025-11-10 01:42:04,750 - DEBUG - No XMPP flaps were noticed during the test
2025-11-10 01:42:04,750 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:06]
2025-11-10 01:42:04,750 - INFO - -------------------------------------------------------------------------------- 2025-11-10 01:42:05,114 - DEBUG - No XMPP flaps were noticed during the test
2025-11-10 01:42:05,114 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07]
2025-11-10 01:42:05,114 - INFO - -------------------------------------------------------------------------------- 2025-11-10 01:42:05,840 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-88946593, ID : 95cc0a03-5290-4a5f-86fc-bfe166aa9727