2025-08-14 02:27:18,113 - INFO - Domain Default found not creating 2025-08-14 02:27:18,236 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-75978351 not found, creating it 2025-08-14 02:27:18,757 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-75978351, ID : 1e088011-133a-408e-809f-5c8e671b5c6d 2025-08-14 02:27:20,136 - INFO - ================================================================================ 2025-08-14 02:27:20,136 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-14 02:27:21,383 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.129': '0', '10.20.0.193': '0'}, '10.0.0.130': {'10.20.0.193': '0', '10.20.0.25': '0'}} with 2025-08-14 02:27:21,383 - INFO - Initial checks done. Running the testcase now 2025-08-14 02:27:21,383 - INFO - 2025-08-14 02:27:21,383 - INFO - ================================================================================ 2025-08-14 02:27:21,383 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-14 02:27:21,383 - 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-08-14 02:27:22,636 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.129': '0', '10.20.0.193': '0'}, '10.0.0.130': {'10.20.0.193': '0', '10.20.0.25': '0'}} with 2025-08-14 02:27:22,636 - INFO - Initial checks done. Running the testcase now 2025-08-14 02:27:22,636 - INFO - 2025-08-14 02:27:22,980 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75978351:ctest-vn4-87849862, 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-75978351:ctest-vn4-87849862, 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-75978351:ctest-vn4-87849862, 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-75978351:ctest-vn4-87849862, 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-08-14 02:27:23,527 - DEBUG - Response for create_network : {'network': {'id': 'e4a57d9c-0187-4545-b898-5876637146d1', 'name': 'ctest-vn4-87849862', 'tenant_id': '1e088011133a408e809f5c8e671b5c6d', 'project_id': '1e088011133a408e809f5c8e671b5c6d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-75978351', 'ctest-vn4-87849862'], 'port_security_enabled': True, 'description': ''}} 2025-08-14 02:27:23,799 - DEBUG - Response for create_subnet : {'subnet': {'id': '586e780b-a7d8-4673-a7a6-2f92cbd8b193', 'name': '', 'tenant_id': '1e088011133a408e809f5c8e671b5c6d', 'network_id': 'e4a57d9c-0187-4545-b898-5876637146d1', 'ip_version': 4, 'cidr': '72.26.0.192/26', 'allocation_pools': [{'start': '72.26.0.194', 'end': '72.26.0.254'}], 'gateway_ip': '72.26.0.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '72.26.0.194', 'tags': [], 'project_id': '1e088011133a408e809f5c8e671b5c6d'}} 2025-08-14 02:27:24,043 - DEBUG - Response for create_subnet : {'subnet': {'id': '951385bc-78d1-4882-b63b-310990fa7b81', 'name': '', 'tenant_id': '1e088011133a408e809f5c8e671b5c6d', 'network_id': 'e4a57d9c-0187-4545-b898-5876637146d1', 'ip_version': 6, 'cidr': '33e9:26ee:2ce5:3ade:c06f:9da7::/96', 'allocation_pools': [{'start': '33e9:26ee:2ce5:3ade:c06f:9da7:0:2', 'end': '33e9:26ee:2ce5:3ade:c06f:9da7:ffff:fffe'}], 'gateway_ip': '33e9:26ee:2ce5:3ade:c06f:9da7:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '33e9:26ee:2ce5:3ade:c06f:9da7:0:2', 'tags': [], 'project_id': '1e088011133a408e809f5c8e671b5c6d'}} 2025-08-14 02:27:24,067 - INFO - Created VN ctest-vn4-87849862 2025-08-14 02:27:24,081 - DEBUG - VN ctest-vn4-87849862 UUID is e4a57d9c-0187-4545-b898-5876637146d1 2025-08-14 02:27:24,271 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e4a57d9c-0187-4545-b898-5876637146d1', 'name': 'ctest-vn4-87849862', 'tenant_id': '1e088011133a408e809f5c8e671b5c6d', 'project_id': '1e088011133a408e809f5c8e671b5c6d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['586e780b-a7d8-4673-a7a6-2f92cbd8b193', '951385bc-78d1-4882-b63b-310990fa7b81'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-75978351', 'ctest-vn4-87849862'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-75978351', 'ctest-policy1-41622918']], 'subnet_ipam': [{'subnet_cidr': '72.26.0.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '33e9:26ee:2ce5:3ade:c06f:9da7::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-14 02:27:24,392 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-14 02:27:24,682 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-14 02:27:24,719 - DEBUG - Requesting: http://10.0.0.38:8082/domain/16362ee5-4ea2-4ad6-8a9c-e34af37c4ada 2025-08-14 02:27:24,735 - DEBUG - Requesting: http://10.0.0.38:8082/project/1e088011-133a-408e-809f-5c8e671b5c6d 2025-08-14 02:27:24,825 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e4a57d9c-0187-4545-b898-5876637146d1 2025-08-14 02:27:24,840 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e4a57d9c-0187-4545-b898-5876637146d1 2025-08-14 02:27:24,850 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a7c1d31c-8135-4ea3-9b15-f2e9eb8b4c5e 2025-08-14 02:27:24,858 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a7c1d31c-8135-4ea3-9b15-f2e9eb8b4c5e 2025-08-14 02:27:24,864 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/7a653820-a185-4d9f-b8d3-98b6a65a1bac 2025-08-14 02:27:24,871 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-14 02:27:24,871 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e4a57d9c-0187-4545-b898-5876637146d1 2025-08-14 02:27:24,880 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a7c1d31c-8135-4ea3-9b15-f2e9eb8b4c5e 2025-08-14 02:27:24,895 - INFO - Verified VN network id 13 for VN e4a57d9c-0187-4545-b898-5876637146d1 2025-08-14 02:27:24,895 - INFO - Verifications in API Server for VN ctest-vn4-87849862 passed 2025-08-14 02:27:24,895 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e4a57d9c-0187-4545-b898-5876637146d1 2025-08-14 02:27:24,906 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a7c1d31c-8135-4ea3-9b15-f2e9eb8b4c5e 2025-08-14 02:27:24,913 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a7c1d31c-8135-4ea3-9b15-f2e9eb8b4c5e 2025-08-14 02:27:24,919 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/7a653820-a185-4d9f-b8d3-98b6a65a1bac 2025-08-14 02:27:24,932 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75978351:ctest-vn4-87849862', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-75978351', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16475712920798840133', 'uuid-lslong': '13301478764936513233'}, 'enable': 'true', 'created': '2025-08-14T02:27:23', 'last-modified': '2025-08-14T02:27:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.707627'} 2025-08-14 02:27:24,940 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-14 02:27:24,946 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75978351:ctest-vn4-87849862', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-75978351', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16475712920798840133', 'uuid-lslong': '13301478764936513233'}, 'enable': 'true', 'created': '2025-08-14T02:27:23', 'last-modified': '2025-08-14T02:27:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.724794'} 2025-08-14 02:27:24,952 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-14 02:27:24,958 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75978351:ctest-vn4-87849862', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-75978351', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16475712920798840133', 'uuid-lslong': '13301478764936513233'}, 'enable': 'true', 'created': '2025-08-14T02:27:23', 'last-modified': '2025-08-14T02:27:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.732904'} 2025-08-14 02:27:24,964 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-14 02:27:24,964 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-87849862 passed 2025-08-14 02:27:24,964 - DEBUG - ====Verifying policy data for ctest-vn4-87849862 in API_Server ====== 2025-08-14 02:27:24,964 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-14 02:27:24,970 - DEBUG - Requesting: http://10.0.0.38:8082/domain/16362ee5-4ea2-4ad6-8a9c-e34af37c4ada 2025-08-14 02:27:24,982 - DEBUG - Requesting: http://10.0.0.38:8082/project/1e088011-133a-408e-809f-5c8e671b5c6d 2025-08-14 02:27:25,085 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e4a57d9c-0187-4545-b898-5876637146d1 2025-08-14 02:27:25,096 - DEBUG - ==>Verifying data for policy with id: 028b979b-86f7-43d3-a19a-bde51d43f6d0, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-75978351', 'ctest-policy1-41622918'] 2025-08-14 02:27:25,096 - INFO - VN ctest-vn4-87849862 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-14 02:27:25,096 - DEBUG - Verifying the vn in opserver 2025-08-14 02:27:25,097 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75978351:ctest-vn4-87849862 virtual network link through opserver 10.0.0.38 2025-08-14 02:27:25,097 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-14 02:27:25,389 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-14 02:27:25,444 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75978351:ctest-vn4-87849862', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75978351:ctest-vn4-87849862?flat'} 2025-08-14 02:27:25,444 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75978351:ctest-vn4-87849862 virtual network link through opserver 10.0.0.27 2025-08-14 02:27:25,444 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-08-14 02:27:25,732 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-08-14 02:27:25,786 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75978351:ctest-vn4-87849862', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75978351:ctest-vn4-87849862?flat'} 2025-08-14 02:27:25,786 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75978351:ctest-vn4-87849862 virtual network link through opserver 10.0.0.23 2025-08-14 02:27:25,786 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-08-14 02:27:26,074 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-08-14 02:27:26,128 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75978351:ctest-vn4-87849862', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75978351:ctest-vn4-87849862?flat'} 2025-08-14 02:27:26,128 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75978351:ctest-vn4-87849862 is found in opserver 2025-08-14 02:27:26,152 - DEBUG - Do not have enough data to verify VN in agent 2025-08-14 02:27:26,162 - DEBUG - VRF ids for VN ctest-vn4-87849862: {} 2025-08-14 02:27:26,163 - DEBUG - ====Verifying data for ctest-policy1-41622918 in API_Server ====== 2025-08-14 02:27:26,163 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-14 02:27:26,169 - DEBUG - Requesting: http://10.0.0.38:8082/domain/16362ee5-4ea2-4ad6-8a9c-e34af37c4ada 2025-08-14 02:27:26,181 - DEBUG - Requesting: http://10.0.0.38:8082/project/1e088011-133a-408e-809f-5c8e671b5c6d 2025-08-14 02:27:26,268 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/028b979b-86f7-43d3-a19a-bde51d43f6d0 2025-08-14 02:27:26,284 - INFO - Verified policy ctest-policy1-41622918 in API Server, Result: True 2025-08-14 02:27:26,284 - INFO - Done with setup and verification, moving onto test .. 2025-08-14 02:27:26,300 - INFO - Deleting VN ctest-vn4-87849862 2025-08-14 02:27:26,545 - DEBUG - Response for deleting network () 2025-08-14 02:27:26,545 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a7c1d31c-8135-4ea3-9b15-f2e9eb8b4c5e 2025-08-14 02:27:26,552 - DEBUG - Response Code: 404 2025-08-14 02:27:26,552 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-14 02:27:26,563 - DEBUG - Requesting: http://10.0.0.38:8082/domain/16362ee5-4ea2-4ad6-8a9c-e34af37c4ada 2025-08-14 02:27:26,576 - DEBUG - Requesting: http://10.0.0.38:8082/project/1e088011-133a-408e-809f-5c8e671b5c6d 2025-08-14 02:27:26,714 - INFO - Validated that VN ctest-vn4-87849862 is not found in API Server 2025-08-14 02:27:26,733 - DEBUG - VN ctest-vn4-87849862 is not present in Agent 10.0.0.65 2025-08-14 02:27:26,745 - DEBUG - VN ctest-vn4-87849862 is not present in Agent 10.0.0.130 2025-08-14 02:27:26,745 - INFO - Validated that VN ctest-vn4-87849862 is not in any agent 2025-08-14 02:27:26,777 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-87849862 info 2025-08-14 02:27:26,823 - INFO - Deleted policy ctest-policy1-41622918 2025-08-14 02:27:27,031 - DEBUG - policy ctest-policy1-41622918 is not found in API Server 2025-08-14 02:27:28,303 - DEBUG - No XMPP flaps were noticed during the test