2025-08-20 18:34:31,371 - INFO - Domain Default found not creating 2025-08-20 18:34:31,510 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-73565880 not found, creating it 2025-08-20 18:34:31,981 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-73565880, ID : e5a7df9d-ff8a-4292-8f81-a5df2a99a7ed 2025-08-20 18:34:33,362 - INFO - ================================================================================ 2025-08-20 18:34:33,362 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-20 18:34:33,618 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2025-08-20 18:34:33,618 - INFO - Initial checks done. Running the testcase now 2025-08-20 18:34:33,618 - INFO - 2025-08-20 18:34:33,618 - INFO - ================================================================================ 2025-08-20 18:34:33,618 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-20 18:34:33,618 - 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-20 18:34:33,915 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2025-08-20 18:34:33,915 - INFO - Initial checks done. Running the testcase now 2025-08-20 18:34:33,915 - INFO - 2025-08-20 18:34:34,256 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73565880:ctest-vn4-98543364, 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-73565880:ctest-vn4-98543364, 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-73565880:ctest-vn4-98543364, 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-73565880:ctest-vn4-98543364, 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-20 18:34:34,784 - DEBUG - Response for create_network : {'network': {'id': '7ca0d633-6162-439f-acdf-8b7efea7beaa', 'name': 'ctest-vn4-98543364', 'tenant_id': 'e5a7df9dff8a42928f81a5df2a99a7ed', 'project_id': 'e5a7df9dff8a42928f81a5df2a99a7ed', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-73565880', 'ctest-vn4-98543364'], 'port_security_enabled': True, 'description': ''}} 2025-08-20 18:34:34,954 - DEBUG - Response for create_subnet : {'subnet': {'id': '48326394-7e01-4da1-8e90-cfc407a101f3', 'name': '', 'tenant_id': 'e5a7df9dff8a42928f81a5df2a99a7ed', 'network_id': '7ca0d633-6162-439f-acdf-8b7efea7beaa', 'ip_version': 4, 'cidr': '132.110.194.0/26', 'allocation_pools': [{'start': '132.110.194.2', 'end': '132.110.194.62'}], 'gateway_ip': '132.110.194.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '132.110.194.2', 'tags': [], 'project_id': 'e5a7df9dff8a42928f81a5df2a99a7ed'}} 2025-08-20 18:34:35,129 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ad9a95b4-e8c1-4bca-8a4b-6a27575953a2', 'name': '', 'tenant_id': 'e5a7df9dff8a42928f81a5df2a99a7ed', 'network_id': '7ca0d633-6162-439f-acdf-8b7efea7beaa', 'ip_version': 6, 'cidr': '3e15:7d5a:9d97:71ed:a09a:2428::/96', 'allocation_pools': [{'start': '3e15:7d5a:9d97:71ed:a09a:2428:0:2', 'end': '3e15:7d5a:9d97:71ed:a09a:2428:ffff:fffe'}], 'gateway_ip': '3e15:7d5a:9d97:71ed:a09a:2428:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3e15:7d5a:9d97:71ed:a09a:2428:0:2', 'tags': [], 'project_id': 'e5a7df9dff8a42928f81a5df2a99a7ed'}} 2025-08-20 18:34:35,147 - INFO - Created VN ctest-vn4-98543364 2025-08-20 18:34:35,201 - DEBUG - VN ctest-vn4-98543364 UUID is 7ca0d633-6162-439f-acdf-8b7efea7beaa 2025-08-20 18:34:35,423 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7ca0d633-6162-439f-acdf-8b7efea7beaa', 'name': 'ctest-vn4-98543364', 'tenant_id': 'e5a7df9dff8a42928f81a5df2a99a7ed', 'project_id': 'e5a7df9dff8a42928f81a5df2a99a7ed', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['48326394-7e01-4da1-8e90-cfc407a101f3', 'ad9a95b4-e8c1-4bca-8a4b-6a27575953a2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-73565880', 'ctest-vn4-98543364'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-73565880', 'ctest-policy1-80334402']], 'subnet_ipam': [{'subnet_cidr': '132.110.194.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3e15:7d5a:9d97:71ed:a09a:2428::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-20 18:34:35,593 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-20 18:34:35,883 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-20 18:34:35,911 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2511146f-3451-4b71-95c0-8b8d23a21af6 2025-08-20 18:34:35,925 - DEBUG - Requesting: http://10.0.0.38:8082/project/e5a7df9d-ff8a-4292-8f81-a5df2a99a7ed 2025-08-20 18:34:36,003 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7ca0d633-6162-439f-acdf-8b7efea7beaa 2025-08-20 18:34:36,016 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7ca0d633-6162-439f-acdf-8b7efea7beaa 2025-08-20 18:34:36,027 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1818975b-c745-4bce-82c7-f04fc2d9317a 2025-08-20 18:34:36,035 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1818975b-c745-4bce-82c7-f04fc2d9317a 2025-08-20 18:34:36,043 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e2e5b31b-903b-4e45-87ad-bf2960c6a5c4 2025-08-20 18:34:36,051 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-20 18:34:36,051 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7ca0d633-6162-439f-acdf-8b7efea7beaa 2025-08-20 18:34:36,062 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1818975b-c745-4bce-82c7-f04fc2d9317a 2025-08-20 18:34:36,077 - INFO - Verified VN network id 12 for VN 7ca0d633-6162-439f-acdf-8b7efea7beaa 2025-08-20 18:34:36,077 - INFO - Verifications in API Server for VN ctest-vn4-98543364 passed 2025-08-20 18:34:36,077 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7ca0d633-6162-439f-acdf-8b7efea7beaa 2025-08-20 18:34:36,089 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1818975b-c745-4bce-82c7-f04fc2d9317a 2025-08-20 18:34:36,097 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1818975b-c745-4bce-82c7-f04fc2d9317a 2025-08-20 18:34:36,105 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e2e5b31b-903b-4e45-87ad-bf2960c6a5c4 2025-08-20 18:34:36,119 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73565880:ctest-vn4-98543364', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-73565880', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8980413173142274975', 'uuid-lslong': '12456828471884627626'}, 'enable': 'true', 'created': '2025-08-20T18:34:34', 'last-modified': '2025-08-20T18:34:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.735070'} 2025-08-20 18:34:36,126 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-20 18:34:36,126 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-98543364 passed 2025-08-20 18:34:36,126 - DEBUG - ====Verifying policy data for ctest-vn4-98543364 in API_Server ====== 2025-08-20 18:34:36,126 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-20 18:34:36,132 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2511146f-3451-4b71-95c0-8b8d23a21af6 2025-08-20 18:34:36,144 - DEBUG - Requesting: http://10.0.0.38:8082/project/e5a7df9d-ff8a-4292-8f81-a5df2a99a7ed 2025-08-20 18:34:36,216 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7ca0d633-6162-439f-acdf-8b7efea7beaa 2025-08-20 18:34:36,226 - DEBUG - ==>Verifying data for policy with id: ced779a8-41c3-410d-a429-0b45ec4fd681, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-73565880', 'ctest-policy1-80334402'] 2025-08-20 18:34:36,226 - INFO - VN ctest-vn4-98543364 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-20 18:34:36,227 - DEBUG - Verifying the vn in opserver 2025-08-20 18:34:36,227 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73565880:ctest-vn4-98543364 virtual network link through opserver 10.0.0.38 2025-08-20 18:34:36,227 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-20 18:34:36,515 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-20 18:34:36,567 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73565880:ctest-vn4-98543364', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73565880:ctest-vn4-98543364?flat'} 2025-08-20 18:34:36,567 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73565880:ctest-vn4-98543364 is found in opserver 2025-08-20 18:34:36,577 - DEBUG - Do not have enough data to verify VN in agent 2025-08-20 18:34:36,582 - DEBUG - VRF ids for VN ctest-vn4-98543364: {} 2025-08-20 18:34:36,582 - DEBUG - ====Verifying data for ctest-policy1-80334402 in API_Server ====== 2025-08-20 18:34:36,582 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-20 18:34:36,587 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2511146f-3451-4b71-95c0-8b8d23a21af6 2025-08-20 18:34:36,598 - DEBUG - Requesting: http://10.0.0.38:8082/project/e5a7df9d-ff8a-4292-8f81-a5df2a99a7ed 2025-08-20 18:34:36,668 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/ced779a8-41c3-410d-a429-0b45ec4fd681 2025-08-20 18:34:36,683 - INFO - Verified policy ctest-policy1-80334402 in API Server, Result: True 2025-08-20 18:34:36,683 - INFO - Done with setup and verification, moving onto test .. 2025-08-20 18:34:36,691 - INFO - Deleting VN ctest-vn4-98543364 2025-08-20 18:34:36,807 - DEBUG - Response for deleting network () 2025-08-20 18:34:36,807 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1818975b-c745-4bce-82c7-f04fc2d9317a 2025-08-20 18:34:36,813 - DEBUG - Response Code: 404 2025-08-20 18:34:36,813 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-20 18:34:36,818 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2511146f-3451-4b71-95c0-8b8d23a21af6 2025-08-20 18:34:36,874 - DEBUG - Requesting: http://10.0.0.38:8082/project/e5a7df9d-ff8a-4292-8f81-a5df2a99a7ed 2025-08-20 18:34:36,950 - INFO - Validated that VN ctest-vn4-98543364 is not found in API Server 2025-08-20 18:34:36,960 - DEBUG - VN ctest-vn4-98543364 is not present in Agent 10.0.0.38 2025-08-20 18:34:36,960 - INFO - Validated that VN ctest-vn4-98543364 is not in any agent 2025-08-20 18:34:36,974 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-98543364 info 2025-08-20 18:34:37,001 - INFO - Deleted policy ctest-policy1-80334402 2025-08-20 18:34:37,168 - DEBUG - policy ctest-policy1-80334402 is not found in API Server 2025-08-20 18:34:37,429 - DEBUG - No XMPP flaps were noticed during the test
2025-08-20 18:34:37,429 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-08-20 18:34:37,429 - INFO - -------------------------------------------------------------------------------- 2025-08-20 18:34:37,721 - DEBUG - No XMPP flaps were noticed during the test
2025-08-20 18:34:37,722 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-08-20 18:34:37,722 - INFO - -------------------------------------------------------------------------------- 2025-08-20 18:34:38,390 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-73565880, ID : e5a7df9d-ff8a-4292-8f81-a5df2a99a7ed