2025-10-21 07:40:20,885 - INFO - Domain Default found not creating 2025-10-21 07:40:21,001 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-49958243 not found, creating it 2025-10-21 07:40:21,438 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-49958243, ID : 90265fd8-11b1-4f2f-8ece-1a02ae4f8e6e 2025-10-21 07:40:22,743 - INFO - ================================================================================ 2025-10-21 07:40:22,744 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-21 07:40:23,003 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-10-21 07:40:23,003 - INFO - Initial checks done. Running the testcase now 2025-10-21 07:40:23,003 - INFO - 2025-10-21 07:40:23,003 - INFO - ================================================================================ 2025-10-21 07:40:23,003 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-21 07:40:23,003 - 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-21 07:40:23,290 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-10-21 07:40:23,290 - INFO - Initial checks done. Running the testcase now 2025-10-21 07:40:23,290 - INFO - 2025-10-21 07:40:23,628 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49958243:ctest-vn4-69077821, 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-49958243:ctest-vn4-69077821, 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-49958243:ctest-vn4-69077821, 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-49958243:ctest-vn4-69077821, 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-21 07:40:24,111 - DEBUG - Response for create_network : {'network': {'id': '3aba2cb5-94ca-4ed8-9dbd-863b2ad14a2a', 'name': 'ctest-vn4-69077821', 'tenant_id': '90265fd811b14f2f8ece1a02ae4f8e6e', 'project_id': '90265fd811b14f2f8ece1a02ae4f8e6e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-49958243', 'ctest-vn4-69077821'], 'port_security_enabled': True, 'description': ''}} 2025-10-21 07:40:24,278 - DEBUG - Response for create_subnet : {'subnet': {'id': '56b9cb84-e57e-478b-b82a-f410b943c37a', 'name': '', 'tenant_id': '90265fd811b14f2f8ece1a02ae4f8e6e', 'network_id': '3aba2cb5-94ca-4ed8-9dbd-863b2ad14a2a', 'ip_version': 4, 'cidr': '142.225.215.0/26', 'allocation_pools': [{'start': '142.225.215.2', 'end': '142.225.215.62'}], 'gateway_ip': '142.225.215.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '142.225.215.2', 'tags': [], 'project_id': '90265fd811b14f2f8ece1a02ae4f8e6e'}} 2025-10-21 07:40:24,461 - DEBUG - Response for create_subnet : {'subnet': {'id': '4042be98-af56-4d41-b6ad-9f259b268bbf', 'name': '', 'tenant_id': '90265fd811b14f2f8ece1a02ae4f8e6e', 'network_id': '3aba2cb5-94ca-4ed8-9dbd-863b2ad14a2a', 'ip_version': 6, 'cidr': '3d45:bc7:7aac:13ee:c75a:71f8::/96', 'allocation_pools': [{'start': '3d45:bc7:7aac:13ee:c75a:71f8:0:2', 'end': '3d45:bc7:7aac:13ee:c75a:71f8:ffff:fffe'}], 'gateway_ip': '3d45:bc7:7aac:13ee:c75a:71f8:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3d45:bc7:7aac:13ee:c75a:71f8:0:2', 'tags': [], 'project_id': '90265fd811b14f2f8ece1a02ae4f8e6e'}} 2025-10-21 07:40:24,477 - INFO - Created VN ctest-vn4-69077821 2025-10-21 07:40:24,526 - DEBUG - VN ctest-vn4-69077821 UUID is 3aba2cb5-94ca-4ed8-9dbd-863b2ad14a2a 2025-10-21 07:40:24,707 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3aba2cb5-94ca-4ed8-9dbd-863b2ad14a2a', 'name': 'ctest-vn4-69077821', 'tenant_id': '90265fd811b14f2f8ece1a02ae4f8e6e', 'project_id': '90265fd811b14f2f8ece1a02ae4f8e6e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['56b9cb84-e57e-478b-b82a-f410b943c37a', '4042be98-af56-4d41-b6ad-9f259b268bbf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-49958243', 'ctest-vn4-69077821'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-49958243', 'ctest-policy1-59258968']], 'subnet_ipam': [{'subnet_cidr': '142.225.215.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3d45:bc7:7aac:13ee:c75a:71f8::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-21 07:40:24,862 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-21 07:40:25,148 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-21 07:40:25,172 - DEBUG - Requesting: http://10.0.0.38:8082/domain/08d5f9dd-8d1b-493e-a6cc-8ef55f5048f3 2025-10-21 07:40:25,182 - DEBUG - Requesting: http://10.0.0.38:8082/project/90265fd8-11b1-4f2f-8ece-1a02ae4f8e6e 2025-10-21 07:40:25,252 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3aba2cb5-94ca-4ed8-9dbd-863b2ad14a2a 2025-10-21 07:40:25,261 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3aba2cb5-94ca-4ed8-9dbd-863b2ad14a2a 2025-10-21 07:40:25,269 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/98a5dd2a-7b4f-425f-9efd-31160a756234 2025-10-21 07:40:25,274 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/98a5dd2a-7b4f-425f-9efd-31160a756234 2025-10-21 07:40:25,279 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e762473b-c6ce-4644-9f41-4785b56d8026 2025-10-21 07:40:25,285 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-21 07:40:25,285 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3aba2cb5-94ca-4ed8-9dbd-863b2ad14a2a 2025-10-21 07:40:25,293 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/98a5dd2a-7b4f-425f-9efd-31160a756234 2025-10-21 07:40:25,303 - INFO - Verified VN network id 12 for VN 3aba2cb5-94ca-4ed8-9dbd-863b2ad14a2a 2025-10-21 07:40:25,303 - INFO - Verifications in API Server for VN ctest-vn4-69077821 passed 2025-10-21 07:40:25,303 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3aba2cb5-94ca-4ed8-9dbd-863b2ad14a2a 2025-10-21 07:40:25,311 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/98a5dd2a-7b4f-425f-9efd-31160a756234 2025-10-21 07:40:25,316 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/98a5dd2a-7b4f-425f-9efd-31160a756234 2025-10-21 07:40:25,321 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e762473b-c6ce-4644-9f41-4785b56d8026 2025-10-21 07:40:25,330 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49958243:ctest-vn4-69077821', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-49958243', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4231743958264991448', 'uuid-lslong': '11366388623232551466'}, 'enable': 'true', 'created': '2025-10-21T07:40:24', 'last-modified': '2025-10-21T07:40:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.645732'} 2025-10-21 07:40:25,335 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-21 07:40:25,335 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-69077821 passed 2025-10-21 07:40:25,335 - DEBUG - ====Verifying policy data for ctest-vn4-69077821 in API_Server ====== 2025-10-21 07:40:25,335 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-21 07:40:25,339 - DEBUG - Requesting: http://10.0.0.38:8082/domain/08d5f9dd-8d1b-493e-a6cc-8ef55f5048f3 2025-10-21 07:40:25,349 - DEBUG - Requesting: http://10.0.0.38:8082/project/90265fd8-11b1-4f2f-8ece-1a02ae4f8e6e 2025-10-21 07:40:25,420 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3aba2cb5-94ca-4ed8-9dbd-863b2ad14a2a 2025-10-21 07:40:25,427 - DEBUG - ==>Verifying data for policy with id: 58a60e17-480d-4f6a-9580-9e2437292c6b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-49958243', 'ctest-policy1-59258968'] 2025-10-21 07:40:25,428 - INFO - VN ctest-vn4-69077821 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-21 07:40:25,428 - DEBUG - Verifying the vn in opserver 2025-10-21 07:40:25,428 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49958243:ctest-vn4-69077821 virtual network link through opserver 10.0.0.38 2025-10-21 07:40:25,428 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-21 07:40:25,715 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-21 07:40:25,762 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49958243:ctest-vn4-69077821', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49958243:ctest-vn4-69077821?flat'} 2025-10-21 07:40:25,762 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49958243:ctest-vn4-69077821 is found in opserver 2025-10-21 07:40:25,771 - DEBUG - Do not have enough data to verify VN in agent 2025-10-21 07:40:25,774 - DEBUG - VRF ids for VN ctest-vn4-69077821: {} 2025-10-21 07:40:25,774 - DEBUG - ====Verifying data for ctest-policy1-59258968 in API_Server ====== 2025-10-21 07:40:25,774 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-21 07:40:25,779 - DEBUG - Requesting: http://10.0.0.38:8082/domain/08d5f9dd-8d1b-493e-a6cc-8ef55f5048f3 2025-10-21 07:40:25,834 - DEBUG - Requesting: http://10.0.0.38:8082/project/90265fd8-11b1-4f2f-8ece-1a02ae4f8e6e 2025-10-21 07:40:25,900 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/58a60e17-480d-4f6a-9580-9e2437292c6b 2025-10-21 07:40:25,908 - INFO - Verified policy ctest-policy1-59258968 in API Server, Result: True 2025-10-21 07:40:25,908 - INFO - Done with setup and verification, moving onto test .. 2025-10-21 07:40:25,914 - INFO - Deleting VN ctest-vn4-69077821 2025-10-21 07:40:26,009 - DEBUG - Response for deleting network () 2025-10-21 07:40:26,009 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/98a5dd2a-7b4f-425f-9efd-31160a756234 2025-10-21 07:40:26,014 - DEBUG - Response Code: 404 2025-10-21 07:40:26,014 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-21 07:40:26,018 - DEBUG - Requesting: http://10.0.0.38:8082/domain/08d5f9dd-8d1b-493e-a6cc-8ef55f5048f3 2025-10-21 07:40:26,074 - DEBUG - Requesting: http://10.0.0.38:8082/project/90265fd8-11b1-4f2f-8ece-1a02ae4f8e6e 2025-10-21 07:40:26,142 - INFO - Validated that VN ctest-vn4-69077821 is not found in API Server 2025-10-21 07:40:26,150 - DEBUG - VN ctest-vn4-69077821 is not present in Agent 10.0.0.38 2025-10-21 07:40:26,151 - INFO - Validated that VN ctest-vn4-69077821 is not in any agent 2025-10-21 07:40:26,161 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-69077821 info 2025-10-21 07:40:26,178 - INFO - Deleted policy ctest-policy1-59258968 2025-10-21 07:40:26,330 - DEBUG - policy ctest-policy1-59258968 is not found in API Server 2025-10-21 07:40:26,582 - DEBUG - No XMPP flaps were noticed during the test 2025-10-21 07:40:26,582 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03] 2025-10-21 07:40:26,582 - INFO - -------------------------------------------------------------------------------- 2025-10-21 07:40:26,870 - DEBUG - No XMPP flaps were noticed during the test 2025-10-21 07:40:26,870 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-21 07:40:26,870 - INFO - -------------------------------------------------------------------------------- 2025-10-21 07:40:27,522 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-49958243, ID : 90265fd8-11b1-4f2f-8ece-1a02ae4f8e6e