2025-10-29 18:22:22,674 - INFO - Domain Default found not creating 2025-10-29 18:22:22,918 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-05234126 not found, creating it 2025-10-29 18:22:23,444 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-05234126, ID : 5a65355b-64b6-4824-8432-bcf5e79ee88c 2025-10-29 18:22:25,354 - INFO - ================================================================================ 2025-10-29 18:22:25,354 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-29 18:22:26,800 - DEBUG - Nothing to compare xmpp stats {'10.0.0.73': {'10.20.0.201': '0', '10.20.0.200': '0'}, '10.0.0.27': {'10.20.0.201': '0', '10.20.0.200': '0'}} with 2025-10-29 18:22:26,800 - INFO - Initial checks done. Running the testcase now 2025-10-29 18:22:26,800 - INFO - 2025-10-29 18:22:26,800 - INFO - ================================================================================ 2025-10-29 18:22:26,801 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-29 18:22:26,801 - 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-10-29 18:22:28,193 - DEBUG - Nothing to compare xmpp stats {'10.0.0.73': {'10.20.0.201': '0', '10.20.0.200': '0'}, '10.0.0.27': {'10.20.0.201': '0', '10.20.0.200': '0'}} with 2025-10-29 18:22:28,193 - INFO - Initial checks done. Running the testcase now 2025-10-29 18:22:28,193 - INFO - 2025-10-29 18:22:28,596 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05234126:ctest-vn4-18319799, 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-05234126:ctest-vn4-18319799, 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-05234126:ctest-vn4-18319799, 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-05234126:ctest-vn4-18319799, 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-10-29 18:22:29,300 - DEBUG - Response for create_network : {'network': {'id': 'c85e5900-7a99-4893-8270-b74b44ec8957', 'name': 'ctest-vn4-18319799', 'tenant_id': '5a65355b64b648248432bcf5e79ee88c', 'project_id': '5a65355b64b648248432bcf5e79ee88c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-05234126', 'ctest-vn4-18319799'], 'port_security_enabled': True, 'description': ''}} 2025-10-29 18:22:29,602 - DEBUG - Response for create_subnet : {'subnet': {'id': '9aaecc7f-ce2b-44c3-9c75-5c5d33b96eb5', 'name': '', 'tenant_id': '5a65355b64b648248432bcf5e79ee88c', 'network_id': 'c85e5900-7a99-4893-8270-b74b44ec8957', 'ip_version': 4, 'cidr': '97.250.39.128/26', 'allocation_pools': [{'start': '97.250.39.130', 'end': '97.250.39.190'}], 'gateway_ip': '97.250.39.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '97.250.39.130', 'tags': [], 'project_id': '5a65355b64b648248432bcf5e79ee88c'}} 2025-10-29 18:22:29,878 - DEBUG - Response for create_subnet : {'subnet': {'id': '7f43f17a-4cc2-4e45-b1c0-6893394734fb', 'name': '', 'tenant_id': '5a65355b64b648248432bcf5e79ee88c', 'network_id': 'c85e5900-7a99-4893-8270-b74b44ec8957', 'ip_version': 6, 'cidr': '2e87:de1a:8e6c:6b12:5a40:9426::/96', 'allocation_pools': [{'start': '2e87:de1a:8e6c:6b12:5a40:9426:0:2', 'end': '2e87:de1a:8e6c:6b12:5a40:9426:ffff:fffe'}], 'gateway_ip': '2e87:de1a:8e6c:6b12:5a40:9426:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2e87:de1a:8e6c:6b12:5a40:9426:0:2', 'tags': [], 'project_id': '5a65355b64b648248432bcf5e79ee88c'}} 2025-10-29 18:22:29,909 - INFO - Created VN ctest-vn4-18319799 2025-10-29 18:22:29,924 - DEBUG - VN ctest-vn4-18319799 UUID is c85e5900-7a99-4893-8270-b74b44ec8957 2025-10-29 18:22:30,233 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c85e5900-7a99-4893-8270-b74b44ec8957', 'name': 'ctest-vn4-18319799', 'tenant_id': '5a65355b64b648248432bcf5e79ee88c', 'project_id': '5a65355b64b648248432bcf5e79ee88c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9aaecc7f-ce2b-44c3-9c75-5c5d33b96eb5', '7f43f17a-4cc2-4e45-b1c0-6893394734fb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-05234126', 'ctest-vn4-18319799'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-05234126', 'ctest-policy1-78198396']], 'subnet_ipam': [{'subnet_cidr': '97.250.39.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2e87:de1a:8e6c:6b12:5a40:9426::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-29 18:22:30,333 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-29 18:22:30,641 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-29 18:22:30,731 - DEBUG - Requesting: http://10.0.0.249:8082/domain/ab5f52cf-59f5-4d8f-a294-1eaf08d80442 2025-10-29 18:22:30,753 - DEBUG - Requesting: http://10.0.0.249:8082/project/5a65355b-64b6-4824-8432-bcf5e79ee88c 2025-10-29 18:22:30,869 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/c85e5900-7a99-4893-8270-b74b44ec8957 2025-10-29 18:22:30,887 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/c85e5900-7a99-4893-8270-b74b44ec8957 2025-10-29 18:22:30,902 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/62d9bd05-c49a-4c5a-a9a7-5038e0b4c5cb 2025-10-29 18:22:30,910 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/62d9bd05-c49a-4c5a-a9a7-5038e0b4c5cb 2025-10-29 18:22:30,917 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/30305e00-2dc1-4f9f-b15d-68e2b04df910 2025-10-29 18:22:30,925 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-29 18:22:30,925 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/c85e5900-7a99-4893-8270-b74b44ec8957 2025-10-29 18:22:30,935 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/62d9bd05-c49a-4c5a-a9a7-5038e0b4c5cb 2025-10-29 18:22:30,953 - INFO - Verified VN network id 11 for VN c85e5900-7a99-4893-8270-b74b44ec8957 2025-10-29 18:22:30,953 - INFO - Verifications in API Server for VN ctest-vn4-18319799 passed 2025-10-29 18:22:30,953 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/c85e5900-7a99-4893-8270-b74b44ec8957 2025-10-29 18:22:30,965 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/62d9bd05-c49a-4c5a-a9a7-5038e0b4c5cb 2025-10-29 18:22:30,975 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/62d9bd05-c49a-4c5a-a9a7-5038e0b4c5cb 2025-10-29 18:22:30,983 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/30305e00-2dc1-4f9f-b15d-68e2b04df910 2025-10-29 18:22:30,996 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05234126:ctest-vn4-18319799', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-05234126', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14438075313988126867', 'uuid-lslong': '9399213956229007703'}, 'enable': 'true', 'created': '2025-10-29T18:22:29', 'last-modified': '2025-10-29T18:22:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.830305'} 2025-10-29 18:22:31,003 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-29 18:22:31,008 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05234126:ctest-vn4-18319799', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-05234126', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14438075313988126867', 'uuid-lslong': '9399213956229007703'}, 'enable': 'true', 'created': '2025-10-29T18:22:29', 'last-modified': '2025-10-29T18:22:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.848521'} 2025-10-29 18:22:31,014 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-29 18:22:31,020 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05234126:ctest-vn4-18319799', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-05234126', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14438075313988126867', 'uuid-lslong': '9399213956229007703'}, 'enable': 'true', 'created': '2025-10-29T18:22:29', 'last-modified': '2025-10-29T18:22:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.853943'} 2025-10-29 18:22:31,026 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-29 18:22:31,026 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-18319799 passed 2025-10-29 18:22:31,027 - DEBUG - ====Verifying policy data for ctest-vn4-18319799 in API_Server ====== 2025-10-29 18:22:31,027 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-29 18:22:31,034 - DEBUG - Requesting: http://10.0.0.249:8082/domain/ab5f52cf-59f5-4d8f-a294-1eaf08d80442 2025-10-29 18:22:31,047 - DEBUG - Requesting: http://10.0.0.249:8082/project/5a65355b-64b6-4824-8432-bcf5e79ee88c 2025-10-29 18:22:31,147 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/c85e5900-7a99-4893-8270-b74b44ec8957 2025-10-29 18:22:31,161 - DEBUG - ==>Verifying data for policy with id: 3de235ca-1ce6-4fb0-b873-3086e6653b16, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-05234126', 'ctest-policy1-78198396'] 2025-10-29 18:22:31,161 - INFO - VN ctest-vn4-18319799 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-29 18:22:31,161 - DEBUG - Verifying the vn in opserver 2025-10-29 18:22:31,161 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05234126:ctest-vn4-18319799 virtual network link through opserver 10.0.0.249 2025-10-29 18:22:31,161 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-10-29 18:22:31,452 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-10-29 18:22:31,518 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05234126:ctest-vn4-18319799', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05234126:ctest-vn4-18319799?flat'} 2025-10-29 18:22:31,518 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05234126:ctest-vn4-18319799 virtual network link through opserver 10.0.0.19 2025-10-29 18:22:31,518 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-10-29 18:22:31,828 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-10-29 18:22:31,887 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05234126:ctest-vn4-18319799', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05234126:ctest-vn4-18319799?flat'} 2025-10-29 18:22:31,887 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05234126:ctest-vn4-18319799 virtual network link through opserver 10.0.0.41 2025-10-29 18:22:31,887 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-10-29 18:22:32,181 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-10-29 18:22:32,235 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05234126:ctest-vn4-18319799', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05234126:ctest-vn4-18319799?flat'} 2025-10-29 18:22:32,235 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05234126:ctest-vn4-18319799 is found in opserver 2025-10-29 18:22:32,263 - DEBUG - Do not have enough data to verify VN in agent 2025-10-29 18:22:32,275 - DEBUG - VRF ids for VN ctest-vn4-18319799: {} 2025-10-29 18:22:32,275 - DEBUG - ====Verifying data for ctest-policy1-78198396 in API_Server ====== 2025-10-29 18:22:32,275 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-29 18:22:32,287 - DEBUG - Requesting: http://10.0.0.249:8082/domain/ab5f52cf-59f5-4d8f-a294-1eaf08d80442 2025-10-29 18:22:32,300 - DEBUG - Requesting: http://10.0.0.249:8082/project/5a65355b-64b6-4824-8432-bcf5e79ee88c 2025-10-29 18:22:32,409 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/3de235ca-1ce6-4fb0-b873-3086e6653b16 2025-10-29 18:22:32,422 - INFO - Verified policy ctest-policy1-78198396 in API Server, Result: True 2025-10-29 18:22:32,422 - INFO - Done with setup and verification, moving onto test .. 2025-10-29 18:22:32,432 - INFO - Deleting VN ctest-vn4-18319799 2025-10-29 18:22:32,692 - DEBUG - Response for deleting network () 2025-10-29 18:22:32,692 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/62d9bd05-c49a-4c5a-a9a7-5038e0b4c5cb 2025-10-29 18:22:32,701 - DEBUG - Response Code: 404 2025-10-29 18:22:32,701 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-29 18:22:32,708 - DEBUG - Requesting: http://10.0.0.249:8082/domain/ab5f52cf-59f5-4d8f-a294-1eaf08d80442 2025-10-29 18:22:32,771 - DEBUG - Requesting: http://10.0.0.249:8082/project/5a65355b-64b6-4824-8432-bcf5e79ee88c 2025-10-29 18:22:32,885 - INFO - Validated that VN ctest-vn4-18319799 is not found in API Server 2025-10-29 18:22:32,898 - DEBUG - VN ctest-vn4-18319799 is not present in Agent 10.0.0.73 2025-10-29 18:22:32,909 - DEBUG - VN ctest-vn4-18319799 is not present in Agent 10.0.0.27 2025-10-29 18:22:32,909 - INFO - Validated that VN ctest-vn4-18319799 is not in any agent 2025-10-29 18:22:32,947 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-18319799 info 2025-10-29 18:22:32,992 - INFO - Deleted policy ctest-policy1-78198396 2025-10-29 18:22:33,181 - DEBUG - policy ctest-policy1-78198396 is not found in API Server 2025-10-29 18:22:34,524 - DEBUG - No XMPP flaps were noticed during the test