2026-01-30 10:17:27,347 - INFO - Domain Default found not creating 2026-01-30 10:17:27,514 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-53490165 not found, creating it 2026-01-30 10:17:27,970 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-53490165, ID : de782559-08de-4095-ae8e-9bb4435b41e6 2026-01-30 10:17:29,449 - INFO - ================================================================================ 2026-01-30 10:17:29,449 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-30 10:17:29,708 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2026-01-30 10:17:29,708 - INFO - Initial checks done. Running the testcase now 2026-01-30 10:17:29,708 - INFO - 2026-01-30 10:17:29,708 - INFO - ================================================================================ 2026-01-30 10:17:29,708 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-30 10:17:29,708 - 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. 2026-01-30 10:17:29,995 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2026-01-30 10:17:29,995 - INFO - Initial checks done. Running the testcase now 2026-01-30 10:17:29,995 - INFO - 2026-01-30 10:17:30,355 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53490165:ctest-vn4-60659108, 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-53490165:ctest-vn4-60659108, 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-53490165:ctest-vn4-60659108, 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-53490165:ctest-vn4-60659108, 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] 2026-01-30 10:17:30,849 - DEBUG - Response for create_network : {'network': {'id': '5dfca1a0-35d9-490b-a219-c28853fbf5da', 'name': 'ctest-vn4-60659108', 'tenant_id': 'de78255908de4095ae8e9bb4435b41e6', 'project_id': 'de78255908de4095ae8e9bb4435b41e6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-53490165', 'ctest-vn4-60659108'], 'port_security_enabled': True, 'description': ''}} 2026-01-30 10:17:31,031 - DEBUG - Response for create_subnet : {'subnet': {'id': '1d6e6bba-777d-438b-bf6c-7e241333ea16', 'name': '', 'tenant_id': 'de78255908de4095ae8e9bb4435b41e6', 'network_id': '5dfca1a0-35d9-490b-a219-c28853fbf5da', 'ip_version': 4, 'cidr': '111.218.28.192/26', 'allocation_pools': [{'start': '111.218.28.194', 'end': '111.218.28.254'}], 'gateway_ip': '111.218.28.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '111.218.28.194', 'tags': [], 'project_id': 'de78255908de4095ae8e9bb4435b41e6'}} 2026-01-30 10:17:31,188 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c45a6e39-d4b8-45a3-b8ad-309341cc4d19', 'name': '', 'tenant_id': 'de78255908de4095ae8e9bb4435b41e6', 'network_id': '5dfca1a0-35d9-490b-a219-c28853fbf5da', 'ip_version': 6, 'cidr': '222c:8cce:f32f:70fd:ee4:16aa::/96', 'allocation_pools': [{'start': '222c:8cce:f32f:70fd:ee4:16aa:0:2', 'end': '222c:8cce:f32f:70fd:ee4:16aa:ffff:fffe'}], 'gateway_ip': '222c:8cce:f32f:70fd:ee4:16aa:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '222c:8cce:f32f:70fd:ee4:16aa:0:2', 'tags': [], 'project_id': 'de78255908de4095ae8e9bb4435b41e6'}} 2026-01-30 10:17:31,209 - INFO - Created VN ctest-vn4-60659108 2026-01-30 10:17:31,259 - DEBUG - VN ctest-vn4-60659108 UUID is 5dfca1a0-35d9-490b-a219-c28853fbf5da 2026-01-30 10:17:31,458 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5dfca1a0-35d9-490b-a219-c28853fbf5da', 'name': 'ctest-vn4-60659108', 'tenant_id': 'de78255908de4095ae8e9bb4435b41e6', 'project_id': 'de78255908de4095ae8e9bb4435b41e6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1d6e6bba-777d-438b-bf6c-7e241333ea16', 'c45a6e39-d4b8-45a3-b8ad-309341cc4d19'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-53490165', 'ctest-vn4-60659108'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-53490165', 'ctest-policy1-51383411']], 'subnet_ipam': [{'subnet_cidr': '111.218.28.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '222c:8cce:f32f:70fd:ee4:16aa::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-30 10:17:31,623 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-01-30 10:17:31,924 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-01-30 10:17:31,953 - DEBUG - Requesting: http://10.0.0.50:8082/domain/381c7320-5ff9-470e-8c63-deec02f8fc1c 2026-01-30 10:17:31,965 - DEBUG - Requesting: http://10.0.0.50:8082/project/de782559-08de-4095-ae8e-9bb4435b41e6 2026-01-30 10:17:32,032 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5dfca1a0-35d9-490b-a219-c28853fbf5da 2026-01-30 10:17:32,043 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5dfca1a0-35d9-490b-a219-c28853fbf5da 2026-01-30 10:17:32,052 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/01c4379c-e626-486e-8282-2a422d59cd59 2026-01-30 10:17:32,059 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/01c4379c-e626-486e-8282-2a422d59cd59 2026-01-30 10:17:32,065 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/44a00200-ef2e-4388-b872-9ddcdd30c8eb 2026-01-30 10:17:32,070 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-30 10:17:32,070 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5dfca1a0-35d9-490b-a219-c28853fbf5da 2026-01-30 10:17:32,080 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/01c4379c-e626-486e-8282-2a422d59cd59 2026-01-30 10:17:32,093 - INFO - Verified VN network id 11 for VN 5dfca1a0-35d9-490b-a219-c28853fbf5da 2026-01-30 10:17:32,094 - INFO - Verifications in API Server for VN ctest-vn4-60659108 passed 2026-01-30 10:17:32,094 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5dfca1a0-35d9-490b-a219-c28853fbf5da 2026-01-30 10:17:32,103 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/01c4379c-e626-486e-8282-2a422d59cd59 2026-01-30 10:17:32,109 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/01c4379c-e626-486e-8282-2a422d59cd59 2026-01-30 10:17:32,115 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/44a00200-ef2e-4388-b872-9ddcdd30c8eb 2026-01-30 10:17:32,126 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53490165:ctest-vn4-60659108', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-53490165', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6772465649128655115', 'uuid-lslong': '11680580999342454234'}, 'enable': 'true', 'created': '2026-01-30T10:17:30', 'last-modified': '2026-01-30T10:17:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.696465'} 2026-01-30 10:17:32,132 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-30 10:17:32,132 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-60659108 passed 2026-01-30 10:17:32,133 - DEBUG - ====Verifying policy data for ctest-vn4-60659108 in API_Server ====== 2026-01-30 10:17:32,133 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-01-30 10:17:32,138 - DEBUG - Requesting: http://10.0.0.50:8082/domain/381c7320-5ff9-470e-8c63-deec02f8fc1c 2026-01-30 10:17:32,147 - DEBUG - Requesting: http://10.0.0.50:8082/project/de782559-08de-4095-ae8e-9bb4435b41e6 2026-01-30 10:17:32,222 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5dfca1a0-35d9-490b-a219-c28853fbf5da 2026-01-30 10:17:32,231 - DEBUG - ==>Verifying data for policy with id: 56842ddf-8feb-46d7-b398-d3f9b6f23082, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-53490165', 'ctest-policy1-51383411'] 2026-01-30 10:17:32,231 - INFO - VN ctest-vn4-60659108 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-30 10:17:32,231 - DEBUG - Verifying the vn in opserver 2026-01-30 10:17:32,232 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53490165:ctest-vn4-60659108 virtual network link through opserver 10.0.0.50 2026-01-30 10:17:32,232 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-01-30 10:17:32,525 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-01-30 10:17:32,586 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53490165:ctest-vn4-60659108', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53490165:ctest-vn4-60659108?flat'} 2026-01-30 10:17:32,586 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53490165:ctest-vn4-60659108 is found in opserver 2026-01-30 10:17:32,596 - DEBUG - Do not have enough data to verify VN in agent 2026-01-30 10:17:32,600 - DEBUG - VRF ids for VN ctest-vn4-60659108: {} 2026-01-30 10:17:32,600 - DEBUG - ====Verifying data for ctest-policy1-51383411 in API_Server ====== 2026-01-30 10:17:32,600 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-01-30 10:17:32,606 - DEBUG - Requesting: http://10.0.0.50:8082/domain/381c7320-5ff9-470e-8c63-deec02f8fc1c 2026-01-30 10:17:32,616 - DEBUG - Requesting: http://10.0.0.50:8082/project/de782559-08de-4095-ae8e-9bb4435b41e6 2026-01-30 10:17:32,682 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/56842ddf-8feb-46d7-b398-d3f9b6f23082 2026-01-30 10:17:32,691 - INFO - Verified policy ctest-policy1-51383411 in API Server, Result: True 2026-01-30 10:17:32,691 - INFO - Done with setup and verification, moving onto test .. 2026-01-30 10:17:32,699 - INFO - Deleting VN ctest-vn4-60659108 2026-01-30 10:17:32,806 - DEBUG - Response for deleting network () 2026-01-30 10:17:32,806 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/01c4379c-e626-486e-8282-2a422d59cd59 2026-01-30 10:17:32,812 - DEBUG - Response Code: 404 2026-01-30 10:17:32,812 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-01-30 10:17:32,819 - DEBUG - Requesting: http://10.0.0.50:8082/domain/381c7320-5ff9-470e-8c63-deec02f8fc1c 2026-01-30 10:17:32,875 - DEBUG - Requesting: http://10.0.0.50:8082/project/de782559-08de-4095-ae8e-9bb4435b41e6 2026-01-30 10:17:32,951 - INFO - Validated that VN ctest-vn4-60659108 is not found in API Server 2026-01-30 10:17:32,960 - DEBUG - VN ctest-vn4-60659108 is not present in Agent 10.0.0.50 2026-01-30 10:17:32,960 - INFO - Validated that VN ctest-vn4-60659108 is not in any agent 2026-01-30 10:17:32,977 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-60659108 info 2026-01-30 10:17:33,002 - INFO - Deleted policy ctest-policy1-51383411 2026-01-30 10:17:33,163 - DEBUG - policy ctest-policy1-51383411 is not found in API Server 2026-01-30 10:17:33,415 - DEBUG - No XMPP flaps were noticed during the test
2026-01-30 10:17:33,416 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-01-30 10:17:33,416 - INFO - -------------------------------------------------------------------------------- 2026-01-30 10:17:33,710 - DEBUG - No XMPP flaps were noticed during the test
2026-01-30 10:17:33,710 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-01-30 10:17:33,710 - INFO - -------------------------------------------------------------------------------- 2026-01-30 10:17:34,400 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-53490165, ID : de782559-08de-4095-ae8e-9bb4435b41e6