2025-11-27 02:12:29,872 - INFO - Domain Default found not creating 2025-11-27 02:12:30,079 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-60645813 not found, creating it 2025-11-27 02:12:30,580 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-60645813, ID : 2a534fc0-05df-456b-8ab2-fa4659c745c9 2025-11-27 02:12:32,365 - INFO - ================================================================================ 2025-11-27 02:12:32,365 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-27 02:12:32,638 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.201': '0'}} with 2025-11-27 02:12:32,638 - INFO - Initial checks done. Running the testcase now 2025-11-27 02:12:32,638 - INFO - 2025-11-27 02:12:32,638 - INFO - ================================================================================ 2025-11-27 02:12:32,638 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-27 02:12:32,638 - 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-11-27 02:12:32,946 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.201': '0'}} with 2025-11-27 02:12:32,946 - INFO - Initial checks done. Running the testcase now 2025-11-27 02:12:32,946 - INFO - 2025-11-27 02:12:33,370 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60645813:ctest-vn4-82056359, 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-60645813:ctest-vn4-82056359, 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-60645813:ctest-vn4-82056359, 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-60645813:ctest-vn4-82056359, 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-11-27 02:12:33,914 - DEBUG - Response for create_network : {'network': {'id': 'afb32913-a029-4328-b8ad-e4493a7d7020', 'name': 'ctest-vn4-82056359', 'tenant_id': '2a534fc005df456b8ab2fa4659c745c9', 'project_id': '2a534fc005df456b8ab2fa4659c745c9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-60645813', 'ctest-vn4-82056359'], 'port_security_enabled': True, 'description': ''}} 2025-11-27 02:12:34,172 - DEBUG - Response for create_subnet : {'subnet': {'id': '86471879-38ed-44af-b1ff-8dbcdff60db6', 'name': '', 'tenant_id': '2a534fc005df456b8ab2fa4659c745c9', 'network_id': 'afb32913-a029-4328-b8ad-e4493a7d7020', 'ip_version': 4, 'cidr': '147.177.6.128/26', 'allocation_pools': [{'start': '147.177.6.130', 'end': '147.177.6.190'}], 'gateway_ip': '147.177.6.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '147.177.6.130', 'tags': [], 'project_id': '2a534fc005df456b8ab2fa4659c745c9'}} 2025-11-27 02:12:34,359 - DEBUG - Response for create_subnet : {'subnet': {'id': '5bfaca58-a4b6-47ec-8042-880f26725354', 'name': '', 'tenant_id': '2a534fc005df456b8ab2fa4659c745c9', 'network_id': 'afb32913-a029-4328-b8ad-e4493a7d7020', 'ip_version': 6, 'cidr': '3c4e:6e47:8741:c1e3:c24b:93d7::/96', 'allocation_pools': [{'start': '3c4e:6e47:8741:c1e3:c24b:93d7:0:2', 'end': '3c4e:6e47:8741:c1e3:c24b:93d7:ffff:fffe'}], 'gateway_ip': '3c4e:6e47:8741:c1e3:c24b:93d7:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3c4e:6e47:8741:c1e3:c24b:93d7:0:2', 'tags': [], 'project_id': '2a534fc005df456b8ab2fa4659c745c9'}} 2025-11-27 02:12:34,384 - INFO - Created VN ctest-vn4-82056359 2025-11-27 02:12:34,435 - DEBUG - VN ctest-vn4-82056359 UUID is afb32913-a029-4328-b8ad-e4493a7d7020 2025-11-27 02:12:34,649 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'afb32913-a029-4328-b8ad-e4493a7d7020', 'name': 'ctest-vn4-82056359', 'tenant_id': '2a534fc005df456b8ab2fa4659c745c9', 'project_id': '2a534fc005df456b8ab2fa4659c745c9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['86471879-38ed-44af-b1ff-8dbcdff60db6', '5bfaca58-a4b6-47ec-8042-880f26725354'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-60645813', 'ctest-vn4-82056359'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-60645813', 'ctest-policy1-40410548']], 'subnet_ipam': [{'subnet_cidr': '147.177.6.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3c4e:6e47:8741:c1e3:c24b:93d7::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-27 02:12:34,831 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-11-27 02:12:35,185 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-11-27 02:12:35,220 - DEBUG - Requesting: http://10.0.0.65:8082/domain/13de5539-52ea-4986-b539-2c2e71884d64 2025-11-27 02:12:35,234 - DEBUG - Requesting: http://10.0.0.65:8082/project/2a534fc0-05df-456b-8ab2-fa4659c745c9 2025-11-27 02:12:35,313 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/afb32913-a029-4328-b8ad-e4493a7d7020 2025-11-27 02:12:35,329 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/afb32913-a029-4328-b8ad-e4493a7d7020 2025-11-27 02:12:35,340 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/0c8b5bac-d9cc-402e-b59b-42672b97110e 2025-11-27 02:12:35,347 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/0c8b5bac-d9cc-402e-b59b-42672b97110e 2025-11-27 02:12:35,355 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/1b614358-b1cc-4f37-973e-79e2bce05b79 2025-11-27 02:12:35,362 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-27 02:12:35,362 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/afb32913-a029-4328-b8ad-e4493a7d7020 2025-11-27 02:12:35,372 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/0c8b5bac-d9cc-402e-b59b-42672b97110e 2025-11-27 02:12:35,386 - INFO - Verified VN network id 12 for VN afb32913-a029-4328-b8ad-e4493a7d7020 2025-11-27 02:12:35,386 - INFO - Verifications in API Server for VN ctest-vn4-82056359 passed 2025-11-27 02:12:35,386 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/afb32913-a029-4328-b8ad-e4493a7d7020 2025-11-27 02:12:35,396 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/0c8b5bac-d9cc-402e-b59b-42672b97110e 2025-11-27 02:12:35,404 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/0c8b5bac-d9cc-402e-b59b-42672b97110e 2025-11-27 02:12:35,412 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/1b614358-b1cc-4f37-973e-79e2bce05b79 2025-11-27 02:12:35,425 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60645813:ctest-vn4-82056359', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-60645813', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12660508141736772392', 'uuid-lslong': '13307543477114728480'}, 'enable': 'true', 'created': '2025-11-27T02:12:33', 'last-modified': '2025-11-27T02:12:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.803764'} 2025-11-27 02:12:35,432 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-27 02:12:35,432 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-82056359 passed 2025-11-27 02:12:35,432 - DEBUG - ====Verifying policy data for ctest-vn4-82056359 in API_Server ====== 2025-11-27 02:12:35,432 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-11-27 02:12:35,439 - DEBUG - Requesting: http://10.0.0.65:8082/domain/13de5539-52ea-4986-b539-2c2e71884d64 2025-11-27 02:12:35,449 - DEBUG - Requesting: http://10.0.0.65:8082/project/2a534fc0-05df-456b-8ab2-fa4659c745c9 2025-11-27 02:12:35,521 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/afb32913-a029-4328-b8ad-e4493a7d7020 2025-11-27 02:12:35,532 - DEBUG - ==>Verifying data for policy with id: 0e55e717-9fd7-4b19-a8d6-02a9f9292078, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-60645813', 'ctest-policy1-40410548'] 2025-11-27 02:12:35,532 - INFO - VN ctest-vn4-82056359 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-27 02:12:35,532 - DEBUG - Verifying the vn in opserver 2025-11-27 02:12:35,532 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60645813:ctest-vn4-82056359 virtual network link through opserver 10.0.0.65 2025-11-27 02:12:35,532 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-11-27 02:12:35,880 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-11-27 02:12:35,959 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60645813:ctest-vn4-82056359', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60645813:ctest-vn4-82056359?flat'} 2025-11-27 02:12:35,959 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60645813:ctest-vn4-82056359 is found in opserver 2025-11-27 02:12:35,970 - DEBUG - Do not have enough data to verify VN in agent 2025-11-27 02:12:35,974 - DEBUG - VRF ids for VN ctest-vn4-82056359: {} 2025-11-27 02:12:35,975 - DEBUG - ====Verifying data for ctest-policy1-40410548 in API_Server ====== 2025-11-27 02:12:35,975 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-11-27 02:12:35,981 - DEBUG - Requesting: http://10.0.0.65:8082/domain/13de5539-52ea-4986-b539-2c2e71884d64 2025-11-27 02:12:35,995 - DEBUG - Requesting: http://10.0.0.65:8082/project/2a534fc0-05df-456b-8ab2-fa4659c745c9 2025-11-27 02:12:36,072 - DEBUG - Requesting: http://10.0.0.65:8082/network-policy/0e55e717-9fd7-4b19-a8d6-02a9f9292078 2025-11-27 02:12:36,083 - INFO - Verified policy ctest-policy1-40410548 in API Server, Result: True 2025-11-27 02:12:36,083 - INFO - Done with setup and verification, moving onto test .. 2025-11-27 02:12:36,092 - INFO - Deleting VN ctest-vn4-82056359 2025-11-27 02:12:36,229 - DEBUG - Response for deleting network () 2025-11-27 02:12:36,230 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/0c8b5bac-d9cc-402e-b59b-42672b97110e 2025-11-27 02:12:36,234 - DEBUG - Response Code: 404 2025-11-27 02:12:36,235 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-11-27 02:12:36,243 - DEBUG - Requesting: http://10.0.0.65:8082/domain/13de5539-52ea-4986-b539-2c2e71884d64 2025-11-27 02:12:36,300 - DEBUG - Requesting: http://10.0.0.65:8082/project/2a534fc0-05df-456b-8ab2-fa4659c745c9 2025-11-27 02:12:36,377 - INFO - Validated that VN ctest-vn4-82056359 is not found in API Server 2025-11-27 02:12:36,389 - DEBUG - VN ctest-vn4-82056359 is not present in Agent 10.0.0.65 2025-11-27 02:12:36,390 - INFO - Validated that VN ctest-vn4-82056359 is not in any agent 2025-11-27 02:12:36,409 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-82056359 info 2025-11-27 02:12:36,435 - INFO - Deleted policy ctest-policy1-40410548 2025-11-27 02:12:36,603 - DEBUG - policy ctest-policy1-40410548 is not found in API Server 2025-11-27 02:12:36,861 - DEBUG - No XMPP flaps were noticed during the test 2025-11-27 02:12:36,861 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-11-27 02:12:36,861 - INFO - -------------------------------------------------------------------------------- 2025-11-27 02:12:37,162 - DEBUG - No XMPP flaps were noticed during the test 2025-11-27 02:12:37,162 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-11-27 02:12:37,162 - INFO - -------------------------------------------------------------------------------- 2025-11-27 02:12:37,947 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-60645813, ID : 2a534fc0-05df-456b-8ab2-fa4659c745c9