2025-10-23 21:39:53,426 - INFO - Domain Default found not creating 2025-10-23 21:39:53,584 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-33820206 not found, creating it 2025-10-23 21:39:54,074 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-33820206, ID : 7d5b4515-fdcf-42eb-8a1e-c11e86b071e2 2025-10-23 21:39:55,680 - INFO - ================================================================================ 2025-10-23 21:39:55,680 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-23 21:39:55,937 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.14': '0'}} with 2025-10-23 21:39:55,937 - INFO - Initial checks done. Running the testcase now 2025-10-23 21:39:55,937 - INFO - 2025-10-23 21:39:55,937 - INFO - ================================================================================ 2025-10-23 21:39:55,937 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-23 21:39:55,937 - 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-23 21:39:56,229 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.14': '0'}} with 2025-10-23 21:39:56,229 - INFO - Initial checks done. Running the testcase now 2025-10-23 21:39:56,229 - INFO - 2025-10-23 21:39:56,638 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33820206:ctest-vn4-74506071, 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-33820206:ctest-vn4-74506071, 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-33820206:ctest-vn4-74506071, 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-33820206:ctest-vn4-74506071, 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-23 21:39:57,151 - DEBUG - Response for create_network : {'network': {'id': '35863fd1-22f1-4359-bd78-de760b54de16', 'name': 'ctest-vn4-74506071', 'tenant_id': '7d5b4515fdcf42eb8a1ec11e86b071e2', 'project_id': '7d5b4515fdcf42eb8a1ec11e86b071e2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33820206', 'ctest-vn4-74506071'], 'port_security_enabled': True, 'description': ''}} 2025-10-23 21:39:57,332 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cf45f526-b5d6-4e47-98b1-6ea6e750d3eb', 'name': '', 'tenant_id': '7d5b4515fdcf42eb8a1ec11e86b071e2', 'network_id': '35863fd1-22f1-4359-bd78-de760b54de16', 'ip_version': 4, 'cidr': '183.78.15.0/26', 'allocation_pools': [{'start': '183.78.15.2', 'end': '183.78.15.62'}], 'gateway_ip': '183.78.15.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '183.78.15.2', 'tags': [], 'project_id': '7d5b4515fdcf42eb8a1ec11e86b071e2'}} 2025-10-23 21:39:57,622 - DEBUG - Response for create_subnet : {'subnet': {'id': '73831f6d-b74f-47f3-a7d4-49f481cd3a06', 'name': '', 'tenant_id': '7d5b4515fdcf42eb8a1ec11e86b071e2', 'network_id': '35863fd1-22f1-4359-bd78-de760b54de16', 'ip_version': 6, 'cidr': '201b:97a4:13a4:1277:a2cf:3194::/96', 'allocation_pools': [{'start': '201b:97a4:13a4:1277:a2cf:3194:0:2', 'end': '201b:97a4:13a4:1277:a2cf:3194:ffff:fffe'}], 'gateway_ip': '201b:97a4:13a4:1277:a2cf:3194:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '201b:97a4:13a4:1277:a2cf:3194:0:2', 'tags': [], 'project_id': '7d5b4515fdcf42eb8a1ec11e86b071e2'}} 2025-10-23 21:39:57,644 - INFO - Created VN ctest-vn4-74506071 2025-10-23 21:39:57,704 - DEBUG - VN ctest-vn4-74506071 UUID is 35863fd1-22f1-4359-bd78-de760b54de16 2025-10-23 21:39:57,920 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '35863fd1-22f1-4359-bd78-de760b54de16', 'name': 'ctest-vn4-74506071', 'tenant_id': '7d5b4515fdcf42eb8a1ec11e86b071e2', 'project_id': '7d5b4515fdcf42eb8a1ec11e86b071e2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cf45f526-b5d6-4e47-98b1-6ea6e750d3eb', '73831f6d-b74f-47f3-a7d4-49f481cd3a06'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33820206', 'ctest-vn4-74506071'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33820206', 'ctest-policy1-00098712']], 'subnet_ipam': [{'subnet_cidr': '183.78.15.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '201b:97a4:13a4:1277:a2cf:3194::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-23 21:39:58,088 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-23 21:39:58,429 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-23 21:39:58,462 - DEBUG - Requesting: http://10.0.0.141:8082/domain/87fdf487-488e-4b69-b864-3dd930774b7a 2025-10-23 21:39:58,475 - DEBUG - Requesting: http://10.0.0.141:8082/project/7d5b4515-fdcf-42eb-8a1e-c11e86b071e2 2025-10-23 21:39:58,558 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/35863fd1-22f1-4359-bd78-de760b54de16 2025-10-23 21:39:58,571 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/35863fd1-22f1-4359-bd78-de760b54de16 2025-10-23 21:39:58,582 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2ddf49ef-b00c-45c1-9faf-cdd6aa1125a6 2025-10-23 21:39:58,590 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2ddf49ef-b00c-45c1-9faf-cdd6aa1125a6 2025-10-23 21:39:58,597 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/a87c000a-a3a4-465f-996e-6a0ce3b7a72f 2025-10-23 21:39:58,604 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-23 21:39:58,604 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/35863fd1-22f1-4359-bd78-de760b54de16 2025-10-23 21:39:58,614 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2ddf49ef-b00c-45c1-9faf-cdd6aa1125a6 2025-10-23 21:39:58,629 - INFO - Verified VN network id 12 for VN 35863fd1-22f1-4359-bd78-de760b54de16 2025-10-23 21:39:58,629 - INFO - Verifications in API Server for VN ctest-vn4-74506071 passed 2025-10-23 21:39:58,629 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/35863fd1-22f1-4359-bd78-de760b54de16 2025-10-23 21:39:58,639 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2ddf49ef-b00c-45c1-9faf-cdd6aa1125a6 2025-10-23 21:39:58,647 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2ddf49ef-b00c-45c1-9faf-cdd6aa1125a6 2025-10-23 21:39:58,655 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/a87c000a-a3a4-465f-996e-6a0ce3b7a72f 2025-10-23 21:39:58,666 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33820206:ctest-vn4-74506071', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-33820206', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3856840298356360025', 'uuid-lslong': '13652906868951277078'}, 'enable': 'true', 'created': '2025-10-23T21:39:57', 'last-modified': '2025-10-23T21:39:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.769158'} 2025-10-23 21:39:58,672 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-23 21:39:58,672 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-74506071 passed 2025-10-23 21:39:58,673 - DEBUG - ====Verifying policy data for ctest-vn4-74506071 in API_Server ====== 2025-10-23 21:39:58,673 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-23 21:39:58,678 - DEBUG - Requesting: http://10.0.0.141:8082/domain/87fdf487-488e-4b69-b864-3dd930774b7a 2025-10-23 21:39:58,689 - DEBUG - Requesting: http://10.0.0.141:8082/project/7d5b4515-fdcf-42eb-8a1e-c11e86b071e2 2025-10-23 21:39:58,759 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/35863fd1-22f1-4359-bd78-de760b54de16 2025-10-23 21:39:58,769 - DEBUG - ==>Verifying data for policy with id: 5daa02b9-7306-4a49-a276-c50c148e6070, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33820206', 'ctest-policy1-00098712'] 2025-10-23 21:39:58,769 - INFO - VN ctest-vn4-74506071 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-23 21:39:58,769 - DEBUG - Verifying the vn in opserver 2025-10-23 21:39:58,769 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33820206:ctest-vn4-74506071 virtual network link through opserver 10.0.0.141 2025-10-23 21:39:58,769 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-10-23 21:39:59,117 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-10-23 21:39:59,207 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33820206:ctest-vn4-74506071', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33820206:ctest-vn4-74506071?flat'} 2025-10-23 21:39:59,207 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33820206:ctest-vn4-74506071 is found in opserver 2025-10-23 21:39:59,220 - DEBUG - Do not have enough data to verify VN in agent 2025-10-23 21:39:59,225 - DEBUG - VRF ids for VN ctest-vn4-74506071: {} 2025-10-23 21:39:59,226 - DEBUG - ====Verifying data for ctest-policy1-00098712 in API_Server ====== 2025-10-23 21:39:59,226 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-23 21:39:59,249 - DEBUG - Requesting: http://10.0.0.141:8082/domain/87fdf487-488e-4b69-b864-3dd930774b7a 2025-10-23 21:39:59,312 - DEBUG - Requesting: http://10.0.0.141:8082/project/7d5b4515-fdcf-42eb-8a1e-c11e86b071e2 2025-10-23 21:39:59,404 - DEBUG - Requesting: http://10.0.0.141:8082/network-policy/5daa02b9-7306-4a49-a276-c50c148e6070 2025-10-23 21:39:59,425 - INFO - Verified policy ctest-policy1-00098712 in API Server, Result: True 2025-10-23 21:39:59,426 - INFO - Done with setup and verification, moving onto test .. 2025-10-23 21:39:59,450 - INFO - Deleting VN ctest-vn4-74506071 2025-10-23 21:39:59,757 - DEBUG - Response for deleting network () 2025-10-23 21:39:59,757 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2ddf49ef-b00c-45c1-9faf-cdd6aa1125a6 2025-10-23 21:39:59,767 - DEBUG - Response Code: 404 2025-10-23 21:39:59,767 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-23 21:39:59,774 - DEBUG - Requesting: http://10.0.0.141:8082/domain/87fdf487-488e-4b69-b864-3dd930774b7a 2025-10-23 21:39:59,832 - DEBUG - Requesting: http://10.0.0.141:8082/project/7d5b4515-fdcf-42eb-8a1e-c11e86b071e2 2025-10-23 21:39:59,904 - INFO - Validated that VN ctest-vn4-74506071 is not found in API Server 2025-10-23 21:39:59,915 - DEBUG - VN ctest-vn4-74506071 is not present in Agent 10.0.0.141 2025-10-23 21:39:59,915 - INFO - Validated that VN ctest-vn4-74506071 is not in any agent 2025-10-23 21:39:59,932 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-74506071 info 2025-10-23 21:39:59,957 - INFO - Deleted policy ctest-policy1-00098712 2025-10-23 21:40:00,132 - DEBUG - policy ctest-policy1-00098712 is not found in API Server 2025-10-23 21:40:00,389 - DEBUG - No XMPP flaps were noticed during the test