2025-07-31 02:22:15,722 - INFO - Domain Default found not creating 2025-07-31 02:22:15,861 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-54983825 not found, creating it 2025-07-31 02:22:16,307 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-54983825, ID : 3059c2e4-99e3-4b34-9ca6-d9711b99ed40 2025-07-31 02:22:17,671 - INFO - ================================================================================ 2025-07-31 02:22:17,672 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-07-31 02:22:17,928 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-07-31 02:22:17,929 - INFO - Initial checks done. Running the testcase now 2025-07-31 02:22:17,929 - INFO - 2025-07-31 02:22:17,929 - INFO - ================================================================================ 2025-07-31 02:22:17,929 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-07-31 02:22:17,929 - 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-07-31 02:22:18,216 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-07-31 02:22:18,216 - INFO - Initial checks done. Running the testcase now 2025-07-31 02:22:18,217 - INFO - 2025-07-31 02:22:18,558 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54983825:ctest-vn4-99086730, 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-54983825:ctest-vn4-99086730, 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-54983825:ctest-vn4-99086730, 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-54983825:ctest-vn4-99086730, 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-07-31 02:22:19,070 - DEBUG - Response for create_network : {'network': {'id': '8378e5d9-6aae-4663-a9b6-764c7b0d2fb7', 'name': 'ctest-vn4-99086730', 'tenant_id': '3059c2e499e34b349ca6d9711b99ed40', 'project_id': '3059c2e499e34b349ca6d9711b99ed40', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-54983825', 'ctest-vn4-99086730'], 'port_security_enabled': True, 'description': ''}} 2025-07-31 02:22:19,291 - DEBUG - Response for create_subnet : {'subnet': {'id': '7a8ca099-825a-405c-856e-636b6c9c382b', 'name': '', 'tenant_id': '3059c2e499e34b349ca6d9711b99ed40', 'network_id': '8378e5d9-6aae-4663-a9b6-764c7b0d2fb7', 'ip_version': 4, 'cidr': '160.237.97.0/26', 'allocation_pools': [{'start': '160.237.97.2', 'end': '160.237.97.62'}], 'gateway_ip': '160.237.97.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '160.237.97.2', 'tags': [], 'project_id': '3059c2e499e34b349ca6d9711b99ed40'}} 2025-07-31 02:22:19,509 - DEBUG - Response for create_subnet : {'subnet': {'id': '2a43cd70-09ea-4755-9154-dde414df6e43', 'name': '', 'tenant_id': '3059c2e499e34b349ca6d9711b99ed40', 'network_id': '8378e5d9-6aae-4663-a9b6-764c7b0d2fb7', 'ip_version': 6, 'cidr': '3075:b64f:e7af:f2d6:9abc:27fa::/96', 'allocation_pools': [{'start': '3075:b64f:e7af:f2d6:9abc:27fa:0:2', 'end': '3075:b64f:e7af:f2d6:9abc:27fa:ffff:fffe'}], 'gateway_ip': '3075:b64f:e7af:f2d6:9abc:27fa:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3075:b64f:e7af:f2d6:9abc:27fa:0:2', 'tags': [], 'project_id': '3059c2e499e34b349ca6d9711b99ed40'}} 2025-07-31 02:22:19,528 - INFO - Created VN ctest-vn4-99086730 2025-07-31 02:22:19,579 - DEBUG - VN ctest-vn4-99086730 UUID is 8378e5d9-6aae-4663-a9b6-764c7b0d2fb7 2025-07-31 02:22:19,771 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8378e5d9-6aae-4663-a9b6-764c7b0d2fb7', 'name': 'ctest-vn4-99086730', 'tenant_id': '3059c2e499e34b349ca6d9711b99ed40', 'project_id': '3059c2e499e34b349ca6d9711b99ed40', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7a8ca099-825a-405c-856e-636b6c9c382b', '2a43cd70-09ea-4755-9154-dde414df6e43'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-54983825', 'ctest-vn4-99086730'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-54983825', 'ctest-policy1-00549397']], 'subnet_ipam': [{'subnet_cidr': '160.237.97.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3075:b64f:e7af:f2d6:9abc:27fa::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-31 02:22:19,939 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-31 02:22:20,230 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-31 02:22:20,257 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7c781461-8e55-4dfa-9cdf-42892b481a4b 2025-07-31 02:22:20,270 - DEBUG - Requesting: http://10.0.0.254:8082/project/3059c2e4-99e3-4b34-9ca6-d9711b99ed40 2025-07-31 02:22:20,350 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8378e5d9-6aae-4663-a9b6-764c7b0d2fb7 2025-07-31 02:22:20,363 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8378e5d9-6aae-4663-a9b6-764c7b0d2fb7 2025-07-31 02:22:20,376 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bd9970fb-ae43-4e6e-b33f-a3c744a92ffb 2025-07-31 02:22:20,384 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bd9970fb-ae43-4e6e-b33f-a3c744a92ffb 2025-07-31 02:22:20,391 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/de23e59d-bb94-4031-a8d8-c6a253d17388 2025-07-31 02:22:20,396 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-31 02:22:20,396 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8378e5d9-6aae-4663-a9b6-764c7b0d2fb7 2025-07-31 02:22:20,407 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bd9970fb-ae43-4e6e-b33f-a3c744a92ffb 2025-07-31 02:22:20,423 - INFO - Verified VN network id 11 for VN 8378e5d9-6aae-4663-a9b6-764c7b0d2fb7 2025-07-31 02:22:20,423 - INFO - Verifications in API Server for VN ctest-vn4-99086730 passed 2025-07-31 02:22:20,423 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8378e5d9-6aae-4663-a9b6-764c7b0d2fb7 2025-07-31 02:22:20,435 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bd9970fb-ae43-4e6e-b33f-a3c744a92ffb 2025-07-31 02:22:20,442 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bd9970fb-ae43-4e6e-b33f-a3c744a92ffb 2025-07-31 02:22:20,450 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/de23e59d-bb94-4031-a8d8-c6a253d17388 2025-07-31 02:22:20,463 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54983825:ctest-vn4-99086730', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-54983825', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9473574538134308451', 'uuid-lslong': '12229091909025214391'}, 'enable': 'true', 'created': '2025-07-31T02:22:19', 'last-modified': '2025-07-31T02:22:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.722192'} 2025-07-31 02:22:20,470 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-31 02:22:20,471 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-99086730 passed 2025-07-31 02:22:20,471 - DEBUG - ====Verifying policy data for ctest-vn4-99086730 in API_Server ====== 2025-07-31 02:22:20,471 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-31 02:22:20,476 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7c781461-8e55-4dfa-9cdf-42892b481a4b 2025-07-31 02:22:20,488 - DEBUG - Requesting: http://10.0.0.254:8082/project/3059c2e4-99e3-4b34-9ca6-d9711b99ed40 2025-07-31 02:22:20,557 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8378e5d9-6aae-4663-a9b6-764c7b0d2fb7 2025-07-31 02:22:20,567 - DEBUG - ==>Verifying data for policy with id: 88898e56-564b-451d-808e-e712f107b44f, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-54983825', 'ctest-policy1-00549397'] 2025-07-31 02:22:20,567 - INFO - VN ctest-vn4-99086730 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-31 02:22:20,567 - DEBUG - Verifying the vn in opserver 2025-07-31 02:22:20,567 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54983825:ctest-vn4-99086730 virtual network link through opserver 10.0.0.254 2025-07-31 02:22:20,567 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-07-31 02:22:20,857 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-07-31 02:22:20,906 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54983825:ctest-vn4-99086730', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54983825:ctest-vn4-99086730?flat'} 2025-07-31 02:22:20,906 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54983825:ctest-vn4-99086730 is found in opserver 2025-07-31 02:22:20,916 - DEBUG - Do not have enough data to verify VN in agent 2025-07-31 02:22:20,921 - DEBUG - VRF ids for VN ctest-vn4-99086730: {} 2025-07-31 02:22:20,922 - DEBUG - ====Verifying data for ctest-policy1-00549397 in API_Server ====== 2025-07-31 02:22:20,922 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-31 02:22:20,927 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7c781461-8e55-4dfa-9cdf-42892b481a4b 2025-07-31 02:22:20,938 - DEBUG - Requesting: http://10.0.0.254:8082/project/3059c2e4-99e3-4b34-9ca6-d9711b99ed40 2025-07-31 02:22:21,016 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/88898e56-564b-451d-808e-e712f107b44f 2025-07-31 02:22:21,026 - INFO - Verified policy ctest-policy1-00549397 in API Server, Result: True 2025-07-31 02:22:21,027 - INFO - Done with setup and verification, moving onto test .. 2025-07-31 02:22:21,034 - INFO - Deleting VN ctest-vn4-99086730 2025-07-31 02:22:21,147 - DEBUG - Response for deleting network () 2025-07-31 02:22:21,147 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bd9970fb-ae43-4e6e-b33f-a3c744a92ffb 2025-07-31 02:22:21,152 - DEBUG - Response Code: 404 2025-07-31 02:22:21,152 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-31 02:22:21,157 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7c781461-8e55-4dfa-9cdf-42892b481a4b 2025-07-31 02:22:21,210 - DEBUG - Requesting: http://10.0.0.254:8082/project/3059c2e4-99e3-4b34-9ca6-d9711b99ed40 2025-07-31 02:22:21,283 - INFO - Validated that VN ctest-vn4-99086730 is not found in API Server 2025-07-31 02:22:21,293 - DEBUG - VN ctest-vn4-99086730 is not present in Agent 10.0.0.254 2025-07-31 02:22:21,293 - INFO - Validated that VN ctest-vn4-99086730 is not in any agent 2025-07-31 02:22:21,310 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-99086730 info 2025-07-31 02:22:21,331 - INFO - Deleted policy ctest-policy1-00549397 2025-07-31 02:22:21,499 - DEBUG - policy ctest-policy1-00549397 is not found in API Server 2025-07-31 02:22:21,753 - DEBUG - No XMPP flaps were noticed during the test 2025-07-31 02:22:21,753 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-07-31 02:22:21,753 - INFO - -------------------------------------------------------------------------------- 2025-07-31 02:22:22,048 - DEBUG - No XMPP flaps were noticed during the test 2025-07-31 02:22:22,048 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-07-31 02:22:22,048 - INFO - -------------------------------------------------------------------------------- 2025-07-31 02:22:22,717 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-54983825, ID : 3059c2e4-99e3-4b34-9ca6-d9711b99ed40