2025-08-07 02:16:43,529 - INFO - Domain Default found not creating 2025-08-07 02:16:43,705 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-30158429 not found, creating it 2025-08-07 02:16:44,201 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-30158429, ID : 6be07870-1274-4623-b0b7-b844bb0d3aac 2025-08-07 02:16:45,769 - INFO - ================================================================================ 2025-08-07 02:16:45,770 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-07 02:16:46,026 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.14': '0'}} with 2025-08-07 02:16:46,026 - INFO - Initial checks done. Running the testcase now 2025-08-07 02:16:46,026 - INFO - 2025-08-07 02:16:46,026 - INFO - ================================================================================ 2025-08-07 02:16:46,026 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-07 02:16:46,026 - 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-07 02:16:46,323 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.14': '0'}} with 2025-08-07 02:16:46,323 - INFO - Initial checks done. Running the testcase now 2025-08-07 02:16:46,323 - INFO - 2025-08-07 02:16:46,731 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30158429:ctest-vn4-67326040, 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-30158429:ctest-vn4-67326040, 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-30158429:ctest-vn4-67326040, 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-30158429:ctest-vn4-67326040, 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-07 02:16:47,297 - DEBUG - Response for create_network : {'network': {'id': 'a4c05fee-4fa3-4888-bb65-69c9b3e772d4', 'name': 'ctest-vn4-67326040', 'tenant_id': '6be0787012744623b0b7b844bb0d3aac', 'project_id': '6be0787012744623b0b7b844bb0d3aac', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30158429', 'ctest-vn4-67326040'], 'port_security_enabled': True, 'description': ''}} 2025-08-07 02:16:47,468 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f53a3cdd-1706-4eea-bf36-95dbd4290172', 'name': '', 'tenant_id': '6be0787012744623b0b7b844bb0d3aac', 'network_id': 'a4c05fee-4fa3-4888-bb65-69c9b3e772d4', 'ip_version': 4, 'cidr': '100.233.138.192/26', 'allocation_pools': [{'start': '100.233.138.194', 'end': '100.233.138.254'}], 'gateway_ip': '100.233.138.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '100.233.138.194', 'tags': [], 'project_id': '6be0787012744623b0b7b844bb0d3aac'}} 2025-08-07 02:16:47,664 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c1f1fd67-81df-46d1-b4cd-a0dec3c7b85e', 'name': '', 'tenant_id': '6be0787012744623b0b7b844bb0d3aac', 'network_id': 'a4c05fee-4fa3-4888-bb65-69c9b3e772d4', 'ip_version': 6, 'cidr': '2183:955:c7a:7e49:1b69:42c5::/96', 'allocation_pools': [{'start': '2183:955:c7a:7e49:1b69:42c5:0:2', 'end': '2183:955:c7a:7e49:1b69:42c5:ffff:fffe'}], 'gateway_ip': '2183:955:c7a:7e49:1b69:42c5:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2183:955:c7a:7e49:1b69:42c5:0:2', 'tags': [], 'project_id': '6be0787012744623b0b7b844bb0d3aac'}} 2025-08-07 02:16:47,690 - INFO - Created VN ctest-vn4-67326040 2025-08-07 02:16:47,745 - DEBUG - VN ctest-vn4-67326040 UUID is a4c05fee-4fa3-4888-bb65-69c9b3e772d4 2025-08-07 02:16:47,986 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a4c05fee-4fa3-4888-bb65-69c9b3e772d4', 'name': 'ctest-vn4-67326040', 'tenant_id': '6be0787012744623b0b7b844bb0d3aac', 'project_id': '6be0787012744623b0b7b844bb0d3aac', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f53a3cdd-1706-4eea-bf36-95dbd4290172', 'c1f1fd67-81df-46d1-b4cd-a0dec3c7b85e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30158429', 'ctest-vn4-67326040'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30158429', 'ctest-policy1-63089697']], 'subnet_ipam': [{'subnet_cidr': '100.233.138.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2183:955:c7a:7e49:1b69:42c5::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-07 02:16:48,121 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-08-07 02:16:48,460 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-08-07 02:16:48,488 - DEBUG - Requesting: http://10.0.0.129:8082/domain/aef09b26-fe29-4a53-8b7e-dc2c9f7c9d2d 2025-08-07 02:16:48,502 - DEBUG - Requesting: http://10.0.0.129:8082/project/6be07870-1274-4623-b0b7-b844bb0d3aac 2025-08-07 02:16:48,585 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/a4c05fee-4fa3-4888-bb65-69c9b3e772d4 2025-08-07 02:16:48,602 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/a4c05fee-4fa3-4888-bb65-69c9b3e772d4 2025-08-07 02:16:48,615 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/42f9f4a1-373c-4ed6-925e-10c8eb1bbcb8 2025-08-07 02:16:48,624 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/42f9f4a1-373c-4ed6-925e-10c8eb1bbcb8 2025-08-07 02:16:48,634 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/fa4510a5-1a60-40c5-a4a5-2968186d1da4 2025-08-07 02:16:48,642 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-07 02:16:48,642 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/a4c05fee-4fa3-4888-bb65-69c9b3e772d4 2025-08-07 02:16:48,655 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/42f9f4a1-373c-4ed6-925e-10c8eb1bbcb8 2025-08-07 02:16:48,673 - INFO - Verified VN network id 11 for VN a4c05fee-4fa3-4888-bb65-69c9b3e772d4 2025-08-07 02:16:48,674 - INFO - Verifications in API Server for VN ctest-vn4-67326040 passed 2025-08-07 02:16:48,674 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/a4c05fee-4fa3-4888-bb65-69c9b3e772d4 2025-08-07 02:16:48,685 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/42f9f4a1-373c-4ed6-925e-10c8eb1bbcb8 2025-08-07 02:16:48,694 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/42f9f4a1-373c-4ed6-925e-10c8eb1bbcb8 2025-08-07 02:16:48,702 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/fa4510a5-1a60-40c5-a4a5-2968186d1da4 2025-08-07 02:16:48,716 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30158429:ctest-vn4-67326040', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-30158429', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11871594094891583624', 'uuid-lslong': '13503315372767933140'}, 'enable': 'true', 'created': '2025-08-07T02:16:47', 'last-modified': '2025-08-07T02:16:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.779875'} 2025-08-07 02:16:48,723 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-07 02:16:48,723 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-67326040 passed 2025-08-07 02:16:48,724 - DEBUG - ====Verifying policy data for ctest-vn4-67326040 in API_Server ====== 2025-08-07 02:16:48,724 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-08-07 02:16:48,730 - DEBUG - Requesting: http://10.0.0.129:8082/domain/aef09b26-fe29-4a53-8b7e-dc2c9f7c9d2d 2025-08-07 02:16:48,743 - DEBUG - Requesting: http://10.0.0.129:8082/project/6be07870-1274-4623-b0b7-b844bb0d3aac 2025-08-07 02:16:48,817 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/a4c05fee-4fa3-4888-bb65-69c9b3e772d4 2025-08-07 02:16:48,829 - DEBUG - ==>Verifying data for policy with id: c899198d-b144-427b-a935-8cf19ab67d15, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30158429', 'ctest-policy1-63089697'] 2025-08-07 02:16:48,829 - INFO - VN ctest-vn4-67326040 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-07 02:16:48,829 - DEBUG - Verifying the vn in opserver 2025-08-07 02:16:48,829 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30158429:ctest-vn4-67326040 virtual network link through opserver 10.0.0.129 2025-08-07 02:16:48,830 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2025-08-07 02:16:49,169 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2025-08-07 02:16:49,227 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30158429:ctest-vn4-67326040', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30158429:ctest-vn4-67326040?flat'} 2025-08-07 02:16:49,227 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30158429:ctest-vn4-67326040 is found in opserver 2025-08-07 02:16:49,240 - DEBUG - Do not have enough data to verify VN in agent 2025-08-07 02:16:49,246 - DEBUG - VRF ids for VN ctest-vn4-67326040: {} 2025-08-07 02:16:49,247 - DEBUG - ====Verifying data for ctest-policy1-63089697 in API_Server ====== 2025-08-07 02:16:49,247 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-08-07 02:16:49,254 - DEBUG - Requesting: http://10.0.0.129:8082/domain/aef09b26-fe29-4a53-8b7e-dc2c9f7c9d2d 2025-08-07 02:16:49,267 - DEBUG - Requesting: http://10.0.0.129:8082/project/6be07870-1274-4623-b0b7-b844bb0d3aac 2025-08-07 02:16:49,341 - DEBUG - Requesting: http://10.0.0.129:8082/network-policy/c899198d-b144-427b-a935-8cf19ab67d15 2025-08-07 02:16:49,355 - INFO - Verified policy ctest-policy1-63089697 in API Server, Result: True 2025-08-07 02:16:49,355 - INFO - Done with setup and verification, moving onto test .. 2025-08-07 02:16:49,365 - INFO - Deleting VN ctest-vn4-67326040 2025-08-07 02:16:49,515 - DEBUG - Response for deleting network () 2025-08-07 02:16:49,515 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/42f9f4a1-373c-4ed6-925e-10c8eb1bbcb8 2025-08-07 02:16:49,521 - DEBUG - Response Code: 404 2025-08-07 02:16:49,521 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-08-07 02:16:49,527 - DEBUG - Requesting: http://10.0.0.129:8082/domain/aef09b26-fe29-4a53-8b7e-dc2c9f7c9d2d 2025-08-07 02:16:49,584 - DEBUG - Requesting: http://10.0.0.129:8082/project/6be07870-1274-4623-b0b7-b844bb0d3aac 2025-08-07 02:16:49,661 - INFO - Validated that VN ctest-vn4-67326040 is not found in API Server 2025-08-07 02:16:49,675 - DEBUG - VN ctest-vn4-67326040 is not present in Agent 10.0.0.129 2025-08-07 02:16:49,675 - INFO - Validated that VN ctest-vn4-67326040 is not in any agent 2025-08-07 02:16:49,693 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-67326040 info 2025-08-07 02:16:49,723 - INFO - Deleted policy ctest-policy1-63089697 2025-08-07 02:16:49,893 - DEBUG - policy ctest-policy1-63089697 is not found in API Server 2025-08-07 02:16:50,147 - DEBUG - No XMPP flaps were noticed during the test
2025-08-07 02:16:50,147 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-08-07 02:16:50,148 - INFO - -------------------------------------------------------------------------------- 2025-08-07 02:16:50,439 - DEBUG - No XMPP flaps were noticed during the test
2025-08-07 02:16:50,439 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-08-07 02:16:50,439 - INFO - -------------------------------------------------------------------------------- 2025-08-07 02:16:51,167 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-30158429, ID : 6be07870-1274-4623-b0b7-b844bb0d3aac