2025-10-22 12:22:51,616 - INFO - Domain Default found not creating 2025-10-22 12:22:51,799 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-26093651 not found, creating it 2025-10-22 12:22:52,298 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-26093651, ID : 4c9e7ed7-86cb-44a1-a489-f9c85f68c3b9 2025-10-22 12:22:53,861 - INFO - ================================================================================ 2025-10-22 12:22:53,862 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-22 12:22:54,140 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.17': '0'}} with 2025-10-22 12:22:54,141 - INFO - Initial checks done. Running the testcase now 2025-10-22 12:22:54,141 - INFO - 2025-10-22 12:22:54,141 - INFO - ================================================================================ 2025-10-22 12:22:54,141 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-22 12:22:54,141 - 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-22 12:22:54,420 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.17': '0'}} with 2025-10-22 12:22:54,420 - INFO - Initial checks done. Running the testcase now 2025-10-22 12:22:54,421 - INFO - 2025-10-22 12:22:54,775 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26093651:ctest-vn4-29176343, 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-26093651:ctest-vn4-29176343, 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-26093651:ctest-vn4-29176343, 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-26093651:ctest-vn4-29176343, 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-22 12:22:55,300 - DEBUG - Response for create_network : {'network': {'id': 'f4f54663-b8ff-4421-ac55-ef101dc35c2c', 'name': 'ctest-vn4-29176343', 'tenant_id': '4c9e7ed786cb44a1a489f9c85f68c3b9', 'project_id': '4c9e7ed786cb44a1a489f9c85f68c3b9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-26093651', 'ctest-vn4-29176343'], 'port_security_enabled': True, 'description': ''}} 2025-10-22 12:22:55,468 - DEBUG - Response for create_subnet : {'subnet': {'id': '9530c622-aa34-43cc-80c9-c5a721a1f90d', 'name': '', 'tenant_id': '4c9e7ed786cb44a1a489f9c85f68c3b9', 'network_id': 'f4f54663-b8ff-4421-ac55-ef101dc35c2c', 'ip_version': 4, 'cidr': '214.57.85.128/26', 'allocation_pools': [{'start': '214.57.85.130', 'end': '214.57.85.190'}], 'gateway_ip': '214.57.85.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '214.57.85.130', 'tags': [], 'project_id': '4c9e7ed786cb44a1a489f9c85f68c3b9'}} 2025-10-22 12:22:55,621 - DEBUG - Response for create_subnet : {'subnet': {'id': '2ba8643e-727c-48c5-8937-8a05482496c1', 'name': '', 'tenant_id': '4c9e7ed786cb44a1a489f9c85f68c3b9', 'network_id': 'f4f54663-b8ff-4421-ac55-ef101dc35c2c', 'ip_version': 6, 'cidr': '2bfc:f237:4ad7:a7b1:d169:332c::/96', 'allocation_pools': [{'start': '2bfc:f237:4ad7:a7b1:d169:332c:0:2', 'end': '2bfc:f237:4ad7:a7b1:d169:332c:ffff:fffe'}], 'gateway_ip': '2bfc:f237:4ad7:a7b1:d169:332c:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2bfc:f237:4ad7:a7b1:d169:332c:0:2', 'tags': [], 'project_id': '4c9e7ed786cb44a1a489f9c85f68c3b9'}} 2025-10-22 12:22:55,720 - INFO - Created VN ctest-vn4-29176343 2025-10-22 12:22:55,776 - DEBUG - VN ctest-vn4-29176343 UUID is f4f54663-b8ff-4421-ac55-ef101dc35c2c 2025-10-22 12:22:56,038 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f4f54663-b8ff-4421-ac55-ef101dc35c2c', 'name': 'ctest-vn4-29176343', 'tenant_id': '4c9e7ed786cb44a1a489f9c85f68c3b9', 'project_id': '4c9e7ed786cb44a1a489f9c85f68c3b9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9530c622-aa34-43cc-80c9-c5a721a1f90d', '2ba8643e-727c-48c5-8937-8a05482496c1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-26093651', 'ctest-vn4-29176343'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-26093651', 'ctest-policy1-14264993']], 'subnet_ipam': [{'subnet_cidr': '214.57.85.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2bfc:f237:4ad7:a7b1:d169:332c::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-22 12:22:56,224 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2025-10-22 12:22:56,525 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2025-10-22 12:22:56,568 - DEBUG - Requesting: http://10.0.0.241:8082/domain/06c58a4c-2788-492a-a725-2ab9a382808a 2025-10-22 12:22:56,581 - DEBUG - Requesting: http://10.0.0.241:8082/project/4c9e7ed7-86cb-44a1-a489-f9c85f68c3b9 2025-10-22 12:22:56,659 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/f4f54663-b8ff-4421-ac55-ef101dc35c2c 2025-10-22 12:22:56,673 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/f4f54663-b8ff-4421-ac55-ef101dc35c2c 2025-10-22 12:22:56,684 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/18c409f2-12cf-4efa-a347-38dc9416a1bf 2025-10-22 12:22:56,693 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/18c409f2-12cf-4efa-a347-38dc9416a1bf 2025-10-22 12:22:56,702 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/dd23ffe8-3905-49fc-993b-96afa80ee469 2025-10-22 12:22:56,710 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-22 12:22:56,710 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/f4f54663-b8ff-4421-ac55-ef101dc35c2c 2025-10-22 12:22:56,723 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/18c409f2-12cf-4efa-a347-38dc9416a1bf 2025-10-22 12:22:56,739 - INFO - Verified VN network id 11 for VN f4f54663-b8ff-4421-ac55-ef101dc35c2c 2025-10-22 12:22:56,739 - INFO - Verifications in API Server for VN ctest-vn4-29176343 passed 2025-10-22 12:22:56,740 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/f4f54663-b8ff-4421-ac55-ef101dc35c2c 2025-10-22 12:22:56,750 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/18c409f2-12cf-4efa-a347-38dc9416a1bf 2025-10-22 12:22:56,757 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/18c409f2-12cf-4efa-a347-38dc9416a1bf 2025-10-22 12:22:56,765 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/dd23ffe8-3905-49fc-993b-96afa80ee469 2025-10-22 12:22:56,780 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26093651:ctest-vn4-29176343', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-26093651', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17651091708667970593', 'uuid-lslong': '12418094400041868332'}, 'enable': 'true', 'created': '2025-10-22T12:22:55', 'last-modified': '2025-10-22T12:22:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.786695'} 2025-10-22 12:22:56,786 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-22 12:22:56,787 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-29176343 passed 2025-10-22 12:22:56,787 - DEBUG - ====Verifying policy data for ctest-vn4-29176343 in API_Server ====== 2025-10-22 12:22:56,787 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2025-10-22 12:22:56,793 - DEBUG - Requesting: http://10.0.0.241:8082/domain/06c58a4c-2788-492a-a725-2ab9a382808a 2025-10-22 12:22:56,805 - DEBUG - Requesting: http://10.0.0.241:8082/project/4c9e7ed7-86cb-44a1-a489-f9c85f68c3b9 2025-10-22 12:22:56,881 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/f4f54663-b8ff-4421-ac55-ef101dc35c2c 2025-10-22 12:22:56,892 - DEBUG - ==>Verifying data for policy with id: 7668d657-6058-4bce-bf61-6ab0149b3bea, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-26093651', 'ctest-policy1-14264993'] 2025-10-22 12:22:56,892 - INFO - VN ctest-vn4-29176343 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-22 12:22:56,892 - DEBUG - Verifying the vn in opserver 2025-10-22 12:22:56,892 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26093651:ctest-vn4-29176343 virtual network link through opserver 10.0.0.241 2025-10-22 12:22:56,892 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks 2025-10-22 12:22:57,187 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks 2025-10-22 12:22:57,257 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26093651:ctest-vn4-29176343', 'href': 'http://10.0.0.241:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26093651:ctest-vn4-29176343?flat'} 2025-10-22 12:22:57,257 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26093651:ctest-vn4-29176343 is found in opserver 2025-10-22 12:22:57,268 - DEBUG - Do not have enough data to verify VN in agent 2025-10-22 12:22:57,273 - DEBUG - VRF ids for VN ctest-vn4-29176343: {} 2025-10-22 12:22:57,274 - DEBUG - ====Verifying data for ctest-policy1-14264993 in API_Server ====== 2025-10-22 12:22:57,274 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2025-10-22 12:22:57,281 - DEBUG - Requesting: http://10.0.0.241:8082/domain/06c58a4c-2788-492a-a725-2ab9a382808a 2025-10-22 12:22:57,293 - DEBUG - Requesting: http://10.0.0.241:8082/project/4c9e7ed7-86cb-44a1-a489-f9c85f68c3b9 2025-10-22 12:22:57,372 - DEBUG - Requesting: http://10.0.0.241:8082/network-policy/7668d657-6058-4bce-bf61-6ab0149b3bea 2025-10-22 12:22:57,383 - INFO - Verified policy ctest-policy1-14264993 in API Server, Result: True 2025-10-22 12:22:57,383 - INFO - Done with setup and verification, moving onto test .. 2025-10-22 12:22:57,395 - INFO - Deleting VN ctest-vn4-29176343 2025-10-22 12:22:57,542 - DEBUG - Response for deleting network () 2025-10-22 12:22:57,542 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/18c409f2-12cf-4efa-a347-38dc9416a1bf 2025-10-22 12:22:57,550 - DEBUG - Response Code: 404 2025-10-22 12:22:57,550 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2025-10-22 12:22:57,556 - DEBUG - Requesting: http://10.0.0.241:8082/domain/06c58a4c-2788-492a-a725-2ab9a382808a 2025-10-22 12:22:57,609 - DEBUG - Requesting: http://10.0.0.241:8082/project/4c9e7ed7-86cb-44a1-a489-f9c85f68c3b9 2025-10-22 12:22:57,693 - INFO - Validated that VN ctest-vn4-29176343 is not found in API Server 2025-10-22 12:22:57,705 - DEBUG - VN ctest-vn4-29176343 is not present in Agent 10.0.0.241 2025-10-22 12:22:57,705 - INFO - Validated that VN ctest-vn4-29176343 is not in any agent 2025-10-22 12:22:57,725 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-29176343 info 2025-10-22 12:22:57,755 - INFO - Deleted policy ctest-policy1-14264993 2025-10-22 12:22:57,919 - DEBUG - policy ctest-policy1-14264993 is not found in API Server 2025-10-22 12:22:58,173 - DEBUG - No XMPP flaps were noticed during the test 2025-10-22 12:22:58,173 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-22 12:22:58,174 - INFO - -------------------------------------------------------------------------------- 2025-10-22 12:22:58,465 - DEBUG - No XMPP flaps were noticed during the test 2025-10-22 12:22:58,465 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-10-22 12:22:58,465 - INFO - -------------------------------------------------------------------------------- 2025-10-22 12:22:59,152 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-26093651, ID : 4c9e7ed7-86cb-44a1-a489-f9c85f68c3b9