2025-10-31 02:32:36,565 - INFO - Domain Default found not creating 2025-10-31 02:32:36,744 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-95158547 not found, creating it 2025-10-31 02:32:37,205 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-95158547, ID : dc300e14-7288-4dd3-90fb-f6b101d18d2d 2025-10-31 02:32:38,701 - INFO - ================================================================================ 2025-10-31 02:32:38,702 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-31 02:32:38,957 - DEBUG - Nothing to compare xmpp stats {'10.0.0.137': {'10.20.0.14': '0'}} with 2025-10-31 02:32:38,957 - INFO - Initial checks done. Running the testcase now 2025-10-31 02:32:38,957 - INFO - 2025-10-31 02:32:38,957 - INFO - ================================================================================ 2025-10-31 02:32:38,957 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-31 02:32:38,957 - 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-31 02:32:39,268 - DEBUG - Nothing to compare xmpp stats {'10.0.0.137': {'10.20.0.14': '0'}} with 2025-10-31 02:32:39,268 - INFO - Initial checks done. Running the testcase now 2025-10-31 02:32:39,268 - INFO - 2025-10-31 02:32:39,632 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95158547:ctest-vn4-62653470, 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-95158547:ctest-vn4-62653470, 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-95158547:ctest-vn4-62653470, 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-95158547:ctest-vn4-62653470, 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-31 02:32:40,350 - DEBUG - Response for create_network : {'network': {'id': 'f3d234c9-369c-4db1-b34a-d2bed6b97031', 'name': 'ctest-vn4-62653470', 'tenant_id': 'dc300e1472884dd390fbf6b101d18d2d', 'project_id': 'dc300e1472884dd390fbf6b101d18d2d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95158547', 'ctest-vn4-62653470'], 'port_security_enabled': True, 'description': ''}} 2025-10-31 02:32:40,584 - DEBUG - Response for create_subnet : {'subnet': {'id': '963d084b-a84e-4d6b-92bc-7e2988198a3d', 'name': '', 'tenant_id': 'dc300e1472884dd390fbf6b101d18d2d', 'network_id': 'f3d234c9-369c-4db1-b34a-d2bed6b97031', 'ip_version': 4, 'cidr': '213.181.185.192/26', 'allocation_pools': [{'start': '213.181.185.194', 'end': '213.181.185.254'}], 'gateway_ip': '213.181.185.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '213.181.185.194', 'tags': [], 'project_id': 'dc300e1472884dd390fbf6b101d18d2d'}} 2025-10-31 02:32:40,751 - DEBUG - Response for create_subnet : {'subnet': {'id': '64ec6201-ea98-403d-8f33-a2bd0bba59d3', 'name': '', 'tenant_id': 'dc300e1472884dd390fbf6b101d18d2d', 'network_id': 'f3d234c9-369c-4db1-b34a-d2bed6b97031', 'ip_version': 6, 'cidr': '39f0:a99:dd41:543c:ace7:4d0a::/96', 'allocation_pools': [{'start': '39f0:a99:dd41:543c:ace7:4d0a:0:2', 'end': '39f0:a99:dd41:543c:ace7:4d0a:ffff:fffe'}], 'gateway_ip': '39f0:a99:dd41:543c:ace7:4d0a:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '39f0:a99:dd41:543c:ace7:4d0a:0:2', 'tags': [], 'project_id': 'dc300e1472884dd390fbf6b101d18d2d'}} 2025-10-31 02:32:40,772 - INFO - Created VN ctest-vn4-62653470 2025-10-31 02:32:40,827 - DEBUG - VN ctest-vn4-62653470 UUID is f3d234c9-369c-4db1-b34a-d2bed6b97031 2025-10-31 02:32:41,042 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f3d234c9-369c-4db1-b34a-d2bed6b97031', 'name': 'ctest-vn4-62653470', 'tenant_id': 'dc300e1472884dd390fbf6b101d18d2d', 'project_id': 'dc300e1472884dd390fbf6b101d18d2d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['963d084b-a84e-4d6b-92bc-7e2988198a3d', '64ec6201-ea98-403d-8f33-a2bd0bba59d3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95158547', 'ctest-vn4-62653470'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95158547', 'ctest-policy1-85589195']], 'subnet_ipam': [{'subnet_cidr': '213.181.185.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '39f0:a99:dd41:543c:ace7:4d0a::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-31 02:32:41,207 - DEBUG - Requesting: http://10.0.0.137:8082/domains 2025-10-31 02:32:41,505 - DEBUG - Requesting: http://10.0.0.137:8082/domains 2025-10-31 02:32:41,535 - DEBUG - Requesting: http://10.0.0.137:8082/domain/f20c8f27-e4ee-40d7-847d-cb256a7ec21c 2025-10-31 02:32:41,549 - DEBUG - Requesting: http://10.0.0.137:8082/project/dc300e14-7288-4dd3-90fb-f6b101d18d2d 2025-10-31 02:32:41,624 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/f3d234c9-369c-4db1-b34a-d2bed6b97031 2025-10-31 02:32:41,637 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/f3d234c9-369c-4db1-b34a-d2bed6b97031 2025-10-31 02:32:41,647 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/bcba4d6c-80f6-4aa6-98e1-07f97d3acf55 2025-10-31 02:32:41,655 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/bcba4d6c-80f6-4aa6-98e1-07f97d3acf55 2025-10-31 02:32:41,661 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/f812127a-50af-4270-8ec5-5e6175f703fe 2025-10-31 02:32:41,668 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-31 02:32:41,668 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/f3d234c9-369c-4db1-b34a-d2bed6b97031 2025-10-31 02:32:41,678 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/bcba4d6c-80f6-4aa6-98e1-07f97d3acf55 2025-10-31 02:32:41,692 - INFO - Verified VN network id 11 for VN f3d234c9-369c-4db1-b34a-d2bed6b97031 2025-10-31 02:32:41,693 - INFO - Verifications in API Server for VN ctest-vn4-62653470 passed 2025-10-31 02:32:41,693 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/f3d234c9-369c-4db1-b34a-d2bed6b97031 2025-10-31 02:32:41,702 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/bcba4d6c-80f6-4aa6-98e1-07f97d3acf55 2025-10-31 02:32:41,709 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/bcba4d6c-80f6-4aa6-98e1-07f97d3acf55 2025-10-31 02:32:41,717 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/f812127a-50af-4270-8ec5-5e6175f703fe 2025-10-31 02:32:41,729 - DEBUG - Control-node 10.0.0.137 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95158547:ctest-vn4-62653470', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-95158547', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17569163135135010225', 'uuid-lslong': '12919370198153785393'}, 'enable': 'true', 'created': '2025-10-31T02:32:40', 'last-modified': '2025-10-31T02:32:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.715849'} 2025-10-31 02:32:41,734 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-31 02:32:41,734 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-62653470 passed 2025-10-31 02:32:41,735 - DEBUG - ====Verifying policy data for ctest-vn4-62653470 in API_Server ====== 2025-10-31 02:32:41,735 - DEBUG - Requesting: http://10.0.0.137:8082/domains 2025-10-31 02:32:41,740 - DEBUG - Requesting: http://10.0.0.137:8082/domain/f20c8f27-e4ee-40d7-847d-cb256a7ec21c 2025-10-31 02:32:41,751 - DEBUG - Requesting: http://10.0.0.137:8082/project/dc300e14-7288-4dd3-90fb-f6b101d18d2d 2025-10-31 02:32:41,823 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/f3d234c9-369c-4db1-b34a-d2bed6b97031 2025-10-31 02:32:41,832 - DEBUG - ==>Verifying data for policy with id: d64e41b6-3c95-417c-8589-073a4b31fed7, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95158547', 'ctest-policy1-85589195'] 2025-10-31 02:32:41,832 - INFO - VN ctest-vn4-62653470 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-31 02:32:41,832 - DEBUG - Verifying the vn in opserver 2025-10-31 02:32:41,832 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95158547:ctest-vn4-62653470 virtual network link through opserver 10.0.0.137 2025-10-31 02:32:41,832 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks 2025-10-31 02:32:42,129 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks 2025-10-31 02:32:42,185 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95158547:ctest-vn4-62653470', 'href': 'http://10.0.0.137:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95158547:ctest-vn4-62653470?flat'} 2025-10-31 02:32:42,185 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95158547:ctest-vn4-62653470 is found in opserver 2025-10-31 02:32:42,196 - DEBUG - Do not have enough data to verify VN in agent 2025-10-31 02:32:42,201 - DEBUG - VRF ids for VN ctest-vn4-62653470: {} 2025-10-31 02:32:42,201 - DEBUG - ====Verifying data for ctest-policy1-85589195 in API_Server ====== 2025-10-31 02:32:42,201 - DEBUG - Requesting: http://10.0.0.137:8082/domains 2025-10-31 02:32:42,207 - DEBUG - Requesting: http://10.0.0.137:8082/domain/f20c8f27-e4ee-40d7-847d-cb256a7ec21c 2025-10-31 02:32:42,217 - DEBUG - Requesting: http://10.0.0.137:8082/project/dc300e14-7288-4dd3-90fb-f6b101d18d2d 2025-10-31 02:32:42,290 - DEBUG - Requesting: http://10.0.0.137:8082/network-policy/d64e41b6-3c95-417c-8589-073a4b31fed7 2025-10-31 02:32:42,300 - INFO - Verified policy ctest-policy1-85589195 in API Server, Result: True 2025-10-31 02:32:42,300 - INFO - Done with setup and verification, moving onto test .. 2025-10-31 02:32:42,308 - INFO - Deleting VN ctest-vn4-62653470 2025-10-31 02:32:42,429 - DEBUG - Response for deleting network () 2025-10-31 02:32:42,429 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/bcba4d6c-80f6-4aa6-98e1-07f97d3acf55 2025-10-31 02:32:42,435 - DEBUG - Response Code: 404 2025-10-31 02:32:42,435 - DEBUG - Requesting: http://10.0.0.137:8082/domains 2025-10-31 02:32:42,440 - DEBUG - Requesting: http://10.0.0.137:8082/domain/f20c8f27-e4ee-40d7-847d-cb256a7ec21c 2025-10-31 02:32:42,492 - DEBUG - Requesting: http://10.0.0.137:8082/project/dc300e14-7288-4dd3-90fb-f6b101d18d2d 2025-10-31 02:32:42,574 - INFO - Validated that VN ctest-vn4-62653470 is not found in API Server 2025-10-31 02:32:42,585 - DEBUG - VN ctest-vn4-62653470 is not present in Agent 10.0.0.137 2025-10-31 02:32:42,585 - INFO - Validated that VN ctest-vn4-62653470 is not in any agent 2025-10-31 02:32:42,600 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-62653470 info 2025-10-31 02:32:42,623 - INFO - Deleted policy ctest-policy1-85589195 2025-10-31 02:32:42,786 - DEBUG - policy ctest-policy1-85589195 is not found in API Server 2025-10-31 02:32:43,040 - DEBUG - No XMPP flaps were noticed during the test
2025-10-31 02:32:43,040 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-10-31 02:32:43,040 - INFO - -------------------------------------------------------------------------------- 2025-10-31 02:32:43,339 - DEBUG - No XMPP flaps were noticed during the test
2025-10-31 02:32:43,339 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-10-31 02:32:43,339 - INFO - -------------------------------------------------------------------------------- 2025-10-31 02:32:44,055 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-95158547, ID : dc300e14-7288-4dd3-90fb-f6b101d18d2d