2025-08-02 23:36:32,813 - INFO - Domain Default found not creating 2025-08-02 23:36:33,026 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-87683684 not found, creating it 2025-08-02 23:36:33,672 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-87683684, ID : 2a488fcb-fff4-47a6-a995-cf4d422625de 2025-08-02 23:36:35,234 - INFO - ================================================================================ 2025-08-02 23:36:35,234 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-02 23:36:36,601 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.17': '0', '10.20.0.14': '0'}, '10.0.0.49': {'10.20.0.17': '0', '10.20.0.14': '0'}} with 2025-08-02 23:36:36,601 - INFO - Initial checks done. Running the testcase now 2025-08-02 23:36:36,601 - INFO - 2025-08-02 23:36:36,601 - INFO - ================================================================================ 2025-08-02 23:36:36,601 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-02 23:36:36,601 - 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-02 23:36:37,974 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.17': '0', '10.20.0.14': '0'}, '10.0.0.49': {'10.20.0.17': '0', '10.20.0.14': '0'}} with 2025-08-02 23:36:37,974 - INFO - Initial checks done. Running the testcase now 2025-08-02 23:36:37,975 - INFO - 2025-08-02 23:36:38,363 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87683684:ctest-vn4-31749327, 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-87683684:ctest-vn4-31749327, 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-87683684:ctest-vn4-31749327, 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-87683684:ctest-vn4-31749327, 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-02 23:36:39,233 - DEBUG - Response for create_network : {'network': {'id': '4bb3ba93-e111-428b-838c-baec41a5077a', 'name': 'ctest-vn4-31749327', 'tenant_id': '2a488fcbfff447a6a995cf4d422625de', 'project_id': '2a488fcbfff447a6a995cf4d422625de', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87683684', 'ctest-vn4-31749327'], 'port_security_enabled': True, 'description': ''}} 2025-08-02 23:36:39,572 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e235bc5f-f8d9-41a1-813c-a7dc2d6b2354', 'name': '', 'tenant_id': '2a488fcbfff447a6a995cf4d422625de', 'network_id': '4bb3ba93-e111-428b-838c-baec41a5077a', 'ip_version': 4, 'cidr': '51.158.195.192/26', 'allocation_pools': [{'start': '51.158.195.194', 'end': '51.158.195.254'}], 'gateway_ip': '51.158.195.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '51.158.195.194', 'tags': [], 'project_id': '2a488fcbfff447a6a995cf4d422625de'}} 2025-08-02 23:36:39,886 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e17a6445-5b12-441a-8f6f-10d0268e3b78', 'name': '', 'tenant_id': '2a488fcbfff447a6a995cf4d422625de', 'network_id': '4bb3ba93-e111-428b-838c-baec41a5077a', 'ip_version': 6, 'cidr': '3a13:6c00:c6ff:c6db:8453:a3f1::/96', 'allocation_pools': [{'start': '3a13:6c00:c6ff:c6db:8453:a3f1:0:2', 'end': '3a13:6c00:c6ff:c6db:8453:a3f1:ffff:fffe'}], 'gateway_ip': '3a13:6c00:c6ff:c6db:8453:a3f1:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3a13:6c00:c6ff:c6db:8453:a3f1:0:2', 'tags': [], 'project_id': '2a488fcbfff447a6a995cf4d422625de'}} 2025-08-02 23:36:39,922 - INFO - Created VN ctest-vn4-31749327 2025-08-02 23:36:39,939 - DEBUG - VN ctest-vn4-31749327 UUID is 4bb3ba93-e111-428b-838c-baec41a5077a 2025-08-02 23:36:40,239 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4bb3ba93-e111-428b-838c-baec41a5077a', 'name': 'ctest-vn4-31749327', 'tenant_id': '2a488fcbfff447a6a995cf4d422625de', 'project_id': '2a488fcbfff447a6a995cf4d422625de', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e235bc5f-f8d9-41a1-813c-a7dc2d6b2354', 'e17a6445-5b12-441a-8f6f-10d0268e3b78'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87683684', 'ctest-vn4-31749327'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87683684', 'ctest-policy1-74157884']], 'subnet_ipam': [{'subnet_cidr': '51.158.195.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3a13:6c00:c6ff:c6db:8453:a3f1::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-02 23:36:40,348 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-02 23:36:40,671 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-02 23:36:40,706 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e48a4202-dd3d-4b87-9406-48f7b2154028 2025-08-02 23:36:40,730 - DEBUG - Requesting: http://10.0.0.38:8082/project/2a488fcb-fff4-47a6-a995-cf4d422625de 2025-08-02 23:36:40,845 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4bb3ba93-e111-428b-838c-baec41a5077a 2025-08-02 23:36:40,878 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4bb3ba93-e111-428b-838c-baec41a5077a 2025-08-02 23:36:40,891 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/68d2e170-c32d-4ffc-9462-11eda12f71b1 2025-08-02 23:36:40,900 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/68d2e170-c32d-4ffc-9462-11eda12f71b1 2025-08-02 23:36:40,909 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/afcb6aa0-4a55-4f74-9366-bfe097cea574 2025-08-02 23:36:40,917 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-02 23:36:40,917 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4bb3ba93-e111-428b-838c-baec41a5077a 2025-08-02 23:36:40,931 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/68d2e170-c32d-4ffc-9462-11eda12f71b1 2025-08-02 23:36:40,962 - INFO - Verified VN network id 12 for VN 4bb3ba93-e111-428b-838c-baec41a5077a 2025-08-02 23:36:40,962 - INFO - Verifications in API Server for VN ctest-vn4-31749327 passed 2025-08-02 23:36:40,962 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4bb3ba93-e111-428b-838c-baec41a5077a 2025-08-02 23:36:40,975 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/68d2e170-c32d-4ffc-9462-11eda12f71b1 2025-08-02 23:36:40,984 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/68d2e170-c32d-4ffc-9462-11eda12f71b1 2025-08-02 23:36:40,993 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/afcb6aa0-4a55-4f74-9366-bfe097cea574 2025-08-02 23:36:41,009 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87683684:ctest-vn4-31749327', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-87683684', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5454908717974766219', 'uuid-lslong': '9479156839584434042'}, 'enable': 'true', 'created': '2025-08-02T23:36:39', 'last-modified': '2025-08-02T23:36:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.829349'} 2025-08-02 23:36:41,017 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-02 23:36:41,029 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87683684:ctest-vn4-31749327', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-87683684', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5454908717974766219', 'uuid-lslong': '9479156839584434042'}, 'enable': 'true', 'created': '2025-08-02T23:36:39', 'last-modified': '2025-08-02T23:36:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.841962'} 2025-08-02 23:36:41,039 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-02 23:36:41,052 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87683684:ctest-vn4-31749327', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-87683684', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5454908717974766219', 'uuid-lslong': '9479156839584434042'}, 'enable': 'true', 'created': '2025-08-02T23:36:39', 'last-modified': '2025-08-02T23:36:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.873824'} 2025-08-02 23:36:41,065 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-02 23:36:41,065 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-31749327 passed 2025-08-02 23:36:41,065 - DEBUG - ====Verifying policy data for ctest-vn4-31749327 in API_Server ====== 2025-08-02 23:36:41,065 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-02 23:36:41,074 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e48a4202-dd3d-4b87-9406-48f7b2154028 2025-08-02 23:36:41,088 - DEBUG - Requesting: http://10.0.0.38:8082/project/2a488fcb-fff4-47a6-a995-cf4d422625de 2025-08-02 23:36:41,213 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4bb3ba93-e111-428b-838c-baec41a5077a 2025-08-02 23:36:41,228 - DEBUG - ==>Verifying data for policy with id: 1343763f-c6bc-4fda-81c4-440a603c384f, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87683684', 'ctest-policy1-74157884'] 2025-08-02 23:36:41,228 - INFO - VN ctest-vn4-31749327 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-02 23:36:41,228 - DEBUG - Verifying the vn in opserver 2025-08-02 23:36:41,228 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87683684:ctest-vn4-31749327 virtual network link through opserver 10.0.0.38 2025-08-02 23:36:41,228 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-02 23:36:41,523 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-02 23:36:41,584 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87683684:ctest-vn4-31749327', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87683684:ctest-vn4-31749327?flat'} 2025-08-02 23:36:41,584 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87683684:ctest-vn4-31749327 virtual network link through opserver 10.0.0.254 2025-08-02 23:36:41,584 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-02 23:36:41,897 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-02 23:36:41,985 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87683684:ctest-vn4-31749327', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87683684:ctest-vn4-31749327?flat'} 2025-08-02 23:36:41,985 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87683684:ctest-vn4-31749327 virtual network link through opserver 10.0.0.50 2025-08-02 23:36:41,985 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-08-02 23:36:42,282 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-08-02 23:36:42,360 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87683684:ctest-vn4-31749327', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87683684:ctest-vn4-31749327?flat'} 2025-08-02 23:36:42,360 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87683684:ctest-vn4-31749327 is found in opserver 2025-08-02 23:36:42,385 - DEBUG - Do not have enough data to verify VN in agent 2025-08-02 23:36:42,396 - DEBUG - VRF ids for VN ctest-vn4-31749327: {} 2025-08-02 23:36:42,396 - DEBUG - ====Verifying data for ctest-policy1-74157884 in API_Server ====== 2025-08-02 23:36:42,396 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-02 23:36:42,404 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e48a4202-dd3d-4b87-9406-48f7b2154028 2025-08-02 23:36:42,418 - DEBUG - Requesting: http://10.0.0.38:8082/project/2a488fcb-fff4-47a6-a995-cf4d422625de 2025-08-02 23:36:42,536 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/1343763f-c6bc-4fda-81c4-440a603c384f 2025-08-02 23:36:42,546 - INFO - Verified policy ctest-policy1-74157884 in API Server, Result: True 2025-08-02 23:36:42,547 - INFO - Done with setup and verification, moving onto test .. 2025-08-02 23:36:42,564 - INFO - Deleting VN ctest-vn4-31749327 2025-08-02 23:36:42,816 - DEBUG - Response for deleting network () 2025-08-02 23:36:42,816 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/68d2e170-c32d-4ffc-9462-11eda12f71b1 2025-08-02 23:36:42,829 - DEBUG - Response Code: 404 2025-08-02 23:36:42,829 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-02 23:36:42,839 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e48a4202-dd3d-4b87-9406-48f7b2154028 2025-08-02 23:36:42,857 - DEBUG - Requesting: http://10.0.0.38:8082/project/2a488fcb-fff4-47a6-a995-cf4d422625de 2025-08-02 23:36:42,963 - INFO - Validated that VN ctest-vn4-31749327 is not found in API Server 2025-08-02 23:36:42,979 - DEBUG - VN ctest-vn4-31749327 is not present in Agent 10.0.0.48 2025-08-02 23:36:42,992 - DEBUG - VN ctest-vn4-31749327 is not present in Agent 10.0.0.49 2025-08-02 23:36:42,992 - INFO - Validated that VN ctest-vn4-31749327 is not in any agent 2025-08-02 23:36:43,033 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-31749327 info 2025-08-02 23:36:43,077 - INFO - Deleted policy ctest-policy1-74157884 2025-08-02 23:36:43,273 - DEBUG - policy ctest-policy1-74157884 is not found in API Server 2025-08-02 23:36:44,667 - DEBUG - No XMPP flaps were noticed during the test