2025-10-22 16:16:37,389 - INFO - Reading existing Domain with UUID 46535b60-2514-4548-ad8b-3c79fd57b8eb 2025-10-22 16:16:37,400 - INFO - Using existing domain ['admin_domain'](46535b60-2514-4548-ad8b-3c79fd57b8eb) 2025-10-22 16:16:37,607 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-51223550 not found, creating it 2025-10-22 16:16:38,133 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-51223550, ID : 46f824e0-6d90-406f-80fc-bff0bb760769 2025-10-22 16:16:39,830 - INFO - ================================================================================ 2025-10-22 16:16:39,830 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-22 16:16:40,218 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.0.0.242': '0'}} with 2025-10-22 16:16:40,218 - INFO - Initial checks done. Running the testcase now 2025-10-22 16:16:40,218 - INFO - 2025-10-22 16:16:40,218 - INFO - ================================================================================ 2025-10-22 16:16:40,218 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-22 16:16:40,218 - 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-22 16:16:40,618 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.0.0.242': '0'}} with 2025-10-22 16:16:40,618 - INFO - Initial checks done. Running the testcase now 2025-10-22 16:16:40,618 - INFO - 2025-10-22 16:16:41,020 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-51223550:ctest-vn4-12925437, 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-51223550:ctest-vn4-12925437, 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-51223550:ctest-vn4-12925437, 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-51223550:ctest-vn4-12925437, 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-22 16:16:41,734 - DEBUG - Response for create_network : {'network': {'id': 'fb7ad4a0-e309-43e6-9938-62f6ac3815a4', 'name': 'ctest-vn4-12925437', 'tenant_id': '46f824e06d90406f80fcbff0bb760769', 'project_id': '46f824e06d90406f80fcbff0bb760769', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51223550', 'ctest-vn4-12925437'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2025-10-22 16:16:41,989 - DEBUG - Response for create_subnet : {'subnet': {'id': '62a231f2-d08c-4bb2-8f93-6bd40d51520c', 'name': '', 'tenant_id': '46f824e06d90406f80fcbff0bb760769', 'network_id': 'fb7ad4a0-e309-43e6-9938-62f6ac3815a4', 'ip_version': 4, 'cidr': '44.23.252.192/26', 'allocation_pools': [{'start': '44.23.252.194', 'end': '44.23.252.254'}], 'gateway_ip': '44.23.252.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-10-22T16:16:41.881520', 'updated_at': '2025-10-22T16:16:41.881520', 'dns_server_address': '44.23.252.194', 'tags': [], 'project_id': '46f824e06d90406f80fcbff0bb760769'}} 2025-10-22 16:16:42,241 - DEBUG - Response for create_subnet : {'subnet': {'id': '657d1db9-f868-4838-aea7-c65be1afb5cb', 'name': '', 'tenant_id': '46f824e06d90406f80fcbff0bb760769', 'network_id': 'fb7ad4a0-e309-43e6-9938-62f6ac3815a4', 'ip_version': 6, 'cidr': '2485:ee4b:ddfa:9432:9b9:79c1::/96', 'allocation_pools': [{'start': '2485:ee4b:ddfa:9432:9b9:79c1:0:2', 'end': '2485:ee4b:ddfa:9432:9b9:79c1:ffff:fffe'}], 'gateway_ip': '2485:ee4b:ddfa:9432:9b9:79c1:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-10-22T16:16:42.134249', 'updated_at': '2025-10-22T16:16:42.134249', 'dns_server_address': '2485:ee4b:ddfa:9432:9b9:79c1:0:2', 'tags': [], 'project_id': '46f824e06d90406f80fcbff0bb760769'}} 2025-10-22 16:16:42,307 - INFO - Created VN ctest-vn4-12925437 2025-10-22 16:16:42,361 - DEBUG - VN ctest-vn4-12925437 UUID is fb7ad4a0-e309-43e6-9938-62f6ac3815a4 2025-10-22 16:16:42,833 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fb7ad4a0-e309-43e6-9938-62f6ac3815a4', 'name': 'ctest-vn4-12925437', 'tenant_id': '46f824e06d90406f80fcbff0bb760769', 'project_id': '46f824e06d90406f80fcbff0bb760769', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['62a231f2-d08c-4bb2-8f93-6bd40d51520c', '657d1db9-f868-4838-aea7-c65be1afb5cb'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51223550', 'ctest-vn4-12925437'], 'policys': [['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51223550', 'ctest-policy1-43868306']], 'subnet_ipam': [{'subnet_cidr': '44.23.252.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2485:ee4b:ddfa:9432:9b9:79c1::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-10-22T16:16:41.645648', 'updated_at': '2025-10-22T16:16:42.149482'}} 2025-10-22 16:16:43,017 - DEBUG - Requesting: https://10.0.0.242:8082/domains 2025-10-22 16:16:43,366 - DEBUG - Requesting: https://10.0.0.242:8082/domains 2025-10-22 16:16:43,453 - DEBUG - Requesting: https://10.0.0.242:8082/domain/46535b60-2514-4548-ad8b-3c79fd57b8eb 2025-10-22 16:16:43,514 - DEBUG - Requesting: https://10.0.0.242:8082/project/46f824e0-6d90-406f-80fc-bff0bb760769 2025-10-22 16:16:43,595 - DEBUG - Requesting: https://10.0.0.242:8082/virtual-network/fb7ad4a0-e309-43e6-9938-62f6ac3815a4 2025-10-22 16:16:43,657 - DEBUG - Requesting: https://10.0.0.242:8082/virtual-network/fb7ad4a0-e309-43e6-9938-62f6ac3815a4 2025-10-22 16:16:43,715 - DEBUG - Requesting: https://10.0.0.242:8082/routing-instance/9dfd8a5a-aa82-4e43-a894-0126c7443483 2025-10-22 16:16:43,770 - DEBUG - Requesting: https://10.0.0.242:8082/routing-instance/9dfd8a5a-aa82-4e43-a894-0126c7443483 2025-10-22 16:16:43,830 - DEBUG - Requesting: https://10.0.0.242:8082/route-target/62192811-85d3-4ead-8db5-dc9729fb69dd 2025-10-22 16:16:43,882 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-22 16:16:43,882 - DEBUG - Requesting: https://10.0.0.242:8082/virtual-network/fb7ad4a0-e309-43e6-9938-62f6ac3815a4 2025-10-22 16:16:43,939 - DEBUG - Requesting: https://10.0.0.242:8082/routing-instance/9dfd8a5a-aa82-4e43-a894-0126c7443483 2025-10-22 16:16:44,002 - INFO - Verified VN network id 11 for VN fb7ad4a0-e309-43e6-9938-62f6ac3815a4 2025-10-22 16:16:44,002 - INFO - Verifications in API Server for VN ctest-vn4-12925437 passed 2025-10-22 16:16:44,002 - DEBUG - Requesting: https://10.0.0.242:8082/virtual-network/fb7ad4a0-e309-43e6-9938-62f6ac3815a4 2025-10-22 16:16:44,059 - DEBUG - Requesting: https://10.0.0.242:8082/routing-instance/9dfd8a5a-aa82-4e43-a894-0126c7443483 2025-10-22 16:16:44,114 - DEBUG - Requesting: https://10.0.0.242:8082/routing-instance/9dfd8a5a-aa82-4e43-a894-0126c7443483 2025-10-22 16:16:44,170 - DEBUG - Requesting: https://10.0.0.242:8082/route-target/62192811-85d3-4ead-8db5-dc9729fb69dd 2025-10-22 16:16:44,274 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-51223550:ctest-vn4-12925437', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-51223550', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18121029838147503078', 'uuid-lslong': '11040683298089604516'}, 'enable': 'true', 'created': '2025-10-22T16:16:41', 'last-modified': '2025-10-22T16:16:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.479872'} 2025-10-22 16:16:44,322 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-22 16:16:44,323 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-12925437 passed 2025-10-22 16:16:44,323 - DEBUG - ====Verifying policy data for ctest-vn4-12925437 in API_Server ====== 2025-10-22 16:16:44,323 - DEBUG - Requesting: https://10.0.0.242:8082/domains 2025-10-22 16:16:44,377 - DEBUG - Requesting: https://10.0.0.242:8082/domain/46535b60-2514-4548-ad8b-3c79fd57b8eb 2025-10-22 16:16:44,434 - DEBUG - Requesting: https://10.0.0.242:8082/project/46f824e0-6d90-406f-80fc-bff0bb760769 2025-10-22 16:16:44,510 - DEBUG - Requesting: https://10.0.0.242:8082/virtual-network/fb7ad4a0-e309-43e6-9938-62f6ac3815a4 2025-10-22 16:16:44,567 - DEBUG - ==>Verifying data for policy with id: fbad36ec-342a-42bd-86c8-23e99a01301a, fqn: ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51223550', 'ctest-policy1-43868306'] 2025-10-22 16:16:44,567 - INFO - VN ctest-vn4-12925437 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-22 16:16:44,567 - DEBUG - Verifying the vn in opserver 2025-10-22 16:16:44,567 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-51223550:ctest-vn4-12925437 virtual network link through opserver 10.0.0.242 2025-10-22 16:16:44,567 - DEBUG - Requesting: https://10.0.0.242:8081/analytics/uves/virtual-networks 2025-10-22 16:16:44,922 - DEBUG - Requesting: https://10.0.0.242:8081/analytics/uves/virtual-networks 2025-10-22 16:16:45,045 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-51223550:ctest-vn4-12925437', 'href': 'https://10.0.0.242:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-51223550:ctest-vn4-12925437?flat'} 2025-10-22 16:16:45,045 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-51223550:ctest-vn4-12925437 is found in opserver 2025-10-22 16:16:45,141 - DEBUG - Do not have enough data to verify VN in agent 2025-10-22 16:16:45,193 - DEBUG - VRF ids for VN ctest-vn4-12925437: {} 2025-10-22 16:16:45,194 - DEBUG - ====Verifying data for ctest-policy1-43868306 in API_Server ====== 2025-10-22 16:16:45,194 - DEBUG - Requesting: https://10.0.0.242:8082/domains 2025-10-22 16:16:45,245 - DEBUG - Requesting: https://10.0.0.242:8082/domain/46535b60-2514-4548-ad8b-3c79fd57b8eb 2025-10-22 16:16:45,302 - DEBUG - Requesting: https://10.0.0.242:8082/project/46f824e0-6d90-406f-80fc-bff0bb760769 2025-10-22 16:16:45,382 - DEBUG - Requesting: https://10.0.0.242:8082/network-policy/fbad36ec-342a-42bd-86c8-23e99a01301a 2025-10-22 16:16:45,439 - INFO - Verified policy ctest-policy1-43868306 in API Server, Result: True 2025-10-22 16:16:45,439 - INFO - Done with setup and verification, moving onto test .. 2025-10-22 16:16:45,450 - INFO - Deleting VN ctest-vn4-12925437 2025-10-22 16:16:45,657 - DEBUG - Response for deleting network () 2025-10-22 16:16:45,657 - DEBUG - Requesting: https://10.0.0.242:8082/routing-instance/9dfd8a5a-aa82-4e43-a894-0126c7443483 2025-10-22 16:16:45,713 - DEBUG - Response Code: 404 2025-10-22 16:16:45,713 - DEBUG - Requesting: https://10.0.0.242:8082/domains 2025-10-22 16:16:45,765 - DEBUG - Requesting: https://10.0.0.242:8082/domain/46535b60-2514-4548-ad8b-3c79fd57b8eb 2025-10-22 16:16:45,822 - DEBUG - Requesting: https://10.0.0.242:8082/project/46f824e0-6d90-406f-80fc-bff0bb760769 2025-10-22 16:16:45,898 - INFO - Validated that VN ctest-vn4-12925437 is not found in API Server 2025-10-22 16:16:46,001 - DEBUG - VN ctest-vn4-12925437 is not present in Agent 10.0.0.242 2025-10-22 16:16:46,001 - INFO - Validated that VN ctest-vn4-12925437 is not in any agent 2025-10-22 16:16:46,150 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-12925437 info 2025-10-22 16:16:46,178 - INFO - Deleted policy ctest-policy1-43868306 2025-10-22 16:16:46,345 - DEBUG - policy ctest-policy1-43868306 is not found in API Server 2025-10-22 16:16:46,726 - DEBUG - No XMPP flaps were noticed during the test 2025-10-22 16:16:46,726 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:06] 2025-10-22 16:16:46,726 - INFO - -------------------------------------------------------------------------------- 2025-10-22 16:16:47,110 - DEBUG - No XMPP flaps were noticed during the test 2025-10-22 16:16:47,110 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:08] 2025-10-22 16:16:47,110 - INFO - -------------------------------------------------------------------------------- 2025-10-22 16:16:47,854 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-51223550, ID : 46f824e0-6d90-406f-80fc-bff0bb760769