2025-09-11 11:01:00,227 - INFO - Domain Default found not creating 2025-09-11 11:01:00,367 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-44652311 not found, creating it 2025-09-11 11:01:00,795 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-44652311, ID : d35742ce-3e4a-4eac-b1a0-01a25558beea 2025-09-11 11:01:02,170 - INFO - ================================================================================ 2025-09-11 11:01:02,170 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-11 11:01:02,423 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2025-09-11 11:01:02,423 - INFO - Initial checks done. Running the testcase now 2025-09-11 11:01:02,423 - INFO - 2025-09-11 11:01:02,423 - INFO - ================================================================================ 2025-09-11 11:01:02,423 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-11 11:01:02,423 - 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-11 11:01:02,705 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2025-09-11 11:01:02,705 - INFO - Initial checks done. Running the testcase now 2025-09-11 11:01:02,705 - INFO - 2025-09-11 11:01:03,044 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44652311:ctest-vn4-99566100, 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-44652311:ctest-vn4-99566100, 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-44652311:ctest-vn4-99566100, 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-44652311:ctest-vn4-99566100, 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-11 11:01:03,543 - DEBUG - Response for create_network : {'network': {'id': '98bca0c3-0103-4980-887e-4996a092dab4', 'name': 'ctest-vn4-99566100', 'tenant_id': 'd35742ce3e4a4eacb1a001a25558beea', 'project_id': 'd35742ce3e4a4eacb1a001a25558beea', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-44652311', 'ctest-vn4-99566100'], 'port_security_enabled': True, 'description': ''}} 2025-09-11 11:01:03,714 - DEBUG - Response for create_subnet : {'subnet': {'id': '80e6c285-a2bb-4a34-9ad4-563dddffd491', 'name': '', 'tenant_id': 'd35742ce3e4a4eacb1a001a25558beea', 'network_id': '98bca0c3-0103-4980-887e-4996a092dab4', 'ip_version': 4, 'cidr': '3.191.165.64/26', 'allocation_pools': [{'start': '3.191.165.66', 'end': '3.191.165.126'}], 'gateway_ip': '3.191.165.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3.191.165.66', 'tags': [], 'project_id': 'd35742ce3e4a4eacb1a001a25558beea'}} 2025-09-11 11:01:03,891 - DEBUG - Response for create_subnet : {'subnet': {'id': '2cfb1783-c200-44b8-a2b8-f9ff09d4ea84', 'name': '', 'tenant_id': 'd35742ce3e4a4eacb1a001a25558beea', 'network_id': '98bca0c3-0103-4980-887e-4996a092dab4', 'ip_version': 6, 'cidr': '3036:ade0:49f6:e4bc:a36b:22be::/96', 'allocation_pools': [{'start': '3036:ade0:49f6:e4bc:a36b:22be:0:2', 'end': '3036:ade0:49f6:e4bc:a36b:22be:ffff:fffe'}], 'gateway_ip': '3036:ade0:49f6:e4bc:a36b:22be:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3036:ade0:49f6:e4bc:a36b:22be:0:2', 'tags': [], 'project_id': 'd35742ce3e4a4eacb1a001a25558beea'}} 2025-09-11 11:01:03,909 - INFO - Created VN ctest-vn4-99566100 2025-09-11 11:01:03,961 - DEBUG - VN ctest-vn4-99566100 UUID is 98bca0c3-0103-4980-887e-4996a092dab4 2025-09-11 11:01:04,150 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '98bca0c3-0103-4980-887e-4996a092dab4', 'name': 'ctest-vn4-99566100', 'tenant_id': 'd35742ce3e4a4eacb1a001a25558beea', 'project_id': 'd35742ce3e4a4eacb1a001a25558beea', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['80e6c285-a2bb-4a34-9ad4-563dddffd491', '2cfb1783-c200-44b8-a2b8-f9ff09d4ea84'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-44652311', 'ctest-vn4-99566100'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-44652311', 'ctest-policy1-69192108']], 'subnet_ipam': [{'subnet_cidr': '3.191.165.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3036:ade0:49f6:e4bc:a36b:22be::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-11 11:01:04,313 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-11 11:01:04,601 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-11 11:01:04,625 - DEBUG - Requesting: http://10.0.0.22:8082/domain/09fb6021-991a-4f39-a931-08d840e9d2e5 2025-09-11 11:01:04,636 - DEBUG - Requesting: http://10.0.0.22:8082/project/d35742ce-3e4a-4eac-b1a0-01a25558beea 2025-09-11 11:01:04,707 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/98bca0c3-0103-4980-887e-4996a092dab4 2025-09-11 11:01:04,717 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/98bca0c3-0103-4980-887e-4996a092dab4 2025-09-11 11:01:04,726 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d522c3ee-e7fc-43a0-b2f3-a8dc18742e84 2025-09-11 11:01:04,731 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d522c3ee-e7fc-43a0-b2f3-a8dc18742e84 2025-09-11 11:01:04,737 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/7ac648f4-ec7a-4e07-b9d6-32a4e6129ef4 2025-09-11 11:01:04,742 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-11 11:01:04,742 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/98bca0c3-0103-4980-887e-4996a092dab4 2025-09-11 11:01:04,750 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d522c3ee-e7fc-43a0-b2f3-a8dc18742e84 2025-09-11 11:01:04,761 - INFO - Verified VN network id 10 for VN 98bca0c3-0103-4980-887e-4996a092dab4 2025-09-11 11:01:04,761 - INFO - Verifications in API Server for VN ctest-vn4-99566100 passed 2025-09-11 11:01:04,762 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/98bca0c3-0103-4980-887e-4996a092dab4 2025-09-11 11:01:04,770 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d522c3ee-e7fc-43a0-b2f3-a8dc18742e84 2025-09-11 11:01:04,777 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d522c3ee-e7fc-43a0-b2f3-a8dc18742e84 2025-09-11 11:01:04,782 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/7ac648f4-ec7a-4e07-b9d6-32a4e6129ef4 2025-09-11 11:01:04,791 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44652311:ctest-vn4-99566100', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-44652311', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11005848348782709120', 'uuid-lslong': '9835379547511642804'}, 'enable': 'true', 'created': '2025-09-11T11:01:03', 'last-modified': '2025-09-11T11:01:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.671120'} 2025-09-11 11:01:04,797 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-11 11:01:04,797 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-99566100 passed 2025-09-11 11:01:04,797 - DEBUG - ====Verifying policy data for ctest-vn4-99566100 in API_Server ====== 2025-09-11 11:01:04,797 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-11 11:01:04,802 - DEBUG - Requesting: http://10.0.0.22:8082/domain/09fb6021-991a-4f39-a931-08d840e9d2e5 2025-09-11 11:01:04,813 - DEBUG - Requesting: http://10.0.0.22:8082/project/d35742ce-3e4a-4eac-b1a0-01a25558beea 2025-09-11 11:01:04,884 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/98bca0c3-0103-4980-887e-4996a092dab4 2025-09-11 11:01:04,892 - DEBUG - ==>Verifying data for policy with id: 301eef44-83cc-4a76-adc5-0e9c31b39074, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-44652311', 'ctest-policy1-69192108'] 2025-09-11 11:01:04,892 - INFO - VN ctest-vn4-99566100 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-11 11:01:04,892 - DEBUG - Verifying the vn in opserver 2025-09-11 11:01:04,892 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44652311:ctest-vn4-99566100 virtual network link through opserver 10.0.0.22 2025-09-11 11:01:04,892 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-09-11 11:01:05,183 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-09-11 11:01:05,259 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44652311:ctest-vn4-99566100', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44652311:ctest-vn4-99566100?flat'} 2025-09-11 11:01:05,259 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44652311:ctest-vn4-99566100 is found in opserver 2025-09-11 11:01:05,267 - DEBUG - Do not have enough data to verify VN in agent 2025-09-11 11:01:05,271 - DEBUG - VRF ids for VN ctest-vn4-99566100: {} 2025-09-11 11:01:05,271 - DEBUG - ====Verifying data for ctest-policy1-69192108 in API_Server ====== 2025-09-11 11:01:05,271 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-11 11:01:05,282 - DEBUG - Requesting: http://10.0.0.22:8082/domain/09fb6021-991a-4f39-a931-08d840e9d2e5 2025-09-11 11:01:05,340 - DEBUG - Requesting: http://10.0.0.22:8082/project/d35742ce-3e4a-4eac-b1a0-01a25558beea 2025-09-11 11:01:05,425 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/301eef44-83cc-4a76-adc5-0e9c31b39074 2025-09-11 11:01:05,434 - INFO - Verified policy ctest-policy1-69192108 in API Server, Result: True 2025-09-11 11:01:05,434 - INFO - Done with setup and verification, moving onto test .. 2025-09-11 11:01:05,445 - INFO - Deleting VN ctest-vn4-99566100 2025-09-11 11:01:05,796 - DEBUG - Response for deleting network () 2025-09-11 11:01:05,796 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d522c3ee-e7fc-43a0-b2f3-a8dc18742e84 2025-09-11 11:01:05,805 - DEBUG - Response Code: 404 2025-09-11 11:01:05,806 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-11 11:01:05,815 - DEBUG - Requesting: http://10.0.0.22:8082/domain/09fb6021-991a-4f39-a931-08d840e9d2e5 2025-09-11 11:01:05,839 - DEBUG - Requesting: http://10.0.0.22:8082/project/d35742ce-3e4a-4eac-b1a0-01a25558beea 2025-09-11 11:01:05,908 - INFO - Validated that VN ctest-vn4-99566100 is not found in API Server 2025-09-11 11:01:05,916 - DEBUG - VN ctest-vn4-99566100 is not present in Agent 10.0.0.22 2025-09-11 11:01:05,916 - INFO - Validated that VN ctest-vn4-99566100 is not in any agent 2025-09-11 11:01:05,928 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-99566100 info 2025-09-11 11:01:05,957 - INFO - Deleted policy ctest-policy1-69192108 2025-09-11 11:01:06,181 - DEBUG - policy ctest-policy1-69192108 is not found in API Server 2025-09-11 11:01:06,438 - DEBUG - No XMPP flaps were noticed during the test
2025-09-11 11:01:06,438 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-09-11 11:01:06,438 - INFO - -------------------------------------------------------------------------------- 2025-09-11 11:01:06,729 - DEBUG - No XMPP flaps were noticed during the test
2025-09-11 11:01:06,729 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-09-11 11:01:06,729 - INFO - -------------------------------------------------------------------------------- 2025-09-11 11:01:07,383 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-44652311, ID : d35742ce-3e4a-4eac-b1a0-01a25558beea