2025-08-19 15:27:06,917 - INFO - Domain Default found not creating 2025-08-19 15:27:07,037 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-43585976 not found, creating it 2025-08-19 15:27:07,462 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-43585976, ID : 1fce4488-d90f-451a-8225-8cafbcd03653 2025-08-19 15:27:08,735 - INFO - ================================================================================ 2025-08-19 15:27:08,736 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-19 15:27:08,989 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.254': '0'}} with 2025-08-19 15:27:08,989 - INFO - Initial checks done. Running the testcase now 2025-08-19 15:27:08,989 - INFO - 2025-08-19 15:27:08,989 - INFO - ================================================================================ 2025-08-19 15:27:08,989 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-19 15:27:08,989 - 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-19 15:27:09,280 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.254': '0'}} with 2025-08-19 15:27:09,281 - INFO - Initial checks done. Running the testcase now 2025-08-19 15:27:09,281 - INFO - 2025-08-19 15:27:09,613 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43585976:ctest-vn4-65244929, 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-43585976:ctest-vn4-65244929, 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-43585976:ctest-vn4-65244929, 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-43585976:ctest-vn4-65244929, 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-19 15:27:10,098 - DEBUG - Response for create_network : {'network': {'id': '92c49731-160a-4304-80c1-2b3be33c2df9', 'name': 'ctest-vn4-65244929', 'tenant_id': '1fce4488d90f451a82258cafbcd03653', 'project_id': '1fce4488d90f451a82258cafbcd03653', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43585976', 'ctest-vn4-65244929'], 'port_security_enabled': True, 'description': ''}} 2025-08-19 15:27:10,319 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b7728d5e-c90f-4b02-81f7-a0a3a6787549', 'name': '', 'tenant_id': '1fce4488d90f451a82258cafbcd03653', 'network_id': '92c49731-160a-4304-80c1-2b3be33c2df9', 'ip_version': 4, 'cidr': '204.237.182.0/26', 'allocation_pools': [{'start': '204.237.182.2', 'end': '204.237.182.62'}], 'gateway_ip': '204.237.182.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '204.237.182.2', 'tags': [], 'project_id': '1fce4488d90f451a82258cafbcd03653'}} 2025-08-19 15:27:10,533 - DEBUG - Response for create_subnet : {'subnet': {'id': '47ab3721-b743-4c1b-a9a2-b97018c1f4a5', 'name': '', 'tenant_id': '1fce4488d90f451a82258cafbcd03653', 'network_id': '92c49731-160a-4304-80c1-2b3be33c2df9', 'ip_version': 6, 'cidr': '29ec:26b0:729:a078:8b37:8676::/96', 'allocation_pools': [{'start': '29ec:26b0:729:a078:8b37:8676:0:2', 'end': '29ec:26b0:729:a078:8b37:8676:ffff:fffe'}], 'gateway_ip': '29ec:26b0:729:a078:8b37:8676:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '29ec:26b0:729:a078:8b37:8676:0:2', 'tags': [], 'project_id': '1fce4488d90f451a82258cafbcd03653'}} 2025-08-19 15:27:10,550 - INFO - Created VN ctest-vn4-65244929 2025-08-19 15:27:10,603 - DEBUG - VN ctest-vn4-65244929 UUID is 92c49731-160a-4304-80c1-2b3be33c2df9 2025-08-19 15:27:10,783 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '92c49731-160a-4304-80c1-2b3be33c2df9', 'name': 'ctest-vn4-65244929', 'tenant_id': '1fce4488d90f451a82258cafbcd03653', 'project_id': '1fce4488d90f451a82258cafbcd03653', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b7728d5e-c90f-4b02-81f7-a0a3a6787549', '47ab3721-b743-4c1b-a9a2-b97018c1f4a5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43585976', 'ctest-vn4-65244929'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43585976', 'ctest-policy1-42136494']], 'subnet_ipam': [{'subnet_cidr': '204.237.182.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '29ec:26b0:729:a078:8b37:8676::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-19 15:27:10,947 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-08-19 15:27:11,235 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-08-19 15:27:11,261 - DEBUG - Requesting: http://10.0.0.49:8082/domain/40c8ee2e-6a09-4a45-b7f4-39b8251a7cd8 2025-08-19 15:27:11,273 - DEBUG - Requesting: http://10.0.0.49:8082/project/1fce4488-d90f-451a-8225-8cafbcd03653 2025-08-19 15:27:11,342 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/92c49731-160a-4304-80c1-2b3be33c2df9 2025-08-19 15:27:11,353 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/92c49731-160a-4304-80c1-2b3be33c2df9 2025-08-19 15:27:11,363 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/178375c1-f7ab-46be-afa2-090dbdd0e719 2025-08-19 15:27:11,369 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/178375c1-f7ab-46be-afa2-090dbdd0e719 2025-08-19 15:27:11,375 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/f06b93fb-28aa-4d3b-8fee-dd5f47c233b0 2025-08-19 15:27:11,380 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-19 15:27:11,380 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/92c49731-160a-4304-80c1-2b3be33c2df9 2025-08-19 15:27:11,389 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/178375c1-f7ab-46be-afa2-090dbdd0e719 2025-08-19 15:27:11,400 - INFO - Verified VN network id 11 for VN 92c49731-160a-4304-80c1-2b3be33c2df9 2025-08-19 15:27:11,400 - INFO - Verifications in API Server for VN ctest-vn4-65244929 passed 2025-08-19 15:27:11,401 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/92c49731-160a-4304-80c1-2b3be33c2df9 2025-08-19 15:27:11,409 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/178375c1-f7ab-46be-afa2-090dbdd0e719 2025-08-19 15:27:11,416 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/178375c1-f7ab-46be-afa2-090dbdd0e719 2025-08-19 15:27:11,422 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/f06b93fb-28aa-4d3b-8fee-dd5f47c233b0 2025-08-19 15:27:11,432 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43585976:ctest-vn4-65244929', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-43585976', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10575744062051730180', 'uuid-lslong': '9277744243575369209'}, 'enable': 'true', 'created': '2025-08-19T15:27:10', 'last-modified': '2025-08-19T15:27:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.670619'} 2025-08-19 15:27:11,438 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-19 15:27:11,439 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-65244929 passed 2025-08-19 15:27:11,439 - DEBUG - ====Verifying policy data for ctest-vn4-65244929 in API_Server ====== 2025-08-19 15:27:11,439 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-08-19 15:27:11,443 - DEBUG - Requesting: http://10.0.0.49:8082/domain/40c8ee2e-6a09-4a45-b7f4-39b8251a7cd8 2025-08-19 15:27:11,453 - DEBUG - Requesting: http://10.0.0.49:8082/project/1fce4488-d90f-451a-8225-8cafbcd03653 2025-08-19 15:27:11,520 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/92c49731-160a-4304-80c1-2b3be33c2df9 2025-08-19 15:27:11,530 - DEBUG - ==>Verifying data for policy with id: 1e11e330-0a0d-4020-b051-1e119caa4278, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43585976', 'ctest-policy1-42136494'] 2025-08-19 15:27:11,530 - INFO - VN ctest-vn4-65244929 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-19 15:27:11,530 - DEBUG - Verifying the vn in opserver 2025-08-19 15:27:11,530 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43585976:ctest-vn4-65244929 virtual network link through opserver 10.0.0.49 2025-08-19 15:27:11,530 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-08-19 15:27:11,818 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-08-19 15:27:11,869 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43585976:ctest-vn4-65244929', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43585976:ctest-vn4-65244929?flat'} 2025-08-19 15:27:11,869 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43585976:ctest-vn4-65244929 is found in opserver 2025-08-19 15:27:11,879 - DEBUG - Do not have enough data to verify VN in agent 2025-08-19 15:27:11,884 - DEBUG - VRF ids for VN ctest-vn4-65244929: {} 2025-08-19 15:27:11,884 - DEBUG - ====Verifying data for ctest-policy1-42136494 in API_Server ====== 2025-08-19 15:27:11,884 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-08-19 15:27:11,889 - DEBUG - Requesting: http://10.0.0.49:8082/domain/40c8ee2e-6a09-4a45-b7f4-39b8251a7cd8 2025-08-19 15:27:11,899 - DEBUG - Requesting: http://10.0.0.49:8082/project/1fce4488-d90f-451a-8225-8cafbcd03653 2025-08-19 15:27:11,967 - DEBUG - Requesting: http://10.0.0.49:8082/network-policy/1e11e330-0a0d-4020-b051-1e119caa4278 2025-08-19 15:27:11,976 - INFO - Verified policy ctest-policy1-42136494 in API Server, Result: True 2025-08-19 15:27:11,976 - INFO - Done with setup and verification, moving onto test .. 2025-08-19 15:27:11,983 - INFO - Deleting VN ctest-vn4-65244929 2025-08-19 15:27:12,095 - DEBUG - Response for deleting network () 2025-08-19 15:27:12,096 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/178375c1-f7ab-46be-afa2-090dbdd0e719 2025-08-19 15:27:12,100 - DEBUG - Response Code: 404 2025-08-19 15:27:12,100 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-08-19 15:27:12,105 - DEBUG - Requesting: http://10.0.0.49:8082/domain/40c8ee2e-6a09-4a45-b7f4-39b8251a7cd8 2025-08-19 15:27:12,160 - DEBUG - Requesting: http://10.0.0.49:8082/project/1fce4488-d90f-451a-8225-8cafbcd03653 2025-08-19 15:27:12,226 - INFO - Validated that VN ctest-vn4-65244929 is not found in API Server 2025-08-19 15:27:12,250 - DEBUG - VN ctest-vn4-65244929 is not present in Agent 10.0.0.49 2025-08-19 15:27:12,250 - INFO - Validated that VN ctest-vn4-65244929 is not in any agent 2025-08-19 15:27:12,291 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-65244929 info 2025-08-19 15:27:12,312 - INFO - Deleted policy ctest-policy1-42136494 2025-08-19 15:27:12,475 - DEBUG - policy ctest-policy1-42136494 is not found in API Server 2025-08-19 15:27:12,728 - DEBUG - No XMPP flaps were noticed during the test