2025-10-08 20:10:49,735 - INFO - Domain Default found not creating 2025-10-08 20:10:49,871 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-49883582 not found, creating it 2025-10-08 20:10:50,314 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-49883582, ID : 45372940-b906-44ba-bd57-74f9fe1d6f48 2025-10-08 20:10:51,813 - INFO - ================================================================================ 2025-10-08 20:10:51,813 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-08 20:10:52,069 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2025-10-08 20:10:52,069 - INFO - Initial checks done. Running the testcase now 2025-10-08 20:10:52,069 - INFO - 2025-10-08 20:10:52,069 - INFO - ================================================================================ 2025-10-08 20:10:52,069 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-08 20:10:52,069 - 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-08 20:10:52,359 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2025-10-08 20:10:52,359 - INFO - Initial checks done. Running the testcase now 2025-10-08 20:10:52,359 - INFO - 2025-10-08 20:10:52,742 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49883582:ctest-vn4-27977959, 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-49883582:ctest-vn4-27977959, 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-49883582:ctest-vn4-27977959, 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-49883582:ctest-vn4-27977959, 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-08 20:10:53,577 - DEBUG - Response for create_network : {'network': {'id': '782a7f18-b754-40e2-b923-7de5edef7aee', 'name': 'ctest-vn4-27977959', 'tenant_id': '45372940b90644babd5774f9fe1d6f48', 'project_id': '45372940b90644babd5774f9fe1d6f48', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-49883582', 'ctest-vn4-27977959'], 'port_security_enabled': True, 'description': ''}} 2025-10-08 20:10:53,765 - DEBUG - Response for create_subnet : {'subnet': {'id': '538d54d7-04f4-4aa2-ad39-50464b386fa3', 'name': '', 'tenant_id': '45372940b90644babd5774f9fe1d6f48', 'network_id': '782a7f18-b754-40e2-b923-7de5edef7aee', 'ip_version': 4, 'cidr': '39.182.45.64/26', 'allocation_pools': [{'start': '39.182.45.66', 'end': '39.182.45.126'}], 'gateway_ip': '39.182.45.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '39.182.45.66', 'tags': [], 'project_id': '45372940b90644babd5774f9fe1d6f48'}} 2025-10-08 20:10:53,945 - DEBUG - Response for create_subnet : {'subnet': {'id': '0202b122-9faa-4b54-980c-dbdfbcd3fcaa', 'name': '', 'tenant_id': '45372940b90644babd5774f9fe1d6f48', 'network_id': '782a7f18-b754-40e2-b923-7de5edef7aee', 'ip_version': 6, 'cidr': '2c2c:71b0:869b:72e3:50c2:b85e::/96', 'allocation_pools': [{'start': '2c2c:71b0:869b:72e3:50c2:b85e:0:2', 'end': '2c2c:71b0:869b:72e3:50c2:b85e:ffff:fffe'}], 'gateway_ip': '2c2c:71b0:869b:72e3:50c2:b85e:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2c2c:71b0:869b:72e3:50c2:b85e:0:2', 'tags': [], 'project_id': '45372940b90644babd5774f9fe1d6f48'}} 2025-10-08 20:10:53,964 - INFO - Created VN ctest-vn4-27977959 2025-10-08 20:10:54,017 - DEBUG - VN ctest-vn4-27977959 UUID is 782a7f18-b754-40e2-b923-7de5edef7aee 2025-10-08 20:10:54,207 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '782a7f18-b754-40e2-b923-7de5edef7aee', 'name': 'ctest-vn4-27977959', 'tenant_id': '45372940b90644babd5774f9fe1d6f48', 'project_id': '45372940b90644babd5774f9fe1d6f48', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['538d54d7-04f4-4aa2-ad39-50464b386fa3', '0202b122-9faa-4b54-980c-dbdfbcd3fcaa'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-49883582', 'ctest-vn4-27977959'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-49883582', 'ctest-policy1-51575170']], 'subnet_ipam': [{'subnet_cidr': '39.182.45.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2c2c:71b0:869b:72e3:50c2:b85e::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-08 20:10:54,370 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-08 20:10:54,707 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-08 20:10:54,734 - DEBUG - Requesting: http://10.0.0.33:8082/domain/20407c53-86fd-41b5-b27a-64afa268f713 2025-10-08 20:10:54,745 - DEBUG - Requesting: http://10.0.0.33:8082/project/45372940-b906-44ba-bd57-74f9fe1d6f48 2025-10-08 20:10:54,819 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/782a7f18-b754-40e2-b923-7de5edef7aee 2025-10-08 20:10:54,830 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/782a7f18-b754-40e2-b923-7de5edef7aee 2025-10-08 20:10:54,839 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ed07e64c-6be7-4be5-a559-db9e1ebcc2de 2025-10-08 20:10:54,845 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ed07e64c-6be7-4be5-a559-db9e1ebcc2de 2025-10-08 20:10:54,851 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/00755666-e151-44ba-b346-24d88ff35c22 2025-10-08 20:10:54,856 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-08 20:10:54,857 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/782a7f18-b754-40e2-b923-7de5edef7aee 2025-10-08 20:10:54,864 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ed07e64c-6be7-4be5-a559-db9e1ebcc2de 2025-10-08 20:10:54,875 - INFO - Verified VN network id 11 for VN 782a7f18-b754-40e2-b923-7de5edef7aee 2025-10-08 20:10:54,876 - INFO - Verifications in API Server for VN ctest-vn4-27977959 passed 2025-10-08 20:10:54,876 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/782a7f18-b754-40e2-b923-7de5edef7aee 2025-10-08 20:10:54,885 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ed07e64c-6be7-4be5-a559-db9e1ebcc2de 2025-10-08 20:10:54,890 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ed07e64c-6be7-4be5-a559-db9e1ebcc2de 2025-10-08 20:10:54,896 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/00755666-e151-44ba-b346-24d88ff35c22 2025-10-08 20:10:54,905 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49883582:ctest-vn4-27977959', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-49883582', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8658872977704894690', 'uuid-lslong': '13340644947694418670'}, 'enable': 'true', 'created': '2025-10-08T20:10:53', 'last-modified': '2025-10-08T20:10:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.722698'} 2025-10-08 20:10:54,911 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-08 20:10:54,911 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-27977959 passed 2025-10-08 20:10:54,911 - DEBUG - ====Verifying policy data for ctest-vn4-27977959 in API_Server ====== 2025-10-08 20:10:54,911 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-08 20:10:54,916 - DEBUG - Requesting: http://10.0.0.33:8082/domain/20407c53-86fd-41b5-b27a-64afa268f713 2025-10-08 20:10:54,925 - DEBUG - Requesting: http://10.0.0.33:8082/project/45372940-b906-44ba-bd57-74f9fe1d6f48 2025-10-08 20:10:54,994 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/782a7f18-b754-40e2-b923-7de5edef7aee 2025-10-08 20:10:55,002 - DEBUG - ==>Verifying data for policy with id: f1cce058-caef-45a1-b546-e539649654ce, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-49883582', 'ctest-policy1-51575170'] 2025-10-08 20:10:55,003 - INFO - VN ctest-vn4-27977959 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-08 20:10:55,003 - DEBUG - Verifying the vn in opserver 2025-10-08 20:10:55,003 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49883582:ctest-vn4-27977959 virtual network link through opserver 10.0.0.33 2025-10-08 20:10:55,003 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-10-08 20:10:55,332 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-10-08 20:10:55,384 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49883582:ctest-vn4-27977959', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49883582:ctest-vn4-27977959?flat'} 2025-10-08 20:10:55,384 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49883582:ctest-vn4-27977959 is found in opserver 2025-10-08 20:10:55,394 - DEBUG - Do not have enough data to verify VN in agent 2025-10-08 20:10:55,398 - DEBUG - VRF ids for VN ctest-vn4-27977959: {} 2025-10-08 20:10:55,398 - DEBUG - ====Verifying data for ctest-policy1-51575170 in API_Server ====== 2025-10-08 20:10:55,399 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-08 20:10:55,404 - DEBUG - Requesting: http://10.0.0.33:8082/domain/20407c53-86fd-41b5-b27a-64afa268f713 2025-10-08 20:10:55,414 - DEBUG - Requesting: http://10.0.0.33:8082/project/45372940-b906-44ba-bd57-74f9fe1d6f48 2025-10-08 20:10:55,482 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/f1cce058-caef-45a1-b546-e539649654ce 2025-10-08 20:10:55,492 - INFO - Verified policy ctest-policy1-51575170 in API Server, Result: True 2025-10-08 20:10:55,493 - INFO - Done with setup and verification, moving onto test .. 2025-10-08 20:10:55,505 - INFO - Deleting VN ctest-vn4-27977959 2025-10-08 20:10:55,615 - DEBUG - Response for deleting network () 2025-10-08 20:10:55,615 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ed07e64c-6be7-4be5-a559-db9e1ebcc2de 2025-10-08 20:10:55,620 - DEBUG - Response Code: 404 2025-10-08 20:10:55,621 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-08 20:10:55,625 - DEBUG - Requesting: http://10.0.0.33:8082/domain/20407c53-86fd-41b5-b27a-64afa268f713 2025-10-08 20:10:55,678 - DEBUG - Requesting: http://10.0.0.33:8082/project/45372940-b906-44ba-bd57-74f9fe1d6f48 2025-10-08 20:10:55,747 - INFO - Validated that VN ctest-vn4-27977959 is not found in API Server 2025-10-08 20:10:55,759 - DEBUG - VN ctest-vn4-27977959 is not present in Agent 10.0.0.33 2025-10-08 20:10:55,759 - INFO - Validated that VN ctest-vn4-27977959 is not in any agent 2025-10-08 20:10:55,773 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-27977959 info 2025-10-08 20:10:55,798 - INFO - Deleted policy ctest-policy1-51575170 2025-10-08 20:10:55,957 - DEBUG - policy ctest-policy1-51575170 is not found in API Server 2025-10-08 20:10:56,210 - DEBUG - No XMPP flaps were noticed during the test