2025-10-06 22:49:33,570 - INFO - Domain Default found not creating 2025-10-06 22:49:33,719 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-22750279 not found, creating it 2025-10-06 22:49:34,168 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-22750279, ID : 95dbe92f-6576-417f-92ae-12540e628c75 2025-10-06 22:49:35,583 - INFO - ================================================================================ 2025-10-06 22:49:35,583 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-06 22:49:35,845 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-10-06 22:49:35,845 - INFO - Initial checks done. Running the testcase now 2025-10-06 22:49:35,845 - INFO - 2025-10-06 22:49:35,845 - INFO - ================================================================================ 2025-10-06 22:49:35,845 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-06 22:49:35,845 - 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-06 22:49:36,137 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-10-06 22:49:36,137 - INFO - Initial checks done. Running the testcase now 2025-10-06 22:49:36,137 - INFO - 2025-10-06 22:49:36,490 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22750279:ctest-vn4-05727719, 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-22750279:ctest-vn4-05727719, 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-22750279:ctest-vn4-05727719, 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-22750279:ctest-vn4-05727719, 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-06 22:49:36,983 - DEBUG - Response for create_network : {'network': {'id': '19e80aa9-7034-493d-ab75-eb8131bed369', 'name': 'ctest-vn4-05727719', 'tenant_id': '95dbe92f6576417f92ae12540e628c75', 'project_id': '95dbe92f6576417f92ae12540e628c75', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22750279', 'ctest-vn4-05727719'], 'port_security_enabled': True, 'description': ''}} 2025-10-06 22:49:37,192 - DEBUG - Response for create_subnet : {'subnet': {'id': '850f297b-1bb7-4d41-8d70-0b5b46df1dd5', 'name': '', 'tenant_id': '95dbe92f6576417f92ae12540e628c75', 'network_id': '19e80aa9-7034-493d-ab75-eb8131bed369', 'ip_version': 4, 'cidr': '178.87.7.64/26', 'allocation_pools': [{'start': '178.87.7.66', 'end': '178.87.7.126'}], 'gateway_ip': '178.87.7.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '178.87.7.66', 'tags': [], 'project_id': '95dbe92f6576417f92ae12540e628c75'}} 2025-10-06 22:49:37,330 - DEBUG - Response for create_subnet : {'subnet': {'id': '8c2f3e0b-0ddf-4ce8-8588-7d648a127a18', 'name': '', 'tenant_id': '95dbe92f6576417f92ae12540e628c75', 'network_id': '19e80aa9-7034-493d-ab75-eb8131bed369', 'ip_version': 6, 'cidr': '2331:8df9:997b:bb39:8751:765c::/96', 'allocation_pools': [{'start': '2331:8df9:997b:bb39:8751:765c:0:2', 'end': '2331:8df9:997b:bb39:8751:765c:ffff:fffe'}], 'gateway_ip': '2331:8df9:997b:bb39:8751:765c:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2331:8df9:997b:bb39:8751:765c:0:2', 'tags': [], 'project_id': '95dbe92f6576417f92ae12540e628c75'}} 2025-10-06 22:49:37,350 - INFO - Created VN ctest-vn4-05727719 2025-10-06 22:49:37,403 - DEBUG - VN ctest-vn4-05727719 UUID is 19e80aa9-7034-493d-ab75-eb8131bed369 2025-10-06 22:49:37,595 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '19e80aa9-7034-493d-ab75-eb8131bed369', 'name': 'ctest-vn4-05727719', 'tenant_id': '95dbe92f6576417f92ae12540e628c75', 'project_id': '95dbe92f6576417f92ae12540e628c75', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['850f297b-1bb7-4d41-8d70-0b5b46df1dd5', '8c2f3e0b-0ddf-4ce8-8588-7d648a127a18'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22750279', 'ctest-vn4-05727719'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22750279', 'ctest-policy1-74904563']], 'subnet_ipam': [{'subnet_cidr': '178.87.7.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2331:8df9:997b:bb39:8751:765c::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-06 22:49:37,759 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-06 22:49:38,053 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-06 22:49:38,088 - DEBUG - Requesting: http://10.0.0.38:8082/domain/eab8c665-e3a8-462f-b44c-8c68f17662d2 2025-10-06 22:49:38,102 - DEBUG - Requesting: http://10.0.0.38:8082/project/95dbe92f-6576-417f-92ae-12540e628c75 2025-10-06 22:49:38,174 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/19e80aa9-7034-493d-ab75-eb8131bed369 2025-10-06 22:49:38,185 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/19e80aa9-7034-493d-ab75-eb8131bed369 2025-10-06 22:49:38,195 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/787d5f3d-c15d-4a79-afa3-a1905af22ff0 2025-10-06 22:49:38,202 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/787d5f3d-c15d-4a79-afa3-a1905af22ff0 2025-10-06 22:49:38,209 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e4d6ed79-3eb3-4a6d-bddf-8514d243911e 2025-10-06 22:49:38,216 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-06 22:49:38,216 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/19e80aa9-7034-493d-ab75-eb8131bed369 2025-10-06 22:49:38,225 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/787d5f3d-c15d-4a79-afa3-a1905af22ff0 2025-10-06 22:49:38,239 - INFO - Verified VN network id 12 for VN 19e80aa9-7034-493d-ab75-eb8131bed369 2025-10-06 22:49:38,239 - INFO - Verifications in API Server for VN ctest-vn4-05727719 passed 2025-10-06 22:49:38,239 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/19e80aa9-7034-493d-ab75-eb8131bed369 2025-10-06 22:49:38,250 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/787d5f3d-c15d-4a79-afa3-a1905af22ff0 2025-10-06 22:49:38,256 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/787d5f3d-c15d-4a79-afa3-a1905af22ff0 2025-10-06 22:49:38,267 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e4d6ed79-3eb3-4a6d-bddf-8514d243911e 2025-10-06 22:49:38,279 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22750279:ctest-vn4-05727719', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-22750279', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1866753768393296189', 'uuid-lslong': '12355040092878721897'}, 'enable': 'true', 'created': '2025-10-06T22:49:36', 'last-modified': '2025-10-06T22:49:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.708391'} 2025-10-06 22:49:38,285 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-06 22:49:38,285 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-05727719 passed 2025-10-06 22:49:38,285 - DEBUG - ====Verifying policy data for ctest-vn4-05727719 in API_Server ====== 2025-10-06 22:49:38,285 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-06 22:49:38,291 - DEBUG - Requesting: http://10.0.0.38:8082/domain/eab8c665-e3a8-462f-b44c-8c68f17662d2 2025-10-06 22:49:38,302 - DEBUG - Requesting: http://10.0.0.38:8082/project/95dbe92f-6576-417f-92ae-12540e628c75 2025-10-06 22:49:38,371 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/19e80aa9-7034-493d-ab75-eb8131bed369 2025-10-06 22:49:38,380 - DEBUG - ==>Verifying data for policy with id: cfecfe3b-7499-40ee-ae9c-9e737da9f92d, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22750279', 'ctest-policy1-74904563'] 2025-10-06 22:49:38,380 - INFO - VN ctest-vn4-05727719 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-06 22:49:38,380 - DEBUG - Verifying the vn in opserver 2025-10-06 22:49:38,380 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22750279:ctest-vn4-05727719 virtual network link through opserver 10.0.0.38 2025-10-06 22:49:38,380 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-06 22:49:38,674 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-06 22:49:38,730 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22750279:ctest-vn4-05727719', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22750279:ctest-vn4-05727719?flat'} 2025-10-06 22:49:38,731 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22750279:ctest-vn4-05727719 is found in opserver 2025-10-06 22:49:38,741 - DEBUG - Do not have enough data to verify VN in agent 2025-10-06 22:49:38,745 - DEBUG - VRF ids for VN ctest-vn4-05727719: {} 2025-10-06 22:49:38,745 - DEBUG - ====Verifying data for ctest-policy1-74904563 in API_Server ====== 2025-10-06 22:49:38,745 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-06 22:49:38,751 - DEBUG - Requesting: http://10.0.0.38:8082/domain/eab8c665-e3a8-462f-b44c-8c68f17662d2 2025-10-06 22:49:38,763 - DEBUG - Requesting: http://10.0.0.38:8082/project/95dbe92f-6576-417f-92ae-12540e628c75 2025-10-06 22:49:38,840 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/cfecfe3b-7499-40ee-ae9c-9e737da9f92d 2025-10-06 22:49:38,849 - INFO - Verified policy ctest-policy1-74904563 in API Server, Result: True 2025-10-06 22:49:38,849 - INFO - Done with setup and verification, moving onto test .. 2025-10-06 22:49:38,857 - INFO - Deleting VN ctest-vn4-05727719 2025-10-06 22:49:38,969 - DEBUG - Response for deleting network () 2025-10-06 22:49:38,969 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/787d5f3d-c15d-4a79-afa3-a1905af22ff0 2025-10-06 22:49:38,974 - DEBUG - Response Code: 404 2025-10-06 22:49:38,974 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-06 22:49:38,980 - DEBUG - Requesting: http://10.0.0.38:8082/domain/eab8c665-e3a8-462f-b44c-8c68f17662d2 2025-10-06 22:49:39,032 - DEBUG - Requesting: http://10.0.0.38:8082/project/95dbe92f-6576-417f-92ae-12540e628c75 2025-10-06 22:49:39,101 - INFO - Validated that VN ctest-vn4-05727719 is not found in API Server 2025-10-06 22:49:39,109 - DEBUG - VN ctest-vn4-05727719 is not present in Agent 10.0.0.38 2025-10-06 22:49:39,109 - INFO - Validated that VN ctest-vn4-05727719 is not in any agent 2025-10-06 22:49:39,121 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-05727719 info 2025-10-06 22:49:39,147 - INFO - Deleted policy ctest-policy1-74904563 2025-10-06 22:49:39,311 - DEBUG - policy ctest-policy1-74904563 is not found in API Server 2025-10-06 22:49:39,564 - DEBUG - No XMPP flaps were noticed during the test