2025-09-24 11:07:22,668 - INFO - Domain Default found not creating 2025-09-24 11:07:22,832 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-43742048 not found, creating it 2025-09-24 11:07:23,309 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-43742048, ID : c5436942-1da8-45a8-ab50-9cac2a075a78 2025-09-24 11:07:24,869 - INFO - ================================================================================ 2025-09-24 11:07:24,869 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-24 11:07:25,129 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.17': '0'}} with 2025-09-24 11:07:25,129 - INFO - Initial checks done. Running the testcase now 2025-09-24 11:07:25,129 - INFO - 2025-09-24 11:07:25,129 - INFO - ================================================================================ 2025-09-24 11:07:25,129 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-24 11:07:25,130 - 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-09-24 11:07:25,419 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.17': '0'}} with 2025-09-24 11:07:25,419 - INFO - Initial checks done. Running the testcase now 2025-09-24 11:07:25,419 - INFO - 2025-09-24 11:07:25,816 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43742048:ctest-vn4-29121283, 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-43742048:ctest-vn4-29121283, 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-43742048:ctest-vn4-29121283, 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-43742048:ctest-vn4-29121283, 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-09-24 11:07:26,398 - DEBUG - Response for create_network : {'network': {'id': '82cd5ea3-3b87-494d-af50-061a19ddb107', 'name': 'ctest-vn4-29121283', 'tenant_id': 'c54369421da845a8ab509cac2a075a78', 'project_id': 'c54369421da845a8ab509cac2a075a78', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43742048', 'ctest-vn4-29121283'], 'port_security_enabled': True, 'description': ''}} 2025-09-24 11:07:26,588 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bfe1f69b-7b97-4810-8412-0b14bd72d7e0', 'name': '', 'tenant_id': 'c54369421da845a8ab509cac2a075a78', 'network_id': '82cd5ea3-3b87-494d-af50-061a19ddb107', 'ip_version': 4, 'cidr': '18.193.53.128/26', 'allocation_pools': [{'start': '18.193.53.130', 'end': '18.193.53.190'}], 'gateway_ip': '18.193.53.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '18.193.53.130', 'tags': [], 'project_id': 'c54369421da845a8ab509cac2a075a78'}} 2025-09-24 11:07:26,783 - DEBUG - Response for create_subnet : {'subnet': {'id': '3f8ad05c-f7a5-4b31-a6fe-d9903bed54fa', 'name': '', 'tenant_id': 'c54369421da845a8ab509cac2a075a78', 'network_id': '82cd5ea3-3b87-494d-af50-061a19ddb107', 'ip_version': 6, 'cidr': '2422:ba27:65da:d1d3:260d:b826::/96', 'allocation_pools': [{'start': '2422:ba27:65da:d1d3:260d:b826:0:2', 'end': '2422:ba27:65da:d1d3:260d:b826:ffff:fffe'}], 'gateway_ip': '2422:ba27:65da:d1d3:260d:b826:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2422:ba27:65da:d1d3:260d:b826:0:2', 'tags': [], 'project_id': 'c54369421da845a8ab509cac2a075a78'}} 2025-09-24 11:07:26,803 - INFO - Created VN ctest-vn4-29121283 2025-09-24 11:07:26,862 - DEBUG - VN ctest-vn4-29121283 UUID is 82cd5ea3-3b87-494d-af50-061a19ddb107 2025-09-24 11:07:27,069 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '82cd5ea3-3b87-494d-af50-061a19ddb107', 'name': 'ctest-vn4-29121283', 'tenant_id': 'c54369421da845a8ab509cac2a075a78', 'project_id': 'c54369421da845a8ab509cac2a075a78', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bfe1f69b-7b97-4810-8412-0b14bd72d7e0', '3f8ad05c-f7a5-4b31-a6fe-d9903bed54fa'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43742048', 'ctest-vn4-29121283'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43742048', 'ctest-policy1-24408101']], 'subnet_ipam': [{'subnet_cidr': '18.193.53.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2422:ba27:65da:d1d3:260d:b826::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-24 11:07:27,226 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-09-24 11:07:27,557 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-09-24 11:07:27,585 - DEBUG - Requesting: http://10.0.0.57:8082/domain/2dfe3689-9f60-45a1-82b4-a62ffe58aa8c 2025-09-24 11:07:27,598 - DEBUG - Requesting: http://10.0.0.57:8082/project/c5436942-1da8-45a8-ab50-9cac2a075a78 2025-09-24 11:07:27,669 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/82cd5ea3-3b87-494d-af50-061a19ddb107 2025-09-24 11:07:27,681 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/82cd5ea3-3b87-494d-af50-061a19ddb107 2025-09-24 11:07:27,690 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/925a8ebb-7a57-4f2d-b04d-a358603224de 2025-09-24 11:07:27,697 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/925a8ebb-7a57-4f2d-b04d-a358603224de 2025-09-24 11:07:27,703 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/782d4a7c-8e97-4fd8-b332-f8f93a9fbe9a 2025-09-24 11:07:27,709 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-24 11:07:27,710 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/82cd5ea3-3b87-494d-af50-061a19ddb107 2025-09-24 11:07:27,718 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/925a8ebb-7a57-4f2d-b04d-a358603224de 2025-09-24 11:07:27,730 - INFO - Verified VN network id 11 for VN 82cd5ea3-3b87-494d-af50-061a19ddb107 2025-09-24 11:07:27,730 - INFO - Verifications in API Server for VN ctest-vn4-29121283 passed 2025-09-24 11:07:27,730 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/82cd5ea3-3b87-494d-af50-061a19ddb107 2025-09-24 11:07:27,739 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/925a8ebb-7a57-4f2d-b04d-a358603224de 2025-09-24 11:07:27,745 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/925a8ebb-7a57-4f2d-b04d-a358603224de 2025-09-24 11:07:27,751 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/782d4a7c-8e97-4fd8-b332-f8f93a9fbe9a 2025-09-24 11:07:27,763 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43742048:ctest-vn4-29121283', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-43742048', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9425293650327718221', 'uuid-lslong': '12632603663947116807'}, 'enable': 'true', 'created': '2025-09-24T11:07:26', 'last-modified': '2025-09-24T11:07:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.721514'} 2025-09-24 11:07:27,769 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-24 11:07:27,769 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-29121283 passed 2025-09-24 11:07:27,770 - DEBUG - ====Verifying policy data for ctest-vn4-29121283 in API_Server ====== 2025-09-24 11:07:27,770 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-09-24 11:07:27,777 - DEBUG - Requesting: http://10.0.0.57:8082/domain/2dfe3689-9f60-45a1-82b4-a62ffe58aa8c 2025-09-24 11:07:27,788 - DEBUG - Requesting: http://10.0.0.57:8082/project/c5436942-1da8-45a8-ab50-9cac2a075a78 2025-09-24 11:07:27,855 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/82cd5ea3-3b87-494d-af50-061a19ddb107 2025-09-24 11:07:27,865 - DEBUG - ==>Verifying data for policy with id: e27ee51b-ec95-4564-bca8-bb9b73adcf7b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43742048', 'ctest-policy1-24408101'] 2025-09-24 11:07:27,865 - INFO - VN ctest-vn4-29121283 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-24 11:07:27,865 - DEBUG - Verifying the vn in opserver 2025-09-24 11:07:27,865 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43742048:ctest-vn4-29121283 virtual network link through opserver 10.0.0.57 2025-09-24 11:07:27,865 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2025-09-24 11:07:28,198 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2025-09-24 11:07:28,254 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43742048:ctest-vn4-29121283', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43742048:ctest-vn4-29121283?flat'} 2025-09-24 11:07:28,254 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43742048:ctest-vn4-29121283 is found in opserver 2025-09-24 11:07:28,263 - DEBUG - Do not have enough data to verify VN in agent 2025-09-24 11:07:28,269 - DEBUG - VRF ids for VN ctest-vn4-29121283: {} 2025-09-24 11:07:28,270 - DEBUG - ====Verifying data for ctest-policy1-24408101 in API_Server ====== 2025-09-24 11:07:28,270 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-09-24 11:07:28,275 - DEBUG - Requesting: http://10.0.0.57:8082/domain/2dfe3689-9f60-45a1-82b4-a62ffe58aa8c 2025-09-24 11:07:28,286 - DEBUG - Requesting: http://10.0.0.57:8082/project/c5436942-1da8-45a8-ab50-9cac2a075a78 2025-09-24 11:07:28,357 - DEBUG - Requesting: http://10.0.0.57:8082/network-policy/e27ee51b-ec95-4564-bca8-bb9b73adcf7b 2025-09-24 11:07:28,367 - INFO - Verified policy ctest-policy1-24408101 in API Server, Result: True 2025-09-24 11:07:28,367 - INFO - Done with setup and verification, moving onto test .. 2025-09-24 11:07:28,375 - INFO - Deleting VN ctest-vn4-29121283 2025-09-24 11:07:28,527 - DEBUG - Response for deleting network () 2025-09-24 11:07:28,528 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/925a8ebb-7a57-4f2d-b04d-a358603224de 2025-09-24 11:07:28,533 - DEBUG - Response Code: 404 2025-09-24 11:07:28,533 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-09-24 11:07:28,538 - DEBUG - Requesting: http://10.0.0.57:8082/domain/2dfe3689-9f60-45a1-82b4-a62ffe58aa8c 2025-09-24 11:07:28,595 - DEBUG - Requesting: http://10.0.0.57:8082/project/c5436942-1da8-45a8-ab50-9cac2a075a78 2025-09-24 11:07:28,668 - INFO - Validated that VN ctest-vn4-29121283 is not found in API Server 2025-09-24 11:07:28,678 - DEBUG - VN ctest-vn4-29121283 is not present in Agent 10.0.0.57 2025-09-24 11:07:28,678 - INFO - Validated that VN ctest-vn4-29121283 is not in any agent 2025-09-24 11:07:28,691 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-29121283 info 2025-09-24 11:07:28,712 - INFO - Deleted policy ctest-policy1-24408101 2025-09-24 11:07:28,878 - DEBUG - policy ctest-policy1-24408101 is not found in API Server 2025-09-24 11:07:29,132 - DEBUG - No XMPP flaps were noticed during the test