2025-09-01 17:24:36,023 - INFO - Domain Default found not creating 2025-09-01 17:24:36,145 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-90980397 not found, creating it 2025-09-01 17:24:36,562 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-90980397, ID : ad075e01-e2cd-4c16-84f3-5da7fb961195 2025-09-01 17:24:37,868 - INFO - ================================================================================ 2025-09-01 17:24:37,868 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-01 17:24:38,126 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with 2025-09-01 17:24:38,126 - INFO - Initial checks done. Running the testcase now 2025-09-01 17:24:38,126 - INFO - 2025-09-01 17:24:38,126 - INFO - ================================================================================ 2025-09-01 17:24:38,126 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-01 17:24:38,126 - 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-09-01 17:24:38,414 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with 2025-09-01 17:24:38,414 - INFO - Initial checks done. Running the testcase now 2025-09-01 17:24:38,414 - INFO - 2025-09-01 17:24:38,749 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90980397:ctest-vn4-14983369, 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-90980397:ctest-vn4-14983369, 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-90980397:ctest-vn4-14983369, 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-90980397:ctest-vn4-14983369, 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-09-01 17:24:39,230 - DEBUG - Response for create_network : {'network': {'id': '57a5488e-1c34-406d-8e31-082a55ee3200', 'name': 'ctest-vn4-14983369', 'tenant_id': 'ad075e01e2cd4c1684f35da7fb961195', 'project_id': 'ad075e01e2cd4c1684f35da7fb961195', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-90980397', 'ctest-vn4-14983369'], 'port_security_enabled': True, 'description': ''}} 2025-09-01 17:24:39,399 - DEBUG - Response for create_subnet : {'subnet': {'id': '716bc5e7-723b-4527-a3fd-c4edd8d294ce', 'name': '', 'tenant_id': 'ad075e01e2cd4c1684f35da7fb961195', 'network_id': '57a5488e-1c34-406d-8e31-082a55ee3200', 'ip_version': 4, 'cidr': '4.127.234.0/26', 'allocation_pools': [{'start': '4.127.234.2', 'end': '4.127.234.62'}], 'gateway_ip': '4.127.234.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '4.127.234.2', 'tags': [], 'project_id': 'ad075e01e2cd4c1684f35da7fb961195'}} 2025-09-01 17:24:39,564 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e6dc4b69-8255-4e6a-8e31-dc40ee815745', 'name': '', 'tenant_id': 'ad075e01e2cd4c1684f35da7fb961195', 'network_id': '57a5488e-1c34-406d-8e31-082a55ee3200', 'ip_version': 6, 'cidr': '3b6f:2ca5:692f:1374:49c5:bc7a::/96', 'allocation_pools': [{'start': '3b6f:2ca5:692f:1374:49c5:bc7a:0:2', 'end': '3b6f:2ca5:692f:1374:49c5:bc7a:ffff:fffe'}], 'gateway_ip': '3b6f:2ca5:692f:1374:49c5:bc7a:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3b6f:2ca5:692f:1374:49c5:bc7a:0:2', 'tags': [], 'project_id': 'ad075e01e2cd4c1684f35da7fb961195'}} 2025-09-01 17:24:39,587 - INFO - Created VN ctest-vn4-14983369 2025-09-01 17:24:39,637 - DEBUG - VN ctest-vn4-14983369 UUID is 57a5488e-1c34-406d-8e31-082a55ee3200 2025-09-01 17:24:39,813 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '57a5488e-1c34-406d-8e31-082a55ee3200', 'name': 'ctest-vn4-14983369', 'tenant_id': 'ad075e01e2cd4c1684f35da7fb961195', 'project_id': 'ad075e01e2cd4c1684f35da7fb961195', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['716bc5e7-723b-4527-a3fd-c4edd8d294ce', 'e6dc4b69-8255-4e6a-8e31-dc40ee815745'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-90980397', 'ctest-vn4-14983369'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-90980397', 'ctest-policy1-53858616']], 'subnet_ipam': [{'subnet_cidr': '4.127.234.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3b6f:2ca5:692f:1374:49c5:bc7a::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-01 17:24:39,965 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-01 17:24:40,252 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-01 17:24:40,276 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d6560e76-09d1-41e6-a069-a36c86054403 2025-09-01 17:24:40,287 - DEBUG - Requesting: http://10.0.0.254:8082/project/ad075e01-e2cd-4c16-84f3-5da7fb961195 2025-09-01 17:24:40,356 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/57a5488e-1c34-406d-8e31-082a55ee3200 2025-09-01 17:24:40,368 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/57a5488e-1c34-406d-8e31-082a55ee3200 2025-09-01 17:24:40,376 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3c6864a3-f74e-45a9-9ce5-1ee655853a5e 2025-09-01 17:24:40,381 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3c6864a3-f74e-45a9-9ce5-1ee655853a5e 2025-09-01 17:24:40,386 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/401971bb-3963-4311-9adc-cf612a4dc0c3 2025-09-01 17:24:40,390 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-01 17:24:40,390 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/57a5488e-1c34-406d-8e31-082a55ee3200 2025-09-01 17:24:40,398 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3c6864a3-f74e-45a9-9ce5-1ee655853a5e 2025-09-01 17:24:40,408 - INFO - Verified VN network id 11 for VN 57a5488e-1c34-406d-8e31-082a55ee3200 2025-09-01 17:24:40,408 - INFO - Verifications in API Server for VN ctest-vn4-14983369 passed 2025-09-01 17:24:40,408 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/57a5488e-1c34-406d-8e31-082a55ee3200 2025-09-01 17:24:40,415 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3c6864a3-f74e-45a9-9ce5-1ee655853a5e 2025-09-01 17:24:40,420 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3c6864a3-f74e-45a9-9ce5-1ee655853a5e 2025-09-01 17:24:40,425 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/401971bb-3963-4311-9adc-cf612a4dc0c3 2025-09-01 17:24:40,434 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90980397:ctest-vn4-14983369', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-90980397', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6315533827652730989', 'uuid-lslong': '10245979605167911424'}, 'enable': 'true', 'created': '2025-09-01T17:24:39', 'last-modified': '2025-09-01T17:24:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.640492'} 2025-09-01 17:24:40,439 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-01 17:24:40,439 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-14983369 passed 2025-09-01 17:24:40,439 - DEBUG - ====Verifying policy data for ctest-vn4-14983369 in API_Server ====== 2025-09-01 17:24:40,440 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-01 17:24:40,444 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d6560e76-09d1-41e6-a069-a36c86054403 2025-09-01 17:24:40,455 - DEBUG - Requesting: http://10.0.0.254:8082/project/ad075e01-e2cd-4c16-84f3-5da7fb961195 2025-09-01 17:24:40,522 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/57a5488e-1c34-406d-8e31-082a55ee3200 2025-09-01 17:24:40,535 - DEBUG - ==>Verifying data for policy with id: acc02c41-3ebe-4500-9dda-dc21557ec4b2, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-90980397', 'ctest-policy1-53858616'] 2025-09-01 17:24:40,535 - INFO - VN ctest-vn4-14983369 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-01 17:24:40,535 - DEBUG - Verifying the vn in opserver 2025-09-01 17:24:40,535 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90980397:ctest-vn4-14983369 virtual network link through opserver 10.0.0.254 2025-09-01 17:24:40,535 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-09-01 17:24:40,824 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-09-01 17:24:40,870 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90980397:ctest-vn4-14983369', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90980397:ctest-vn4-14983369?flat'} 2025-09-01 17:24:40,870 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90980397:ctest-vn4-14983369 is found in opserver 2025-09-01 17:24:40,878 - DEBUG - Do not have enough data to verify VN in agent 2025-09-01 17:24:40,882 - DEBUG - VRF ids for VN ctest-vn4-14983369: {} 2025-09-01 17:24:40,882 - DEBUG - ====Verifying data for ctest-policy1-53858616 in API_Server ====== 2025-09-01 17:24:40,882 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-01 17:24:40,886 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d6560e76-09d1-41e6-a069-a36c86054403 2025-09-01 17:24:40,895 - DEBUG - Requesting: http://10.0.0.254:8082/project/ad075e01-e2cd-4c16-84f3-5da7fb961195 2025-09-01 17:24:40,962 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/acc02c41-3ebe-4500-9dda-dc21557ec4b2 2025-09-01 17:24:40,970 - INFO - Verified policy ctest-policy1-53858616 in API Server, Result: True 2025-09-01 17:24:40,970 - INFO - Done with setup and verification, moving onto test .. 2025-09-01 17:24:40,976 - INFO - Deleting VN ctest-vn4-14983369 2025-09-01 17:24:41,073 - DEBUG - Response for deleting network () 2025-09-01 17:24:41,074 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3c6864a3-f74e-45a9-9ce5-1ee655853a5e 2025-09-01 17:24:41,077 - DEBUG - Response Code: 404 2025-09-01 17:24:41,077 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-01 17:24:41,081 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d6560e76-09d1-41e6-a069-a36c86054403 2025-09-01 17:24:41,133 - DEBUG - Requesting: http://10.0.0.254:8082/project/ad075e01-e2cd-4c16-84f3-5da7fb961195 2025-09-01 17:24:41,201 - INFO - Validated that VN ctest-vn4-14983369 is not found in API Server 2025-09-01 17:24:41,210 - DEBUG - VN ctest-vn4-14983369 is not present in Agent 10.0.0.254 2025-09-01 17:24:41,210 - INFO - Validated that VN ctest-vn4-14983369 is not in any agent 2025-09-01 17:24:41,221 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-14983369 info 2025-09-01 17:24:41,243 - INFO - Deleted policy ctest-policy1-53858616 2025-09-01 17:24:41,401 - DEBUG - policy ctest-policy1-53858616 is not found in API Server 2025-09-01 17:24:41,649 - DEBUG - No XMPP flaps were noticed during the test 2025-09-01 17:24:41,649 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03] 2025-09-01 17:24:41,649 - INFO - -------------------------------------------------------------------------------- 2025-09-01 17:24:41,941 - DEBUG - No XMPP flaps were noticed during the test 2025-09-01 17:24:41,942 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-09-01 17:24:41,942 - INFO - -------------------------------------------------------------------------------- 2025-09-01 17:24:42,644 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-90980397, ID : ad075e01-e2cd-4c16-84f3-5da7fb961195