2026-04-02 02:36:50,736 - INFO - Domain Default found not creating 2026-04-02 02:36:50,923 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-45737378 not found, creating it 2026-04-02 02:36:51,460 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-45737378, ID : 728cb471-b393-492d-89ee-6a2ea04c1a83 2026-04-02 02:36:52,880 - INFO - ================================================================================ 2026-04-02 02:36:52,880 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-02 02:36:54,165 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0', '10.20.0.249': '0'}, '10.0.0.128': {'10.20.0.249': '0', '10.20.0.254': '0'}} with 2026-04-02 02:36:54,165 - INFO - Initial checks done. Running the testcase now 2026-04-02 02:36:54,165 - INFO - 2026-04-02 02:36:54,165 - INFO - ================================================================================ 2026-04-02 02:36:54,165 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-02 02:36:54,165 - 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-04-02 02:36:55,449 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0', '10.20.0.249': '0'}, '10.0.0.128': {'10.20.0.249': '0', '10.20.0.254': '0'}} with 2026-04-02 02:36:55,449 - INFO - Initial checks done. Running the testcase now 2026-04-02 02:36:55,450 - INFO - 2026-04-02 02:36:55,806 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45737378:ctest-vn4-07769865, 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-45737378:ctest-vn4-07769865, 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-45737378:ctest-vn4-07769865, 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-45737378:ctest-vn4-07769865, 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-04-02 02:36:56,754 - DEBUG - Response for create_network : {'network': {'id': '05ed69db-6eff-426c-a7dd-455ba6343542', 'name': 'ctest-vn4-07769865', 'tenant_id': '728cb471b393492d89ee6a2ea04c1a83', 'project_id': '728cb471b393492d89ee6a2ea04c1a83', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-45737378', 'ctest-vn4-07769865'], 'port_security_enabled': True, 'description': ''}} 2026-04-02 02:36:57,213 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cf4677c6-a192-4ec4-b4b4-2acb144de00f', 'name': '', 'tenant_id': '728cb471b393492d89ee6a2ea04c1a83', 'network_id': '05ed69db-6eff-426c-a7dd-455ba6343542', 'ip_version': 4, 'cidr': '24.242.126.192/26', 'allocation_pools': [{'start': '24.242.126.194', 'end': '24.242.126.254'}], 'gateway_ip': '24.242.126.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '24.242.126.194', 'tags': [], 'project_id': '728cb471b393492d89ee6a2ea04c1a83'}} 2026-04-02 02:36:57,455 - DEBUG - Response for create_subnet : {'subnet': {'id': '31b6374d-b923-4a07-b015-a4843d41d09d', 'name': '', 'tenant_id': '728cb471b393492d89ee6a2ea04c1a83', 'network_id': '05ed69db-6eff-426c-a7dd-455ba6343542', 'ip_version': 6, 'cidr': '365f:b631:bfa8:638:e960:f0d9::/96', 'allocation_pools': [{'start': '365f:b631:bfa8:638:e960:f0d9:0:2', 'end': '365f:b631:bfa8:638:e960:f0d9:ffff:fffe'}], 'gateway_ip': '365f:b631:bfa8:638:e960:f0d9:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '365f:b631:bfa8:638:e960:f0d9:0:2', 'tags': [], 'project_id': '728cb471b393492d89ee6a2ea04c1a83'}} 2026-04-02 02:36:57,478 - INFO - Created VN ctest-vn4-07769865 2026-04-02 02:36:57,489 - DEBUG - VN ctest-vn4-07769865 UUID is 05ed69db-6eff-426c-a7dd-455ba6343542 2026-04-02 02:36:57,704 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '05ed69db-6eff-426c-a7dd-455ba6343542', 'name': 'ctest-vn4-07769865', 'tenant_id': '728cb471b393492d89ee6a2ea04c1a83', 'project_id': '728cb471b393492d89ee6a2ea04c1a83', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cf4677c6-a192-4ec4-b4b4-2acb144de00f', '31b6374d-b923-4a07-b015-a4843d41d09d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-45737378', 'ctest-vn4-07769865'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-45737378', 'ctest-policy1-04505868']], 'subnet_ipam': [{'subnet_cidr': '24.242.126.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '365f:b631:bfa8:638:e960:f0d9::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-02 02:36:57,817 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2026-04-02 02:36:58,110 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2026-04-02 02:36:58,139 - DEBUG - Requesting: http://10.0.0.73:8082/domain/2c17115e-1a6e-47b0-9bfc-9e380916d58b 2026-04-02 02:36:58,155 - DEBUG - Requesting: http://10.0.0.73:8082/project/728cb471-b393-492d-89ee-6a2ea04c1a83 2026-04-02 02:36:58,246 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/05ed69db-6eff-426c-a7dd-455ba6343542 2026-04-02 02:36:58,270 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/05ed69db-6eff-426c-a7dd-455ba6343542 2026-04-02 02:36:58,280 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/61ec7aa1-8f8f-43c5-b4b9-4d7d453686f6 2026-04-02 02:36:58,288 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/61ec7aa1-8f8f-43c5-b4b9-4d7d453686f6 2026-04-02 02:36:58,295 - DEBUG - Requesting: http://10.0.0.73:8082/route-target/0aeb876d-6ca5-466d-9bee-c251facef71c 2026-04-02 02:36:58,301 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-02 02:36:58,301 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/05ed69db-6eff-426c-a7dd-455ba6343542 2026-04-02 02:36:58,310 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/61ec7aa1-8f8f-43c5-b4b9-4d7d453686f6 2026-04-02 02:36:58,326 - INFO - Verified VN network id 10 for VN 05ed69db-6eff-426c-a7dd-455ba6343542 2026-04-02 02:36:58,326 - INFO - Verifications in API Server for VN ctest-vn4-07769865 passed 2026-04-02 02:36:58,326 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/05ed69db-6eff-426c-a7dd-455ba6343542 2026-04-02 02:36:58,336 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/61ec7aa1-8f8f-43c5-b4b9-4d7d453686f6 2026-04-02 02:36:58,344 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/61ec7aa1-8f8f-43c5-b4b9-4d7d453686f6 2026-04-02 02:36:58,353 - DEBUG - Requesting: http://10.0.0.73:8082/route-target/0aeb876d-6ca5-466d-9bee-c251facef71c 2026-04-02 02:36:58,364 - DEBUG - Control-node 10.0.0.73 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45737378:ctest-vn4-07769865', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-45737378', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '427113930851041900', 'uuid-lslong': '12095900434119800130'}, 'enable': 'true', 'created': '2026-04-02T02:36:56', 'last-modified': '2026-04-02T02:36:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.711619'} 2026-04-02 02:36:58,369 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-02 02:36:58,374 - DEBUG - Control-node 10.0.0.133 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45737378:ctest-vn4-07769865', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-45737378', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '427113930851041900', 'uuid-lslong': '12095900434119800130'}, 'enable': 'true', 'created': '2026-04-02T02:36:56', 'last-modified': '2026-04-02T02:36:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.720249'} 2026-04-02 02:36:58,379 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-02 02:36:58,384 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45737378:ctest-vn4-07769865', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-45737378', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '427113930851041900', 'uuid-lslong': '12095900434119800130'}, 'enable': 'true', 'created': '2026-04-02T02:36:56', 'last-modified': '2026-04-02T02:36:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.734010'} 2026-04-02 02:36:58,391 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-02 02:36:58,392 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-07769865 passed 2026-04-02 02:36:58,392 - DEBUG - ====Verifying policy data for ctest-vn4-07769865 in API_Server ====== 2026-04-02 02:36:58,392 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2026-04-02 02:36:58,397 - DEBUG - Requesting: http://10.0.0.73:8082/domain/2c17115e-1a6e-47b0-9bfc-9e380916d58b 2026-04-02 02:36:58,407 - DEBUG - Requesting: http://10.0.0.73:8082/project/728cb471-b393-492d-89ee-6a2ea04c1a83 2026-04-02 02:36:58,520 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/05ed69db-6eff-426c-a7dd-455ba6343542 2026-04-02 02:36:58,533 - DEBUG - ==>Verifying data for policy with id: b4d42c15-d54a-4556-9788-e6dc96c0f222, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-45737378', 'ctest-policy1-04505868'] 2026-04-02 02:36:58,533 - INFO - VN ctest-vn4-07769865 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-02 02:36:58,533 - DEBUG - Verifying the vn in opserver 2026-04-02 02:36:58,533 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45737378:ctest-vn4-07769865 virtual network link through opserver 10.0.0.73 2026-04-02 02:36:58,533 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks 2026-04-02 02:36:58,825 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks 2026-04-02 02:36:58,878 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45737378:ctest-vn4-07769865', 'href': 'http://10.0.0.73:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45737378:ctest-vn4-07769865?flat'} 2026-04-02 02:36:58,878 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45737378:ctest-vn4-07769865 virtual network link through opserver 10.0.0.133 2026-04-02 02:36:58,878 - DEBUG - Requesting: http://10.0.0.133:8081/analytics/uves/virtual-networks 2026-04-02 02:36:59,169 - DEBUG - Requesting: http://10.0.0.133:8081/analytics/uves/virtual-networks 2026-04-02 02:36:59,235 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45737378:ctest-vn4-07769865', 'href': 'http://10.0.0.133:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45737378:ctest-vn4-07769865?flat'} 2026-04-02 02:36:59,235 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45737378:ctest-vn4-07769865 virtual network link through opserver 10.0.0.48 2026-04-02 02:36:59,235 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2026-04-02 02:36:59,528 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2026-04-02 02:36:59,592 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45737378:ctest-vn4-07769865', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45737378:ctest-vn4-07769865?flat'} 2026-04-02 02:36:59,592 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45737378:ctest-vn4-07769865 is found in opserver 2026-04-02 02:36:59,613 - DEBUG - Do not have enough data to verify VN in agent 2026-04-02 02:36:59,623 - DEBUG - VRF ids for VN ctest-vn4-07769865: {} 2026-04-02 02:36:59,623 - DEBUG - ====Verifying data for ctest-policy1-04505868 in API_Server ====== 2026-04-02 02:36:59,623 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2026-04-02 02:36:59,629 - DEBUG - Requesting: http://10.0.0.73:8082/domain/2c17115e-1a6e-47b0-9bfc-9e380916d58b 2026-04-02 02:36:59,640 - DEBUG - Requesting: http://10.0.0.73:8082/project/728cb471-b393-492d-89ee-6a2ea04c1a83 2026-04-02 02:36:59,737 - DEBUG - Requesting: http://10.0.0.73:8082/network-policy/b4d42c15-d54a-4556-9788-e6dc96c0f222 2026-04-02 02:36:59,746 - INFO - Verified policy ctest-policy1-04505868 in API Server, Result: True 2026-04-02 02:36:59,747 - INFO - Done with setup and verification, moving onto test .. 2026-04-02 02:36:59,758 - INFO - Deleting VN ctest-vn4-07769865 2026-04-02 02:36:59,988 - DEBUG - Response for deleting network () 2026-04-02 02:36:59,988 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/61ec7aa1-8f8f-43c5-b4b9-4d7d453686f6 2026-04-02 02:36:59,994 - DEBUG - Response Code: 404 2026-04-02 02:36:59,995 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2026-04-02 02:37:00,000 - DEBUG - Requesting: http://10.0.0.73:8082/domain/2c17115e-1a6e-47b0-9bfc-9e380916d58b 2026-04-02 02:37:00,011 - DEBUG - Requesting: http://10.0.0.73:8082/project/728cb471-b393-492d-89ee-6a2ea04c1a83 2026-04-02 02:37:00,091 - INFO - Validated that VN ctest-vn4-07769865 is not found in API Server 2026-04-02 02:37:00,102 - DEBUG - VN ctest-vn4-07769865 is not present in Agent 10.0.0.50 2026-04-02 02:37:00,116 - DEBUG - VN ctest-vn4-07769865 is not present in Agent 10.0.0.128 2026-04-02 02:37:00,116 - INFO - Validated that VN ctest-vn4-07769865 is not in any agent 2026-04-02 02:37:00,148 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-07769865 info 2026-04-02 02:37:00,198 - INFO - Deleted policy ctest-policy1-04505868 2026-04-02 02:37:00,385 - DEBUG - policy ctest-policy1-04505868 is not found in API Server 2026-04-02 02:37:01,688 - DEBUG - No XMPP flaps were noticed during the test 2026-04-02 02:37:01,689 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07] 2026-04-02 02:37:01,689 - INFO - -------------------------------------------------------------------------------- 2026-04-02 02:37:02,961 - DEBUG - No XMPP flaps were noticed during the test 2026-04-02 02:37:02,961 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:10] 2026-04-02 02:37:02,961 - INFO - -------------------------------------------------------------------------------- 2026-04-02 02:37:03,734 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-45737378, ID : 728cb471-b393-492d-89ee-6a2ea04c1a83