2025-10-08 12:49:41,179 - INFO - Domain Default found not creating 2025-10-08 12:49:41,315 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-11898339 not found, creating it 2025-10-08 12:49:41,752 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-11898339, ID : f0967184-33a9-4375-9642-63aaf9a2209f 2025-10-08 12:49:43,078 - INFO - ================================================================================ 2025-10-08 12:49:43,078 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-08 12:49:43,330 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-10-08 12:49:43,330 - INFO - Initial checks done. Running the testcase now 2025-10-08 12:49:43,330 - INFO - 2025-10-08 12:49:43,330 - INFO - ================================================================================ 2025-10-08 12:49:43,330 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-08 12:49:43,331 - 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-08 12:49:43,619 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-10-08 12:49:43,619 - INFO - Initial checks done. Running the testcase now 2025-10-08 12:49:43,619 - INFO - 2025-10-08 12:49:43,971 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11898339:ctest-vn4-01554419, 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-11898339:ctest-vn4-01554419, 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-11898339:ctest-vn4-01554419, 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-11898339:ctest-vn4-01554419, 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-08 12:49:44,452 - DEBUG - Response for create_network : {'network': {'id': '16f2437c-0646-409f-a056-a1529e5852fe', 'name': 'ctest-vn4-01554419', 'tenant_id': 'f096718433a94375964263aaf9a2209f', 'project_id': 'f096718433a94375964263aaf9a2209f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11898339', 'ctest-vn4-01554419'], 'port_security_enabled': True, 'description': ''}} 2025-10-08 12:49:44,642 - DEBUG - Response for create_subnet : {'subnet': {'id': '62cd4556-5d40-4db6-b0ca-5714add844ca', 'name': '', 'tenant_id': 'f096718433a94375964263aaf9a2209f', 'network_id': '16f2437c-0646-409f-a056-a1529e5852fe', 'ip_version': 4, 'cidr': '135.107.110.128/26', 'allocation_pools': [{'start': '135.107.110.130', 'end': '135.107.110.190'}], 'gateway_ip': '135.107.110.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '135.107.110.130', 'tags': [], 'project_id': 'f096718433a94375964263aaf9a2209f'}} 2025-10-08 12:49:44,780 - DEBUG - Response for create_subnet : {'subnet': {'id': 'acdf4e7d-f866-4fd9-9644-005b31b9c375', 'name': '', 'tenant_id': 'f096718433a94375964263aaf9a2209f', 'network_id': '16f2437c-0646-409f-a056-a1529e5852fe', 'ip_version': 6, 'cidr': '3381:9e56:883d:dbb9:da35:995b::/96', 'allocation_pools': [{'start': '3381:9e56:883d:dbb9:da35:995b:0:2', 'end': '3381:9e56:883d:dbb9:da35:995b:ffff:fffe'}], 'gateway_ip': '3381:9e56:883d:dbb9:da35:995b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3381:9e56:883d:dbb9:da35:995b:0:2', 'tags': [], 'project_id': 'f096718433a94375964263aaf9a2209f'}} 2025-10-08 12:49:44,802 - INFO - Created VN ctest-vn4-01554419 2025-10-08 12:49:44,854 - DEBUG - VN ctest-vn4-01554419 UUID is 16f2437c-0646-409f-a056-a1529e5852fe 2025-10-08 12:49:45,027 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '16f2437c-0646-409f-a056-a1529e5852fe', 'name': 'ctest-vn4-01554419', 'tenant_id': 'f096718433a94375964263aaf9a2209f', 'project_id': 'f096718433a94375964263aaf9a2209f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['62cd4556-5d40-4db6-b0ca-5714add844ca', 'acdf4e7d-f866-4fd9-9644-005b31b9c375'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11898339', 'ctest-vn4-01554419'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11898339', 'ctest-policy1-16094927']], 'subnet_ipam': [{'subnet_cidr': '135.107.110.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3381:9e56:883d:dbb9:da35:995b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-08 12:49:45,190 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-08 12:49:45,483 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-08 12:49:45,513 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ccda1354-36e4-4eba-bf2a-3d55d380c7d4 2025-10-08 12:49:45,524 - DEBUG - Requesting: http://10.0.0.254:8082/project/f0967184-33a9-4375-9642-63aaf9a2209f 2025-10-08 12:49:45,595 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/16f2437c-0646-409f-a056-a1529e5852fe 2025-10-08 12:49:45,607 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/16f2437c-0646-409f-a056-a1529e5852fe 2025-10-08 12:49:45,616 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/69c8b8f5-ce72-4c17-aae8-5f9506822d55 2025-10-08 12:49:45,622 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/69c8b8f5-ce72-4c17-aae8-5f9506822d55 2025-10-08 12:49:45,627 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/ec1a1723-e0d8-4bea-be3d-cc175efa0369 2025-10-08 12:49:45,632 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-08 12:49:45,632 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/16f2437c-0646-409f-a056-a1529e5852fe 2025-10-08 12:49:45,640 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/69c8b8f5-ce72-4c17-aae8-5f9506822d55 2025-10-08 12:49:45,651 - INFO - Verified VN network id 11 for VN 16f2437c-0646-409f-a056-a1529e5852fe 2025-10-08 12:49:45,651 - INFO - Verifications in API Server for VN ctest-vn4-01554419 passed 2025-10-08 12:49:45,651 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/16f2437c-0646-409f-a056-a1529e5852fe 2025-10-08 12:49:45,658 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/69c8b8f5-ce72-4c17-aae8-5f9506822d55 2025-10-08 12:49:45,664 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/69c8b8f5-ce72-4c17-aae8-5f9506822d55 2025-10-08 12:49:45,669 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/ec1a1723-e0d8-4bea-be3d-cc175efa0369 2025-10-08 12:49:45,678 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11898339:ctest-vn4-01554419', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-11898339', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1653458213158666399', 'uuid-lslong': '11553599270281564926'}, 'enable': 'true', 'created': '2025-10-08T12:49:44', 'last-modified': '2025-10-08T12:49:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.671628'} 2025-10-08 12:49:45,683 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-08 12:49:45,683 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-01554419 passed 2025-10-08 12:49:45,683 - DEBUG - ====Verifying policy data for ctest-vn4-01554419 in API_Server ====== 2025-10-08 12:49:45,683 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-08 12:49:45,687 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ccda1354-36e4-4eba-bf2a-3d55d380c7d4 2025-10-08 12:49:45,697 - DEBUG - Requesting: http://10.0.0.254:8082/project/f0967184-33a9-4375-9642-63aaf9a2209f 2025-10-08 12:49:45,762 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/16f2437c-0646-409f-a056-a1529e5852fe 2025-10-08 12:49:45,770 - DEBUG - ==>Verifying data for policy with id: cf51d721-93a6-4b23-a92f-b64be4c745fb, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11898339', 'ctest-policy1-16094927'] 2025-10-08 12:49:45,770 - INFO - VN ctest-vn4-01554419 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-08 12:49:45,770 - DEBUG - Verifying the vn in opserver 2025-10-08 12:49:45,771 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11898339:ctest-vn4-01554419 virtual network link through opserver 10.0.0.254 2025-10-08 12:49:45,771 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-08 12:49:46,064 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-08 12:49:46,110 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11898339:ctest-vn4-01554419', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11898339:ctest-vn4-01554419?flat'} 2025-10-08 12:49:46,111 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11898339:ctest-vn4-01554419 is found in opserver 2025-10-08 12:49:46,122 - DEBUG - Do not have enough data to verify VN in agent 2025-10-08 12:49:46,126 - DEBUG - VRF ids for VN ctest-vn4-01554419: {} 2025-10-08 12:49:46,126 - DEBUG - ====Verifying data for ctest-policy1-16094927 in API_Server ====== 2025-10-08 12:49:46,126 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-08 12:49:46,131 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ccda1354-36e4-4eba-bf2a-3d55d380c7d4 2025-10-08 12:49:46,140 - DEBUG - Requesting: http://10.0.0.254:8082/project/f0967184-33a9-4375-9642-63aaf9a2209f 2025-10-08 12:49:46,207 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/cf51d721-93a6-4b23-a92f-b64be4c745fb 2025-10-08 12:49:46,215 - INFO - Verified policy ctest-policy1-16094927 in API Server, Result: True 2025-10-08 12:49:46,215 - INFO - Done with setup and verification, moving onto test .. 2025-10-08 12:49:46,221 - INFO - Deleting VN ctest-vn4-01554419 2025-10-08 12:49:46,322 - DEBUG - Response for deleting network () 2025-10-08 12:49:46,322 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/69c8b8f5-ce72-4c17-aae8-5f9506822d55 2025-10-08 12:49:46,327 - DEBUG - Response Code: 404 2025-10-08 12:49:46,327 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-08 12:49:46,333 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ccda1354-36e4-4eba-bf2a-3d55d380c7d4 2025-10-08 12:49:46,386 - DEBUG - Requesting: http://10.0.0.254:8082/project/f0967184-33a9-4375-9642-63aaf9a2209f 2025-10-08 12:49:46,455 - INFO - Validated that VN ctest-vn4-01554419 is not found in API Server 2025-10-08 12:49:46,463 - DEBUG - VN ctest-vn4-01554419 is not present in Agent 10.0.0.254 2025-10-08 12:49:46,463 - INFO - Validated that VN ctest-vn4-01554419 is not in any agent 2025-10-08 12:49:46,475 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-01554419 info 2025-10-08 12:49:46,495 - INFO - Deleted policy ctest-policy1-16094927 2025-10-08 12:49:46,662 - DEBUG - policy ctest-policy1-16094927 is not found in API Server 2025-10-08 12:49:46,914 - DEBUG - No XMPP flaps were noticed during the test
2025-10-08 12:49:46,914 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03]
2025-10-08 12:49:46,914 - INFO - -------------------------------------------------------------------------------- 2025-10-08 12:49:47,202 - DEBUG - No XMPP flaps were noticed during the test
2025-10-08 12:49:47,202 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-08 12:49:47,202 - INFO - -------------------------------------------------------------------------------- 2025-10-08 12:49:47,870 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-11898339, ID : f0967184-33a9-4375-9642-63aaf9a2209f