2025-10-12 07:23:28,194 - INFO - Domain Default found not creating 2025-10-12 07:23:28,398 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-42718790 not found, creating it 2025-10-12 07:23:28,883 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-42718790, ID : f4ba0a4c-5722-4b6c-92c9-651397cdb9a2 2025-10-12 07:23:30,552 - INFO - ================================================================================ 2025-10-12 07:23:30,552 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-12 07:23:30,814 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.14': '0'}} with 2025-10-12 07:23:30,814 - INFO - Initial checks done. Running the testcase now 2025-10-12 07:23:30,814 - INFO - 2025-10-12 07:23:30,814 - INFO - ================================================================================ 2025-10-12 07:23:30,814 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-12 07:23:30,815 - 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-12 07:23:31,112 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.14': '0'}} with 2025-10-12 07:23:31,112 - INFO - Initial checks done. Running the testcase now 2025-10-12 07:23:31,112 - INFO - 2025-10-12 07:23:31,508 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42718790:ctest-vn4-54892687, 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-42718790:ctest-vn4-54892687, 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-42718790:ctest-vn4-54892687, 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-42718790:ctest-vn4-54892687, 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-12 07:23:32,072 - DEBUG - Response for create_network : {'network': {'id': '43a28999-c646-4bc1-90d4-207f8f8b6689', 'name': 'ctest-vn4-54892687', 'tenant_id': 'f4ba0a4c57224b6c92c9651397cdb9a2', 'project_id': 'f4ba0a4c57224b6c92c9651397cdb9a2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42718790', 'ctest-vn4-54892687'], 'port_security_enabled': True, 'description': ''}} 2025-10-12 07:23:32,257 - DEBUG - Response for create_subnet : {'subnet': {'id': '47fe9d77-daf7-40c2-8659-708d4ad10885', 'name': '', 'tenant_id': 'f4ba0a4c57224b6c92c9651397cdb9a2', 'network_id': '43a28999-c646-4bc1-90d4-207f8f8b6689', 'ip_version': 4, 'cidr': '194.37.238.0/26', 'allocation_pools': [{'start': '194.37.238.2', 'end': '194.37.238.62'}], 'gateway_ip': '194.37.238.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '194.37.238.2', 'tags': [], 'project_id': 'f4ba0a4c57224b6c92c9651397cdb9a2'}} 2025-10-12 07:23:32,476 - DEBUG - Response for create_subnet : {'subnet': {'id': '6e0c9724-4df1-460a-985b-358a58788921', 'name': '', 'tenant_id': 'f4ba0a4c57224b6c92c9651397cdb9a2', 'network_id': '43a28999-c646-4bc1-90d4-207f8f8b6689', 'ip_version': 6, 'cidr': '3526:3160:4411:94f3:5383:317::/96', 'allocation_pools': [{'start': '3526:3160:4411:94f3:5383:317:0:2', 'end': '3526:3160:4411:94f3:5383:317:ffff:fffe'}], 'gateway_ip': '3526:3160:4411:94f3:5383:317:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3526:3160:4411:94f3:5383:317:0:2', 'tags': [], 'project_id': 'f4ba0a4c57224b6c92c9651397cdb9a2'}} 2025-10-12 07:23:32,500 - INFO - Created VN ctest-vn4-54892687 2025-10-12 07:23:32,555 - DEBUG - VN ctest-vn4-54892687 UUID is 43a28999-c646-4bc1-90d4-207f8f8b6689 2025-10-12 07:23:32,791 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '43a28999-c646-4bc1-90d4-207f8f8b6689', 'name': 'ctest-vn4-54892687', 'tenant_id': 'f4ba0a4c57224b6c92c9651397cdb9a2', 'project_id': 'f4ba0a4c57224b6c92c9651397cdb9a2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['47fe9d77-daf7-40c2-8659-708d4ad10885', '6e0c9724-4df1-460a-985b-358a58788921'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42718790', 'ctest-vn4-54892687'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42718790', 'ctest-policy1-05069781']], 'subnet_ipam': [{'subnet_cidr': '194.37.238.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3526:3160:4411:94f3:5383:317::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-12 07:23:32,958 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-12 07:23:33,267 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-12 07:23:33,297 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6e4b6059-756e-452a-9055-93dfea6dfe21 2025-10-12 07:23:33,312 - DEBUG - Requesting: http://10.0.0.254:8082/project/f4ba0a4c-5722-4b6c-92c9-651397cdb9a2 2025-10-12 07:23:33,392 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/43a28999-c646-4bc1-90d4-207f8f8b6689 2025-10-12 07:23:33,404 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/43a28999-c646-4bc1-90d4-207f8f8b6689 2025-10-12 07:23:33,414 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f5f37afb-509f-4900-affd-75f941000817 2025-10-12 07:23:33,423 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f5f37afb-509f-4900-affd-75f941000817 2025-10-12 07:23:33,432 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/3080b0e6-c6f0-4e04-bf91-7af2d568e5a0 2025-10-12 07:23:33,438 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-12 07:23:33,438 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/43a28999-c646-4bc1-90d4-207f8f8b6689 2025-10-12 07:23:33,450 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f5f37afb-509f-4900-affd-75f941000817 2025-10-12 07:23:33,468 - INFO - Verified VN network id 11 for VN 43a28999-c646-4bc1-90d4-207f8f8b6689 2025-10-12 07:23:33,468 - INFO - Verifications in API Server for VN ctest-vn4-54892687 passed 2025-10-12 07:23:33,468 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/43a28999-c646-4bc1-90d4-207f8f8b6689 2025-10-12 07:23:33,481 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f5f37afb-509f-4900-affd-75f941000817 2025-10-12 07:23:33,490 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f5f37afb-509f-4900-affd-75f941000817 2025-10-12 07:23:33,499 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/3080b0e6-c6f0-4e04-bf91-7af2d568e5a0 2025-10-12 07:23:33,513 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42718790:ctest-vn4-54892687', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-42718790', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4873609040317795265', 'uuid-lslong': '10436001968765494921'}, 'enable': 'true', 'created': '2025-10-12T07:23:32', 'last-modified': '2025-10-12T07:23:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.755556'} 2025-10-12 07:23:33,521 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-12 07:23:33,521 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-54892687 passed 2025-10-12 07:23:33,521 - DEBUG - ====Verifying policy data for ctest-vn4-54892687 in API_Server ====== 2025-10-12 07:23:33,521 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-12 07:23:33,527 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6e4b6059-756e-452a-9055-93dfea6dfe21 2025-10-12 07:23:33,538 - DEBUG - Requesting: http://10.0.0.254:8082/project/f4ba0a4c-5722-4b6c-92c9-651397cdb9a2 2025-10-12 07:23:33,617 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/43a28999-c646-4bc1-90d4-207f8f8b6689 2025-10-12 07:23:33,629 - DEBUG - ==>Verifying data for policy with id: 55a678b4-f902-4b94-bff2-59d8713c109a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42718790', 'ctest-policy1-05069781'] 2025-10-12 07:23:33,630 - INFO - VN ctest-vn4-54892687 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-12 07:23:33,630 - DEBUG - Verifying the vn in opserver 2025-10-12 07:23:33,630 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42718790:ctest-vn4-54892687 virtual network link through opserver 10.0.0.254 2025-10-12 07:23:33,630 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-12 07:23:33,939 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-12 07:23:33,999 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42718790:ctest-vn4-54892687', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42718790:ctest-vn4-54892687?flat'} 2025-10-12 07:23:33,999 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42718790:ctest-vn4-54892687 is found in opserver 2025-10-12 07:23:34,009 - DEBUG - Do not have enough data to verify VN in agent 2025-10-12 07:23:34,014 - DEBUG - VRF ids for VN ctest-vn4-54892687: {} 2025-10-12 07:23:34,014 - DEBUG - ====Verifying data for ctest-policy1-05069781 in API_Server ====== 2025-10-12 07:23:34,015 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-12 07:23:34,020 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6e4b6059-756e-452a-9055-93dfea6dfe21 2025-10-12 07:23:34,032 - DEBUG - Requesting: http://10.0.0.254:8082/project/f4ba0a4c-5722-4b6c-92c9-651397cdb9a2 2025-10-12 07:23:34,107 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/55a678b4-f902-4b94-bff2-59d8713c109a 2025-10-12 07:23:34,117 - INFO - Verified policy ctest-policy1-05069781 in API Server, Result: True 2025-10-12 07:23:34,117 - INFO - Done with setup and verification, moving onto test .. 2025-10-12 07:23:34,125 - INFO - Deleting VN ctest-vn4-54892687 2025-10-12 07:23:34,250 - DEBUG - Response for deleting network () 2025-10-12 07:23:34,250 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f5f37afb-509f-4900-affd-75f941000817 2025-10-12 07:23:34,257 - DEBUG - Response Code: 404 2025-10-12 07:23:34,257 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-12 07:23:34,263 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6e4b6059-756e-452a-9055-93dfea6dfe21 2025-10-12 07:23:34,321 - DEBUG - Requesting: http://10.0.0.254:8082/project/f4ba0a4c-5722-4b6c-92c9-651397cdb9a2 2025-10-12 07:23:34,395 - INFO - Validated that VN ctest-vn4-54892687 is not found in API Server 2025-10-12 07:23:34,405 - DEBUG - VN ctest-vn4-54892687 is not present in Agent 10.0.0.254 2025-10-12 07:23:34,405 - INFO - Validated that VN ctest-vn4-54892687 is not in any agent 2025-10-12 07:23:34,421 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-54892687 info 2025-10-12 07:23:34,447 - INFO - Deleted policy ctest-policy1-05069781 2025-10-12 07:23:34,618 - DEBUG - policy ctest-policy1-05069781 is not found in API Server 2025-10-12 07:23:34,880 - DEBUG - No XMPP flaps were noticed during the test 2025-10-12 07:23:34,880 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-12 07:23:34,880 - INFO - -------------------------------------------------------------------------------- 2025-10-12 07:23:35,187 - DEBUG - No XMPP flaps were noticed during the test 2025-10-12 07:23:35,188 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-10-12 07:23:35,188 - INFO - -------------------------------------------------------------------------------- 2025-10-12 07:23:35,921 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-42718790, ID : f4ba0a4c-5722-4b6c-92c9-651397cdb9a2