2025-11-19 18:17:31,081 - INFO - Domain Default found not creating 2025-11-19 18:17:31,254 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-36677552 not found, creating it 2025-11-19 18:17:31,682 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-36677552, ID : 579728fe-e55e-40eb-84b2-38228f617c2f 2025-11-19 18:17:33,159 - INFO - ================================================================================ 2025-11-19 18:17:33,159 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-19 18:17:33,418 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.192': '0'}} with 2025-11-19 18:17:33,418 - INFO - Initial checks done. Running the testcase now 2025-11-19 18:17:33,418 - INFO - 2025-11-19 18:17:33,418 - INFO - ================================================================================ 2025-11-19 18:17:33,418 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-19 18:17:33,418 - 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-19 18:17:33,710 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.192': '0'}} with 2025-11-19 18:17:33,710 - INFO - Initial checks done. Running the testcase now 2025-11-19 18:17:33,710 - INFO - 2025-11-19 18:17:34,073 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36677552:ctest-vn4-49503169, 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-36677552:ctest-vn4-49503169, 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-36677552:ctest-vn4-49503169, 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-36677552:ctest-vn4-49503169, 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-19 18:17:34,577 - DEBUG - Response for create_network : {'network': {'id': '534e9625-6b82-419c-8794-88f4e6cb612b', 'name': 'ctest-vn4-49503169', 'tenant_id': '579728fee55e40eb84b238228f617c2f', 'project_id': '579728fee55e40eb84b238228f617c2f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36677552', 'ctest-vn4-49503169'], 'port_security_enabled': True, 'description': ''}} 2025-11-19 18:17:34,752 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bb55bcfa-1540-47cf-b4b2-949ea02243ba', 'name': '', 'tenant_id': '579728fee55e40eb84b238228f617c2f', 'network_id': '534e9625-6b82-419c-8794-88f4e6cb612b', 'ip_version': 4, 'cidr': '191.80.18.192/26', 'allocation_pools': [{'start': '191.80.18.194', 'end': '191.80.18.254'}], 'gateway_ip': '191.80.18.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '191.80.18.194', 'tags': [], 'project_id': '579728fee55e40eb84b238228f617c2f'}} 2025-11-19 18:17:34,913 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a193a1f2-41ac-4b11-af25-d6cf633565ff', 'name': '', 'tenant_id': '579728fee55e40eb84b238228f617c2f', 'network_id': '534e9625-6b82-419c-8794-88f4e6cb612b', 'ip_version': 6, 'cidr': '31d0:7361:d6b6:6009:8cb2:1993::/96', 'allocation_pools': [{'start': '31d0:7361:d6b6:6009:8cb2:1993:0:2', 'end': '31d0:7361:d6b6:6009:8cb2:1993:ffff:fffe'}], 'gateway_ip': '31d0:7361:d6b6:6009:8cb2:1993:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '31d0:7361:d6b6:6009:8cb2:1993:0:2', 'tags': [], 'project_id': '579728fee55e40eb84b238228f617c2f'}} 2025-11-19 18:17:34,934 - INFO - Created VN ctest-vn4-49503169 2025-11-19 18:17:34,985 - DEBUG - VN ctest-vn4-49503169 UUID is 534e9625-6b82-419c-8794-88f4e6cb612b 2025-11-19 18:17:35,194 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '534e9625-6b82-419c-8794-88f4e6cb612b', 'name': 'ctest-vn4-49503169', 'tenant_id': '579728fee55e40eb84b238228f617c2f', 'project_id': '579728fee55e40eb84b238228f617c2f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bb55bcfa-1540-47cf-b4b2-949ea02243ba', 'a193a1f2-41ac-4b11-af25-d6cf633565ff'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36677552', 'ctest-vn4-49503169'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36677552', 'ctest-policy1-88608385']], 'subnet_ipam': [{'subnet_cidr': '191.80.18.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '31d0:7361:d6b6:6009:8cb2:1993::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-19 18:17:35,361 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-19 18:17:35,652 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-19 18:17:35,682 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f68dab00-b5a5-4aed-ac1f-d50821ae4442 2025-11-19 18:17:35,694 - DEBUG - Requesting: http://10.0.0.50:8082/project/579728fe-e55e-40eb-84b2-38228f617c2f 2025-11-19 18:17:35,765 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/534e9625-6b82-419c-8794-88f4e6cb612b 2025-11-19 18:17:35,780 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/534e9625-6b82-419c-8794-88f4e6cb612b 2025-11-19 18:17:35,791 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6d6ea95d-cd50-4ef2-a898-b9e02b855fdd 2025-11-19 18:17:35,798 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6d6ea95d-cd50-4ef2-a898-b9e02b855fdd 2025-11-19 18:17:35,806 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/1a4bb0a7-68ed-4b9e-a217-71a2db9e519b 2025-11-19 18:17:35,813 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-19 18:17:35,813 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/534e9625-6b82-419c-8794-88f4e6cb612b 2025-11-19 18:17:35,823 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6d6ea95d-cd50-4ef2-a898-b9e02b855fdd 2025-11-19 18:17:35,836 - INFO - Verified VN network id 11 for VN 534e9625-6b82-419c-8794-88f4e6cb612b 2025-11-19 18:17:35,836 - INFO - Verifications in API Server for VN ctest-vn4-49503169 passed 2025-11-19 18:17:35,836 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/534e9625-6b82-419c-8794-88f4e6cb612b 2025-11-19 18:17:35,847 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6d6ea95d-cd50-4ef2-a898-b9e02b855fdd 2025-11-19 18:17:35,855 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6d6ea95d-cd50-4ef2-a898-b9e02b855fdd 2025-11-19 18:17:35,863 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/1a4bb0a7-68ed-4b9e-a217-71a2db9e519b 2025-11-19 18:17:35,875 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36677552:ctest-vn4-49503169', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-36677552', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6002900440793104796', 'uuid-lslong': '9769584077098934571'}, 'enable': 'true', 'created': '2025-11-19T18:17:34', 'last-modified': '2025-11-19T18:17:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.704858'} 2025-11-19 18:17:35,881 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-19 18:17:35,881 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-49503169 passed 2025-11-19 18:17:35,881 - DEBUG - ====Verifying policy data for ctest-vn4-49503169 in API_Server ====== 2025-11-19 18:17:35,881 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-19 18:17:35,887 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f68dab00-b5a5-4aed-ac1f-d50821ae4442 2025-11-19 18:17:35,897 - DEBUG - Requesting: http://10.0.0.50:8082/project/579728fe-e55e-40eb-84b2-38228f617c2f 2025-11-19 18:17:35,964 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/534e9625-6b82-419c-8794-88f4e6cb612b 2025-11-19 18:17:35,975 - DEBUG - ==>Verifying data for policy with id: 44c11add-5667-4280-a762-9789cdd7018d, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36677552', 'ctest-policy1-88608385'] 2025-11-19 18:17:35,975 - INFO - VN ctest-vn4-49503169 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-19 18:17:35,975 - DEBUG - Verifying the vn in opserver 2025-11-19 18:17:35,975 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36677552:ctest-vn4-49503169 virtual network link through opserver 10.0.0.50 2025-11-19 18:17:35,975 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-19 18:17:36,271 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-19 18:17:36,348 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36677552:ctest-vn4-49503169', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36677552:ctest-vn4-49503169?flat'} 2025-11-19 18:17:36,348 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36677552:ctest-vn4-49503169 is found in opserver 2025-11-19 18:17:36,358 - DEBUG - Do not have enough data to verify VN in agent 2025-11-19 18:17:36,363 - DEBUG - VRF ids for VN ctest-vn4-49503169: {} 2025-11-19 18:17:36,363 - DEBUG - ====Verifying data for ctest-policy1-88608385 in API_Server ====== 2025-11-19 18:17:36,363 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-19 18:17:36,368 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f68dab00-b5a5-4aed-ac1f-d50821ae4442 2025-11-19 18:17:36,378 - DEBUG - Requesting: http://10.0.0.50:8082/project/579728fe-e55e-40eb-84b2-38228f617c2f 2025-11-19 18:17:36,446 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/44c11add-5667-4280-a762-9789cdd7018d 2025-11-19 18:17:36,455 - INFO - Verified policy ctest-policy1-88608385 in API Server, Result: True 2025-11-19 18:17:36,455 - INFO - Done with setup and verification, moving onto test .. 2025-11-19 18:17:36,463 - INFO - Deleting VN ctest-vn4-49503169 2025-11-19 18:17:36,578 - DEBUG - Response for deleting network () 2025-11-19 18:17:36,579 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6d6ea95d-cd50-4ef2-a898-b9e02b855fdd 2025-11-19 18:17:36,584 - DEBUG - Response Code: 404 2025-11-19 18:17:36,584 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-19 18:17:36,590 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f68dab00-b5a5-4aed-ac1f-d50821ae4442 2025-11-19 18:17:36,645 - DEBUG - Requesting: http://10.0.0.50:8082/project/579728fe-e55e-40eb-84b2-38228f617c2f 2025-11-19 18:17:36,710 - INFO - Validated that VN ctest-vn4-49503169 is not found in API Server 2025-11-19 18:17:36,719 - DEBUG - VN ctest-vn4-49503169 is not present in Agent 10.0.0.50 2025-11-19 18:17:36,719 - INFO - Validated that VN ctest-vn4-49503169 is not in any agent 2025-11-19 18:17:36,733 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-49503169 info 2025-11-19 18:17:36,757 - INFO - Deleted policy ctest-policy1-88608385 2025-11-19 18:17:36,925 - DEBUG - policy ctest-policy1-88608385 is not found in API Server 2025-11-19 18:17:37,177 - DEBUG - No XMPP flaps were noticed during the test 2025-11-19 18:17:37,177 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-11-19 18:17:37,177 - INFO - -------------------------------------------------------------------------------- 2025-11-19 18:17:37,470 - DEBUG - No XMPP flaps were noticed during the test 2025-11-19 18:17:37,470 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-11-19 18:17:37,471 - INFO - -------------------------------------------------------------------------------- 2025-11-19 18:17:38,168 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-36677552, ID : 579728fe-e55e-40eb-84b2-38228f617c2f