2025-09-22 07:47:36,287 - INFO - Domain Default found not creating 2025-09-22 07:47:36,438 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-84297584 not found, creating it 2025-09-22 07:47:36,893 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-84297584, ID : 2cce129d-7cf1-42bc-94d4-960d24dbe47c 2025-09-22 07:47:38,408 - INFO - ================================================================================ 2025-09-22 07:47:38,408 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-22 07:47:38,665 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.17': '0'}} with 2025-09-22 07:47:38,665 - INFO - Initial checks done. Running the testcase now 2025-09-22 07:47:38,665 - INFO - 2025-09-22 07:47:38,666 - INFO - ================================================================================ 2025-09-22 07:47:38,666 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-22 07:47:38,666 - 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-09-22 07:47:38,952 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.17': '0'}} with 2025-09-22 07:47:38,952 - INFO - Initial checks done. Running the testcase now 2025-09-22 07:47:38,952 - INFO - 2025-09-22 07:47:39,340 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84297584:ctest-vn4-40822393, 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-84297584:ctest-vn4-40822393, 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-84297584:ctest-vn4-40822393, 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-84297584:ctest-vn4-40822393, 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-09-22 07:47:39,871 - DEBUG - Response for create_network : {'network': {'id': '613a718e-a1ef-4dcf-8134-f33ef9176aab', 'name': 'ctest-vn4-40822393', 'tenant_id': '2cce129d7cf142bc94d4960d24dbe47c', 'project_id': '2cce129d7cf142bc94d4960d24dbe47c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-84297584', 'ctest-vn4-40822393'], 'port_security_enabled': True, 'description': ''}} 2025-09-22 07:47:40,063 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a214c377-6b9f-48a8-ae86-874c3fcf6de8', 'name': '', 'tenant_id': '2cce129d7cf142bc94d4960d24dbe47c', 'network_id': '613a718e-a1ef-4dcf-8134-f33ef9176aab', 'ip_version': 4, 'cidr': '188.127.205.192/26', 'allocation_pools': [{'start': '188.127.205.194', 'end': '188.127.205.254'}], 'gateway_ip': '188.127.205.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '188.127.205.194', 'tags': [], 'project_id': '2cce129d7cf142bc94d4960d24dbe47c'}} 2025-09-22 07:47:40,249 - DEBUG - Response for create_subnet : {'subnet': {'id': '06e6cdd5-fc1a-4c1e-984b-da49203a7055', 'name': '', 'tenant_id': '2cce129d7cf142bc94d4960d24dbe47c', 'network_id': '613a718e-a1ef-4dcf-8134-f33ef9176aab', 'ip_version': 6, 'cidr': '29f0:9674:b8d9:11db:2ad:812e::/96', 'allocation_pools': [{'start': '29f0:9674:b8d9:11db:2ad:812e:0:2', 'end': '29f0:9674:b8d9:11db:2ad:812e:ffff:fffe'}], 'gateway_ip': '29f0:9674:b8d9:11db:2ad:812e:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '29f0:9674:b8d9:11db:2ad:812e:0:2', 'tags': [], 'project_id': '2cce129d7cf142bc94d4960d24dbe47c'}} 2025-09-22 07:47:40,268 - INFO - Created VN ctest-vn4-40822393 2025-09-22 07:47:40,323 - DEBUG - VN ctest-vn4-40822393 UUID is 613a718e-a1ef-4dcf-8134-f33ef9176aab 2025-09-22 07:47:40,630 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '613a718e-a1ef-4dcf-8134-f33ef9176aab', 'name': 'ctest-vn4-40822393', 'tenant_id': '2cce129d7cf142bc94d4960d24dbe47c', 'project_id': '2cce129d7cf142bc94d4960d24dbe47c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a214c377-6b9f-48a8-ae86-874c3fcf6de8', '06e6cdd5-fc1a-4c1e-984b-da49203a7055'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-84297584', 'ctest-vn4-40822393'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-84297584', 'ctest-policy1-47832441']], 'subnet_ipam': [{'subnet_cidr': '188.127.205.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '29f0:9674:b8d9:11db:2ad:812e::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-22 07:47:40,795 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-09-22 07:47:41,135 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-09-22 07:47:41,174 - DEBUG - Requesting: http://10.0.0.48:8082/domain/9bcf03ed-319e-4000-87f1-0170b3fc8244 2025-09-22 07:47:41,188 - DEBUG - Requesting: http://10.0.0.48:8082/project/2cce129d-7cf1-42bc-94d4-960d24dbe47c 2025-09-22 07:47:41,263 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/613a718e-a1ef-4dcf-8134-f33ef9176aab 2025-09-22 07:47:41,277 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/613a718e-a1ef-4dcf-8134-f33ef9176aab 2025-09-22 07:47:41,288 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/413ed06e-7646-4a86-b451-1a745417749c 2025-09-22 07:47:41,296 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/413ed06e-7646-4a86-b451-1a745417749c 2025-09-22 07:47:41,303 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/64edde5a-642b-481d-9014-5aff358b4857 2025-09-22 07:47:41,310 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-22 07:47:41,310 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/613a718e-a1ef-4dcf-8134-f33ef9176aab 2025-09-22 07:47:41,320 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/413ed06e-7646-4a86-b451-1a745417749c 2025-09-22 07:47:41,335 - INFO - Verified VN network id 12 for VN 613a718e-a1ef-4dcf-8134-f33ef9176aab 2025-09-22 07:47:41,335 - INFO - Verifications in API Server for VN ctest-vn4-40822393 passed 2025-09-22 07:47:41,335 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/613a718e-a1ef-4dcf-8134-f33ef9176aab 2025-09-22 07:47:41,347 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/413ed06e-7646-4a86-b451-1a745417749c 2025-09-22 07:47:41,355 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/413ed06e-7646-4a86-b451-1a745417749c 2025-09-22 07:47:41,362 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/64edde5a-642b-481d-9014-5aff358b4857 2025-09-22 07:47:41,376 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84297584:ctest-vn4-40822393', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-84297584', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7006037027744337359', 'uuid-lslong': '9310333781474241195'}, 'enable': 'true', 'created': '2025-09-22T07:47:39', 'last-modified': '2025-09-22T07:47:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.768011'} 2025-09-22 07:47:41,383 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-22 07:47:41,383 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-40822393 passed 2025-09-22 07:47:41,384 - DEBUG - ====Verifying policy data for ctest-vn4-40822393 in API_Server ====== 2025-09-22 07:47:41,384 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-09-22 07:47:41,391 - DEBUG - Requesting: http://10.0.0.48:8082/domain/9bcf03ed-319e-4000-87f1-0170b3fc8244 2025-09-22 07:47:41,404 - DEBUG - Requesting: http://10.0.0.48:8082/project/2cce129d-7cf1-42bc-94d4-960d24dbe47c 2025-09-22 07:47:41,482 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/613a718e-a1ef-4dcf-8134-f33ef9176aab 2025-09-22 07:47:41,492 - DEBUG - ==>Verifying data for policy with id: fab2c4c9-6120-4584-aeb6-ec5fc39fb4a2, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-84297584', 'ctest-policy1-47832441'] 2025-09-22 07:47:41,492 - INFO - VN ctest-vn4-40822393 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-22 07:47:41,492 - DEBUG - Verifying the vn in opserver 2025-09-22 07:47:41,493 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84297584:ctest-vn4-40822393 virtual network link through opserver 10.0.0.48 2025-09-22 07:47:41,493 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-09-22 07:47:41,834 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-09-22 07:47:41,891 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84297584:ctest-vn4-40822393', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84297584:ctest-vn4-40822393?flat'} 2025-09-22 07:47:41,891 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84297584:ctest-vn4-40822393 is found in opserver 2025-09-22 07:47:41,901 - DEBUG - Do not have enough data to verify VN in agent 2025-09-22 07:47:41,906 - DEBUG - VRF ids for VN ctest-vn4-40822393: {} 2025-09-22 07:47:41,906 - DEBUG - ====Verifying data for ctest-policy1-47832441 in API_Server ====== 2025-09-22 07:47:41,906 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-09-22 07:47:41,912 - DEBUG - Requesting: http://10.0.0.48:8082/domain/9bcf03ed-319e-4000-87f1-0170b3fc8244 2025-09-22 07:47:41,923 - DEBUG - Requesting: http://10.0.0.48:8082/project/2cce129d-7cf1-42bc-94d4-960d24dbe47c 2025-09-22 07:47:41,996 - DEBUG - Requesting: http://10.0.0.48:8082/network-policy/fab2c4c9-6120-4584-aeb6-ec5fc39fb4a2 2025-09-22 07:47:42,007 - INFO - Verified policy ctest-policy1-47832441 in API Server, Result: True 2025-09-22 07:47:42,007 - INFO - Done with setup and verification, moving onto test .. 2025-09-22 07:47:42,016 - INFO - Deleting VN ctest-vn4-40822393 2025-09-22 07:47:42,145 - DEBUG - Response for deleting network () 2025-09-22 07:47:42,145 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/413ed06e-7646-4a86-b451-1a745417749c 2025-09-22 07:47:42,150 - DEBUG - Response Code: 404 2025-09-22 07:47:42,150 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-09-22 07:47:42,155 - DEBUG - Requesting: http://10.0.0.48:8082/domain/9bcf03ed-319e-4000-87f1-0170b3fc8244 2025-09-22 07:47:42,208 - DEBUG - Requesting: http://10.0.0.48:8082/project/2cce129d-7cf1-42bc-94d4-960d24dbe47c 2025-09-22 07:47:42,280 - INFO - Validated that VN ctest-vn4-40822393 is not found in API Server 2025-09-22 07:47:42,290 - DEBUG - VN ctest-vn4-40822393 is not present in Agent 10.0.0.48 2025-09-22 07:47:42,290 - INFO - Validated that VN ctest-vn4-40822393 is not in any agent 2025-09-22 07:47:42,304 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-40822393 info 2025-09-22 07:47:42,331 - INFO - Deleted policy ctest-policy1-47832441 2025-09-22 07:47:42,498 - DEBUG - policy ctest-policy1-47832441 is not found in API Server 2025-09-22 07:47:42,756 - DEBUG - No XMPP flaps were noticed during the test 2025-09-22 07:47:42,756 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-09-22 07:47:42,756 - INFO - -------------------------------------------------------------------------------- 2025-09-22 07:47:43,048 - DEBUG - No XMPP flaps were noticed during the test 2025-09-22 07:47:43,048 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-09-22 07:47:43,048 - INFO - -------------------------------------------------------------------------------- 2025-09-22 07:47:43,812 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-84297584, ID : 2cce129d-7cf1-42bc-94d4-960d24dbe47c