2025-11-02 10:28:18,295 - INFO - Domain Default found not creating 2025-11-02 10:28:18,468 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-97192153 not found, creating it 2025-11-02 10:28:18,926 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-97192153, ID : 5d93554a-cfd0-45ab-a1b9-7b3f6fb71df4 2025-11-02 10:28:20,559 - INFO - ================================================================================ 2025-11-02 10:28:20,560 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-02 10:28:20,816 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.17': '0'}} with 2025-11-02 10:28:20,816 - INFO - Initial checks done. Running the testcase now 2025-11-02 10:28:20,816 - INFO - 2025-11-02 10:28:20,816 - INFO - ================================================================================ 2025-11-02 10:28:20,816 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-02 10:28:20,816 - 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-02 10:28:21,115 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.17': '0'}} with 2025-11-02 10:28:21,116 - INFO - Initial checks done. Running the testcase now 2025-11-02 10:28:21,116 - INFO - 2025-11-02 10:28:21,515 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97192153:ctest-vn4-78402838, 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-97192153:ctest-vn4-78402838, 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-97192153:ctest-vn4-78402838, 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-97192153:ctest-vn4-78402838, 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-02 10:28:22,068 - DEBUG - Response for create_network : {'network': {'id': 'd5ffa28d-13d0-446e-af92-e518e68575e0', 'name': 'ctest-vn4-78402838', 'tenant_id': '5d93554acfd045aba1b97b3f6fb71df4', 'project_id': '5d93554acfd045aba1b97b3f6fb71df4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-97192153', 'ctest-vn4-78402838'], 'port_security_enabled': True, 'description': ''}} 2025-11-02 10:28:22,287 - DEBUG - Response for create_subnet : {'subnet': {'id': '060dfd15-0ac6-4c06-bacc-bf35cff0662f', 'name': '', 'tenant_id': '5d93554acfd045aba1b97b3f6fb71df4', 'network_id': 'd5ffa28d-13d0-446e-af92-e518e68575e0', 'ip_version': 4, 'cidr': '70.242.14.0/26', 'allocation_pools': [{'start': '70.242.14.2', 'end': '70.242.14.62'}], 'gateway_ip': '70.242.14.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '70.242.14.2', 'tags': [], 'project_id': '5d93554acfd045aba1b97b3f6fb71df4'}} 2025-11-02 10:28:22,492 - DEBUG - Response for create_subnet : {'subnet': {'id': '1508a6ab-7de1-41e3-8d71-41c3e3b7fd50', 'name': '', 'tenant_id': '5d93554acfd045aba1b97b3f6fb71df4', 'network_id': 'd5ffa28d-13d0-446e-af92-e518e68575e0', 'ip_version': 6, 'cidr': '2115:b455:6ae2:4eca:b123:8741::/96', 'allocation_pools': [{'start': '2115:b455:6ae2:4eca:b123:8741:0:2', 'end': '2115:b455:6ae2:4eca:b123:8741:ffff:fffe'}], 'gateway_ip': '2115:b455:6ae2:4eca:b123:8741:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2115:b455:6ae2:4eca:b123:8741:0:2', 'tags': [], 'project_id': '5d93554acfd045aba1b97b3f6fb71df4'}} 2025-11-02 10:28:22,514 - INFO - Created VN ctest-vn4-78402838 2025-11-02 10:28:22,566 - DEBUG - VN ctest-vn4-78402838 UUID is d5ffa28d-13d0-446e-af92-e518e68575e0 2025-11-02 10:28:22,793 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd5ffa28d-13d0-446e-af92-e518e68575e0', 'name': 'ctest-vn4-78402838', 'tenant_id': '5d93554acfd045aba1b97b3f6fb71df4', 'project_id': '5d93554acfd045aba1b97b3f6fb71df4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['060dfd15-0ac6-4c06-bacc-bf35cff0662f', '1508a6ab-7de1-41e3-8d71-41c3e3b7fd50'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-97192153', 'ctest-vn4-78402838'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-97192153', 'ctest-policy1-74557702']], 'subnet_ipam': [{'subnet_cidr': '70.242.14.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2115:b455:6ae2:4eca:b123:8741::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-02 10:28:22,974 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-11-02 10:28:23,331 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-11-02 10:28:23,372 - DEBUG - Requesting: http://10.0.0.48:8082/domain/acbe4b74-975a-4a45-be44-71065b65aab0 2025-11-02 10:28:23,390 - DEBUG - Requesting: http://10.0.0.48:8082/project/5d93554a-cfd0-45ab-a1b9-7b3f6fb71df4 2025-11-02 10:28:23,467 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/d5ffa28d-13d0-446e-af92-e518e68575e0 2025-11-02 10:28:23,484 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/d5ffa28d-13d0-446e-af92-e518e68575e0 2025-11-02 10:28:23,499 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/90e77789-2c7e-4f39-b8b9-5d0c106c2491 2025-11-02 10:28:23,508 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/90e77789-2c7e-4f39-b8b9-5d0c106c2491 2025-11-02 10:28:23,516 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/16105f32-004e-4ab6-b03b-05da477ecb02 2025-11-02 10:28:23,523 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-02 10:28:23,523 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/d5ffa28d-13d0-446e-af92-e518e68575e0 2025-11-02 10:28:23,533 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/90e77789-2c7e-4f39-b8b9-5d0c106c2491 2025-11-02 10:28:23,548 - INFO - Verified VN network id 11 for VN d5ffa28d-13d0-446e-af92-e518e68575e0 2025-11-02 10:28:23,548 - INFO - Verifications in API Server for VN ctest-vn4-78402838 passed 2025-11-02 10:28:23,548 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/d5ffa28d-13d0-446e-af92-e518e68575e0 2025-11-02 10:28:23,559 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/90e77789-2c7e-4f39-b8b9-5d0c106c2491 2025-11-02 10:28:23,567 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/90e77789-2c7e-4f39-b8b9-5d0c106c2491 2025-11-02 10:28:23,573 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/16105f32-004e-4ab6-b03b-05da477ecb02 2025-11-02 10:28:23,585 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97192153:ctest-vn4-78402838', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-97192153', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15420222375946372206', 'uuid-lslong': '12651426198346626528'}, 'enable': 'true', 'created': '2025-11-02T10:28:22', 'last-modified': '2025-11-02T10:28:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.818486'} 2025-11-02 10:28:23,592 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-02 10:28:23,592 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-78402838 passed 2025-11-02 10:28:23,592 - DEBUG - ====Verifying policy data for ctest-vn4-78402838 in API_Server ====== 2025-11-02 10:28:23,592 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-11-02 10:28:23,598 - DEBUG - Requesting: http://10.0.0.48:8082/domain/acbe4b74-975a-4a45-be44-71065b65aab0 2025-11-02 10:28:23,609 - DEBUG - Requesting: http://10.0.0.48:8082/project/5d93554a-cfd0-45ab-a1b9-7b3f6fb71df4 2025-11-02 10:28:23,703 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/d5ffa28d-13d0-446e-af92-e518e68575e0 2025-11-02 10:28:23,715 - DEBUG - ==>Verifying data for policy with id: 4dc82b11-17df-4ed8-a372-1bb8c5614d9f, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-97192153', 'ctest-policy1-74557702'] 2025-11-02 10:28:23,715 - INFO - VN ctest-vn4-78402838 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-02 10:28:23,715 - DEBUG - Verifying the vn in opserver 2025-11-02 10:28:23,715 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97192153:ctest-vn4-78402838 virtual network link through opserver 10.0.0.48 2025-11-02 10:28:23,715 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-11-02 10:28:24,065 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-11-02 10:28:24,148 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97192153:ctest-vn4-78402838', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97192153:ctest-vn4-78402838?flat'} 2025-11-02 10:28:24,148 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97192153:ctest-vn4-78402838 is found in opserver 2025-11-02 10:28:24,160 - DEBUG - Do not have enough data to verify VN in agent 2025-11-02 10:28:24,166 - DEBUG - VRF ids for VN ctest-vn4-78402838: {} 2025-11-02 10:28:24,167 - DEBUG - ====Verifying data for ctest-policy1-74557702 in API_Server ====== 2025-11-02 10:28:24,167 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-11-02 10:28:24,175 - DEBUG - Requesting: http://10.0.0.48:8082/domain/acbe4b74-975a-4a45-be44-71065b65aab0 2025-11-02 10:28:24,192 - DEBUG - Requesting: http://10.0.0.48:8082/project/5d93554a-cfd0-45ab-a1b9-7b3f6fb71df4 2025-11-02 10:28:24,271 - DEBUG - Requesting: http://10.0.0.48:8082/network-policy/4dc82b11-17df-4ed8-a372-1bb8c5614d9f 2025-11-02 10:28:24,283 - INFO - Verified policy ctest-policy1-74557702 in API Server, Result: True 2025-11-02 10:28:24,284 - INFO - Done with setup and verification, moving onto test .. 2025-11-02 10:28:24,295 - INFO - Deleting VN ctest-vn4-78402838 2025-11-02 10:28:24,449 - DEBUG - Response for deleting network () 2025-11-02 10:28:24,449 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/90e77789-2c7e-4f39-b8b9-5d0c106c2491 2025-11-02 10:28:24,455 - DEBUG - Response Code: 404 2025-11-02 10:28:24,455 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-11-02 10:28:24,461 - DEBUG - Requesting: http://10.0.0.48:8082/domain/acbe4b74-975a-4a45-be44-71065b65aab0 2025-11-02 10:28:24,516 - DEBUG - Requesting: http://10.0.0.48:8082/project/5d93554a-cfd0-45ab-a1b9-7b3f6fb71df4 2025-11-02 10:28:24,590 - INFO - Validated that VN ctest-vn4-78402838 is not found in API Server 2025-11-02 10:28:24,601 - DEBUG - VN ctest-vn4-78402838 is not present in Agent 10.0.0.48 2025-11-02 10:28:24,601 - INFO - Validated that VN ctest-vn4-78402838 is not in any agent 2025-11-02 10:28:24,618 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-78402838 info 2025-11-02 10:28:24,647 - INFO - Deleted policy ctest-policy1-74557702 2025-11-02 10:28:24,818 - DEBUG - policy ctest-policy1-74557702 is not found in API Server 2025-11-02 10:28:25,096 - DEBUG - No XMPP flaps were noticed during the test