2025-08-12 01:43:48,794 - INFO - Domain Default found not creating 2025-08-12 01:43:48,962 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-12692205 not found, creating it 2025-08-12 01:43:49,417 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-12692205, ID : b4a73b8f-d7e3-427b-a32d-8899bfe0f0af 2025-08-12 01:43:50,696 - INFO - ================================================================================ 2025-08-12 01:43:50,696 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-12 01:43:50,956 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.17': '0'}} with 2025-08-12 01:43:50,956 - INFO - Initial checks done. Running the testcase now 2025-08-12 01:43:50,957 - INFO - 2025-08-12 01:43:50,957 - INFO - ================================================================================ 2025-08-12 01:43:50,957 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-12 01:43:50,957 - 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-12 01:43:51,247 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.17': '0'}} with 2025-08-12 01:43:51,247 - INFO - Initial checks done. Running the testcase now 2025-08-12 01:43:51,247 - INFO - 2025-08-12 01:43:51,554 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12692205:ctest-vn4-72164200, 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-12692205:ctest-vn4-72164200, 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-12692205:ctest-vn4-72164200, 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-12692205:ctest-vn4-72164200, 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-12 01:43:52,061 - DEBUG - Response for create_network : {'network': {'id': '53c1ec4b-2d38-4dd1-a5e5-3acc1d165078', 'name': 'ctest-vn4-72164200', 'tenant_id': 'b4a73b8fd7e3427ba32d8899bfe0f0af', 'project_id': 'b4a73b8fd7e3427ba32d8899bfe0f0af', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-12692205', 'ctest-vn4-72164200'], 'port_security_enabled': True, 'description': ''}} 2025-08-12 01:43:52,223 - DEBUG - Response for create_subnet : {'subnet': {'id': '231f3913-0d4b-445e-ad14-92277973855b', 'name': '', 'tenant_id': 'b4a73b8fd7e3427ba32d8899bfe0f0af', 'network_id': '53c1ec4b-2d38-4dd1-a5e5-3acc1d165078', 'ip_version': 4, 'cidr': '83.243.181.64/26', 'allocation_pools': [{'start': '83.243.181.66', 'end': '83.243.181.126'}], 'gateway_ip': '83.243.181.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '83.243.181.66', 'tags': [], 'project_id': 'b4a73b8fd7e3427ba32d8899bfe0f0af'}} 2025-08-12 01:43:52,409 - DEBUG - Response for create_subnet : {'subnet': {'id': '77409ba9-0554-42b5-96f1-fd0f21173030', 'name': '', 'tenant_id': 'b4a73b8fd7e3427ba32d8899bfe0f0af', 'network_id': '53c1ec4b-2d38-4dd1-a5e5-3acc1d165078', 'ip_version': 6, 'cidr': '3fcc:e3cd:c7af:541d:c4cd:1cae::/96', 'allocation_pools': [{'start': '3fcc:e3cd:c7af:541d:c4cd:1cae:0:2', 'end': '3fcc:e3cd:c7af:541d:c4cd:1cae:ffff:fffe'}], 'gateway_ip': '3fcc:e3cd:c7af:541d:c4cd:1cae:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3fcc:e3cd:c7af:541d:c4cd:1cae:0:2', 'tags': [], 'project_id': 'b4a73b8fd7e3427ba32d8899bfe0f0af'}} 2025-08-12 01:43:52,432 - INFO - Created VN ctest-vn4-72164200 2025-08-12 01:43:52,485 - DEBUG - VN ctest-vn4-72164200 UUID is 53c1ec4b-2d38-4dd1-a5e5-3acc1d165078 2025-08-12 01:43:52,702 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '53c1ec4b-2d38-4dd1-a5e5-3acc1d165078', 'name': 'ctest-vn4-72164200', 'tenant_id': 'b4a73b8fd7e3427ba32d8899bfe0f0af', 'project_id': 'b4a73b8fd7e3427ba32d8899bfe0f0af', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['231f3913-0d4b-445e-ad14-92277973855b', '77409ba9-0554-42b5-96f1-fd0f21173030'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-12692205', 'ctest-vn4-72164200'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-12692205', 'ctest-policy1-87919888']], 'subnet_ipam': [{'subnet_cidr': '83.243.181.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3fcc:e3cd:c7af:541d:c4cd:1cae::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-12 01:43:52,877 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2025-08-12 01:43:53,137 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2025-08-12 01:43:53,163 - DEBUG - Requesting: http://10.0.0.241:8082/domain/e722a47c-c3f6-467c-ad31-33f2a019a107 2025-08-12 01:43:53,176 - DEBUG - Requesting: http://10.0.0.241:8082/project/b4a73b8f-d7e3-427b-a32d-8899bfe0f0af 2025-08-12 01:43:53,255 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/53c1ec4b-2d38-4dd1-a5e5-3acc1d165078 2025-08-12 01:43:53,267 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/53c1ec4b-2d38-4dd1-a5e5-3acc1d165078 2025-08-12 01:43:53,276 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/97eb8286-cc7f-4ff8-8acf-af573eb554f7 2025-08-12 01:43:53,283 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/97eb8286-cc7f-4ff8-8acf-af573eb554f7 2025-08-12 01:43:53,289 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/e13620e0-7aa1-4cbd-8d08-98d33556931d 2025-08-12 01:43:53,295 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-12 01:43:53,296 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/53c1ec4b-2d38-4dd1-a5e5-3acc1d165078 2025-08-12 01:43:53,308 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/97eb8286-cc7f-4ff8-8acf-af573eb554f7 2025-08-12 01:43:53,330 - INFO - Verified VN network id 12 for VN 53c1ec4b-2d38-4dd1-a5e5-3acc1d165078 2025-08-12 01:43:53,330 - INFO - Verifications in API Server for VN ctest-vn4-72164200 passed 2025-08-12 01:43:53,330 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/53c1ec4b-2d38-4dd1-a5e5-3acc1d165078 2025-08-12 01:43:53,342 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/97eb8286-cc7f-4ff8-8acf-af573eb554f7 2025-08-12 01:43:53,350 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/97eb8286-cc7f-4ff8-8acf-af573eb554f7 2025-08-12 01:43:53,358 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/e13620e0-7aa1-4cbd-8d08-98d33556931d 2025-08-12 01:43:53,372 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12692205:ctest-vn4-72164200', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-12692205', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6035364783278542289', 'uuid-lslong': '11954025434260590712'}, 'enable': 'true', 'created': '2025-08-12T01:43:52', 'last-modified': '2025-08-12T01:43:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.709369'} 2025-08-12 01:43:53,378 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-12 01:43:53,378 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-72164200 passed 2025-08-12 01:43:53,378 - DEBUG - ====Verifying policy data for ctest-vn4-72164200 in API_Server ====== 2025-08-12 01:43:53,378 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2025-08-12 01:43:53,384 - DEBUG - Requesting: http://10.0.0.241:8082/domain/e722a47c-c3f6-467c-ad31-33f2a019a107 2025-08-12 01:43:53,395 - DEBUG - Requesting: http://10.0.0.241:8082/project/b4a73b8f-d7e3-427b-a32d-8899bfe0f0af 2025-08-12 01:43:53,468 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/53c1ec4b-2d38-4dd1-a5e5-3acc1d165078 2025-08-12 01:43:53,477 - DEBUG - ==>Verifying data for policy with id: 8b86a839-42ce-4cd7-8293-c0f6b583c1bf, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-12692205', 'ctest-policy1-87919888'] 2025-08-12 01:43:53,477 - INFO - VN ctest-vn4-72164200 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-12 01:43:53,477 - DEBUG - Verifying the vn in opserver 2025-08-12 01:43:53,477 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12692205:ctest-vn4-72164200 virtual network link through opserver 10.0.0.241 2025-08-12 01:43:53,477 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks 2025-08-12 01:43:53,738 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks 2025-08-12 01:43:53,806 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12692205:ctest-vn4-72164200', 'href': 'http://10.0.0.241:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12692205:ctest-vn4-72164200?flat'} 2025-08-12 01:43:53,806 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12692205:ctest-vn4-72164200 is found in opserver 2025-08-12 01:43:53,819 - DEBUG - Do not have enough data to verify VN in agent 2025-08-12 01:43:53,824 - DEBUG - VRF ids for VN ctest-vn4-72164200: {} 2025-08-12 01:43:53,825 - DEBUG - ====Verifying data for ctest-policy1-87919888 in API_Server ====== 2025-08-12 01:43:53,825 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2025-08-12 01:43:53,832 - DEBUG - Requesting: http://10.0.0.241:8082/domain/e722a47c-c3f6-467c-ad31-33f2a019a107 2025-08-12 01:43:53,848 - DEBUG - Requesting: http://10.0.0.241:8082/project/b4a73b8f-d7e3-427b-a32d-8899bfe0f0af 2025-08-12 01:43:53,921 - DEBUG - Requesting: http://10.0.0.241:8082/network-policy/8b86a839-42ce-4cd7-8293-c0f6b583c1bf 2025-08-12 01:43:53,931 - INFO - Verified policy ctest-policy1-87919888 in API Server, Result: True 2025-08-12 01:43:53,932 - INFO - Done with setup and verification, moving onto test .. 2025-08-12 01:43:53,940 - INFO - Deleting VN ctest-vn4-72164200 2025-08-12 01:43:54,079 - DEBUG - Response for deleting network () 2025-08-12 01:43:54,079 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/97eb8286-cc7f-4ff8-8acf-af573eb554f7 2025-08-12 01:43:54,085 - DEBUG - Response Code: 404 2025-08-12 01:43:54,085 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2025-08-12 01:43:54,090 - DEBUG - Requesting: http://10.0.0.241:8082/domain/e722a47c-c3f6-467c-ad31-33f2a019a107 2025-08-12 01:43:54,148 - DEBUG - Requesting: http://10.0.0.241:8082/project/b4a73b8f-d7e3-427b-a32d-8899bfe0f0af 2025-08-12 01:43:54,221 - INFO - Validated that VN ctest-vn4-72164200 is not found in API Server 2025-08-12 01:43:54,232 - DEBUG - VN ctest-vn4-72164200 is not present in Agent 10.0.0.241 2025-08-12 01:43:54,232 - INFO - Validated that VN ctest-vn4-72164200 is not in any agent 2025-08-12 01:43:54,246 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-72164200 info 2025-08-12 01:43:54,277 - INFO - Deleted policy ctest-policy1-87919888 2025-08-12 01:43:54,441 - DEBUG - policy ctest-policy1-87919888 is not found in API Server 2025-08-12 01:43:54,695 - DEBUG - No XMPP flaps were noticed during the test