2025-10-21 06:21:43,002 - INFO - Domain Default found not creating 2025-10-21 06:21:43,155 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-07455279 not found, creating it 2025-10-21 06:21:43,608 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-07455279, ID : 37fd9884-13b0-4de1-b08a-a6d34d669b90 2025-10-21 06:21:45,672 - INFO - ================================================================================ 2025-10-21 06:21:45,672 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-21 06:21:45,937 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.17': '0'}} with 2025-10-21 06:21:45,937 - INFO - Initial checks done. Running the testcase now 2025-10-21 06:21:45,937 - INFO - 2025-10-21 06:21:45,938 - INFO - ================================================================================ 2025-10-21 06:21:45,938 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-21 06:21:45,938 - 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-21 06:21:46,238 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.17': '0'}} with 2025-10-21 06:21:46,238 - INFO - Initial checks done. Running the testcase now 2025-10-21 06:21:46,238 - INFO - 2025-10-21 06:21:46,602 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07455279:ctest-vn4-10049732, 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-07455279:ctest-vn4-10049732, 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-07455279:ctest-vn4-10049732, 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-07455279:ctest-vn4-10049732, 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-21 06:21:47,130 - DEBUG - Response for create_network : {'network': {'id': '7cebd671-a815-4f97-ac99-d7e5412b868b', 'name': 'ctest-vn4-10049732', 'tenant_id': '37fd988413b04de1b08aa6d34d669b90', 'project_id': '37fd988413b04de1b08aa6d34d669b90', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07455279', 'ctest-vn4-10049732'], 'port_security_enabled': True, 'description': ''}} 2025-10-21 06:21:47,353 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a13f2400-16c3-416f-9407-d545a53d44f6', 'name': '', 'tenant_id': '37fd988413b04de1b08aa6d34d669b90', 'network_id': '7cebd671-a815-4f97-ac99-d7e5412b868b', 'ip_version': 4, 'cidr': '57.83.192.192/26', 'allocation_pools': [{'start': '57.83.192.194', 'end': '57.83.192.254'}], 'gateway_ip': '57.83.192.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '57.83.192.194', 'tags': [], 'project_id': '37fd988413b04de1b08aa6d34d669b90'}} 2025-10-21 06:21:47,523 - DEBUG - Response for create_subnet : {'subnet': {'id': '71c22951-acb6-477d-a2e5-f712a6b67022', 'name': '', 'tenant_id': '37fd988413b04de1b08aa6d34d669b90', 'network_id': '7cebd671-a815-4f97-ac99-d7e5412b868b', 'ip_version': 6, 'cidr': '3b93:eb81:1a3e:d821:9559:49e::/96', 'allocation_pools': [{'start': '3b93:eb81:1a3e:d821:9559:49e:0:2', 'end': '3b93:eb81:1a3e:d821:9559:49e:ffff:fffe'}], 'gateway_ip': '3b93:eb81:1a3e:d821:9559:49e:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3b93:eb81:1a3e:d821:9559:49e:0:2', 'tags': [], 'project_id': '37fd988413b04de1b08aa6d34d669b90'}} 2025-10-21 06:21:47,543 - INFO - Created VN ctest-vn4-10049732 2025-10-21 06:21:47,598 - DEBUG - VN ctest-vn4-10049732 UUID is 7cebd671-a815-4f97-ac99-d7e5412b868b 2025-10-21 06:21:47,797 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7cebd671-a815-4f97-ac99-d7e5412b868b', 'name': 'ctest-vn4-10049732', 'tenant_id': '37fd988413b04de1b08aa6d34d669b90', 'project_id': '37fd988413b04de1b08aa6d34d669b90', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a13f2400-16c3-416f-9407-d545a53d44f6', '71c22951-acb6-477d-a2e5-f712a6b67022'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07455279', 'ctest-vn4-10049732'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07455279', 'ctest-policy1-85709978']], 'subnet_ipam': [{'subnet_cidr': '57.83.192.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3b93:eb81:1a3e:d821:9559:49e::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-21 06:21:47,962 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-21 06:21:48,263 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-21 06:21:48,296 - DEBUG - Requesting: http://10.0.0.141:8082/domain/9f2d736b-8d19-4b08-a555-b7341c3ce19a 2025-10-21 06:21:48,307 - DEBUG - Requesting: http://10.0.0.141:8082/project/37fd9884-13b0-4de1-b08a-a6d34d669b90 2025-10-21 06:21:48,385 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/7cebd671-a815-4f97-ac99-d7e5412b868b 2025-10-21 06:21:48,399 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/7cebd671-a815-4f97-ac99-d7e5412b868b 2025-10-21 06:21:48,408 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/fb16b9a6-d27e-44ef-921f-10e4d5630419 2025-10-21 06:21:48,415 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/fb16b9a6-d27e-44ef-921f-10e4d5630419 2025-10-21 06:21:48,421 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/e0d17a89-0869-4af9-bef9-0c86f158e6a3 2025-10-21 06:21:48,427 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-21 06:21:48,427 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/7cebd671-a815-4f97-ac99-d7e5412b868b 2025-10-21 06:21:48,435 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/fb16b9a6-d27e-44ef-921f-10e4d5630419 2025-10-21 06:21:48,450 - INFO - Verified VN network id 11 for VN 7cebd671-a815-4f97-ac99-d7e5412b868b 2025-10-21 06:21:48,450 - INFO - Verifications in API Server for VN ctest-vn4-10049732 passed 2025-10-21 06:21:48,450 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/7cebd671-a815-4f97-ac99-d7e5412b868b 2025-10-21 06:21:48,460 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/fb16b9a6-d27e-44ef-921f-10e4d5630419 2025-10-21 06:21:48,467 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/fb16b9a6-d27e-44ef-921f-10e4d5630419 2025-10-21 06:21:48,474 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/e0d17a89-0869-4af9-bef9-0c86f158e6a3 2025-10-21 06:21:48,486 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07455279:ctest-vn4-10049732', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-07455279', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9001524063869685655', 'uuid-lslong': '12437209225601189515'}, 'enable': 'true', 'created': '2025-10-21T06:21:47', 'last-modified': '2025-10-21T06:21:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.714945'} 2025-10-21 06:21:48,493 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-21 06:21:48,493 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-10049732 passed 2025-10-21 06:21:48,493 - DEBUG - ====Verifying policy data for ctest-vn4-10049732 in API_Server ====== 2025-10-21 06:21:48,493 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-21 06:21:48,498 - DEBUG - Requesting: http://10.0.0.141:8082/domain/9f2d736b-8d19-4b08-a555-b7341c3ce19a 2025-10-21 06:21:48,508 - DEBUG - Requesting: http://10.0.0.141:8082/project/37fd9884-13b0-4de1-b08a-a6d34d669b90 2025-10-21 06:21:48,584 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/7cebd671-a815-4f97-ac99-d7e5412b868b 2025-10-21 06:21:48,597 - DEBUG - ==>Verifying data for policy with id: b918f5fb-533f-4d93-99a8-adddf6f6fa2c, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07455279', 'ctest-policy1-85709978'] 2025-10-21 06:21:48,597 - INFO - VN ctest-vn4-10049732 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-21 06:21:48,597 - DEBUG - Verifying the vn in opserver 2025-10-21 06:21:48,597 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07455279:ctest-vn4-10049732 virtual network link through opserver 10.0.0.141 2025-10-21 06:21:48,597 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-10-21 06:21:48,897 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-10-21 06:21:48,972 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07455279:ctest-vn4-10049732', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07455279:ctest-vn4-10049732?flat'} 2025-10-21 06:21:48,972 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07455279:ctest-vn4-10049732 is found in opserver 2025-10-21 06:21:48,984 - DEBUG - Do not have enough data to verify VN in agent 2025-10-21 06:21:48,989 - DEBUG - VRF ids for VN ctest-vn4-10049732: {} 2025-10-21 06:21:48,990 - DEBUG - ====Verifying data for ctest-policy1-85709978 in API_Server ====== 2025-10-21 06:21:48,990 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-21 06:21:49,002 - DEBUG - Requesting: http://10.0.0.141:8082/domain/9f2d736b-8d19-4b08-a555-b7341c3ce19a 2025-10-21 06:21:49,016 - DEBUG - Requesting: http://10.0.0.141:8082/project/37fd9884-13b0-4de1-b08a-a6d34d669b90 2025-10-21 06:21:49,093 - DEBUG - Requesting: http://10.0.0.141:8082/network-policy/b918f5fb-533f-4d93-99a8-adddf6f6fa2c 2025-10-21 06:21:49,102 - INFO - Verified policy ctest-policy1-85709978 in API Server, Result: True 2025-10-21 06:21:49,102 - INFO - Done with setup and verification, moving onto test .. 2025-10-21 06:21:49,110 - INFO - Deleting VN ctest-vn4-10049732 2025-10-21 06:21:49,223 - DEBUG - Response for deleting network () 2025-10-21 06:21:49,223 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/fb16b9a6-d27e-44ef-921f-10e4d5630419 2025-10-21 06:21:49,228 - DEBUG - Response Code: 404 2025-10-21 06:21:49,229 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-21 06:21:49,234 - DEBUG - Requesting: http://10.0.0.141:8082/domain/9f2d736b-8d19-4b08-a555-b7341c3ce19a 2025-10-21 06:21:49,291 - DEBUG - Requesting: http://10.0.0.141:8082/project/37fd9884-13b0-4de1-b08a-a6d34d669b90 2025-10-21 06:21:49,358 - INFO - Validated that VN ctest-vn4-10049732 is not found in API Server 2025-10-21 06:21:49,368 - DEBUG - VN ctest-vn4-10049732 is not present in Agent 10.0.0.141 2025-10-21 06:21:49,368 - INFO - Validated that VN ctest-vn4-10049732 is not in any agent 2025-10-21 06:21:49,382 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-10049732 info 2025-10-21 06:21:49,403 - INFO - Deleted policy ctest-policy1-85709978 2025-10-21 06:21:49,581 - DEBUG - policy ctest-policy1-85709978 is not found in API Server 2025-10-21 06:21:49,839 - DEBUG - No XMPP flaps were noticed during the test 2025-10-21 06:21:49,839 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-21 06:21:49,839 - INFO - -------------------------------------------------------------------------------- 2025-10-21 06:21:50,127 - DEBUG - No XMPP flaps were noticed during the test 2025-10-21 06:21:50,127 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-10-21 06:21:50,127 - INFO - -------------------------------------------------------------------------------- 2025-10-21 06:21:50,850 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-07455279, ID : 37fd9884-13b0-4de1-b08a-a6d34d669b90