2025-11-17 13:39:07,035 - INFO - Domain Default found not creating 2025-11-17 13:39:07,513 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-21227630 not found, creating it 2025-11-17 13:39:07,972 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-21227630, ID : 874274e4-0983-4eae-889a-873dc05db04f 2025-11-17 13:39:09,461 - INFO - ================================================================================ 2025-11-17 13:39:09,461 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-17 13:39:09,715 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-11-17 13:39:09,715 - INFO - Initial checks done. Running the testcase now 2025-11-17 13:39:09,715 - INFO - 2025-11-17 13:39:09,715 - INFO - ================================================================================ 2025-11-17 13:39:09,715 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-17 13:39:09,715 - 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-17 13:39:10,019 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-11-17 13:39:10,019 - INFO - Initial checks done. Running the testcase now 2025-11-17 13:39:10,019 - INFO - 2025-11-17 13:39:10,388 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21227630:ctest-vn4-91104582, 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-21227630:ctest-vn4-91104582, 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-21227630:ctest-vn4-91104582, 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-21227630:ctest-vn4-91104582, 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-17 13:39:10,889 - DEBUG - Response for create_network : {'network': {'id': '51a1eba6-0761-47cc-85a8-57024bef2f2c', 'name': 'ctest-vn4-91104582', 'tenant_id': '874274e409834eae889a873dc05db04f', 'project_id': '874274e409834eae889a873dc05db04f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-21227630', 'ctest-vn4-91104582'], 'port_security_enabled': True, 'description': ''}} 2025-11-17 13:39:11,032 - DEBUG - Response for create_subnet : {'subnet': {'id': '1e548531-f4b0-48b6-9bf7-47c686fbaeb4', 'name': '', 'tenant_id': '874274e409834eae889a873dc05db04f', 'network_id': '51a1eba6-0761-47cc-85a8-57024bef2f2c', 'ip_version': 4, 'cidr': '150.190.61.192/26', 'allocation_pools': [{'start': '150.190.61.194', 'end': '150.190.61.254'}], 'gateway_ip': '150.190.61.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '150.190.61.194', 'tags': [], 'project_id': '874274e409834eae889a873dc05db04f'}} 2025-11-17 13:39:11,212 - DEBUG - Response for create_subnet : {'subnet': {'id': '1cd04879-d53d-48ba-9c9d-8a0ca4dc7b83', 'name': '', 'tenant_id': '874274e409834eae889a873dc05db04f', 'network_id': '51a1eba6-0761-47cc-85a8-57024bef2f2c', 'ip_version': 6, 'cidr': '2237:af80:13be:9cc0:2b2d:ccbd::/96', 'allocation_pools': [{'start': '2237:af80:13be:9cc0:2b2d:ccbd:0:2', 'end': '2237:af80:13be:9cc0:2b2d:ccbd:ffff:fffe'}], 'gateway_ip': '2237:af80:13be:9cc0:2b2d:ccbd:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2237:af80:13be:9cc0:2b2d:ccbd:0:2', 'tags': [], 'project_id': '874274e409834eae889a873dc05db04f'}} 2025-11-17 13:39:11,232 - INFO - Created VN ctest-vn4-91104582 2025-11-17 13:39:11,286 - DEBUG - VN ctest-vn4-91104582 UUID is 51a1eba6-0761-47cc-85a8-57024bef2f2c 2025-11-17 13:39:11,483 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '51a1eba6-0761-47cc-85a8-57024bef2f2c', 'name': 'ctest-vn4-91104582', 'tenant_id': '874274e409834eae889a873dc05db04f', 'project_id': '874274e409834eae889a873dc05db04f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1e548531-f4b0-48b6-9bf7-47c686fbaeb4', '1cd04879-d53d-48ba-9c9d-8a0ca4dc7b83'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-21227630', 'ctest-vn4-91104582'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-21227630', 'ctest-policy1-41487940']], 'subnet_ipam': [{'subnet_cidr': '150.190.61.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2237:af80:13be:9cc0:2b2d:ccbd::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-17 13:39:11,642 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-17 13:39:11,966 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-17 13:39:11,998 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c58d073e-9327-469b-ad4d-9a6ab2d466a4 2025-11-17 13:39:12,010 - DEBUG - Requesting: http://10.0.0.50:8082/project/874274e4-0983-4eae-889a-873dc05db04f 2025-11-17 13:39:12,089 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/51a1eba6-0761-47cc-85a8-57024bef2f2c 2025-11-17 13:39:12,107 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/51a1eba6-0761-47cc-85a8-57024bef2f2c 2025-11-17 13:39:12,121 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a50b8f30-51b8-44a7-94ff-615d8e562fe1 2025-11-17 13:39:12,131 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a50b8f30-51b8-44a7-94ff-615d8e562fe1 2025-11-17 13:39:12,141 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/fc5b2925-89f8-43e3-a49f-8f894151c415 2025-11-17 13:39:12,150 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-17 13:39:12,150 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/51a1eba6-0761-47cc-85a8-57024bef2f2c 2025-11-17 13:39:12,163 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a50b8f30-51b8-44a7-94ff-615d8e562fe1 2025-11-17 13:39:12,180 - INFO - Verified VN network id 11 for VN 51a1eba6-0761-47cc-85a8-57024bef2f2c 2025-11-17 13:39:12,181 - INFO - Verifications in API Server for VN ctest-vn4-91104582 passed 2025-11-17 13:39:12,181 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/51a1eba6-0761-47cc-85a8-57024bef2f2c 2025-11-17 13:39:12,191 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a50b8f30-51b8-44a7-94ff-615d8e562fe1 2025-11-17 13:39:12,199 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a50b8f30-51b8-44a7-94ff-615d8e562fe1 2025-11-17 13:39:12,205 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/fc5b2925-89f8-43e3-a49f-8f894151c415 2025-11-17 13:39:12,217 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21227630:ctest-vn4-91104582', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-21227630', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5882241686643492812', 'uuid-lslong': '9631043470507323180'}, 'enable': 'true', 'created': '2025-11-17T13:39:10', 'last-modified': '2025-11-17T13:39:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.763374'} 2025-11-17 13:39:12,223 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-17 13:39:12,223 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-91104582 passed 2025-11-17 13:39:12,223 - DEBUG - ====Verifying policy data for ctest-vn4-91104582 in API_Server ====== 2025-11-17 13:39:12,223 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-17 13:39:12,229 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c58d073e-9327-469b-ad4d-9a6ab2d466a4 2025-11-17 13:39:12,239 - DEBUG - Requesting: http://10.0.0.50:8082/project/874274e4-0983-4eae-889a-873dc05db04f 2025-11-17 13:39:12,309 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/51a1eba6-0761-47cc-85a8-57024bef2f2c 2025-11-17 13:39:12,320 - DEBUG - ==>Verifying data for policy with id: b15b673f-24cf-4764-914d-1cb29548d4dd, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-21227630', 'ctest-policy1-41487940'] 2025-11-17 13:39:12,320 - INFO - VN ctest-vn4-91104582 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-17 13:39:12,320 - DEBUG - Verifying the vn in opserver 2025-11-17 13:39:12,320 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21227630:ctest-vn4-91104582 virtual network link through opserver 10.0.0.50 2025-11-17 13:39:12,321 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-17 13:39:12,641 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-17 13:39:12,689 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21227630:ctest-vn4-91104582', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21227630:ctest-vn4-91104582?flat'} 2025-11-17 13:39:12,689 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21227630:ctest-vn4-91104582 is found in opserver 2025-11-17 13:39:12,698 - DEBUG - Do not have enough data to verify VN in agent 2025-11-17 13:39:12,703 - DEBUG - VRF ids for VN ctest-vn4-91104582: {} 2025-11-17 13:39:12,703 - DEBUG - ====Verifying data for ctest-policy1-41487940 in API_Server ====== 2025-11-17 13:39:12,703 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-17 13:39:12,709 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c58d073e-9327-469b-ad4d-9a6ab2d466a4 2025-11-17 13:39:12,720 - DEBUG - Requesting: http://10.0.0.50:8082/project/874274e4-0983-4eae-889a-873dc05db04f 2025-11-17 13:39:12,790 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/b15b673f-24cf-4764-914d-1cb29548d4dd 2025-11-17 13:39:12,801 - INFO - Verified policy ctest-policy1-41487940 in API Server, Result: True 2025-11-17 13:39:12,801 - INFO - Done with setup and verification, moving onto test .. 2025-11-17 13:39:12,808 - INFO - Deleting VN ctest-vn4-91104582 2025-11-17 13:39:12,919 - DEBUG - Response for deleting network () 2025-11-17 13:39:12,919 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a50b8f30-51b8-44a7-94ff-615d8e562fe1 2025-11-17 13:39:12,923 - DEBUG - Response Code: 404 2025-11-17 13:39:12,923 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-17 13:39:12,928 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c58d073e-9327-469b-ad4d-9a6ab2d466a4 2025-11-17 13:39:12,978 - DEBUG - Requesting: http://10.0.0.50:8082/project/874274e4-0983-4eae-889a-873dc05db04f 2025-11-17 13:39:13,047 - INFO - Validated that VN ctest-vn4-91104582 is not found in API Server 2025-11-17 13:39:13,055 - DEBUG - VN ctest-vn4-91104582 is not present in Agent 10.0.0.50 2025-11-17 13:39:13,055 - INFO - Validated that VN ctest-vn4-91104582 is not in any agent 2025-11-17 13:39:13,067 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-91104582 info 2025-11-17 13:39:13,088 - INFO - Deleted policy ctest-policy1-41487940 2025-11-17 13:39:13,246 - DEBUG - policy ctest-policy1-41487940 is not found in API Server 2025-11-17 13:39:13,499 - DEBUG - No XMPP flaps were noticed during the test
2025-11-17 13:39:13,499 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-11-17 13:39:13,499 - INFO - -------------------------------------------------------------------------------- 2025-11-17 13:39:13,786 - DEBUG - No XMPP flaps were noticed during the test
2025-11-17 13:39:13,787 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-11-17 13:39:13,787 - INFO - -------------------------------------------------------------------------------- 2025-11-17 13:39:14,467 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-21227630, ID : 874274e4-0983-4eae-889a-873dc05db04f