2025-11-03 01:48:56,569 - INFO - Reading existing Domain with UUID 5e346e6a-000a-45ec-ad9d-44dfc9f4db48 2025-11-03 01:48:56,580 - INFO - Using existing domain ['admin_domain'](5e346e6a-000a-45ec-ad9d-44dfc9f4db48) 2025-11-03 01:48:56,775 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-76285700 not found, creating it 2025-11-03 01:48:57,340 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-76285700, ID : f1ff0afc-a5aa-49d2-b270-b6ea79c42b46 2025-11-03 01:48:59,008 - INFO - ================================================================================ 2025-11-03 01:48:59,008 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-03 01:48:59,399 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.0.0.22': '0'}} with 2025-11-03 01:48:59,399 - INFO - Initial checks done. Running the testcase now 2025-11-03 01:48:59,399 - INFO - 2025-11-03 01:48:59,399 - INFO - ================================================================================ 2025-11-03 01:48:59,399 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-03 01:48:59,399 - 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-03 01:48:59,782 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.0.0.22': '0'}} with 2025-11-03 01:48:59,782 - INFO - Initial checks done. Running the testcase now 2025-11-03 01:48:59,782 - INFO - 2025-11-03 01:49:00,158 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-76285700:ctest-vn4-61554635, 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-76285700:ctest-vn4-61554635, 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-76285700:ctest-vn4-61554635, 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-76285700:ctest-vn4-61554635, 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-03 01:49:00,858 - DEBUG - Response for create_network : {'network': {'id': 'fd9efb0f-b0b3-4994-8cc2-09973a3e7258', 'name': 'ctest-vn4-61554635', 'tenant_id': 'f1ff0afca5aa49d2b270b6ea79c42b46', 'project_id': 'f1ff0afca5aa49d2b270b6ea79c42b46', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-76285700', 'ctest-vn4-61554635'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2025-11-03 01:49:01,095 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aee0bb14-4867-480a-9e27-c2650698751d', 'name': '', 'tenant_id': 'f1ff0afca5aa49d2b270b6ea79c42b46', 'network_id': 'fd9efb0f-b0b3-4994-8cc2-09973a3e7258', 'ip_version': 4, 'cidr': '101.231.81.192/26', 'allocation_pools': [{'start': '101.231.81.194', 'end': '101.231.81.254'}], 'gateway_ip': '101.231.81.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-11-03T01:49:00.993118', 'updated_at': '2025-11-03T01:49:00.993118', 'dns_server_address': '101.231.81.194', 'tags': [], 'project_id': 'f1ff0afca5aa49d2b270b6ea79c42b46'}} 2025-11-03 01:49:01,330 - DEBUG - Response for create_subnet : {'subnet': {'id': '91887905-5dc0-4f25-b439-a2cce77e6a1e', 'name': '', 'tenant_id': 'f1ff0afca5aa49d2b270b6ea79c42b46', 'network_id': 'fd9efb0f-b0b3-4994-8cc2-09973a3e7258', 'ip_version': 6, 'cidr': '3fde:f955:b38b:f4d2:4868:498b::/96', 'allocation_pools': [{'start': '3fde:f955:b38b:f4d2:4868:498b:0:2', 'end': '3fde:f955:b38b:f4d2:4868:498b:ffff:fffe'}], 'gateway_ip': '3fde:f955:b38b:f4d2:4868:498b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-11-03T01:49:01.234670', 'updated_at': '2025-11-03T01:49:01.234670', 'dns_server_address': '3fde:f955:b38b:f4d2:4868:498b:0:2', 'tags': [], 'project_id': 'f1ff0afca5aa49d2b270b6ea79c42b46'}} 2025-11-03 01:49:01,399 - INFO - Created VN ctest-vn4-61554635 2025-11-03 01:49:01,453 - DEBUG - VN ctest-vn4-61554635 UUID is fd9efb0f-b0b3-4994-8cc2-09973a3e7258 2025-11-03 01:49:01,889 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fd9efb0f-b0b3-4994-8cc2-09973a3e7258', 'name': 'ctest-vn4-61554635', 'tenant_id': 'f1ff0afca5aa49d2b270b6ea79c42b46', 'project_id': 'f1ff0afca5aa49d2b270b6ea79c42b46', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['aee0bb14-4867-480a-9e27-c2650698751d', '91887905-5dc0-4f25-b439-a2cce77e6a1e'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-76285700', 'ctest-vn4-61554635'], 'policys': [['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-76285700', 'ctest-policy1-70124561']], 'subnet_ipam': [{'subnet_cidr': '101.231.81.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3fde:f955:b38b:f4d2:4868:498b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-11-03T01:49:00.781346', 'updated_at': '2025-11-03T01:49:01.248666'}} 2025-11-03 01:49:02,069 - DEBUG - Requesting: https://10.0.0.22:8082/domains 2025-11-03 01:49:02,423 - DEBUG - Requesting: https://10.0.0.22:8082/domains 2025-11-03 01:49:02,514 - DEBUG - Requesting: https://10.0.0.22:8082/domain/5e346e6a-000a-45ec-ad9d-44dfc9f4db48 2025-11-03 01:49:02,571 - DEBUG - Requesting: https://10.0.0.22:8082/project/f1ff0afc-a5aa-49d2-b270-b6ea79c42b46 2025-11-03 01:49:02,658 - DEBUG - Requesting: https://10.0.0.22:8082/virtual-network/fd9efb0f-b0b3-4994-8cc2-09973a3e7258 2025-11-03 01:49:02,716 - DEBUG - Requesting: https://10.0.0.22:8082/virtual-network/fd9efb0f-b0b3-4994-8cc2-09973a3e7258 2025-11-03 01:49:02,772 - DEBUG - Requesting: https://10.0.0.22:8082/routing-instance/a671ca5e-134d-4a1e-a1c6-580f4c8e8242 2025-11-03 01:49:02,826 - DEBUG - Requesting: https://10.0.0.22:8082/routing-instance/a671ca5e-134d-4a1e-a1c6-580f4c8e8242 2025-11-03 01:49:02,882 - DEBUG - Requesting: https://10.0.0.22:8082/route-target/76ac6af1-32c6-4b78-b1bc-c5bcb846d96e 2025-11-03 01:49:02,938 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-03 01:49:02,939 - DEBUG - Requesting: https://10.0.0.22:8082/virtual-network/fd9efb0f-b0b3-4994-8cc2-09973a3e7258 2025-11-03 01:49:02,999 - DEBUG - Requesting: https://10.0.0.22:8082/routing-instance/a671ca5e-134d-4a1e-a1c6-580f4c8e8242 2025-11-03 01:49:03,063 - INFO - Verified VN network id 11 for VN fd9efb0f-b0b3-4994-8cc2-09973a3e7258 2025-11-03 01:49:03,063 - INFO - Verifications in API Server for VN ctest-vn4-61554635 passed 2025-11-03 01:49:03,063 - DEBUG - Requesting: https://10.0.0.22:8082/virtual-network/fd9efb0f-b0b3-4994-8cc2-09973a3e7258 2025-11-03 01:49:03,119 - DEBUG - Requesting: https://10.0.0.22:8082/routing-instance/a671ca5e-134d-4a1e-a1c6-580f4c8e8242 2025-11-03 01:49:03,182 - DEBUG - Requesting: https://10.0.0.22:8082/routing-instance/a671ca5e-134d-4a1e-a1c6-580f4c8e8242 2025-11-03 01:49:03,238 - DEBUG - Requesting: https://10.0.0.22:8082/route-target/76ac6af1-32c6-4b78-b1bc-c5bcb846d96e 2025-11-03 01:49:03,351 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-76285700:ctest-vn4-61554635', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-76285700', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18275320382723672468', 'uuid-lslong': '10142679855913661016'}, 'enable': 'true', 'created': '2025-11-03T01:49:00', 'last-modified': '2025-11-03T01:49:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.481351'} 2025-11-03 01:49:03,403 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-03 01:49:03,403 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-61554635 passed 2025-11-03 01:49:03,403 - DEBUG - ====Verifying policy data for ctest-vn4-61554635 in API_Server ====== 2025-11-03 01:49:03,404 - DEBUG - Requesting: https://10.0.0.22:8082/domains 2025-11-03 01:49:03,458 - DEBUG - Requesting: https://10.0.0.22:8082/domain/5e346e6a-000a-45ec-ad9d-44dfc9f4db48 2025-11-03 01:49:03,519 - DEBUG - Requesting: https://10.0.0.22:8082/project/f1ff0afc-a5aa-49d2-b270-b6ea79c42b46 2025-11-03 01:49:03,590 - DEBUG - Requesting: https://10.0.0.22:8082/virtual-network/fd9efb0f-b0b3-4994-8cc2-09973a3e7258 2025-11-03 01:49:03,647 - DEBUG - ==>Verifying data for policy with id: f7513f9c-c895-46cd-aa45-1ab21f190bc5, fqn: ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-76285700', 'ctest-policy1-70124561'] 2025-11-03 01:49:03,647 - INFO - VN ctest-vn4-61554635 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-03 01:49:03,647 - DEBUG - Verifying the vn in opserver 2025-11-03 01:49:03,647 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-76285700:ctest-vn4-61554635 virtual network link through opserver 10.0.0.22 2025-11-03 01:49:03,648 - DEBUG - Requesting: https://10.0.0.22:8081/analytics/uves/virtual-networks 2025-11-03 01:49:03,995 - DEBUG - Requesting: https://10.0.0.22:8081/analytics/uves/virtual-networks 2025-11-03 01:49:04,110 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-76285700:ctest-vn4-61554635', 'href': 'https://10.0.0.22:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-76285700:ctest-vn4-61554635?flat'} 2025-11-03 01:49:04,110 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-76285700:ctest-vn4-61554635 is found in opserver 2025-11-03 01:49:04,218 - DEBUG - Do not have enough data to verify VN in agent 2025-11-03 01:49:04,270 - DEBUG - VRF ids for VN ctest-vn4-61554635: {} 2025-11-03 01:49:04,270 - DEBUG - ====Verifying data for ctest-policy1-70124561 in API_Server ====== 2025-11-03 01:49:04,270 - DEBUG - Requesting: https://10.0.0.22:8082/domains 2025-11-03 01:49:04,321 - DEBUG - Requesting: https://10.0.0.22:8082/domain/5e346e6a-000a-45ec-ad9d-44dfc9f4db48 2025-11-03 01:49:04,378 - DEBUG - Requesting: https://10.0.0.22:8082/project/f1ff0afc-a5aa-49d2-b270-b6ea79c42b46 2025-11-03 01:49:04,454 - DEBUG - Requesting: https://10.0.0.22:8082/network-policy/f7513f9c-c895-46cd-aa45-1ab21f190bc5 2025-11-03 01:49:04,513 - INFO - Verified policy ctest-policy1-70124561 in API Server, Result: True 2025-11-03 01:49:04,513 - INFO - Done with setup and verification, moving onto test .. 2025-11-03 01:49:04,523 - INFO - Deleting VN ctest-vn4-61554635 2025-11-03 01:49:04,704 - DEBUG - Response for deleting network () 2025-11-03 01:49:04,704 - DEBUG - Requesting: https://10.0.0.22:8082/routing-instance/a671ca5e-134d-4a1e-a1c6-580f4c8e8242 2025-11-03 01:49:04,769 - DEBUG - Response Code: 404 2025-11-03 01:49:04,769 - DEBUG - Requesting: https://10.0.0.22:8082/domains 2025-11-03 01:49:04,822 - DEBUG - Requesting: https://10.0.0.22:8082/domain/5e346e6a-000a-45ec-ad9d-44dfc9f4db48 2025-11-03 01:49:04,882 - DEBUG - Requesting: https://10.0.0.22:8082/project/f1ff0afc-a5aa-49d2-b270-b6ea79c42b46 2025-11-03 01:49:04,962 - INFO - Validated that VN ctest-vn4-61554635 is not found in API Server 2025-11-03 01:49:05,062 - DEBUG - VN ctest-vn4-61554635 is not present in Agent 10.0.0.22 2025-11-03 01:49:05,062 - INFO - Validated that VN ctest-vn4-61554635 is not in any agent 2025-11-03 01:49:05,210 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-61554635 info 2025-11-03 01:49:05,236 - INFO - Deleted policy ctest-policy1-70124561 2025-11-03 01:49:05,397 - DEBUG - policy ctest-policy1-70124561 is not found in API Server 2025-11-03 01:49:05,790 - DEBUG - No XMPP flaps were noticed during the test