2025-11-05 10:49:42,846 - INFO - Domain Default found not creating 2025-11-05 10:49:43,027 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-25951113 not found, creating it 2025-11-05 10:49:43,485 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-25951113, ID : 30589f1c-e505-463d-9c9b-c6c35158bcab 2025-11-05 10:49:44,969 - INFO - ================================================================================ 2025-11-05 10:49:44,969 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-05 10:49:45,230 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2025-11-05 10:49:45,230 - INFO - Initial checks done. Running the testcase now 2025-11-05 10:49:45,230 - INFO - 2025-11-05 10:49:45,230 - INFO - ================================================================================ 2025-11-05 10:49:45,230 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-05 10:49:45,230 - 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-05 10:49:45,520 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2025-11-05 10:49:45,520 - INFO - Initial checks done. Running the testcase now 2025-11-05 10:49:45,520 - INFO - 2025-11-05 10:49:45,897 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25951113:ctest-vn4-36669145, 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-25951113:ctest-vn4-36669145, 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-25951113:ctest-vn4-36669145, 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-25951113:ctest-vn4-36669145, 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-05 10:49:46,430 - DEBUG - Response for create_network : {'network': {'id': '035dba05-1883-45d7-8858-0e2c7ed67973', 'name': 'ctest-vn4-36669145', 'tenant_id': '30589f1ce505463d9c9bc6c35158bcab', 'project_id': '30589f1ce505463d9c9bc6c35158bcab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25951113', 'ctest-vn4-36669145'], 'port_security_enabled': True, 'description': ''}} 2025-11-05 10:49:46,661 - DEBUG - Response for create_subnet : {'subnet': {'id': '04edb352-978c-4147-9fd1-76b2e5b53433', 'name': '', 'tenant_id': '30589f1ce505463d9c9bc6c35158bcab', 'network_id': '035dba05-1883-45d7-8858-0e2c7ed67973', 'ip_version': 4, 'cidr': '3.55.172.0/26', 'allocation_pools': [{'start': '3.55.172.2', 'end': '3.55.172.62'}], 'gateway_ip': '3.55.172.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3.55.172.2', 'tags': [], 'project_id': '30589f1ce505463d9c9bc6c35158bcab'}} 2025-11-05 10:49:46,814 - DEBUG - Response for create_subnet : {'subnet': {'id': '5742f31d-cc7a-4b24-8380-ed0f7aa01c23', 'name': '', 'tenant_id': '30589f1ce505463d9c9bc6c35158bcab', 'network_id': '035dba05-1883-45d7-8858-0e2c7ed67973', 'ip_version': 6, 'cidr': '36d1:af19:5cd8:3ba7:fff4:204c::/96', 'allocation_pools': [{'start': '36d1:af19:5cd8:3ba7:fff4:204c:0:2', 'end': '36d1:af19:5cd8:3ba7:fff4:204c:ffff:fffe'}], 'gateway_ip': '36d1:af19:5cd8:3ba7:fff4:204c:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '36d1:af19:5cd8:3ba7:fff4:204c:0:2', 'tags': [], 'project_id': '30589f1ce505463d9c9bc6c35158bcab'}} 2025-11-05 10:49:46,834 - INFO - Created VN ctest-vn4-36669145 2025-11-05 10:49:46,886 - DEBUG - VN ctest-vn4-36669145 UUID is 035dba05-1883-45d7-8858-0e2c7ed67973 2025-11-05 10:49:47,181 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '035dba05-1883-45d7-8858-0e2c7ed67973', 'name': 'ctest-vn4-36669145', 'tenant_id': '30589f1ce505463d9c9bc6c35158bcab', 'project_id': '30589f1ce505463d9c9bc6c35158bcab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['04edb352-978c-4147-9fd1-76b2e5b53433', '5742f31d-cc7a-4b24-8380-ed0f7aa01c23'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25951113', 'ctest-vn4-36669145'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25951113', 'ctest-policy1-01305031']], 'subnet_ipam': [{'subnet_cidr': '3.55.172.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '36d1:af19:5cd8:3ba7:fff4:204c::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-05 10:49:47,346 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-05 10:49:47,655 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-05 10:49:47,689 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3a9c2356-b443-4b47-811d-6d39642beb0d 2025-11-05 10:49:47,700 - DEBUG - Requesting: http://10.0.0.50:8082/project/30589f1c-e505-463d-9c9b-c6c35158bcab 2025-11-05 10:49:47,791 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/035dba05-1883-45d7-8858-0e2c7ed67973 2025-11-05 10:49:47,802 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/035dba05-1883-45d7-8858-0e2c7ed67973 2025-11-05 10:49:47,811 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b3d3c049-5af4-4e88-bcf4-08e3b7e96bee 2025-11-05 10:49:47,817 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b3d3c049-5af4-4e88-bcf4-08e3b7e96bee 2025-11-05 10:49:47,824 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/42db7912-9f09-4884-aa24-498bc0d7dc60 2025-11-05 10:49:47,830 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-05 10:49:47,830 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/035dba05-1883-45d7-8858-0e2c7ed67973 2025-11-05 10:49:47,845 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b3d3c049-5af4-4e88-bcf4-08e3b7e96bee 2025-11-05 10:49:47,860 - INFO - Verified VN network id 11 for VN 035dba05-1883-45d7-8858-0e2c7ed67973 2025-11-05 10:49:47,860 - INFO - Verifications in API Server for VN ctest-vn4-36669145 passed 2025-11-05 10:49:47,860 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/035dba05-1883-45d7-8858-0e2c7ed67973 2025-11-05 10:49:47,870 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b3d3c049-5af4-4e88-bcf4-08e3b7e96bee 2025-11-05 10:49:47,881 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b3d3c049-5af4-4e88-bcf4-08e3b7e96bee 2025-11-05 10:49:47,890 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/42db7912-9f09-4884-aa24-498bc0d7dc60 2025-11-05 10:49:47,902 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25951113:ctest-vn4-36669145', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-25951113', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '242554485996733911', 'uuid-lslong': '9824618171378071923'}, 'enable': 'true', 'created': '2025-11-05T10:49:46', 'last-modified': '2025-11-05T10:49:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.818262'} 2025-11-05 10:49:47,909 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-05 10:49:47,909 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-36669145 passed 2025-11-05 10:49:47,910 - DEBUG - ====Verifying policy data for ctest-vn4-36669145 in API_Server ====== 2025-11-05 10:49:47,910 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-05 10:49:47,918 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3a9c2356-b443-4b47-811d-6d39642beb0d 2025-11-05 10:49:47,930 - DEBUG - Requesting: http://10.0.0.50:8082/project/30589f1c-e505-463d-9c9b-c6c35158bcab 2025-11-05 10:49:48,004 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/035dba05-1883-45d7-8858-0e2c7ed67973 2025-11-05 10:49:48,014 - DEBUG - ==>Verifying data for policy with id: 661e285f-1a96-441c-abe9-7c03a923ff80, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25951113', 'ctest-policy1-01305031'] 2025-11-05 10:49:48,014 - INFO - VN ctest-vn4-36669145 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-05 10:49:48,014 - DEBUG - Verifying the vn in opserver 2025-11-05 10:49:48,014 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25951113:ctest-vn4-36669145 virtual network link through opserver 10.0.0.50 2025-11-05 10:49:48,014 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-05 10:49:48,314 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-05 10:49:48,375 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25951113:ctest-vn4-36669145', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25951113:ctest-vn4-36669145?flat'} 2025-11-05 10:49:48,375 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25951113:ctest-vn4-36669145 is found in opserver 2025-11-05 10:49:48,385 - DEBUG - Do not have enough data to verify VN in agent 2025-11-05 10:49:48,389 - DEBUG - VRF ids for VN ctest-vn4-36669145: {} 2025-11-05 10:49:48,390 - DEBUG - ====Verifying data for ctest-policy1-01305031 in API_Server ====== 2025-11-05 10:49:48,390 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-05 10:49:48,402 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3a9c2356-b443-4b47-811d-6d39642beb0d 2025-11-05 10:49:48,414 - DEBUG - Requesting: http://10.0.0.50:8082/project/30589f1c-e505-463d-9c9b-c6c35158bcab 2025-11-05 10:49:48,494 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/661e285f-1a96-441c-abe9-7c03a923ff80 2025-11-05 10:49:48,505 - INFO - Verified policy ctest-policy1-01305031 in API Server, Result: True 2025-11-05 10:49:48,506 - INFO - Done with setup and verification, moving onto test .. 2025-11-05 10:49:48,515 - INFO - Deleting VN ctest-vn4-36669145 2025-11-05 10:49:48,651 - DEBUG - Response for deleting network () 2025-11-05 10:49:48,651 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b3d3c049-5af4-4e88-bcf4-08e3b7e96bee 2025-11-05 10:49:48,655 - DEBUG - Response Code: 404 2025-11-05 10:49:48,655 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-05 10:49:48,660 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3a9c2356-b443-4b47-811d-6d39642beb0d 2025-11-05 10:49:48,712 - DEBUG - Requesting: http://10.0.0.50:8082/project/30589f1c-e505-463d-9c9b-c6c35158bcab 2025-11-05 10:49:48,794 - INFO - Validated that VN ctest-vn4-36669145 is not found in API Server 2025-11-05 10:49:48,803 - DEBUG - VN ctest-vn4-36669145 is not present in Agent 10.0.0.50 2025-11-05 10:49:48,803 - INFO - Validated that VN ctest-vn4-36669145 is not in any agent 2025-11-05 10:49:48,818 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-36669145 info 2025-11-05 10:49:48,844 - INFO - Deleted policy ctest-policy1-01305031 2025-11-05 10:49:49,022 - DEBUG - policy ctest-policy1-01305031 is not found in API Server 2025-11-05 10:49:49,280 - DEBUG - No XMPP flaps were noticed during the test