2025-08-31 00:11:14,208 - INFO - Domain Default found not creating 2025-08-31 00:11:14,386 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-10820309 not found, creating it 2025-08-31 00:11:14,883 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-10820309, ID : 31f3921f-5090-4b1a-ae39-95180e214049 2025-08-31 00:11:16,442 - INFO - ================================================================================ 2025-08-31 00:11:16,442 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-31 00:11:16,700 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-08-31 00:11:16,700 - INFO - Initial checks done. Running the testcase now 2025-08-31 00:11:16,700 - INFO - 2025-08-31 00:11:16,700 - INFO - ================================================================================ 2025-08-31 00:11:16,700 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-31 00:11:16,700 - 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-31 00:11:17,006 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-08-31 00:11:17,006 - INFO - Initial checks done. Running the testcase now 2025-08-31 00:11:17,006 - INFO - 2025-08-31 00:11:17,422 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10820309:ctest-vn4-21440819, 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-10820309:ctest-vn4-21440819, 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-10820309:ctest-vn4-21440819, 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-10820309:ctest-vn4-21440819, 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-31 00:11:17,992 - DEBUG - Response for create_network : {'network': {'id': 'eb9eab5c-73ac-440a-b7ba-97edc7e19abb', 'name': 'ctest-vn4-21440819', 'tenant_id': '31f3921f50904b1aae3995180e214049', 'project_id': '31f3921f50904b1aae3995180e214049', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10820309', 'ctest-vn4-21440819'], 'port_security_enabled': True, 'description': ''}} 2025-08-31 00:11:18,197 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e4570bde-2709-4898-a571-a3e6678143d7', 'name': '', 'tenant_id': '31f3921f50904b1aae3995180e214049', 'network_id': 'eb9eab5c-73ac-440a-b7ba-97edc7e19abb', 'ip_version': 4, 'cidr': '37.16.154.0/26', 'allocation_pools': [{'start': '37.16.154.2', 'end': '37.16.154.62'}], 'gateway_ip': '37.16.154.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '37.16.154.2', 'tags': [], 'project_id': '31f3921f50904b1aae3995180e214049'}} 2025-08-31 00:11:18,398 - DEBUG - Response for create_subnet : {'subnet': {'id': '1aa74cfc-956e-4e85-bf75-b18d4449c6b8', 'name': '', 'tenant_id': '31f3921f50904b1aae3995180e214049', 'network_id': 'eb9eab5c-73ac-440a-b7ba-97edc7e19abb', 'ip_version': 6, 'cidr': '22e5:bebc:5ffd:475e:f7ae:caf5::/96', 'allocation_pools': [{'start': '22e5:bebc:5ffd:475e:f7ae:caf5:0:2', 'end': '22e5:bebc:5ffd:475e:f7ae:caf5:ffff:fffe'}], 'gateway_ip': '22e5:bebc:5ffd:475e:f7ae:caf5:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '22e5:bebc:5ffd:475e:f7ae:caf5:0:2', 'tags': [], 'project_id': '31f3921f50904b1aae3995180e214049'}} 2025-08-31 00:11:18,426 - INFO - Created VN ctest-vn4-21440819 2025-08-31 00:11:18,482 - DEBUG - VN ctest-vn4-21440819 UUID is eb9eab5c-73ac-440a-b7ba-97edc7e19abb 2025-08-31 00:11:18,715 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'eb9eab5c-73ac-440a-b7ba-97edc7e19abb', 'name': 'ctest-vn4-21440819', 'tenant_id': '31f3921f50904b1aae3995180e214049', 'project_id': '31f3921f50904b1aae3995180e214049', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e4570bde-2709-4898-a571-a3e6678143d7', '1aa74cfc-956e-4e85-bf75-b18d4449c6b8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10820309', 'ctest-vn4-21440819'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10820309', 'ctest-policy1-89122228']], 'subnet_ipam': [{'subnet_cidr': '37.16.154.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '22e5:bebc:5ffd:475e:f7ae:caf5::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-31 00:11:18,886 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-31 00:11:19,184 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-31 00:11:19,213 - DEBUG - Requesting: http://10.0.0.254:8082/domain/57f7f777-828e-4d7a-bb14-b47784a26aae 2025-08-31 00:11:19,225 - DEBUG - Requesting: http://10.0.0.254:8082/project/31f3921f-5090-4b1a-ae39-95180e214049 2025-08-31 00:11:19,303 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/eb9eab5c-73ac-440a-b7ba-97edc7e19abb 2025-08-31 00:11:19,317 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/eb9eab5c-73ac-440a-b7ba-97edc7e19abb 2025-08-31 00:11:19,329 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ae075cd7-1b94-42c5-ac89-5e7bb4aa163a 2025-08-31 00:11:19,336 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ae075cd7-1b94-42c5-ac89-5e7bb4aa163a 2025-08-31 00:11:19,344 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/5c3513b1-6034-452f-a76c-6bc5e97c306e 2025-08-31 00:11:19,352 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-31 00:11:19,352 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/eb9eab5c-73ac-440a-b7ba-97edc7e19abb 2025-08-31 00:11:19,364 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ae075cd7-1b94-42c5-ac89-5e7bb4aa163a 2025-08-31 00:11:19,381 - INFO - Verified VN network id 11 for VN eb9eab5c-73ac-440a-b7ba-97edc7e19abb 2025-08-31 00:11:19,381 - INFO - Verifications in API Server for VN ctest-vn4-21440819 passed 2025-08-31 00:11:19,381 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/eb9eab5c-73ac-440a-b7ba-97edc7e19abb 2025-08-31 00:11:19,391 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ae075cd7-1b94-42c5-ac89-5e7bb4aa163a 2025-08-31 00:11:19,399 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ae075cd7-1b94-42c5-ac89-5e7bb4aa163a 2025-08-31 00:11:19,406 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/5c3513b1-6034-452f-a76c-6bc5e97c306e 2025-08-31 00:11:19,417 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10820309:ctest-vn4-21440819', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-10820309', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16978196058799358986', 'uuid-lslong': '13239061102125488827'}, 'enable': 'true', 'created': '2025-08-31T00:11:17', 'last-modified': '2025-08-31T00:11:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.737573'} 2025-08-31 00:11:19,422 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-31 00:11:19,422 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-21440819 passed 2025-08-31 00:11:19,422 - DEBUG - ====Verifying policy data for ctest-vn4-21440819 in API_Server ====== 2025-08-31 00:11:19,422 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-31 00:11:19,427 - DEBUG - Requesting: http://10.0.0.254:8082/domain/57f7f777-828e-4d7a-bb14-b47784a26aae 2025-08-31 00:11:19,437 - DEBUG - Requesting: http://10.0.0.254:8082/project/31f3921f-5090-4b1a-ae39-95180e214049 2025-08-31 00:11:19,513 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/eb9eab5c-73ac-440a-b7ba-97edc7e19abb 2025-08-31 00:11:19,522 - DEBUG - ==>Verifying data for policy with id: 0b8f14b2-6f6c-4e6c-b9b4-bc2a5cddcac3, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10820309', 'ctest-policy1-89122228'] 2025-08-31 00:11:19,522 - INFO - VN ctest-vn4-21440819 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-31 00:11:19,522 - DEBUG - Verifying the vn in opserver 2025-08-31 00:11:19,522 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10820309:ctest-vn4-21440819 virtual network link through opserver 10.0.0.254 2025-08-31 00:11:19,523 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-31 00:11:19,814 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-31 00:11:19,875 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10820309:ctest-vn4-21440819', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10820309:ctest-vn4-21440819?flat'} 2025-08-31 00:11:19,875 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10820309:ctest-vn4-21440819 is found in opserver 2025-08-31 00:11:19,885 - DEBUG - Do not have enough data to verify VN in agent 2025-08-31 00:11:19,889 - DEBUG - VRF ids for VN ctest-vn4-21440819: {} 2025-08-31 00:11:19,889 - DEBUG - ====Verifying data for ctest-policy1-89122228 in API_Server ====== 2025-08-31 00:11:19,889 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-31 00:11:19,896 - DEBUG - Requesting: http://10.0.0.254:8082/domain/57f7f777-828e-4d7a-bb14-b47784a26aae 2025-08-31 00:11:19,905 - DEBUG - Requesting: http://10.0.0.254:8082/project/31f3921f-5090-4b1a-ae39-95180e214049 2025-08-31 00:11:19,975 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/0b8f14b2-6f6c-4e6c-b9b4-bc2a5cddcac3 2025-08-31 00:11:19,983 - INFO - Verified policy ctest-policy1-89122228 in API Server, Result: True 2025-08-31 00:11:19,984 - INFO - Done with setup and verification, moving onto test .. 2025-08-31 00:11:19,991 - INFO - Deleting VN ctest-vn4-21440819 2025-08-31 00:11:20,127 - DEBUG - Response for deleting network () 2025-08-31 00:11:20,127 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ae075cd7-1b94-42c5-ac89-5e7bb4aa163a 2025-08-31 00:11:20,133 - DEBUG - Response Code: 404 2025-08-31 00:11:20,133 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-31 00:11:20,138 - DEBUG - Requesting: http://10.0.0.254:8082/domain/57f7f777-828e-4d7a-bb14-b47784a26aae 2025-08-31 00:11:20,191 - DEBUG - Requesting: http://10.0.0.254:8082/project/31f3921f-5090-4b1a-ae39-95180e214049 2025-08-31 00:11:20,259 - INFO - Validated that VN ctest-vn4-21440819 is not found in API Server 2025-08-31 00:11:20,269 - DEBUG - VN ctest-vn4-21440819 is not present in Agent 10.0.0.254 2025-08-31 00:11:20,269 - INFO - Validated that VN ctest-vn4-21440819 is not in any agent 2025-08-31 00:11:20,284 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-21440819 info 2025-08-31 00:11:20,308 - INFO - Deleted policy ctest-policy1-89122228 2025-08-31 00:11:20,474 - DEBUG - policy ctest-policy1-89122228 is not found in API Server 2025-08-31 00:11:20,737 - DEBUG - No XMPP flaps were noticed during the test 2025-08-31 00:11:20,737 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-08-31 00:11:20,737 - INFO - -------------------------------------------------------------------------------- 2025-08-31 00:11:21,022 - DEBUG - No XMPP flaps were noticed during the test 2025-08-31 00:11:21,022 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-08-31 00:11:21,022 - INFO - -------------------------------------------------------------------------------- 2025-08-31 00:11:21,730 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-10820309, ID : 31f3921f-5090-4b1a-ae39-95180e214049