2025-09-22 02:11:12,793 - INFO - Domain Default found not creating 2025-09-22 02:11:12,930 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-93601574 not found, creating it 2025-09-22 02:11:13,368 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-93601574, ID : 5a913337-52fe-41f1-b188-fdec7e25a71c 2025-09-22 02:11:14,703 - INFO - ================================================================================ 2025-09-22 02:11:14,703 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-22 02:11:14,955 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.209': '0'}} with 2025-09-22 02:11:14,955 - INFO - Initial checks done. Running the testcase now 2025-09-22 02:11:14,955 - INFO - 2025-09-22 02:11:14,955 - INFO - ================================================================================ 2025-09-22 02:11:14,955 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-22 02:11:14,955 - 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 02:11:15,251 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.209': '0'}} with 2025-09-22 02:11:15,251 - INFO - Initial checks done. Running the testcase now 2025-09-22 02:11:15,251 - INFO - 2025-09-22 02:11:15,591 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93601574:ctest-vn4-30393353, 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-93601574:ctest-vn4-30393353, 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-93601574:ctest-vn4-30393353, 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-93601574:ctest-vn4-30393353, 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 02:11:16,082 - DEBUG - Response for create_network : {'network': {'id': 'f058b412-96ba-43bd-ae1b-887c96bb6d66', 'name': 'ctest-vn4-30393353', 'tenant_id': '5a91333752fe41f1b188fdec7e25a71c', 'project_id': '5a91333752fe41f1b188fdec7e25a71c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93601574', 'ctest-vn4-30393353'], 'port_security_enabled': True, 'description': ''}} 2025-09-22 02:11:16,249 - DEBUG - Response for create_subnet : {'subnet': {'id': '0080a8dd-9a79-4171-84ed-6f9083471e7b', 'name': '', 'tenant_id': '5a91333752fe41f1b188fdec7e25a71c', 'network_id': 'f058b412-96ba-43bd-ae1b-887c96bb6d66', 'ip_version': 4, 'cidr': '218.53.67.128/26', 'allocation_pools': [{'start': '218.53.67.130', 'end': '218.53.67.190'}], 'gateway_ip': '218.53.67.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '218.53.67.130', 'tags': [], 'project_id': '5a91333752fe41f1b188fdec7e25a71c'}} 2025-09-22 02:11:16,417 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a30e85a3-d3eb-4901-a6e2-a270ebed8cfa', 'name': '', 'tenant_id': '5a91333752fe41f1b188fdec7e25a71c', 'network_id': 'f058b412-96ba-43bd-ae1b-887c96bb6d66', 'ip_version': 6, 'cidr': '2499:215b:ce22:3125:8aec:aa64::/96', 'allocation_pools': [{'start': '2499:215b:ce22:3125:8aec:aa64:0:2', 'end': '2499:215b:ce22:3125:8aec:aa64:ffff:fffe'}], 'gateway_ip': '2499:215b:ce22:3125:8aec:aa64:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2499:215b:ce22:3125:8aec:aa64:0:2', 'tags': [], 'project_id': '5a91333752fe41f1b188fdec7e25a71c'}} 2025-09-22 02:11:16,441 - INFO - Created VN ctest-vn4-30393353 2025-09-22 02:11:16,495 - DEBUG - VN ctest-vn4-30393353 UUID is f058b412-96ba-43bd-ae1b-887c96bb6d66 2025-09-22 02:11:16,673 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f058b412-96ba-43bd-ae1b-887c96bb6d66', 'name': 'ctest-vn4-30393353', 'tenant_id': '5a91333752fe41f1b188fdec7e25a71c', 'project_id': '5a91333752fe41f1b188fdec7e25a71c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0080a8dd-9a79-4171-84ed-6f9083471e7b', 'a30e85a3-d3eb-4901-a6e2-a270ebed8cfa'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93601574', 'ctest-vn4-30393353'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93601574', 'ctest-policy1-16214860']], 'subnet_ipam': [{'subnet_cidr': '218.53.67.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2499:215b:ce22:3125:8aec:aa64::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-22 02:11:16,831 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-09-22 02:11:17,118 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-09-22 02:11:17,142 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b5637f25-7d5a-451c-afff-faab7c691f87 2025-09-22 02:11:17,153 - DEBUG - Requesting: http://10.0.0.50:8082/project/5a913337-52fe-41f1-b188-fdec7e25a71c 2025-09-22 02:11:17,219 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f058b412-96ba-43bd-ae1b-887c96bb6d66 2025-09-22 02:11:17,229 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f058b412-96ba-43bd-ae1b-887c96bb6d66 2025-09-22 02:11:17,237 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5dfd8395-1bef-409c-9d8d-0493bdf9cdb8 2025-09-22 02:11:17,242 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5dfd8395-1bef-409c-9d8d-0493bdf9cdb8 2025-09-22 02:11:17,247 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/afa967b5-300c-4e0e-97d6-04a246529e72 2025-09-22 02:11:17,252 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-22 02:11:17,252 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f058b412-96ba-43bd-ae1b-887c96bb6d66 2025-09-22 02:11:17,259 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5dfd8395-1bef-409c-9d8d-0493bdf9cdb8 2025-09-22 02:11:17,269 - INFO - Verified VN network id 12 for VN f058b412-96ba-43bd-ae1b-887c96bb6d66 2025-09-22 02:11:17,270 - INFO - Verifications in API Server for VN ctest-vn4-30393353 passed 2025-09-22 02:11:17,270 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f058b412-96ba-43bd-ae1b-887c96bb6d66 2025-09-22 02:11:17,277 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5dfd8395-1bef-409c-9d8d-0493bdf9cdb8 2025-09-22 02:11:17,282 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5dfd8395-1bef-409c-9d8d-0493bdf9cdb8 2025-09-22 02:11:17,286 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/afa967b5-300c-4e0e-97d6-04a246529e72 2025-09-22 02:11:17,295 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93601574:ctest-vn4-30393353', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-93601574', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17318790358984442813', 'uuid-lslong': '12545771255656836454'}, 'enable': 'true', 'created': '2025-09-22T02:11:16', 'last-modified': '2025-09-22T02:11:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.642224'} 2025-09-22 02:11:17,300 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-22 02:11:17,300 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-30393353 passed 2025-09-22 02:11:17,300 - DEBUG - ====Verifying policy data for ctest-vn4-30393353 in API_Server ====== 2025-09-22 02:11:17,301 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-09-22 02:11:17,305 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b5637f25-7d5a-451c-afff-faab7c691f87 2025-09-22 02:11:17,313 - DEBUG - Requesting: http://10.0.0.50:8082/project/5a913337-52fe-41f1-b188-fdec7e25a71c 2025-09-22 02:11:17,375 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f058b412-96ba-43bd-ae1b-887c96bb6d66 2025-09-22 02:11:17,383 - DEBUG - ==>Verifying data for policy with id: c12af278-a695-43b2-be2e-d7e2caaf43a8, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93601574', 'ctest-policy1-16214860'] 2025-09-22 02:11:17,383 - INFO - VN ctest-vn4-30393353 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-22 02:11:17,383 - DEBUG - Verifying the vn in opserver 2025-09-22 02:11:17,383 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93601574:ctest-vn4-30393353 virtual network link through opserver 10.0.0.50 2025-09-22 02:11:17,383 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-09-22 02:11:17,671 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-09-22 02:11:17,717 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93601574:ctest-vn4-30393353', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93601574:ctest-vn4-30393353?flat'} 2025-09-22 02:11:17,717 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93601574:ctest-vn4-30393353 is found in opserver 2025-09-22 02:11:17,725 - DEBUG - Do not have enough data to verify VN in agent 2025-09-22 02:11:17,729 - DEBUG - VRF ids for VN ctest-vn4-30393353: {} 2025-09-22 02:11:17,729 - DEBUG - ====Verifying data for ctest-policy1-16214860 in API_Server ====== 2025-09-22 02:11:17,729 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-09-22 02:11:17,734 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b5637f25-7d5a-451c-afff-faab7c691f87 2025-09-22 02:11:17,742 - DEBUG - Requesting: http://10.0.0.50:8082/project/5a913337-52fe-41f1-b188-fdec7e25a71c 2025-09-22 02:11:17,813 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/c12af278-a695-43b2-be2e-d7e2caaf43a8 2025-09-22 02:11:17,821 - INFO - Verified policy ctest-policy1-16214860 in API Server, Result: True 2025-09-22 02:11:17,822 - INFO - Done with setup and verification, moving onto test .. 2025-09-22 02:11:17,828 - INFO - Deleting VN ctest-vn4-30393353 2025-09-22 02:11:17,924 - DEBUG - Response for deleting network () 2025-09-22 02:11:17,924 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5dfd8395-1bef-409c-9d8d-0493bdf9cdb8 2025-09-22 02:11:17,928 - DEBUG - Response Code: 404 2025-09-22 02:11:17,928 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-09-22 02:11:17,933 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b5637f25-7d5a-451c-afff-faab7c691f87 2025-09-22 02:11:17,983 - DEBUG - Requesting: http://10.0.0.50:8082/project/5a913337-52fe-41f1-b188-fdec7e25a71c 2025-09-22 02:11:18,052 - INFO - Validated that VN ctest-vn4-30393353 is not found in API Server 2025-09-22 02:11:18,061 - DEBUG - VN ctest-vn4-30393353 is not present in Agent 10.0.0.50 2025-09-22 02:11:18,061 - INFO - Validated that VN ctest-vn4-30393353 is not in any agent 2025-09-22 02:11:18,074 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-30393353 info 2025-09-22 02:11:18,094 - INFO - Deleted policy ctest-policy1-16214860 2025-09-22 02:11:18,254 - DEBUG - policy ctest-policy1-16214860 is not found in API Server 2025-09-22 02:11:18,519 - DEBUG - No XMPP flaps were noticed during the test 2025-09-22 02:11:18,519 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-09-22 02:11:18,519 - INFO - -------------------------------------------------------------------------------- 2025-09-22 02:11:18,815 - DEBUG - No XMPP flaps were noticed during the test 2025-09-22 02:11:18,815 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-09-22 02:11:18,815 - INFO - -------------------------------------------------------------------------------- 2025-09-22 02:11:19,458 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-93601574, ID : 5a913337-52fe-41f1-b188-fdec7e25a71c