2025-08-27 09:36:31,082 - INFO - Domain Default found not creating 2025-08-27 09:36:31,237 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-76902670 not found, creating it 2025-08-27 09:36:31,720 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-76902670, ID : 8a756098-7798-4ed3-85cf-c22b54841037 2025-08-27 09:36:33,190 - INFO - ================================================================================ 2025-08-27 09:36:33,190 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-27 09:36:33,446 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-08-27 09:36:33,446 - INFO - Initial checks done. Running the testcase now 2025-08-27 09:36:33,446 - INFO - 2025-08-27 09:36:33,446 - INFO - ================================================================================ 2025-08-27 09:36:33,446 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-27 09:36:33,446 - 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-27 09:36:33,737 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-08-27 09:36:33,737 - INFO - Initial checks done. Running the testcase now 2025-08-27 09:36:33,737 - INFO - 2025-08-27 09:36:34,100 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76902670:ctest-vn4-17071401, 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-76902670:ctest-vn4-17071401, 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-76902670:ctest-vn4-17071401, 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-76902670:ctest-vn4-17071401, 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-27 09:36:34,630 - DEBUG - Response for create_network : {'network': {'id': '86ecec99-9b06-4b65-9f68-a667eeb8af49', 'name': 'ctest-vn4-17071401', 'tenant_id': '8a75609877984ed385cfc22b54841037', 'project_id': '8a75609877984ed385cfc22b54841037', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-76902670', 'ctest-vn4-17071401'], 'port_security_enabled': True, 'description': ''}} 2025-08-27 09:36:34,821 - DEBUG - Response for create_subnet : {'subnet': {'id': '0091d76e-e276-4c84-bf69-5932e384db2b', 'name': '', 'tenant_id': '8a75609877984ed385cfc22b54841037', 'network_id': '86ecec99-9b06-4b65-9f68-a667eeb8af49', 'ip_version': 4, 'cidr': '178.241.56.64/26', 'allocation_pools': [{'start': '178.241.56.66', 'end': '178.241.56.126'}], 'gateway_ip': '178.241.56.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '178.241.56.66', 'tags': [], 'project_id': '8a75609877984ed385cfc22b54841037'}} 2025-08-27 09:36:34,973 - DEBUG - Response for create_subnet : {'subnet': {'id': '5278b689-3407-4f0f-9754-d492608a97a5', 'name': '', 'tenant_id': '8a75609877984ed385cfc22b54841037', 'network_id': '86ecec99-9b06-4b65-9f68-a667eeb8af49', 'ip_version': 6, 'cidr': '317f:3c47:28d:1401:dc9:dda3::/96', 'allocation_pools': [{'start': '317f:3c47:28d:1401:dc9:dda3:0:2', 'end': '317f:3c47:28d:1401:dc9:dda3:ffff:fffe'}], 'gateway_ip': '317f:3c47:28d:1401:dc9:dda3:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '317f:3c47:28d:1401:dc9:dda3:0:2', 'tags': [], 'project_id': '8a75609877984ed385cfc22b54841037'}} 2025-08-27 09:36:34,997 - INFO - Created VN ctest-vn4-17071401 2025-08-27 09:36:35,048 - DEBUG - VN ctest-vn4-17071401 UUID is 86ecec99-9b06-4b65-9f68-a667eeb8af49 2025-08-27 09:36:35,271 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '86ecec99-9b06-4b65-9f68-a667eeb8af49', 'name': 'ctest-vn4-17071401', 'tenant_id': '8a75609877984ed385cfc22b54841037', 'project_id': '8a75609877984ed385cfc22b54841037', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0091d76e-e276-4c84-bf69-5932e384db2b', '5278b689-3407-4f0f-9754-d492608a97a5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-76902670', 'ctest-vn4-17071401'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-76902670', 'ctest-policy1-43957203']], 'subnet_ipam': [{'subnet_cidr': '178.241.56.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '317f:3c47:28d:1401:dc9:dda3::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-27 09:36:35,440 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-27 09:36:35,732 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-27 09:36:35,763 - DEBUG - Requesting: http://10.0.0.254:8082/domain/201cc085-5ac9-45c4-b5d4-9420d65b2d1d 2025-08-27 09:36:35,776 - DEBUG - Requesting: http://10.0.0.254:8082/project/8a756098-7798-4ed3-85cf-c22b54841037 2025-08-27 09:36:35,852 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/86ecec99-9b06-4b65-9f68-a667eeb8af49 2025-08-27 09:36:35,866 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/86ecec99-9b06-4b65-9f68-a667eeb8af49 2025-08-27 09:36:35,878 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5a2d7779-1a70-4c35-a6b2-3abff8d88ff0 2025-08-27 09:36:35,886 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5a2d7779-1a70-4c35-a6b2-3abff8d88ff0 2025-08-27 09:36:35,895 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/04d08a44-c2cf-4871-9bf3-02482de9477f 2025-08-27 09:36:35,903 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-27 09:36:35,903 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/86ecec99-9b06-4b65-9f68-a667eeb8af49 2025-08-27 09:36:35,917 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5a2d7779-1a70-4c35-a6b2-3abff8d88ff0 2025-08-27 09:36:35,931 - INFO - Verified VN network id 11 for VN 86ecec99-9b06-4b65-9f68-a667eeb8af49 2025-08-27 09:36:35,931 - INFO - Verifications in API Server for VN ctest-vn4-17071401 passed 2025-08-27 09:36:35,931 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/86ecec99-9b06-4b65-9f68-a667eeb8af49 2025-08-27 09:36:35,939 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5a2d7779-1a70-4c35-a6b2-3abff8d88ff0 2025-08-27 09:36:35,945 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5a2d7779-1a70-4c35-a6b2-3abff8d88ff0 2025-08-27 09:36:35,951 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/04d08a44-c2cf-4871-9bf3-02482de9477f 2025-08-27 09:36:35,961 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76902670:ctest-vn4-17071401', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-76902670', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9722405840061090661', 'uuid-lslong': '11486613814925373257'}, 'enable': 'true', 'created': '2025-08-27T09:36:34', 'last-modified': '2025-08-27T09:36:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.722271'} 2025-08-27 09:36:35,966 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-27 09:36:35,966 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-17071401 passed 2025-08-27 09:36:35,966 - DEBUG - ====Verifying policy data for ctest-vn4-17071401 in API_Server ====== 2025-08-27 09:36:35,966 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-27 09:36:35,971 - DEBUG - Requesting: http://10.0.0.254:8082/domain/201cc085-5ac9-45c4-b5d4-9420d65b2d1d 2025-08-27 09:36:35,982 - DEBUG - Requesting: http://10.0.0.254:8082/project/8a756098-7798-4ed3-85cf-c22b54841037 2025-08-27 09:36:36,057 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/86ecec99-9b06-4b65-9f68-a667eeb8af49 2025-08-27 09:36:36,066 - DEBUG - ==>Verifying data for policy with id: 2d623ff7-b719-4246-b48e-a3fffad1c6a6, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-76902670', 'ctest-policy1-43957203'] 2025-08-27 09:36:36,066 - INFO - VN ctest-vn4-17071401 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-27 09:36:36,066 - DEBUG - Verifying the vn in opserver 2025-08-27 09:36:36,066 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76902670:ctest-vn4-17071401 virtual network link through opserver 10.0.0.254 2025-08-27 09:36:36,066 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-27 09:36:36,360 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-27 09:36:36,425 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76902670:ctest-vn4-17071401', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76902670:ctest-vn4-17071401?flat'} 2025-08-27 09:36:36,425 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76902670:ctest-vn4-17071401 is found in opserver 2025-08-27 09:36:36,436 - DEBUG - Do not have enough data to verify VN in agent 2025-08-27 09:36:36,443 - DEBUG - VRF ids for VN ctest-vn4-17071401: {} 2025-08-27 09:36:36,444 - DEBUG - ====Verifying data for ctest-policy1-43957203 in API_Server ====== 2025-08-27 09:36:36,444 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-27 09:36:36,451 - DEBUG - Requesting: http://10.0.0.254:8082/domain/201cc085-5ac9-45c4-b5d4-9420d65b2d1d 2025-08-27 09:36:36,463 - DEBUG - Requesting: http://10.0.0.254:8082/project/8a756098-7798-4ed3-85cf-c22b54841037 2025-08-27 09:36:36,537 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/2d623ff7-b719-4246-b48e-a3fffad1c6a6 2025-08-27 09:36:36,547 - INFO - Verified policy ctest-policy1-43957203 in API Server, Result: True 2025-08-27 09:36:36,547 - INFO - Done with setup and verification, moving onto test .. 2025-08-27 09:36:36,555 - INFO - Deleting VN ctest-vn4-17071401 2025-08-27 09:36:36,677 - DEBUG - Response for deleting network () 2025-08-27 09:36:36,677 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5a2d7779-1a70-4c35-a6b2-3abff8d88ff0 2025-08-27 09:36:36,683 - DEBUG - Response Code: 404 2025-08-27 09:36:36,683 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-27 09:36:36,689 - DEBUG - Requesting: http://10.0.0.254:8082/domain/201cc085-5ac9-45c4-b5d4-9420d65b2d1d 2025-08-27 09:36:36,745 - DEBUG - Requesting: http://10.0.0.254:8082/project/8a756098-7798-4ed3-85cf-c22b54841037 2025-08-27 09:36:36,816 - INFO - Validated that VN ctest-vn4-17071401 is not found in API Server 2025-08-27 09:36:36,827 - DEBUG - VN ctest-vn4-17071401 is not present in Agent 10.0.0.254 2025-08-27 09:36:36,827 - INFO - Validated that VN ctest-vn4-17071401 is not in any agent 2025-08-27 09:36:36,840 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-17071401 info 2025-08-27 09:36:36,863 - INFO - Deleted policy ctest-policy1-43957203 2025-08-27 09:36:37,024 - DEBUG - policy ctest-policy1-43957203 is not found in API Server 2025-08-27 09:36:37,277 - DEBUG - No XMPP flaps were noticed during the test 2025-08-27 09:36:37,277 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-08-27 09:36:37,277 - INFO - -------------------------------------------------------------------------------- 2025-08-27 09:36:37,566 - DEBUG - No XMPP flaps were noticed during the test 2025-08-27 09:36:37,566 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-08-27 09:36:37,566 - INFO - -------------------------------------------------------------------------------- 2025-08-27 09:36:38,247 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-76902670, ID : 8a756098-7798-4ed3-85cf-c22b54841037