2025-11-13 02:07:45,305 - INFO - Domain Default found not creating 2025-11-13 02:07:45,442 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-49170448 not found, creating it 2025-11-13 02:07:45,877 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-49170448, ID : 91bf9070-43ac-4423-97e4-5962f0b8f42b 2025-11-13 02:07:47,265 - INFO - ================================================================================ 2025-11-13 02:07:47,265 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-13 02:07:47,521 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.14': '0'}} with 2025-11-13 02:07:47,521 - INFO - Initial checks done. Running the testcase now 2025-11-13 02:07:47,521 - INFO - 2025-11-13 02:07:47,521 - INFO - ================================================================================ 2025-11-13 02:07:47,522 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-13 02:07:47,522 - 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-11-13 02:07:47,807 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.14': '0'}} with 2025-11-13 02:07:47,808 - INFO - Initial checks done. Running the testcase now 2025-11-13 02:07:47,808 - INFO - 2025-11-13 02:07:48,187 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49170448:ctest-vn4-80552117, 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-49170448:ctest-vn4-80552117, 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-49170448:ctest-vn4-80552117, 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-49170448:ctest-vn4-80552117, 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-11-13 02:07:48,670 - DEBUG - Response for create_network : {'network': {'id': '4c8537e1-ba7d-4f98-b506-ea55e90fabff', 'name': 'ctest-vn4-80552117', 'tenant_id': '91bf907043ac442397e45962f0b8f42b', 'project_id': '91bf907043ac442397e45962f0b8f42b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-49170448', 'ctest-vn4-80552117'], 'port_security_enabled': True, 'description': ''}} 2025-11-13 02:07:48,828 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a713a460-bcb5-4c79-9da4-2744a0bea3e9', 'name': '', 'tenant_id': '91bf907043ac442397e45962f0b8f42b', 'network_id': '4c8537e1-ba7d-4f98-b506-ea55e90fabff', 'ip_version': 4, 'cidr': '92.153.65.128/26', 'allocation_pools': [{'start': '92.153.65.130', 'end': '92.153.65.190'}], 'gateway_ip': '92.153.65.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '92.153.65.130', 'tags': [], 'project_id': '91bf907043ac442397e45962f0b8f42b'}} 2025-11-13 02:07:49,022 - DEBUG - Response for create_subnet : {'subnet': {'id': '7aa154e6-6f0c-48c4-b21c-99e00677419b', 'name': '', 'tenant_id': '91bf907043ac442397e45962f0b8f42b', 'network_id': '4c8537e1-ba7d-4f98-b506-ea55e90fabff', 'ip_version': 6, 'cidr': '2f1a:c46e:f740:bad1:6377:6353::/96', 'allocation_pools': [{'start': '2f1a:c46e:f740:bad1:6377:6353:0:2', 'end': '2f1a:c46e:f740:bad1:6377:6353:ffff:fffe'}], 'gateway_ip': '2f1a:c46e:f740:bad1:6377:6353:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2f1a:c46e:f740:bad1:6377:6353:0:2', 'tags': [], 'project_id': '91bf907043ac442397e45962f0b8f42b'}} 2025-11-13 02:07:49,041 - INFO - Created VN ctest-vn4-80552117 2025-11-13 02:07:49,092 - DEBUG - VN ctest-vn4-80552117 UUID is 4c8537e1-ba7d-4f98-b506-ea55e90fabff 2025-11-13 02:07:49,285 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4c8537e1-ba7d-4f98-b506-ea55e90fabff', 'name': 'ctest-vn4-80552117', 'tenant_id': '91bf907043ac442397e45962f0b8f42b', 'project_id': '91bf907043ac442397e45962f0b8f42b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a713a460-bcb5-4c79-9da4-2744a0bea3e9', '7aa154e6-6f0c-48c4-b21c-99e00677419b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-49170448', 'ctest-vn4-80552117'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-49170448', 'ctest-policy1-45833019']], 'subnet_ipam': [{'subnet_cidr': '92.153.65.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2f1a:c46e:f740:bad1:6377:6353::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-13 02:07:49,448 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-11-13 02:07:49,764 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-11-13 02:07:49,804 - DEBUG - Requesting: http://10.0.0.57:8082/domain/b172cfcc-e4a5-4d16-bb39-9787ac9c341e 2025-11-13 02:07:49,816 - DEBUG - Requesting: http://10.0.0.57:8082/project/91bf9070-43ac-4423-97e4-5962f0b8f42b 2025-11-13 02:07:49,957 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/4c8537e1-ba7d-4f98-b506-ea55e90fabff 2025-11-13 02:07:49,991 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/4c8537e1-ba7d-4f98-b506-ea55e90fabff 2025-11-13 02:07:50,007 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/4103e052-7bf3-459c-bf21-dbc5f960b96f 2025-11-13 02:07:50,015 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/4103e052-7bf3-459c-bf21-dbc5f960b96f 2025-11-13 02:07:50,024 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/b78ded45-5966-4985-bec9-a99b3e374a8d 2025-11-13 02:07:50,035 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-13 02:07:50,035 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/4c8537e1-ba7d-4f98-b506-ea55e90fabff 2025-11-13 02:07:50,060 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/4103e052-7bf3-459c-bf21-dbc5f960b96f 2025-11-13 02:07:50,071 - INFO - Verified VN network id 10 for VN 4c8537e1-ba7d-4f98-b506-ea55e90fabff 2025-11-13 02:07:50,071 - INFO - Verifications in API Server for VN ctest-vn4-80552117 passed 2025-11-13 02:07:50,071 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/4c8537e1-ba7d-4f98-b506-ea55e90fabff 2025-11-13 02:07:50,079 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/4103e052-7bf3-459c-bf21-dbc5f960b96f 2025-11-13 02:07:50,084 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/4103e052-7bf3-459c-bf21-dbc5f960b96f 2025-11-13 02:07:50,092 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/b78ded45-5966-4985-bec9-a99b3e374a8d 2025-11-13 02:07:50,104 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49170448:ctest-vn4-80552117', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-49170448', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5513874761420984216', 'uuid-lslong': '13044371025428458495'}, 'enable': 'true', 'created': '2025-11-13T02:07:48', 'last-modified': '2025-11-13T02:07:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.840130'} 2025-11-13 02:07:50,110 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-13 02:07:50,110 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-80552117 passed 2025-11-13 02:07:50,110 - DEBUG - ====Verifying policy data for ctest-vn4-80552117 in API_Server ====== 2025-11-13 02:07:50,110 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-11-13 02:07:50,116 - DEBUG - Requesting: http://10.0.0.57:8082/domain/b172cfcc-e4a5-4d16-bb39-9787ac9c341e 2025-11-13 02:07:50,143 - DEBUG - Requesting: http://10.0.0.57:8082/project/91bf9070-43ac-4423-97e4-5962f0b8f42b 2025-11-13 02:07:50,240 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/4c8537e1-ba7d-4f98-b506-ea55e90fabff 2025-11-13 02:07:50,251 - DEBUG - ==>Verifying data for policy with id: 0091e7c1-7f6e-4f3f-8b61-d605922657b6, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-49170448', 'ctest-policy1-45833019'] 2025-11-13 02:07:50,252 - INFO - VN ctest-vn4-80552117 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-13 02:07:50,252 - DEBUG - Verifying the vn in opserver 2025-11-13 02:07:50,252 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49170448:ctest-vn4-80552117 virtual network link through opserver 10.0.0.57 2025-11-13 02:07:50,252 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2025-11-13 02:07:50,575 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2025-11-13 02:07:50,631 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49170448:ctest-vn4-80552117', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49170448:ctest-vn4-80552117?flat'} 2025-11-13 02:07:50,632 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49170448:ctest-vn4-80552117 is found in opserver 2025-11-13 02:07:50,642 - DEBUG - Do not have enough data to verify VN in agent 2025-11-13 02:07:50,646 - DEBUG - VRF ids for VN ctest-vn4-80552117: {} 2025-11-13 02:07:50,647 - DEBUG - ====Verifying data for ctest-policy1-45833019 in API_Server ====== 2025-11-13 02:07:50,647 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-11-13 02:07:50,652 - DEBUG - Requesting: http://10.0.0.57:8082/domain/b172cfcc-e4a5-4d16-bb39-9787ac9c341e 2025-11-13 02:07:50,662 - DEBUG - Requesting: http://10.0.0.57:8082/project/91bf9070-43ac-4423-97e4-5962f0b8f42b 2025-11-13 02:07:50,734 - DEBUG - Requesting: http://10.0.0.57:8082/network-policy/0091e7c1-7f6e-4f3f-8b61-d605922657b6 2025-11-13 02:07:50,744 - INFO - Verified policy ctest-policy1-45833019 in API Server, Result: True 2025-11-13 02:07:50,744 - INFO - Done with setup and verification, moving onto test .. 2025-11-13 02:07:50,753 - INFO - Deleting VN ctest-vn4-80552117 2025-11-13 02:07:50,866 - DEBUG - Response for deleting network () 2025-11-13 02:07:50,866 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/4103e052-7bf3-459c-bf21-dbc5f960b96f 2025-11-13 02:07:50,870 - DEBUG - Response Code: 404 2025-11-13 02:07:50,870 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-11-13 02:07:50,875 - DEBUG - Requesting: http://10.0.0.57:8082/domain/b172cfcc-e4a5-4d16-bb39-9787ac9c341e 2025-11-13 02:07:50,930 - DEBUG - Requesting: http://10.0.0.57:8082/project/91bf9070-43ac-4423-97e4-5962f0b8f42b 2025-11-13 02:07:51,024 - INFO - Validated that VN ctest-vn4-80552117 is not found in API Server 2025-11-13 02:07:51,035 - DEBUG - VN ctest-vn4-80552117 is not present in Agent 10.0.0.57 2025-11-13 02:07:51,035 - INFO - Validated that VN ctest-vn4-80552117 is not in any agent 2025-11-13 02:07:51,052 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-80552117 info 2025-11-13 02:07:51,081 - INFO - Deleted policy ctest-policy1-45833019 2025-11-13 02:07:51,243 - DEBUG - policy ctest-policy1-45833019 is not found in API Server 2025-11-13 02:07:51,498 - DEBUG - No XMPP flaps were noticed during the test 2025-11-13 02:07:51,498 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-11-13 02:07:51,498 - INFO - -------------------------------------------------------------------------------- 2025-11-13 02:07:51,789 - DEBUG - No XMPP flaps were noticed during the test 2025-11-13 02:07:51,789 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-11-13 02:07:51,789 - INFO - -------------------------------------------------------------------------------- 2025-11-13 02:07:52,460 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-49170448, ID : 91bf9070-43ac-4423-97e4-5962f0b8f42b