2025-08-20 16:12:13,574 - INFO - Domain Default found not creating 2025-08-20 16:12:13,693 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-25378048 not found, creating it 2025-08-20 16:12:14,161 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-25378048, ID : fd4b20ad-b1d2-47c4-a4fb-d8f762d90754 2025-08-20 16:12:15,597 - INFO - ================================================================================ 2025-08-20 16:12:15,597 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-20 16:12:15,853 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.0.0.254': '0'}} with 2025-08-20 16:12:15,853 - INFO - Initial checks done. Running the testcase now 2025-08-20 16:12:15,853 - INFO - 2025-08-20 16:12:15,853 - INFO - ================================================================================ 2025-08-20 16:12:15,854 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-20 16:12:15,854 - 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-08-20 16:12:16,138 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.0.0.254': '0'}} with 2025-08-20 16:12:16,138 - INFO - Initial checks done. Running the testcase now 2025-08-20 16:12:16,138 - INFO - 2025-08-20 16:12:16,492 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25378048:ctest-vn4-56118607, 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-25378048:ctest-vn4-56118607, 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-25378048:ctest-vn4-56118607, 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-25378048:ctest-vn4-56118607, 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-08-20 16:12:16,963 - DEBUG - Response for create_network : {'network': {'id': '2cf3d0db-f094-4432-af9c-9e8669b02704', 'name': 'ctest-vn4-56118607', 'tenant_id': 'fd4b20adb1d247c4a4fbd8f762d90754', 'project_id': 'fd4b20adb1d247c4a4fbd8f762d90754', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25378048', 'ctest-vn4-56118607'], 'port_security_enabled': True, 'description': ''}} 2025-08-20 16:12:17,150 - DEBUG - Response for create_subnet : {'subnet': {'id': '76ad3f0d-5e9a-4a00-8a8d-3b98558df621', 'name': '', 'tenant_id': 'fd4b20adb1d247c4a4fbd8f762d90754', 'network_id': '2cf3d0db-f094-4432-af9c-9e8669b02704', 'ip_version': 4, 'cidr': '82.213.216.0/26', 'allocation_pools': [{'start': '82.213.216.2', 'end': '82.213.216.62'}], 'gateway_ip': '82.213.216.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '82.213.216.2', 'tags': [], 'project_id': 'fd4b20adb1d247c4a4fbd8f762d90754'}} 2025-08-20 16:12:17,313 - DEBUG - Response for create_subnet : {'subnet': {'id': '33bbd3c4-da30-406b-b9c0-9e7adf16e65e', 'name': '', 'tenant_id': 'fd4b20adb1d247c4a4fbd8f762d90754', 'network_id': '2cf3d0db-f094-4432-af9c-9e8669b02704', 'ip_version': 6, 'cidr': '3807:3f22:ecaa:85f9:e1e1:e4bb::/96', 'allocation_pools': [{'start': '3807:3f22:ecaa:85f9:e1e1:e4bb:0:2', 'end': '3807:3f22:ecaa:85f9:e1e1:e4bb:ffff:fffe'}], 'gateway_ip': '3807:3f22:ecaa:85f9:e1e1:e4bb:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3807:3f22:ecaa:85f9:e1e1:e4bb:0:2', 'tags': [], 'project_id': 'fd4b20adb1d247c4a4fbd8f762d90754'}} 2025-08-20 16:12:17,328 - INFO - Created VN ctest-vn4-56118607 2025-08-20 16:12:17,377 - DEBUG - VN ctest-vn4-56118607 UUID is 2cf3d0db-f094-4432-af9c-9e8669b02704 2025-08-20 16:12:17,553 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2cf3d0db-f094-4432-af9c-9e8669b02704', 'name': 'ctest-vn4-56118607', 'tenant_id': 'fd4b20adb1d247c4a4fbd8f762d90754', 'project_id': 'fd4b20adb1d247c4a4fbd8f762d90754', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['76ad3f0d-5e9a-4a00-8a8d-3b98558df621', '33bbd3c4-da30-406b-b9c0-9e7adf16e65e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25378048', 'ctest-vn4-56118607'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25378048', 'ctest-policy1-14286554']], 'subnet_ipam': [{'subnet_cidr': '82.213.216.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3807:3f22:ecaa:85f9:e1e1:e4bb::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-20 16:12:17,705 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-20 16:12:18,004 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-20 16:12:18,027 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9555d193-959a-4921-997f-f42de7783b33 2025-08-20 16:12:18,037 - DEBUG - Requesting: http://10.0.0.254:8082/project/fd4b20ad-b1d2-47c4-a4fb-d8f762d90754 2025-08-20 16:12:18,105 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2cf3d0db-f094-4432-af9c-9e8669b02704 2025-08-20 16:12:18,115 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2cf3d0db-f094-4432-af9c-9e8669b02704 2025-08-20 16:12:18,123 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/823865a2-eff7-4e7e-bd78-95af87c4d833 2025-08-20 16:12:18,128 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/823865a2-eff7-4e7e-bd78-95af87c4d833 2025-08-20 16:12:18,133 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/ee822bb4-2e06-42ae-9ce7-2f017617dd58 2025-08-20 16:12:18,137 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-20 16:12:18,137 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2cf3d0db-f094-4432-af9c-9e8669b02704 2025-08-20 16:12:18,145 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/823865a2-eff7-4e7e-bd78-95af87c4d833 2025-08-20 16:12:18,155 - INFO - Verified VN network id 12 for VN 2cf3d0db-f094-4432-af9c-9e8669b02704 2025-08-20 16:12:18,155 - INFO - Verifications in API Server for VN ctest-vn4-56118607 passed 2025-08-20 16:12:18,155 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2cf3d0db-f094-4432-af9c-9e8669b02704 2025-08-20 16:12:18,162 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/823865a2-eff7-4e7e-bd78-95af87c4d833 2025-08-20 16:12:18,167 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/823865a2-eff7-4e7e-bd78-95af87c4d833 2025-08-20 16:12:18,172 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/ee822bb4-2e06-42ae-9ce7-2f017617dd58 2025-08-20 16:12:18,181 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25378048:ctest-vn4-56118607', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-25378048', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3239162200062182450', 'uuid-lslong': '12654163353140209412'}, 'enable': 'true', 'created': '2025-08-20T16:12:16', 'last-modified': '2025-08-20T16:12:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.659760'} 2025-08-20 16:12:18,186 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-20 16:12:18,186 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-56118607 passed 2025-08-20 16:12:18,186 - DEBUG - ====Verifying policy data for ctest-vn4-56118607 in API_Server ====== 2025-08-20 16:12:18,186 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-20 16:12:18,190 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9555d193-959a-4921-997f-f42de7783b33 2025-08-20 16:12:18,199 - DEBUG - Requesting: http://10.0.0.254:8082/project/fd4b20ad-b1d2-47c4-a4fb-d8f762d90754 2025-08-20 16:12:18,263 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2cf3d0db-f094-4432-af9c-9e8669b02704 2025-08-20 16:12:18,272 - DEBUG - ==>Verifying data for policy with id: 8d7f7122-3be9-40d4-9be3-dbf2ba3d78fe, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25378048', 'ctest-policy1-14286554'] 2025-08-20 16:12:18,272 - INFO - VN ctest-vn4-56118607 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-20 16:12:18,272 - DEBUG - Verifying the vn in opserver 2025-08-20 16:12:18,272 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25378048:ctest-vn4-56118607 virtual network link through opserver 10.0.0.254 2025-08-20 16:12:18,272 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-20 16:12:18,558 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-20 16:12:18,605 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25378048:ctest-vn4-56118607', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25378048:ctest-vn4-56118607?flat'} 2025-08-20 16:12:18,605 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25378048:ctest-vn4-56118607 is found in opserver 2025-08-20 16:12:18,613 - DEBUG - Do not have enough data to verify VN in agent 2025-08-20 16:12:18,617 - DEBUG - VRF ids for VN ctest-vn4-56118607: {} 2025-08-20 16:12:18,617 - DEBUG - ====Verifying data for ctest-policy1-14286554 in API_Server ====== 2025-08-20 16:12:18,617 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-20 16:12:18,622 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9555d193-959a-4921-997f-f42de7783b33 2025-08-20 16:12:18,634 - DEBUG - Requesting: http://10.0.0.254:8082/project/fd4b20ad-b1d2-47c4-a4fb-d8f762d90754 2025-08-20 16:12:18,699 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/8d7f7122-3be9-40d4-9be3-dbf2ba3d78fe 2025-08-20 16:12:18,706 - INFO - Verified policy ctest-policy1-14286554 in API Server, Result: True 2025-08-20 16:12:18,706 - INFO - Done with setup and verification, moving onto test .. 2025-08-20 16:12:18,712 - INFO - Deleting VN ctest-vn4-56118607 2025-08-20 16:12:18,811 - DEBUG - Response for deleting network () 2025-08-20 16:12:18,811 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/823865a2-eff7-4e7e-bd78-95af87c4d833 2025-08-20 16:12:18,815 - DEBUG - Response Code: 404 2025-08-20 16:12:18,815 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-20 16:12:18,819 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9555d193-959a-4921-997f-f42de7783b33 2025-08-20 16:12:18,869 - DEBUG - Requesting: http://10.0.0.254:8082/project/fd4b20ad-b1d2-47c4-a4fb-d8f762d90754 2025-08-20 16:12:18,934 - INFO - Validated that VN ctest-vn4-56118607 is not found in API Server 2025-08-20 16:12:18,942 - DEBUG - VN ctest-vn4-56118607 is not present in Agent 10.0.0.254 2025-08-20 16:12:18,942 - INFO - Validated that VN ctest-vn4-56118607 is not in any agent 2025-08-20 16:12:18,955 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-56118607 info 2025-08-20 16:12:18,975 - INFO - Deleted policy ctest-policy1-14286554 2025-08-20 16:12:19,137 - DEBUG - policy ctest-policy1-14286554 is not found in API Server 2025-08-20 16:12:19,394 - DEBUG - No XMPP flaps were noticed during the test