2025-08-29 14:28:37,603 - INFO - Domain Default found not creating 2025-08-29 14:28:37,734 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-59328639 not found, creating it 2025-08-29 14:28:38,167 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-59328639, ID : 0139ce81-0f4d-4ae1-b8ad-92be7923a52e 2025-08-29 14:28:39,509 - INFO - ================================================================================ 2025-08-29 14:28:39,509 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-29 14:28:39,766 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-08-29 14:28:39,766 - INFO - Initial checks done. Running the testcase now 2025-08-29 14:28:39,766 - INFO - 2025-08-29 14:28:39,766 - INFO - ================================================================================ 2025-08-29 14:28:39,766 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-29 14:28:39,766 - 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-29 14:28:40,053 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-08-29 14:28:40,054 - INFO - Initial checks done. Running the testcase now 2025-08-29 14:28:40,054 - INFO - 2025-08-29 14:28:40,408 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59328639:ctest-vn4-41127824, 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-59328639:ctest-vn4-41127824, 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-59328639:ctest-vn4-41127824, 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-59328639:ctest-vn4-41127824, 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-29 14:28:40,912 - DEBUG - Response for create_network : {'network': {'id': 'f302e283-e226-41d6-8659-cefcf328a7df', 'name': 'ctest-vn4-41127824', 'tenant_id': '0139ce810f4d4ae1b8ad92be7923a52e', 'project_id': '0139ce810f4d4ae1b8ad92be7923a52e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-59328639', 'ctest-vn4-41127824'], 'port_security_enabled': True, 'description': ''}} 2025-08-29 14:28:41,071 - DEBUG - Response for create_subnet : {'subnet': {'id': '268039bf-6b73-44c7-a646-3bd936f149d8', 'name': '', 'tenant_id': '0139ce810f4d4ae1b8ad92be7923a52e', 'network_id': 'f302e283-e226-41d6-8659-cefcf328a7df', 'ip_version': 4, 'cidr': '135.204.156.128/26', 'allocation_pools': [{'start': '135.204.156.130', 'end': '135.204.156.190'}], 'gateway_ip': '135.204.156.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '135.204.156.130', 'tags': [], 'project_id': '0139ce810f4d4ae1b8ad92be7923a52e'}} 2025-08-29 14:28:41,257 - DEBUG - Response for create_subnet : {'subnet': {'id': '80ed4ad7-aef1-4b74-8336-34964deb8080', 'name': '', 'tenant_id': '0139ce810f4d4ae1b8ad92be7923a52e', 'network_id': 'f302e283-e226-41d6-8659-cefcf328a7df', 'ip_version': 6, 'cidr': '28b8:8392:f057:8ce8:482f:e261::/96', 'allocation_pools': [{'start': '28b8:8392:f057:8ce8:482f:e261:0:2', 'end': '28b8:8392:f057:8ce8:482f:e261:ffff:fffe'}], 'gateway_ip': '28b8:8392:f057:8ce8:482f:e261:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '28b8:8392:f057:8ce8:482f:e261:0:2', 'tags': [], 'project_id': '0139ce810f4d4ae1b8ad92be7923a52e'}} 2025-08-29 14:28:41,275 - INFO - Created VN ctest-vn4-41127824 2025-08-29 14:28:41,337 - DEBUG - VN ctest-vn4-41127824 UUID is f302e283-e226-41d6-8659-cefcf328a7df 2025-08-29 14:28:41,562 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f302e283-e226-41d6-8659-cefcf328a7df', 'name': 'ctest-vn4-41127824', 'tenant_id': '0139ce810f4d4ae1b8ad92be7923a52e', 'project_id': '0139ce810f4d4ae1b8ad92be7923a52e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['268039bf-6b73-44c7-a646-3bd936f149d8', '80ed4ad7-aef1-4b74-8336-34964deb8080'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-59328639', 'ctest-vn4-41127824'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-59328639', 'ctest-policy1-46055235']], 'subnet_ipam': [{'subnet_cidr': '135.204.156.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '28b8:8392:f057:8ce8:482f:e261::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-29 14:28:41,721 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-29 14:28:42,016 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-29 14:28:42,047 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9fbf19a5-98bd-498d-ac68-1bfc368e7dab 2025-08-29 14:28:42,058 - DEBUG - Requesting: http://10.0.0.254:8082/project/0139ce81-0f4d-4ae1-b8ad-92be7923a52e 2025-08-29 14:28:42,128 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f302e283-e226-41d6-8659-cefcf328a7df 2025-08-29 14:28:42,141 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f302e283-e226-41d6-8659-cefcf328a7df 2025-08-29 14:28:42,152 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/fffef00f-30e7-4f44-b195-412425d4a877 2025-08-29 14:28:42,160 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/fffef00f-30e7-4f44-b195-412425d4a877 2025-08-29 14:28:42,167 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/87dc4f22-e7a2-4761-8d71-6394f2bdf945 2025-08-29 14:28:42,173 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-29 14:28:42,173 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f302e283-e226-41d6-8659-cefcf328a7df 2025-08-29 14:28:42,182 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/fffef00f-30e7-4f44-b195-412425d4a877 2025-08-29 14:28:42,197 - INFO - Verified VN network id 12 for VN f302e283-e226-41d6-8659-cefcf328a7df 2025-08-29 14:28:42,197 - INFO - Verifications in API Server for VN ctest-vn4-41127824 passed 2025-08-29 14:28:42,197 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f302e283-e226-41d6-8659-cefcf328a7df 2025-08-29 14:28:42,207 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/fffef00f-30e7-4f44-b195-412425d4a877 2025-08-29 14:28:42,214 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/fffef00f-30e7-4f44-b195-412425d4a877 2025-08-29 14:28:42,221 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/87dc4f22-e7a2-4761-8d71-6394f2bdf945 2025-08-29 14:28:42,234 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59328639:ctest-vn4-41127824', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-59328639', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17510807357232660950', 'uuid-lslong': '9680996459816200159'}, 'enable': 'true', 'created': '2025-08-29T14:28:40', 'last-modified': '2025-08-29T14:28:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.703542'} 2025-08-29 14:28:42,240 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-29 14:28:42,241 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-41127824 passed 2025-08-29 14:28:42,241 - DEBUG - ====Verifying policy data for ctest-vn4-41127824 in API_Server ====== 2025-08-29 14:28:42,241 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-29 14:28:42,247 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9fbf19a5-98bd-498d-ac68-1bfc368e7dab 2025-08-29 14:28:42,261 - DEBUG - Requesting: http://10.0.0.254:8082/project/0139ce81-0f4d-4ae1-b8ad-92be7923a52e 2025-08-29 14:28:42,332 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f302e283-e226-41d6-8659-cefcf328a7df 2025-08-29 14:28:42,342 - DEBUG - ==>Verifying data for policy with id: 3535cede-19a7-487f-8c94-170b26f176b5, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-59328639', 'ctest-policy1-46055235'] 2025-08-29 14:28:42,342 - INFO - VN ctest-vn4-41127824 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-29 14:28:42,342 - DEBUG - Verifying the vn in opserver 2025-08-29 14:28:42,342 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59328639:ctest-vn4-41127824 virtual network link through opserver 10.0.0.254 2025-08-29 14:28:42,342 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-29 14:28:42,637 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-29 14:28:42,692 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59328639:ctest-vn4-41127824', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59328639:ctest-vn4-41127824?flat'} 2025-08-29 14:28:42,692 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59328639:ctest-vn4-41127824 is found in opserver 2025-08-29 14:28:42,700 - DEBUG - Do not have enough data to verify VN in agent 2025-08-29 14:28:42,704 - DEBUG - VRF ids for VN ctest-vn4-41127824: {} 2025-08-29 14:28:42,704 - DEBUG - ====Verifying data for ctest-policy1-46055235 in API_Server ====== 2025-08-29 14:28:42,704 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-29 14:28:42,709 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9fbf19a5-98bd-498d-ac68-1bfc368e7dab 2025-08-29 14:28:42,720 - DEBUG - Requesting: http://10.0.0.254:8082/project/0139ce81-0f4d-4ae1-b8ad-92be7923a52e 2025-08-29 14:28:42,788 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/3535cede-19a7-487f-8c94-170b26f176b5 2025-08-29 14:28:42,798 - INFO - Verified policy ctest-policy1-46055235 in API Server, Result: True 2025-08-29 14:28:42,798 - INFO - Done with setup and verification, moving onto test .. 2025-08-29 14:28:42,805 - INFO - Deleting VN ctest-vn4-41127824 2025-08-29 14:28:42,907 - DEBUG - Response for deleting network () 2025-08-29 14:28:42,907 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/fffef00f-30e7-4f44-b195-412425d4a877 2025-08-29 14:28:42,911 - DEBUG - Response Code: 404 2025-08-29 14:28:42,912 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-29 14:28:42,917 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9fbf19a5-98bd-498d-ac68-1bfc368e7dab 2025-08-29 14:28:42,970 - DEBUG - Requesting: http://10.0.0.254:8082/project/0139ce81-0f4d-4ae1-b8ad-92be7923a52e 2025-08-29 14:28:43,035 - INFO - Validated that VN ctest-vn4-41127824 is not found in API Server 2025-08-29 14:28:43,045 - DEBUG - VN ctest-vn4-41127824 is not present in Agent 10.0.0.254 2025-08-29 14:28:43,045 - INFO - Validated that VN ctest-vn4-41127824 is not in any agent 2025-08-29 14:28:43,057 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-41127824 info 2025-08-29 14:28:43,078 - INFO - Deleted policy ctest-policy1-46055235 2025-08-29 14:28:43,249 - DEBUG - policy ctest-policy1-46055235 is not found in API Server 2025-08-29 14:28:43,502 - DEBUG - No XMPP flaps were noticed during the test
2025-08-29 14:28:43,502 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-08-29 14:28:43,502 - INFO - -------------------------------------------------------------------------------- 2025-08-29 14:28:43,789 - DEBUG - No XMPP flaps were noticed during the test
2025-08-29 14:28:43,789 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-08-29 14:28:43,790 - INFO - -------------------------------------------------------------------------------- 2025-08-29 14:28:44,435 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-59328639, ID : 0139ce81-0f4d-4ae1-b8ad-92be7923a52e