2025-10-21 11:55:49,973 - INFO - Domain Default found not creating 2025-10-21 11:55:50,126 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-68946726 not found, creating it 2025-10-21 11:55:50,615 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-68946726, ID : 79d51ff0-c143-47b7-b48f-0161601784c9 2025-10-21 11:55:52,055 - INFO - ================================================================================ 2025-10-21 11:55:52,055 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-21 11:55:52,315 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-10-21 11:55:52,315 - INFO - Initial checks done. Running the testcase now 2025-10-21 11:55:52,315 - INFO - 2025-10-21 11:55:52,315 - INFO - ================================================================================ 2025-10-21 11:55:52,315 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-21 11:55:52,315 - 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-21 11:55:52,610 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-10-21 11:55:52,610 - INFO - Initial checks done. Running the testcase now 2025-10-21 11:55:52,610 - INFO - 2025-10-21 11:55:52,998 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68946726:ctest-vn4-59418297, 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-68946726:ctest-vn4-59418297, 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-68946726:ctest-vn4-59418297, 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-68946726:ctest-vn4-59418297, 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-21 11:55:53,506 - DEBUG - Response for create_network : {'network': {'id': '0b037581-6f0f-40b6-b04e-447f04f902a1', 'name': 'ctest-vn4-59418297', 'tenant_id': '79d51ff0c14347b7b48f0161601784c9', 'project_id': '79d51ff0c14347b7b48f0161601784c9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68946726', 'ctest-vn4-59418297'], 'port_security_enabled': True, 'description': ''}} 2025-10-21 11:55:53,701 - DEBUG - Response for create_subnet : {'subnet': {'id': '0e062cb4-bcf0-4ae0-a79e-df41522c706f', 'name': '', 'tenant_id': '79d51ff0c14347b7b48f0161601784c9', 'network_id': '0b037581-6f0f-40b6-b04e-447f04f902a1', 'ip_version': 4, 'cidr': '185.237.250.0/26', 'allocation_pools': [{'start': '185.237.250.2', 'end': '185.237.250.62'}], 'gateway_ip': '185.237.250.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '185.237.250.2', 'tags': [], 'project_id': '79d51ff0c14347b7b48f0161601784c9'}} 2025-10-21 11:55:53,908 - DEBUG - Response for create_subnet : {'subnet': {'id': '510ded4b-9e55-4781-9e31-4bc576b30347', 'name': '', 'tenant_id': '79d51ff0c14347b7b48f0161601784c9', 'network_id': '0b037581-6f0f-40b6-b04e-447f04f902a1', 'ip_version': 6, 'cidr': '23a3:c395:29b2:c822:8ae:274b::/96', 'allocation_pools': [{'start': '23a3:c395:29b2:c822:8ae:274b:0:2', 'end': '23a3:c395:29b2:c822:8ae:274b:ffff:fffe'}], 'gateway_ip': '23a3:c395:29b2:c822:8ae:274b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '23a3:c395:29b2:c822:8ae:274b:0:2', 'tags': [], 'project_id': '79d51ff0c14347b7b48f0161601784c9'}} 2025-10-21 11:55:53,928 - INFO - Created VN ctest-vn4-59418297 2025-10-21 11:55:53,978 - DEBUG - VN ctest-vn4-59418297 UUID is 0b037581-6f0f-40b6-b04e-447f04f902a1 2025-10-21 11:55:54,176 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0b037581-6f0f-40b6-b04e-447f04f902a1', 'name': 'ctest-vn4-59418297', 'tenant_id': '79d51ff0c14347b7b48f0161601784c9', 'project_id': '79d51ff0c14347b7b48f0161601784c9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0e062cb4-bcf0-4ae0-a79e-df41522c706f', '510ded4b-9e55-4781-9e31-4bc576b30347'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68946726', 'ctest-vn4-59418297'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68946726', 'ctest-policy1-06425156']], 'subnet_ipam': [{'subnet_cidr': '185.237.250.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '23a3:c395:29b2:c822:8ae:274b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-21 11:55:54,338 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-21 11:55:54,634 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-21 11:55:54,663 - DEBUG - Requesting: http://10.0.0.254:8082/domain/cfeef5e4-5e46-4ebb-95dc-130f9b498140 2025-10-21 11:55:54,674 - DEBUG - Requesting: http://10.0.0.254:8082/project/79d51ff0-c143-47b7-b48f-0161601784c9 2025-10-21 11:55:54,744 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0b037581-6f0f-40b6-b04e-447f04f902a1 2025-10-21 11:55:54,755 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0b037581-6f0f-40b6-b04e-447f04f902a1 2025-10-21 11:55:54,765 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/609d3f97-7dbd-4785-88f2-6b6fce3943ea 2025-10-21 11:55:54,771 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/609d3f97-7dbd-4785-88f2-6b6fce3943ea 2025-10-21 11:55:54,778 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c0344393-48d5-4d76-9eb3-e82db3142e9b 2025-10-21 11:55:54,785 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-21 11:55:54,785 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0b037581-6f0f-40b6-b04e-447f04f902a1 2025-10-21 11:55:54,795 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/609d3f97-7dbd-4785-88f2-6b6fce3943ea 2025-10-21 11:55:54,810 - INFO - Verified VN network id 11 for VN 0b037581-6f0f-40b6-b04e-447f04f902a1 2025-10-21 11:55:54,810 - INFO - Verifications in API Server for VN ctest-vn4-59418297 passed 2025-10-21 11:55:54,810 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0b037581-6f0f-40b6-b04e-447f04f902a1 2025-10-21 11:55:54,819 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/609d3f97-7dbd-4785-88f2-6b6fce3943ea 2025-10-21 11:55:54,825 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/609d3f97-7dbd-4785-88f2-6b6fce3943ea 2025-10-21 11:55:54,833 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c0344393-48d5-4d76-9eb3-e82db3142e9b 2025-10-21 11:55:54,846 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68946726:ctest-vn4-59418297', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-68946726', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '793607158121840822', 'uuid-lslong': '12704166911193711265'}, 'enable': 'true', 'created': '2025-10-21T11:55:53', 'last-modified': '2025-10-21T11:55:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.689957'} 2025-10-21 11:55:54,854 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-21 11:55:54,854 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-59418297 passed 2025-10-21 11:55:54,855 - DEBUG - ====Verifying policy data for ctest-vn4-59418297 in API_Server ====== 2025-10-21 11:55:54,855 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-21 11:55:54,862 - DEBUG - Requesting: http://10.0.0.254:8082/domain/cfeef5e4-5e46-4ebb-95dc-130f9b498140 2025-10-21 11:55:54,874 - DEBUG - Requesting: http://10.0.0.254:8082/project/79d51ff0-c143-47b7-b48f-0161601784c9 2025-10-21 11:55:54,953 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0b037581-6f0f-40b6-b04e-447f04f902a1 2025-10-21 11:55:54,965 - DEBUG - ==>Verifying data for policy with id: 07571b44-1887-4e1b-ad1d-aec392d92afe, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68946726', 'ctest-policy1-06425156'] 2025-10-21 11:55:54,965 - INFO - VN ctest-vn4-59418297 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-21 11:55:54,965 - DEBUG - Verifying the vn in opserver 2025-10-21 11:55:54,965 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68946726:ctest-vn4-59418297 virtual network link through opserver 10.0.0.254 2025-10-21 11:55:54,965 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-21 11:55:55,258 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-21 11:55:55,322 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68946726:ctest-vn4-59418297', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68946726:ctest-vn4-59418297?flat'} 2025-10-21 11:55:55,322 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68946726:ctest-vn4-59418297 is found in opserver 2025-10-21 11:55:55,330 - DEBUG - Do not have enough data to verify VN in agent 2025-10-21 11:55:55,335 - DEBUG - VRF ids for VN ctest-vn4-59418297: {} 2025-10-21 11:55:55,335 - DEBUG - ====Verifying data for ctest-policy1-06425156 in API_Server ====== 2025-10-21 11:55:55,335 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-21 11:55:55,340 - DEBUG - Requesting: http://10.0.0.254:8082/domain/cfeef5e4-5e46-4ebb-95dc-130f9b498140 2025-10-21 11:55:55,351 - DEBUG - Requesting: http://10.0.0.254:8082/project/79d51ff0-c143-47b7-b48f-0161601784c9 2025-10-21 11:55:55,419 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/07571b44-1887-4e1b-ad1d-aec392d92afe 2025-10-21 11:55:55,428 - INFO - Verified policy ctest-policy1-06425156 in API Server, Result: True 2025-10-21 11:55:55,428 - INFO - Done with setup and verification, moving onto test .. 2025-10-21 11:55:55,438 - INFO - Deleting VN ctest-vn4-59418297 2025-10-21 11:55:55,555 - DEBUG - Response for deleting network () 2025-10-21 11:55:55,555 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/609d3f97-7dbd-4785-88f2-6b6fce3943ea 2025-10-21 11:55:55,560 - DEBUG - Response Code: 404 2025-10-21 11:55:55,560 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-21 11:55:55,565 - DEBUG - Requesting: http://10.0.0.254:8082/domain/cfeef5e4-5e46-4ebb-95dc-130f9b498140 2025-10-21 11:55:55,619 - DEBUG - Requesting: http://10.0.0.254:8082/project/79d51ff0-c143-47b7-b48f-0161601784c9 2025-10-21 11:55:55,694 - INFO - Validated that VN ctest-vn4-59418297 is not found in API Server 2025-10-21 11:55:55,704 - DEBUG - VN ctest-vn4-59418297 is not present in Agent 10.0.0.254 2025-10-21 11:55:55,704 - INFO - Validated that VN ctest-vn4-59418297 is not in any agent 2025-10-21 11:55:55,719 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-59418297 info 2025-10-21 11:55:55,744 - INFO - Deleted policy ctest-policy1-06425156 2025-10-21 11:55:55,906 - DEBUG - policy ctest-policy1-06425156 is not found in API Server 2025-10-21 11:55:56,159 - DEBUG - No XMPP flaps were noticed during the test