2025-08-11 21:37:34,637 - INFO - Domain Default found not creating 2025-08-11 21:37:34,753 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-27749985 not found, creating it 2025-08-11 21:37:35,212 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-27749985, ID : af881272-5ffa-470a-97e0-669f4602ed27 2025-08-11 21:37:36,500 - INFO - ================================================================================ 2025-08-11 21:37:36,500 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-11 21:37:36,750 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2025-08-11 21:37:36,750 - INFO - Initial checks done. Running the testcase now 2025-08-11 21:37:36,750 - INFO - 2025-08-11 21:37:36,750 - INFO - ================================================================================ 2025-08-11 21:37:36,751 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-11 21:37:36,751 - 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-11 21:37:37,033 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2025-08-11 21:37:37,034 - INFO - Initial checks done. Running the testcase now 2025-08-11 21:37:37,034 - INFO - 2025-08-11 21:37:37,372 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27749985:ctest-vn4-34767459, 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-27749985:ctest-vn4-34767459, 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-27749985:ctest-vn4-34767459, 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-27749985:ctest-vn4-34767459, 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-11 21:37:37,861 - DEBUG - Response for create_network : {'network': {'id': 'b858a7de-a234-4bdd-a25a-1a699ec20459', 'name': 'ctest-vn4-34767459', 'tenant_id': 'af8812725ffa470a97e0669f4602ed27', 'project_id': 'af8812725ffa470a97e0669f4602ed27', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-27749985', 'ctest-vn4-34767459'], 'port_security_enabled': True, 'description': ''}} 2025-08-11 21:37:38,013 - DEBUG - Response for create_subnet : {'subnet': {'id': '1452145a-2c21-4047-85c8-1eae0ae3ac6a', 'name': '', 'tenant_id': 'af8812725ffa470a97e0669f4602ed27', 'network_id': 'b858a7de-a234-4bdd-a25a-1a699ec20459', 'ip_version': 4, 'cidr': '205.19.48.0/26', 'allocation_pools': [{'start': '205.19.48.2', 'end': '205.19.48.62'}], 'gateway_ip': '205.19.48.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '205.19.48.2', 'tags': [], 'project_id': 'af8812725ffa470a97e0669f4602ed27'}} 2025-08-11 21:37:38,221 - DEBUG - Response for create_subnet : {'subnet': {'id': '9b68c40b-94b7-4436-9910-7b5cb15d6f85', 'name': '', 'tenant_id': 'af8812725ffa470a97e0669f4602ed27', 'network_id': 'b858a7de-a234-4bdd-a25a-1a699ec20459', 'ip_version': 6, 'cidr': '20a2:87a7:78cd:b71f:93b7:803e::/96', 'allocation_pools': [{'start': '20a2:87a7:78cd:b71f:93b7:803e:0:2', 'end': '20a2:87a7:78cd:b71f:93b7:803e:ffff:fffe'}], 'gateway_ip': '20a2:87a7:78cd:b71f:93b7:803e:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '20a2:87a7:78cd:b71f:93b7:803e:0:2', 'tags': [], 'project_id': 'af8812725ffa470a97e0669f4602ed27'}} 2025-08-11 21:37:38,238 - INFO - Created VN ctest-vn4-34767459 2025-08-11 21:37:38,289 - DEBUG - VN ctest-vn4-34767459 UUID is b858a7de-a234-4bdd-a25a-1a699ec20459 2025-08-11 21:37:38,471 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b858a7de-a234-4bdd-a25a-1a699ec20459', 'name': 'ctest-vn4-34767459', 'tenant_id': 'af8812725ffa470a97e0669f4602ed27', 'project_id': 'af8812725ffa470a97e0669f4602ed27', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1452145a-2c21-4047-85c8-1eae0ae3ac6a', '9b68c40b-94b7-4436-9910-7b5cb15d6f85'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-27749985', 'ctest-vn4-34767459'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-27749985', 'ctest-policy1-69417740']], 'subnet_ipam': [{'subnet_cidr': '205.19.48.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '20a2:87a7:78cd:b71f:93b7:803e::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-11 21:37:38,633 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-11 21:37:38,919 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-11 21:37:38,943 - DEBUG - Requesting: http://10.0.0.38:8082/domain/8a2622e6-a5eb-4a98-9b85-6e060ec30489 2025-08-11 21:37:38,954 - DEBUG - Requesting: http://10.0.0.38:8082/project/af881272-5ffa-470a-97e0-669f4602ed27 2025-08-11 21:37:39,024 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b858a7de-a234-4bdd-a25a-1a699ec20459 2025-08-11 21:37:39,035 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b858a7de-a234-4bdd-a25a-1a699ec20459 2025-08-11 21:37:39,044 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f6c9dc7c-f14c-4393-9be3-7ce6971a4869 2025-08-11 21:37:39,050 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f6c9dc7c-f14c-4393-9be3-7ce6971a4869 2025-08-11 21:37:39,056 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/55ad6525-8151-48fd-9a04-0cd2674adf98 2025-08-11 21:37:39,061 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 21:37:39,061 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b858a7de-a234-4bdd-a25a-1a699ec20459 2025-08-11 21:37:39,070 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f6c9dc7c-f14c-4393-9be3-7ce6971a4869 2025-08-11 21:37:39,081 - INFO - Verified VN network id 11 for VN b858a7de-a234-4bdd-a25a-1a699ec20459 2025-08-11 21:37:39,081 - INFO - Verifications in API Server for VN ctest-vn4-34767459 passed 2025-08-11 21:37:39,081 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b858a7de-a234-4bdd-a25a-1a699ec20459 2025-08-11 21:37:39,091 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f6c9dc7c-f14c-4393-9be3-7ce6971a4869 2025-08-11 21:37:39,096 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f6c9dc7c-f14c-4393-9be3-7ce6971a4869 2025-08-11 21:37:39,102 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/55ad6525-8151-48fd-9a04-0cd2674adf98 2025-08-11 21:37:39,112 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27749985:ctest-vn4-34767459', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-27749985', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13283551675575192541', 'uuid-lslong': '11698692022985688153'}, 'enable': 'true', 'created': '2025-08-11T21:37:37', 'last-modified': '2025-08-11T21:37:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.669760'} 2025-08-11 21:37:39,118 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 21:37:39,118 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-34767459 passed 2025-08-11 21:37:39,119 - DEBUG - ====Verifying policy data for ctest-vn4-34767459 in API_Server ====== 2025-08-11 21:37:39,119 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-11 21:37:39,124 - DEBUG - Requesting: http://10.0.0.38:8082/domain/8a2622e6-a5eb-4a98-9b85-6e060ec30489 2025-08-11 21:37:39,135 - DEBUG - Requesting: http://10.0.0.38:8082/project/af881272-5ffa-470a-97e0-669f4602ed27 2025-08-11 21:37:39,204 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b858a7de-a234-4bdd-a25a-1a699ec20459 2025-08-11 21:37:39,213 - DEBUG - ==>Verifying data for policy with id: bef12f55-b025-4796-8be4-0f4376718876, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-27749985', 'ctest-policy1-69417740'] 2025-08-11 21:37:39,213 - INFO - VN ctest-vn4-34767459 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-11 21:37:39,213 - DEBUG - Verifying the vn in opserver 2025-08-11 21:37:39,213 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27749985:ctest-vn4-34767459 virtual network link through opserver 10.0.0.38 2025-08-11 21:37:39,213 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-11 21:37:39,499 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-11 21:37:39,545 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27749985:ctest-vn4-34767459', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27749985:ctest-vn4-34767459?flat'} 2025-08-11 21:37:39,545 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27749985:ctest-vn4-34767459 is found in opserver 2025-08-11 21:37:39,555 - DEBUG - Do not have enough data to verify VN in agent 2025-08-11 21:37:39,560 - DEBUG - VRF ids for VN ctest-vn4-34767459: {} 2025-08-11 21:37:39,560 - DEBUG - ====Verifying data for ctest-policy1-69417740 in API_Server ====== 2025-08-11 21:37:39,560 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-11 21:37:39,565 - DEBUG - Requesting: http://10.0.0.38:8082/domain/8a2622e6-a5eb-4a98-9b85-6e060ec30489 2025-08-11 21:37:39,574 - DEBUG - Requesting: http://10.0.0.38:8082/project/af881272-5ffa-470a-97e0-669f4602ed27 2025-08-11 21:37:39,646 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/bef12f55-b025-4796-8be4-0f4376718876 2025-08-11 21:37:39,656 - INFO - Verified policy ctest-policy1-69417740 in API Server, Result: True 2025-08-11 21:37:39,656 - INFO - Done with setup and verification, moving onto test .. 2025-08-11 21:37:39,663 - INFO - Deleting VN ctest-vn4-34767459 2025-08-11 21:37:39,775 - DEBUG - Response for deleting network () 2025-08-11 21:37:39,775 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f6c9dc7c-f14c-4393-9be3-7ce6971a4869 2025-08-11 21:37:39,780 - DEBUG - Response Code: 404 2025-08-11 21:37:39,780 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-11 21:37:39,785 - DEBUG - Requesting: http://10.0.0.38:8082/domain/8a2622e6-a5eb-4a98-9b85-6e060ec30489 2025-08-11 21:37:39,838 - DEBUG - Requesting: http://10.0.0.38:8082/project/af881272-5ffa-470a-97e0-669f4602ed27 2025-08-11 21:37:39,907 - INFO - Validated that VN ctest-vn4-34767459 is not found in API Server 2025-08-11 21:37:39,917 - DEBUG - VN ctest-vn4-34767459 is not present in Agent 10.0.0.38 2025-08-11 21:37:39,917 - INFO - Validated that VN ctest-vn4-34767459 is not in any agent 2025-08-11 21:37:39,931 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-34767459 info 2025-08-11 21:37:39,955 - INFO - Deleted policy ctest-policy1-69417740 2025-08-11 21:37:40,112 - DEBUG - policy ctest-policy1-69417740 is not found in API Server 2025-08-11 21:37:40,379 - DEBUG - No XMPP flaps were noticed during the test