2025-11-12 05:27:22,516 - INFO - Domain Default found not creating 2025-11-12 05:27:22,673 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-95495724 not found, creating it 2025-11-12 05:27:23,121 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-95495724, ID : e4b6448e-21e9-4755-8aa4-c1a90e1e0678 2025-11-12 05:27:24,571 - INFO - ================================================================================ 2025-11-12 05:27:24,571 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-12 05:27:24,824 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.14': '0'}} with 2025-11-12 05:27:24,824 - INFO - Initial checks done. Running the testcase now 2025-11-12 05:27:24,825 - INFO - 2025-11-12 05:27:24,825 - INFO - ================================================================================ 2025-11-12 05:27:24,825 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-12 05:27:24,825 - 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-12 05:27:25,117 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.14': '0'}} with 2025-11-12 05:27:25,117 - INFO - Initial checks done. Running the testcase now 2025-11-12 05:27:25,117 - INFO - 2025-11-12 05:27:25,657 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95495724:ctest-vn4-16648502, 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-95495724:ctest-vn4-16648502, 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-95495724:ctest-vn4-16648502, 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-95495724:ctest-vn4-16648502, 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-12 05:27:26,169 - DEBUG - Response for create_network : {'network': {'id': 'c558df82-1c08-4526-99b6-6fb165272cb6', 'name': 'ctest-vn4-16648502', 'tenant_id': 'e4b6448e21e947558aa4c1a90e1e0678', 'project_id': 'e4b6448e21e947558aa4c1a90e1e0678', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95495724', 'ctest-vn4-16648502'], 'port_security_enabled': True, 'description': ''}} 2025-11-12 05:27:26,354 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f2dd53ff-d927-4492-b9ce-3fdcf76509e6', 'name': '', 'tenant_id': 'e4b6448e21e947558aa4c1a90e1e0678', 'network_id': 'c558df82-1c08-4526-99b6-6fb165272cb6', 'ip_version': 4, 'cidr': '88.232.29.64/26', 'allocation_pools': [{'start': '88.232.29.66', 'end': '88.232.29.126'}], 'gateway_ip': '88.232.29.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '88.232.29.66', 'tags': [], 'project_id': 'e4b6448e21e947558aa4c1a90e1e0678'}} 2025-11-12 05:27:26,500 - DEBUG - Response for create_subnet : {'subnet': {'id': '8fa6af42-7c47-4d9e-b694-c4a26c4ca866', 'name': '', 'tenant_id': 'e4b6448e21e947558aa4c1a90e1e0678', 'network_id': 'c558df82-1c08-4526-99b6-6fb165272cb6', 'ip_version': 6, 'cidr': '3915:25d2:88aa:2c36:e001:e111::/96', 'allocation_pools': [{'start': '3915:25d2:88aa:2c36:e001:e111:0:2', 'end': '3915:25d2:88aa:2c36:e001:e111:ffff:fffe'}], 'gateway_ip': '3915:25d2:88aa:2c36:e001:e111:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3915:25d2:88aa:2c36:e001:e111:0:2', 'tags': [], 'project_id': 'e4b6448e21e947558aa4c1a90e1e0678'}} 2025-11-12 05:27:26,519 - INFO - Created VN ctest-vn4-16648502 2025-11-12 05:27:26,570 - DEBUG - VN ctest-vn4-16648502 UUID is c558df82-1c08-4526-99b6-6fb165272cb6 2025-11-12 05:27:26,758 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c558df82-1c08-4526-99b6-6fb165272cb6', 'name': 'ctest-vn4-16648502', 'tenant_id': 'e4b6448e21e947558aa4c1a90e1e0678', 'project_id': 'e4b6448e21e947558aa4c1a90e1e0678', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f2dd53ff-d927-4492-b9ce-3fdcf76509e6', '8fa6af42-7c47-4d9e-b694-c4a26c4ca866'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95495724', 'ctest-vn4-16648502'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95495724', 'ctest-policy1-45382286']], 'subnet_ipam': [{'subnet_cidr': '88.232.29.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3915:25d2:88aa:2c36:e001:e111::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-12 05:27:26,922 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-11-12 05:27:27,226 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-11-12 05:27:27,256 - DEBUG - Requesting: http://10.0.0.129:8082/domain/df91833d-36e6-437d-bdbd-e01edc8c3c81 2025-11-12 05:27:27,268 - DEBUG - Requesting: http://10.0.0.129:8082/project/e4b6448e-21e9-4755-8aa4-c1a90e1e0678 2025-11-12 05:27:27,343 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/c558df82-1c08-4526-99b6-6fb165272cb6 2025-11-12 05:27:27,354 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/c558df82-1c08-4526-99b6-6fb165272cb6 2025-11-12 05:27:27,371 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/ee4ec4b2-723e-45f0-9248-650d6976f2f3 2025-11-12 05:27:27,380 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/ee4ec4b2-723e-45f0-9248-650d6976f2f3 2025-11-12 05:27:27,386 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/494caed1-930a-4e1d-aa9f-72bfe8da9c36 2025-11-12 05:27:27,392 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-12 05:27:27,392 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/c558df82-1c08-4526-99b6-6fb165272cb6 2025-11-12 05:27:27,401 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/ee4ec4b2-723e-45f0-9248-650d6976f2f3 2025-11-12 05:27:27,414 - INFO - Verified VN network id 11 for VN c558df82-1c08-4526-99b6-6fb165272cb6 2025-11-12 05:27:27,414 - INFO - Verifications in API Server for VN ctest-vn4-16648502 passed 2025-11-12 05:27:27,414 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/c558df82-1c08-4526-99b6-6fb165272cb6 2025-11-12 05:27:27,424 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/ee4ec4b2-723e-45f0-9248-650d6976f2f3 2025-11-12 05:27:27,430 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/ee4ec4b2-723e-45f0-9248-650d6976f2f3 2025-11-12 05:27:27,438 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/494caed1-930a-4e1d-aa9f-72bfe8da9c36 2025-11-12 05:27:27,449 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95495724:ctest-vn4-16648502', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-95495724', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14220361573331387686', 'uuid-lslong': '11076163141261274294'}, 'enable': 'true', 'created': '2025-11-12T05:27:26', 'last-modified': '2025-11-12T05:27:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.716807'} 2025-11-12 05:27:27,454 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-12 05:27:27,455 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-16648502 passed 2025-11-12 05:27:27,455 - DEBUG - ====Verifying policy data for ctest-vn4-16648502 in API_Server ====== 2025-11-12 05:27:27,455 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-11-12 05:27:27,460 - DEBUG - Requesting: http://10.0.0.129:8082/domain/df91833d-36e6-437d-bdbd-e01edc8c3c81 2025-11-12 05:27:27,471 - DEBUG - Requesting: http://10.0.0.129:8082/project/e4b6448e-21e9-4755-8aa4-c1a90e1e0678 2025-11-12 05:27:27,546 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/c558df82-1c08-4526-99b6-6fb165272cb6 2025-11-12 05:27:27,556 - DEBUG - ==>Verifying data for policy with id: c3aa7d67-8eb7-443c-bf67-1892a7d1bfef, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95495724', 'ctest-policy1-45382286'] 2025-11-12 05:27:27,556 - INFO - VN ctest-vn4-16648502 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-12 05:27:27,556 - DEBUG - Verifying the vn in opserver 2025-11-12 05:27:27,556 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95495724:ctest-vn4-16648502 virtual network link through opserver 10.0.0.129 2025-11-12 05:27:27,556 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2025-11-12 05:27:27,850 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2025-11-12 05:27:27,905 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95495724:ctest-vn4-16648502', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95495724:ctest-vn4-16648502?flat'} 2025-11-12 05:27:27,906 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95495724:ctest-vn4-16648502 is found in opserver 2025-11-12 05:27:27,917 - DEBUG - Do not have enough data to verify VN in agent 2025-11-12 05:27:27,922 - DEBUG - VRF ids for VN ctest-vn4-16648502: {} 2025-11-12 05:27:27,922 - DEBUG - ====Verifying data for ctest-policy1-45382286 in API_Server ====== 2025-11-12 05:27:27,922 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-11-12 05:27:27,929 - DEBUG - Requesting: http://10.0.0.129:8082/domain/df91833d-36e6-437d-bdbd-e01edc8c3c81 2025-11-12 05:27:27,940 - DEBUG - Requesting: http://10.0.0.129:8082/project/e4b6448e-21e9-4755-8aa4-c1a90e1e0678 2025-11-12 05:27:28,009 - DEBUG - Requesting: http://10.0.0.129:8082/network-policy/c3aa7d67-8eb7-443c-bf67-1892a7d1bfef 2025-11-12 05:27:28,029 - INFO - Verified policy ctest-policy1-45382286 in API Server, Result: True 2025-11-12 05:27:28,029 - INFO - Done with setup and verification, moving onto test .. 2025-11-12 05:27:28,038 - INFO - Deleting VN ctest-vn4-16648502 2025-11-12 05:27:28,169 - DEBUG - Response for deleting network () 2025-11-12 05:27:28,169 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/ee4ec4b2-723e-45f0-9248-650d6976f2f3 2025-11-12 05:27:28,173 - DEBUG - Response Code: 404 2025-11-12 05:27:28,173 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-11-12 05:27:28,178 - DEBUG - Requesting: http://10.0.0.129:8082/domain/df91833d-36e6-437d-bdbd-e01edc8c3c81 2025-11-12 05:27:28,235 - DEBUG - Requesting: http://10.0.0.129:8082/project/e4b6448e-21e9-4755-8aa4-c1a90e1e0678 2025-11-12 05:27:28,310 - INFO - Validated that VN ctest-vn4-16648502 is not found in API Server 2025-11-12 05:27:28,319 - DEBUG - VN ctest-vn4-16648502 is not present in Agent 10.0.0.129 2025-11-12 05:27:28,319 - INFO - Validated that VN ctest-vn4-16648502 is not in any agent 2025-11-12 05:27:28,332 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-16648502 info 2025-11-12 05:27:28,358 - INFO - Deleted policy ctest-policy1-45382286 2025-11-12 05:27:28,522 - DEBUG - policy ctest-policy1-45382286 is not found in API Server 2025-11-12 05:27:28,775 - DEBUG - No XMPP flaps were noticed during the test
2025-11-12 05:27:28,775 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-11-12 05:27:28,776 - INFO - -------------------------------------------------------------------------------- 2025-11-12 05:27:29,064 - DEBUG - No XMPP flaps were noticed during the test
2025-11-12 05:27:29,064 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-11-12 05:27:29,065 - INFO - -------------------------------------------------------------------------------- 2025-11-12 05:27:29,764 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-95495724, ID : e4b6448e-21e9-4755-8aa4-c1a90e1e0678