2025-09-25 01:49:41,945 - INFO - Domain Default found not creating 2025-09-25 01:49:42,089 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-71200713 not found, creating it 2025-09-25 01:49:42,516 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-71200713, ID : 3397cd9a-e6fc-4384-8798-6113b85bcfdc 2025-09-25 01:49:43,999 - INFO - ================================================================================ 2025-09-25 01:49:43,999 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-25 01:49:44,253 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.14': '0'}} with 2025-09-25 01:49:44,253 - INFO - Initial checks done. Running the testcase now 2025-09-25 01:49:44,253 - INFO - 2025-09-25 01:49:44,253 - INFO - ================================================================================ 2025-09-25 01:49:44,253 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-25 01:49:44,253 - 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-25 01:49:44,544 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.14': '0'}} with 2025-09-25 01:49:44,545 - INFO - Initial checks done. Running the testcase now 2025-09-25 01:49:44,545 - INFO - 2025-09-25 01:49:44,928 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71200713:ctest-vn4-96133473, 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-71200713:ctest-vn4-96133473, 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-71200713:ctest-vn4-96133473, 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-71200713:ctest-vn4-96133473, 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-25 01:49:45,420 - DEBUG - Response for create_network : {'network': {'id': 'b27262a5-4fdc-4fc8-a31d-a975046338bf', 'name': 'ctest-vn4-96133473', 'tenant_id': '3397cd9ae6fc438487986113b85bcfdc', 'project_id': '3397cd9ae6fc438487986113b85bcfdc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71200713', 'ctest-vn4-96133473'], 'port_security_enabled': True, 'description': ''}} 2025-09-25 01:49:45,634 - DEBUG - Response for create_subnet : {'subnet': {'id': '12e4a0d6-0d0b-4068-8f64-b49121729cc1', 'name': '', 'tenant_id': '3397cd9ae6fc438487986113b85bcfdc', 'network_id': 'b27262a5-4fdc-4fc8-a31d-a975046338bf', 'ip_version': 4, 'cidr': '144.170.211.0/26', 'allocation_pools': [{'start': '144.170.211.2', 'end': '144.170.211.62'}], 'gateway_ip': '144.170.211.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '144.170.211.2', 'tags': [], 'project_id': '3397cd9ae6fc438487986113b85bcfdc'}} 2025-09-25 01:49:45,793 - DEBUG - Response for create_subnet : {'subnet': {'id': '46b1de98-7e1b-4a03-a42a-328d24a09d25', 'name': '', 'tenant_id': '3397cd9ae6fc438487986113b85bcfdc', 'network_id': 'b27262a5-4fdc-4fc8-a31d-a975046338bf', 'ip_version': 6, 'cidr': '2ece:1e45:a6b3:7288:a020:64bc::/96', 'allocation_pools': [{'start': '2ece:1e45:a6b3:7288:a020:64bc:0:2', 'end': '2ece:1e45:a6b3:7288:a020:64bc:ffff:fffe'}], 'gateway_ip': '2ece:1e45:a6b3:7288:a020:64bc:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2ece:1e45:a6b3:7288:a020:64bc:0:2', 'tags': [], 'project_id': '3397cd9ae6fc438487986113b85bcfdc'}} 2025-09-25 01:49:45,814 - INFO - Created VN ctest-vn4-96133473 2025-09-25 01:49:45,867 - DEBUG - VN ctest-vn4-96133473 UUID is b27262a5-4fdc-4fc8-a31d-a975046338bf 2025-09-25 01:49:46,062 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b27262a5-4fdc-4fc8-a31d-a975046338bf', 'name': 'ctest-vn4-96133473', 'tenant_id': '3397cd9ae6fc438487986113b85bcfdc', 'project_id': '3397cd9ae6fc438487986113b85bcfdc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['12e4a0d6-0d0b-4068-8f64-b49121729cc1', '46b1de98-7e1b-4a03-a42a-328d24a09d25'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71200713', 'ctest-vn4-96133473'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71200713', 'ctest-policy1-76152200']], 'subnet_ipam': [{'subnet_cidr': '144.170.211.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2ece:1e45:a6b3:7288:a020:64bc::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-25 01:49:46,223 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-25 01:49:46,555 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-25 01:49:46,583 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ba76756e-1614-44a9-b36c-3ce434e08c13 2025-09-25 01:49:46,594 - DEBUG - Requesting: http://10.0.0.254:8082/project/3397cd9a-e6fc-4384-8798-6113b85bcfdc 2025-09-25 01:49:46,671 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b27262a5-4fdc-4fc8-a31d-a975046338bf 2025-09-25 01:49:46,682 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b27262a5-4fdc-4fc8-a31d-a975046338bf 2025-09-25 01:49:46,692 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/11e2b5c6-e6b8-4a67-a251-29a526aae6ea 2025-09-25 01:49:46,698 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/11e2b5c6-e6b8-4a67-a251-29a526aae6ea 2025-09-25 01:49:46,704 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/739919e8-02f3-4f66-acaf-69afffea48eb 2025-09-25 01:49:46,710 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-25 01:49:46,710 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b27262a5-4fdc-4fc8-a31d-a975046338bf 2025-09-25 01:49:46,719 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/11e2b5c6-e6b8-4a67-a251-29a526aae6ea 2025-09-25 01:49:46,732 - INFO - Verified VN network id 9 for VN b27262a5-4fdc-4fc8-a31d-a975046338bf 2025-09-25 01:49:46,732 - INFO - Verifications in API Server for VN ctest-vn4-96133473 passed 2025-09-25 01:49:46,733 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b27262a5-4fdc-4fc8-a31d-a975046338bf 2025-09-25 01:49:46,741 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/11e2b5c6-e6b8-4a67-a251-29a526aae6ea 2025-09-25 01:49:46,747 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/11e2b5c6-e6b8-4a67-a251-29a526aae6ea 2025-09-25 01:49:46,767 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/739919e8-02f3-4f66-acaf-69afffea48eb 2025-09-25 01:49:46,792 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71200713:ctest-vn4-96133473', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-71200713', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12858448348245151688', 'uuid-lslong': '11753736922556741823'}, 'enable': 'true', 'created': '2025-09-25T01:49:45', 'last-modified': '2025-09-25T01:49:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.756906'} 2025-09-25 01:49:46,800 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-25 01:49:46,800 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-96133473 passed 2025-09-25 01:49:46,800 - DEBUG - ====Verifying policy data for ctest-vn4-96133473 in API_Server ====== 2025-09-25 01:49:46,801 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-25 01:49:46,837 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ba76756e-1614-44a9-b36c-3ce434e08c13 2025-09-25 01:49:46,870 - DEBUG - Requesting: http://10.0.0.254:8082/project/3397cd9a-e6fc-4384-8798-6113b85bcfdc 2025-09-25 01:49:46,964 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b27262a5-4fdc-4fc8-a31d-a975046338bf 2025-09-25 01:49:46,977 - DEBUG - ==>Verifying data for policy with id: e8be3b24-1403-4155-a06f-dbff6eb479ae, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71200713', 'ctest-policy1-76152200'] 2025-09-25 01:49:46,977 - INFO - VN ctest-vn4-96133473 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-25 01:49:46,977 - DEBUG - Verifying the vn in opserver 2025-09-25 01:49:46,977 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71200713:ctest-vn4-96133473 virtual network link through opserver 10.0.0.254 2025-09-25 01:49:46,978 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-09-25 01:49:47,333 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-09-25 01:49:47,397 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71200713:ctest-vn4-96133473', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71200713:ctest-vn4-96133473?flat'} 2025-09-25 01:49:47,397 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71200713:ctest-vn4-96133473 is found in opserver 2025-09-25 01:49:47,405 - DEBUG - Do not have enough data to verify VN in agent 2025-09-25 01:49:47,409 - DEBUG - VRF ids for VN ctest-vn4-96133473: {} 2025-09-25 01:49:47,409 - DEBUG - ====Verifying data for ctest-policy1-76152200 in API_Server ====== 2025-09-25 01:49:47,409 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-25 01:49:47,414 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ba76756e-1614-44a9-b36c-3ce434e08c13 2025-09-25 01:49:47,424 - DEBUG - Requesting: http://10.0.0.254:8082/project/3397cd9a-e6fc-4384-8798-6113b85bcfdc 2025-09-25 01:49:47,497 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/e8be3b24-1403-4155-a06f-dbff6eb479ae 2025-09-25 01:49:47,508 - INFO - Verified policy ctest-policy1-76152200 in API Server, Result: True 2025-09-25 01:49:47,508 - INFO - Done with setup and verification, moving onto test .. 2025-09-25 01:49:47,515 - INFO - Deleting VN ctest-vn4-96133473 2025-09-25 01:49:47,621 - DEBUG - Response for deleting network () 2025-09-25 01:49:47,621 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/11e2b5c6-e6b8-4a67-a251-29a526aae6ea 2025-09-25 01:49:47,626 - DEBUG - Response Code: 404 2025-09-25 01:49:47,626 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-25 01:49:47,630 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ba76756e-1614-44a9-b36c-3ce434e08c13 2025-09-25 01:49:47,683 - DEBUG - Requesting: http://10.0.0.254:8082/project/3397cd9a-e6fc-4384-8798-6113b85bcfdc 2025-09-25 01:49:47,752 - INFO - Validated that VN ctest-vn4-96133473 is not found in API Server 2025-09-25 01:49:47,762 - DEBUG - VN ctest-vn4-96133473 is not present in Agent 10.0.0.254 2025-09-25 01:49:47,763 - INFO - Validated that VN ctest-vn4-96133473 is not in any agent 2025-09-25 01:49:47,776 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-96133473 info 2025-09-25 01:49:47,796 - INFO - Deleted policy ctest-policy1-76152200 2025-09-25 01:49:47,959 - DEBUG - policy ctest-policy1-76152200 is not found in API Server 2025-09-25 01:49:48,215 - DEBUG - No XMPP flaps were noticed during the test