2025-11-18 14:47:31,884 - INFO - Domain Default found not creating 2025-11-18 14:47:32,108 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-10786361 not found, creating it 2025-11-18 14:47:32,742 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-10786361, ID : 978a23a3-278f-4328-bff5-7ba134516494 2025-11-18 14:47:34,484 - INFO - ================================================================================ 2025-11-18 14:47:34,484 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-18 14:47:34,748 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.5': '0'}} with 2025-11-18 14:47:34,748 - INFO - Initial checks done. Running the testcase now 2025-11-18 14:47:34,748 - INFO - 2025-11-18 14:47:34,748 - INFO - ================================================================================ 2025-11-18 14:47:34,748 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-18 14:47:34,748 - 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-11-18 14:47:35,044 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.5': '0'}} with 2025-11-18 14:47:35,044 - INFO - Initial checks done. Running the testcase now 2025-11-18 14:47:35,044 - INFO - 2025-11-18 14:47:35,434 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10786361:ctest-vn4-77137827, 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-10786361:ctest-vn4-77137827, 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-10786361:ctest-vn4-77137827, 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-10786361:ctest-vn4-77137827, 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-11-18 14:47:36,040 - DEBUG - Response for create_network : {'network': {'id': 'c49dcf16-4057-44ef-8b04-8315fcab39e1', 'name': 'ctest-vn4-77137827', 'tenant_id': '978a23a3278f4328bff57ba134516494', 'project_id': '978a23a3278f4328bff57ba134516494', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10786361', 'ctest-vn4-77137827'], 'port_security_enabled': True, 'description': ''}} 2025-11-18 14:47:36,227 - DEBUG - Response for create_subnet : {'subnet': {'id': '03d75cc4-24b9-4def-a7fd-f1df518259fe', 'name': '', 'tenant_id': '978a23a3278f4328bff57ba134516494', 'network_id': 'c49dcf16-4057-44ef-8b04-8315fcab39e1', 'ip_version': 4, 'cidr': '69.33.25.192/26', 'allocation_pools': [{'start': '69.33.25.194', 'end': '69.33.25.254'}], 'gateway_ip': '69.33.25.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '69.33.25.194', 'tags': [], 'project_id': '978a23a3278f4328bff57ba134516494'}} 2025-11-18 14:47:36,461 - DEBUG - Response for create_subnet : {'subnet': {'id': '2e05638b-4f21-4b54-ae26-f40c2b5e0995', 'name': '', 'tenant_id': '978a23a3278f4328bff57ba134516494', 'network_id': 'c49dcf16-4057-44ef-8b04-8315fcab39e1', 'ip_version': 6, 'cidr': '3c93:47b9:9768:383a:f509:c023::/96', 'allocation_pools': [{'start': '3c93:47b9:9768:383a:f509:c023:0:2', 'end': '3c93:47b9:9768:383a:f509:c023:ffff:fffe'}], 'gateway_ip': '3c93:47b9:9768:383a:f509:c023:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3c93:47b9:9768:383a:f509:c023:0:2', 'tags': [], 'project_id': '978a23a3278f4328bff57ba134516494'}} 2025-11-18 14:47:36,485 - INFO - Created VN ctest-vn4-77137827 2025-11-18 14:47:36,542 - DEBUG - VN ctest-vn4-77137827 UUID is c49dcf16-4057-44ef-8b04-8315fcab39e1 2025-11-18 14:47:36,751 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c49dcf16-4057-44ef-8b04-8315fcab39e1', 'name': 'ctest-vn4-77137827', 'tenant_id': '978a23a3278f4328bff57ba134516494', 'project_id': '978a23a3278f4328bff57ba134516494', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['03d75cc4-24b9-4def-a7fd-f1df518259fe', '2e05638b-4f21-4b54-ae26-f40c2b5e0995'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10786361', 'ctest-vn4-77137827'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10786361', 'ctest-policy1-55093930']], 'subnet_ipam': [{'subnet_cidr': '69.33.25.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3c93:47b9:9768:383a:f509:c023::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-18 14:47:36,926 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-18 14:47:37,235 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-18 14:47:37,281 - DEBUG - Requesting: http://10.0.0.33:8082/domain/b498e8f4-7605-4ec1-81af-703b4297c23e 2025-11-18 14:47:37,297 - DEBUG - Requesting: http://10.0.0.33:8082/project/978a23a3-278f-4328-bff5-7ba134516494 2025-11-18 14:47:37,380 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c49dcf16-4057-44ef-8b04-8315fcab39e1 2025-11-18 14:47:37,399 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c49dcf16-4057-44ef-8b04-8315fcab39e1 2025-11-18 14:47:37,414 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b61c607b-2207-48c1-b2a0-e2299c79ea36 2025-11-18 14:47:37,423 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b61c607b-2207-48c1-b2a0-e2299c79ea36 2025-11-18 14:47:37,432 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/c6b2d0a2-dbd2-4208-aef6-d3144c7a600f 2025-11-18 14:47:37,441 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-18 14:47:37,441 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c49dcf16-4057-44ef-8b04-8315fcab39e1 2025-11-18 14:47:37,457 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b61c607b-2207-48c1-b2a0-e2299c79ea36 2025-11-18 14:47:37,477 - INFO - Verified VN network id 12 for VN c49dcf16-4057-44ef-8b04-8315fcab39e1 2025-11-18 14:47:37,477 - INFO - Verifications in API Server for VN ctest-vn4-77137827 passed 2025-11-18 14:47:37,477 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c49dcf16-4057-44ef-8b04-8315fcab39e1 2025-11-18 14:47:37,492 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b61c607b-2207-48c1-b2a0-e2299c79ea36 2025-11-18 14:47:37,501 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b61c607b-2207-48c1-b2a0-e2299c79ea36 2025-11-18 14:47:37,509 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/c6b2d0a2-dbd2-4208-aef6-d3144c7a600f 2025-11-18 14:47:37,531 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10786361:ctest-vn4-77137827', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-10786361', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14167707697253139695', 'uuid-lslong': '10017275601635457505'}, 'enable': 'true', 'created': '2025-11-18T14:47:35', 'last-modified': '2025-11-18T14:47:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.806074'} 2025-11-18 14:47:37,539 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-18 14:47:37,539 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-77137827 passed 2025-11-18 14:47:37,539 - DEBUG - ====Verifying policy data for ctest-vn4-77137827 in API_Server ====== 2025-11-18 14:47:37,539 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-18 14:47:37,546 - DEBUG - Requesting: http://10.0.0.33:8082/domain/b498e8f4-7605-4ec1-81af-703b4297c23e 2025-11-18 14:47:37,560 - DEBUG - Requesting: http://10.0.0.33:8082/project/978a23a3-278f-4328-bff5-7ba134516494 2025-11-18 14:47:37,636 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c49dcf16-4057-44ef-8b04-8315fcab39e1 2025-11-18 14:47:37,648 - DEBUG - ==>Verifying data for policy with id: 570886dd-1958-4106-a1fd-52504ed6c36b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10786361', 'ctest-policy1-55093930'] 2025-11-18 14:47:37,648 - INFO - VN ctest-vn4-77137827 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-18 14:47:37,648 - DEBUG - Verifying the vn in opserver 2025-11-18 14:47:37,648 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10786361:ctest-vn4-77137827 virtual network link through opserver 10.0.0.33 2025-11-18 14:47:37,648 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-11-18 14:47:37,946 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-11-18 14:47:38,021 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10786361:ctest-vn4-77137827', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10786361:ctest-vn4-77137827?flat'} 2025-11-18 14:47:38,021 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10786361:ctest-vn4-77137827 is found in opserver 2025-11-18 14:47:38,035 - DEBUG - Do not have enough data to verify VN in agent 2025-11-18 14:47:38,040 - DEBUG - VRF ids for VN ctest-vn4-77137827: {} 2025-11-18 14:47:38,041 - DEBUG - ====Verifying data for ctest-policy1-55093930 in API_Server ====== 2025-11-18 14:47:38,041 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-18 14:47:38,048 - DEBUG - Requesting: http://10.0.0.33:8082/domain/b498e8f4-7605-4ec1-81af-703b4297c23e 2025-11-18 14:47:38,063 - DEBUG - Requesting: http://10.0.0.33:8082/project/978a23a3-278f-4328-bff5-7ba134516494 2025-11-18 14:47:38,139 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/570886dd-1958-4106-a1fd-52504ed6c36b 2025-11-18 14:47:38,150 - INFO - Verified policy ctest-policy1-55093930 in API Server, Result: True 2025-11-18 14:47:38,150 - INFO - Done with setup and verification, moving onto test .. 2025-11-18 14:47:38,161 - INFO - Deleting VN ctest-vn4-77137827 2025-11-18 14:47:38,308 - DEBUG - Response for deleting network () 2025-11-18 14:47:38,308 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b61c607b-2207-48c1-b2a0-e2299c79ea36 2025-11-18 14:47:38,316 - DEBUG - Response Code: 404 2025-11-18 14:47:38,316 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-18 14:47:38,324 - DEBUG - Requesting: http://10.0.0.33:8082/domain/b498e8f4-7605-4ec1-81af-703b4297c23e 2025-11-18 14:47:38,384 - DEBUG - Requesting: http://10.0.0.33:8082/project/978a23a3-278f-4328-bff5-7ba134516494 2025-11-18 14:47:38,463 - INFO - Validated that VN ctest-vn4-77137827 is not found in API Server 2025-11-18 14:47:38,474 - DEBUG - VN ctest-vn4-77137827 is not present in Agent 10.0.0.33 2025-11-18 14:47:38,475 - INFO - Validated that VN ctest-vn4-77137827 is not in any agent 2025-11-18 14:47:38,492 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-77137827 info 2025-11-18 14:47:38,520 - INFO - Deleted policy ctest-policy1-55093930 2025-11-18 14:47:38,694 - DEBUG - policy ctest-policy1-55093930 is not found in API Server 2025-11-18 14:47:38,965 - DEBUG - No XMPP flaps were noticed during the test