2025-10-16 02:39:15,342 - INFO - Domain Default found not creating 2025-10-16 02:39:15,487 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-16099491 not found, creating it 2025-10-16 02:39:15,964 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-16099491, ID : 71abd79d-fb93-4789-83e0-7df7e2b974e1 2025-10-16 02:39:17,439 - INFO - ================================================================================ 2025-10-16 02:39:17,439 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-16 02:39:18,734 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.252': '0', '10.20.0.5': '0'}, '10.0.0.129': {'10.20.0.5': '0', '10.20.0.252': '0'}} with 2025-10-16 02:39:18,734 - INFO - Initial checks done. Running the testcase now 2025-10-16 02:39:18,734 - INFO - 2025-10-16 02:39:18,734 - INFO - ================================================================================ 2025-10-16 02:39:18,734 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-16 02:39:18,734 - 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-16 02:39:20,028 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.252': '0', '10.20.0.5': '0'}, '10.0.0.129': {'10.20.0.5': '0', '10.20.0.252': '0'}} with 2025-10-16 02:39:20,028 - INFO - Initial checks done. Running the testcase now 2025-10-16 02:39:20,028 - INFO - 2025-10-16 02:39:20,588 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16099491:ctest-vn4-37572827, 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-16099491:ctest-vn4-37572827, 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-16099491:ctest-vn4-37572827, 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-16099491:ctest-vn4-37572827, 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-16 02:39:21,215 - DEBUG - Response for create_network : {'network': {'id': 'b81af657-bcc1-43a7-9c19-2e3b7def7bb0', 'name': 'ctest-vn4-37572827', 'tenant_id': '71abd79dfb93478983e07df7e2b974e1', 'project_id': '71abd79dfb93478983e07df7e2b974e1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-16099491', 'ctest-vn4-37572827'], 'port_security_enabled': True, 'description': ''}} 2025-10-16 02:39:21,535 - DEBUG - Response for create_subnet : {'subnet': {'id': '33ee381d-34d4-4cf5-b234-a5d51f58720f', 'name': '', 'tenant_id': '71abd79dfb93478983e07df7e2b974e1', 'network_id': 'b81af657-bcc1-43a7-9c19-2e3b7def7bb0', 'ip_version': 4, 'cidr': '217.175.108.0/26', 'allocation_pools': [{'start': '217.175.108.2', 'end': '217.175.108.62'}], 'gateway_ip': '217.175.108.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '217.175.108.2', 'tags': [], 'project_id': '71abd79dfb93478983e07df7e2b974e1'}} 2025-10-16 02:39:21,764 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dedd9ef8-854a-4105-bbb1-293f8c16c253', 'name': '', 'tenant_id': '71abd79dfb93478983e07df7e2b974e1', 'network_id': 'b81af657-bcc1-43a7-9c19-2e3b7def7bb0', 'ip_version': 6, 'cidr': '24f3:d4fa:7b5f:5427:e3c9:5d2d::/96', 'allocation_pools': [{'start': '24f3:d4fa:7b5f:5427:e3c9:5d2d:0:2', 'end': '24f3:d4fa:7b5f:5427:e3c9:5d2d:ffff:fffe'}], 'gateway_ip': '24f3:d4fa:7b5f:5427:e3c9:5d2d:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '24f3:d4fa:7b5f:5427:e3c9:5d2d:0:2', 'tags': [], 'project_id': '71abd79dfb93478983e07df7e2b974e1'}} 2025-10-16 02:39:21,793 - INFO - Created VN ctest-vn4-37572827 2025-10-16 02:39:21,804 - DEBUG - VN ctest-vn4-37572827 UUID is b81af657-bcc1-43a7-9c19-2e3b7def7bb0 2025-10-16 02:39:22,019 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b81af657-bcc1-43a7-9c19-2e3b7def7bb0', 'name': 'ctest-vn4-37572827', 'tenant_id': '71abd79dfb93478983e07df7e2b974e1', 'project_id': '71abd79dfb93478983e07df7e2b974e1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['33ee381d-34d4-4cf5-b234-a5d51f58720f', 'dedd9ef8-854a-4105-bbb1-293f8c16c253'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-16099491', 'ctest-vn4-37572827'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-16099491', 'ctest-policy1-46660736']], 'subnet_ipam': [{'subnet_cidr': '217.175.108.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '24f3:d4fa:7b5f:5427:e3c9:5d2d::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-16 02:39:22,126 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-10-16 02:39:22,419 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-10-16 02:39:22,444 - DEBUG - Requesting: http://10.0.0.19:8082/domain/446ea2e6-9d96-4973-a55a-3f633ea4d0f9 2025-10-16 02:39:22,459 - DEBUG - Requesting: http://10.0.0.19:8082/project/71abd79d-fb93-4789-83e0-7df7e2b974e1 2025-10-16 02:39:22,555 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/b81af657-bcc1-43a7-9c19-2e3b7def7bb0 2025-10-16 02:39:22,569 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/b81af657-bcc1-43a7-9c19-2e3b7def7bb0 2025-10-16 02:39:22,580 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/48c4a056-5b01-423c-b438-346db54e8ebf 2025-10-16 02:39:22,588 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/48c4a056-5b01-423c-b438-346db54e8ebf 2025-10-16 02:39:22,595 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/4306f356-ed45-4721-ba54-acde56c0aa69 2025-10-16 02:39:22,602 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-16 02:39:22,602 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/b81af657-bcc1-43a7-9c19-2e3b7def7bb0 2025-10-16 02:39:22,611 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/48c4a056-5b01-423c-b438-346db54e8ebf 2025-10-16 02:39:22,625 - INFO - Verified VN network id 11 for VN b81af657-bcc1-43a7-9c19-2e3b7def7bb0 2025-10-16 02:39:22,625 - INFO - Verifications in API Server for VN ctest-vn4-37572827 passed 2025-10-16 02:39:22,625 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/b81af657-bcc1-43a7-9c19-2e3b7def7bb0 2025-10-16 02:39:22,635 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/48c4a056-5b01-423c-b438-346db54e8ebf 2025-10-16 02:39:22,641 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/48c4a056-5b01-423c-b438-346db54e8ebf 2025-10-16 02:39:22,648 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/4306f356-ed45-4721-ba54-acde56c0aa69 2025-10-16 02:39:22,659 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16099491:ctest-vn4-37572827', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-16099491', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13266186509062587303', 'uuid-lslong': '11248072377385319344'}, 'enable': 'true', 'created': '2025-10-16T02:39:21', 'last-modified': '2025-10-16T02:39:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.700150'} 2025-10-16 02:39:22,664 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-16 02:39:22,668 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16099491:ctest-vn4-37572827', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-16099491', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13266186509062587303', 'uuid-lslong': '11248072377385319344'}, 'enable': 'true', 'created': '2025-10-16T02:39:21', 'last-modified': '2025-10-16T02:39:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.710123'} 2025-10-16 02:39:22,674 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-16 02:39:22,679 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16099491:ctest-vn4-37572827', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-16099491', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13266186509062587303', 'uuid-lslong': '11248072377385319344'}, 'enable': 'true', 'created': '2025-10-16T02:39:21', 'last-modified': '2025-10-16T02:39:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.708471'} 2025-10-16 02:39:22,684 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-16 02:39:22,684 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-37572827 passed 2025-10-16 02:39:22,684 - DEBUG - ====Verifying policy data for ctest-vn4-37572827 in API_Server ====== 2025-10-16 02:39:22,684 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-10-16 02:39:22,696 - DEBUG - Requesting: http://10.0.0.19:8082/domain/446ea2e6-9d96-4973-a55a-3f633ea4d0f9 2025-10-16 02:39:22,707 - DEBUG - Requesting: http://10.0.0.19:8082/project/71abd79d-fb93-4789-83e0-7df7e2b974e1 2025-10-16 02:39:22,798 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/b81af657-bcc1-43a7-9c19-2e3b7def7bb0 2025-10-16 02:39:22,809 - DEBUG - ==>Verifying data for policy with id: e824f58d-584c-44ee-ba66-ce13ba4189e7, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-16099491', 'ctest-policy1-46660736'] 2025-10-16 02:39:22,809 - INFO - VN ctest-vn4-37572827 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-16 02:39:22,809 - DEBUG - Verifying the vn in opserver 2025-10-16 02:39:22,809 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16099491:ctest-vn4-37572827 virtual network link through opserver 10.0.0.19 2025-10-16 02:39:22,809 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-10-16 02:39:23,105 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-10-16 02:39:23,156 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16099491:ctest-vn4-37572827', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16099491:ctest-vn4-37572827?flat'} 2025-10-16 02:39:23,156 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16099491:ctest-vn4-37572827 virtual network link through opserver 10.0.0.57 2025-10-16 02:39:23,157 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2025-10-16 02:39:23,457 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2025-10-16 02:39:23,516 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16099491:ctest-vn4-37572827', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16099491:ctest-vn4-37572827?flat'} 2025-10-16 02:39:23,516 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16099491:ctest-vn4-37572827 virtual network link through opserver 10.0.0.23 2025-10-16 02:39:23,516 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-10-16 02:39:23,812 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-10-16 02:39:23,862 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16099491:ctest-vn4-37572827', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16099491:ctest-vn4-37572827?flat'} 2025-10-16 02:39:23,862 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16099491:ctest-vn4-37572827 is found in opserver 2025-10-16 02:39:23,882 - DEBUG - Do not have enough data to verify VN in agent 2025-10-16 02:39:23,891 - DEBUG - VRF ids for VN ctest-vn4-37572827: {} 2025-10-16 02:39:23,891 - DEBUG - ====Verifying data for ctest-policy1-46660736 in API_Server ====== 2025-10-16 02:39:23,891 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-10-16 02:39:23,897 - DEBUG - Requesting: http://10.0.0.19:8082/domain/446ea2e6-9d96-4973-a55a-3f633ea4d0f9 2025-10-16 02:39:23,910 - DEBUG - Requesting: http://10.0.0.19:8082/project/71abd79d-fb93-4789-83e0-7df7e2b974e1 2025-10-16 02:39:23,998 - DEBUG - Requesting: http://10.0.0.19:8082/network-policy/e824f58d-584c-44ee-ba66-ce13ba4189e7 2025-10-16 02:39:24,007 - INFO - Verified policy ctest-policy1-46660736 in API Server, Result: True 2025-10-16 02:39:24,007 - INFO - Done with setup and verification, moving onto test .. 2025-10-16 02:39:24,016 - INFO - Deleting VN ctest-vn4-37572827 2025-10-16 02:39:24,222 - DEBUG - Response for deleting network () 2025-10-16 02:39:24,222 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/48c4a056-5b01-423c-b438-346db54e8ebf 2025-10-16 02:39:24,230 - DEBUG - Response Code: 404 2025-10-16 02:39:24,230 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-10-16 02:39:24,236 - DEBUG - Requesting: http://10.0.0.19:8082/domain/446ea2e6-9d96-4973-a55a-3f633ea4d0f9 2025-10-16 02:39:24,289 - DEBUG - Requesting: http://10.0.0.19:8082/project/71abd79d-fb93-4789-83e0-7df7e2b974e1 2025-10-16 02:39:24,381 - INFO - Validated that VN ctest-vn4-37572827 is not found in API Server 2025-10-16 02:39:24,392 - DEBUG - VN ctest-vn4-37572827 is not present in Agent 10.0.0.38 2025-10-16 02:39:24,402 - DEBUG - VN ctest-vn4-37572827 is not present in Agent 10.0.0.129 2025-10-16 02:39:24,402 - INFO - Validated that VN ctest-vn4-37572827 is not in any agent 2025-10-16 02:39:24,433 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-37572827 info 2025-10-16 02:39:24,475 - INFO - Deleted policy ctest-policy1-46660736 2025-10-16 02:39:24,654 - DEBUG - policy ctest-policy1-46660736 is not found in API Server 2025-10-16 02:39:25,909 - DEBUG - No XMPP flaps were noticed during the test