2026-02-09 02:30:46,159 - INFO - Domain Default found not creating 2026-02-09 02:30:46,310 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-36745762 not found, creating it 2026-02-09 02:30:46,815 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-36745762, ID : dbfd70a7-4bb3-4c25-9014-1d7e273a07ad 2026-02-09 02:30:48,315 - INFO - ================================================================================ 2026-02-09 02:30:48,315 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-09 02:30:49,590 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.254': '0', '10.20.0.25': '0'}, '10.0.0.65': {'10.20.0.18': '0', '10.20.0.25': '0'}} with 2026-02-09 02:30:49,591 - INFO - Initial checks done. Running the testcase now 2026-02-09 02:30:49,591 - INFO - 2026-02-09 02:30:49,591 - INFO - ================================================================================ 2026-02-09 02:30:49,591 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-09 02:30:49,591 - 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-02-09 02:30:50,864 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.254': '0', '10.20.0.25': '0'}, '10.0.0.65': {'10.20.0.18': '0', '10.20.0.25': '0'}} with 2026-02-09 02:30:50,864 - INFO - Initial checks done. Running the testcase now 2026-02-09 02:30:50,865 - INFO - 2026-02-09 02:30:51,223 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36745762:ctest-vn4-70185315, 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-36745762:ctest-vn4-70185315, 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-36745762:ctest-vn4-70185315, 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-36745762:ctest-vn4-70185315, 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-02-09 02:30:51,872 - DEBUG - Response for create_network : {'network': {'id': '27d0c94a-4779-4b8e-8d22-6f13127ae343', 'name': 'ctest-vn4-70185315', 'tenant_id': 'dbfd70a74bb34c2590141d7e273a07ad', 'project_id': 'dbfd70a74bb34c2590141d7e273a07ad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36745762', 'ctest-vn4-70185315'], 'port_security_enabled': True, 'description': ''}} 2026-02-09 02:30:52,175 - DEBUG - Response for create_subnet : {'subnet': {'id': '9b4d84ae-5f30-4ca5-95ba-9878764400fd', 'name': '', 'tenant_id': 'dbfd70a74bb34c2590141d7e273a07ad', 'network_id': '27d0c94a-4779-4b8e-8d22-6f13127ae343', 'ip_version': 4, 'cidr': '37.202.70.192/26', 'allocation_pools': [{'start': '37.202.70.194', 'end': '37.202.70.254'}], 'gateway_ip': '37.202.70.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '37.202.70.194', 'tags': [], 'project_id': 'dbfd70a74bb34c2590141d7e273a07ad'}} 2026-02-09 02:30:52,437 - DEBUG - Response for create_subnet : {'subnet': {'id': '09053eee-f2a1-4ceb-937f-8553d8385318', 'name': '', 'tenant_id': 'dbfd70a74bb34c2590141d7e273a07ad', 'network_id': '27d0c94a-4779-4b8e-8d22-6f13127ae343', 'ip_version': 6, 'cidr': '2516:94a3:515c:233d:5c04:6fa3::/96', 'allocation_pools': [{'start': '2516:94a3:515c:233d:5c04:6fa3:0:2', 'end': '2516:94a3:515c:233d:5c04:6fa3:ffff:fffe'}], 'gateway_ip': '2516:94a3:515c:233d:5c04:6fa3:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2516:94a3:515c:233d:5c04:6fa3:0:2', 'tags': [], 'project_id': 'dbfd70a74bb34c2590141d7e273a07ad'}} 2026-02-09 02:30:52,464 - INFO - Created VN ctest-vn4-70185315 2026-02-09 02:30:52,476 - DEBUG - VN ctest-vn4-70185315 UUID is 27d0c94a-4779-4b8e-8d22-6f13127ae343 2026-02-09 02:30:52,739 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '27d0c94a-4779-4b8e-8d22-6f13127ae343', 'name': 'ctest-vn4-70185315', 'tenant_id': 'dbfd70a74bb34c2590141d7e273a07ad', 'project_id': 'dbfd70a74bb34c2590141d7e273a07ad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9b4d84ae-5f30-4ca5-95ba-9878764400fd', '09053eee-f2a1-4ceb-937f-8553d8385318'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36745762', 'ctest-vn4-70185315'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36745762', 'ctest-policy1-67068242']], 'subnet_ipam': [{'subnet_cidr': '37.202.70.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2516:94a3:515c:233d:5c04:6fa3::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-09 02:30:52,877 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-02-09 02:30:53,242 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-02-09 02:30:53,269 - DEBUG - Requesting: http://10.0.0.19:8082/domain/069df225-a7cb-4796-a8d5-681a22d1bf82 2026-02-09 02:30:53,287 - DEBUG - Requesting: http://10.0.0.19:8082/project/dbfd70a7-4bb3-4c25-9014-1d7e273a07ad 2026-02-09 02:30:53,386 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/27d0c94a-4779-4b8e-8d22-6f13127ae343 2026-02-09 02:30:53,400 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/27d0c94a-4779-4b8e-8d22-6f13127ae343 2026-02-09 02:30:53,409 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/e4bbae82-8c69-453b-a1d1-f2cf246c0f38 2026-02-09 02:30:53,415 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/e4bbae82-8c69-453b-a1d1-f2cf246c0f38 2026-02-09 02:30:53,421 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/b80a5da1-c921-42ce-96c8-2fb626bb0fde 2026-02-09 02:30:53,427 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-09 02:30:53,427 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/27d0c94a-4779-4b8e-8d22-6f13127ae343 2026-02-09 02:30:53,437 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/e4bbae82-8c69-453b-a1d1-f2cf246c0f38 2026-02-09 02:30:53,452 - INFO - Verified VN network id 15 for VN 27d0c94a-4779-4b8e-8d22-6f13127ae343 2026-02-09 02:30:53,452 - INFO - Verifications in API Server for VN ctest-vn4-70185315 passed 2026-02-09 02:30:53,453 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/27d0c94a-4779-4b8e-8d22-6f13127ae343 2026-02-09 02:30:53,461 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/e4bbae82-8c69-453b-a1d1-f2cf246c0f38 2026-02-09 02:30:53,468 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/e4bbae82-8c69-453b-a1d1-f2cf246c0f38 2026-02-09 02:30:53,474 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/b80a5da1-c921-42ce-96c8-2fb626bb0fde 2026-02-09 02:30:53,485 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36745762:ctest-vn4-70185315', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-36745762', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2869014283498900366', 'uuid-lslong': '10169813036261106499'}, 'enable': 'true', 'created': '2026-02-09T02:30:51', 'last-modified': '2026-02-09T02:30:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.791158'} 2026-02-09 02:30:53,490 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-09 02:30:53,495 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36745762:ctest-vn4-70185315', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-36745762', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2869014283498900366', 'uuid-lslong': '10169813036261106499'}, 'enable': 'true', 'created': '2026-02-09T02:30:51', 'last-modified': '2026-02-09T02:30:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.805150'} 2026-02-09 02:30:53,501 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-09 02:30:53,506 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36745762:ctest-vn4-70185315', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-36745762', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2869014283498900366', 'uuid-lslong': '10169813036261106499'}, 'enable': 'true', 'created': '2026-02-09T02:30:51', 'last-modified': '2026-02-09T02:30:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.824563'} 2026-02-09 02:30:53,512 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-09 02:30:53,512 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-70185315 passed 2026-02-09 02:30:53,512 - DEBUG - ====Verifying policy data for ctest-vn4-70185315 in API_Server ====== 2026-02-09 02:30:53,512 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-02-09 02:30:53,517 - DEBUG - Requesting: http://10.0.0.19:8082/domain/069df225-a7cb-4796-a8d5-681a22d1bf82 2026-02-09 02:30:53,527 - DEBUG - Requesting: http://10.0.0.19:8082/project/dbfd70a7-4bb3-4c25-9014-1d7e273a07ad 2026-02-09 02:30:53,615 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/27d0c94a-4779-4b8e-8d22-6f13127ae343 2026-02-09 02:30:53,625 - DEBUG - ==>Verifying data for policy with id: 8cfc16c6-9f72-411e-bbd9-d0f6b46a10fe, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36745762', 'ctest-policy1-67068242'] 2026-02-09 02:30:53,625 - INFO - VN ctest-vn4-70185315 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-09 02:30:53,625 - DEBUG - Verifying the vn in opserver 2026-02-09 02:30:53,625 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36745762:ctest-vn4-70185315 virtual network link through opserver 10.0.0.19 2026-02-09 02:30:53,625 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2026-02-09 02:30:53,917 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2026-02-09 02:30:53,975 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36745762:ctest-vn4-70185315', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36745762:ctest-vn4-70185315?flat'} 2026-02-09 02:30:53,975 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36745762:ctest-vn4-70185315 virtual network link through opserver 10.0.0.33 2026-02-09 02:30:53,975 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-02-09 02:30:54,270 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-02-09 02:30:54,332 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36745762:ctest-vn4-70185315', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36745762:ctest-vn4-70185315?flat'} 2026-02-09 02:30:54,332 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36745762:ctest-vn4-70185315 virtual network link through opserver 10.0.0.41 2026-02-09 02:30:54,332 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2026-02-09 02:30:54,620 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2026-02-09 02:30:54,693 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36745762:ctest-vn4-70185315', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36745762:ctest-vn4-70185315?flat'} 2026-02-09 02:30:54,693 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36745762:ctest-vn4-70185315 is found in opserver 2026-02-09 02:30:54,714 - DEBUG - Do not have enough data to verify VN in agent 2026-02-09 02:30:54,723 - DEBUG - VRF ids for VN ctest-vn4-70185315: {} 2026-02-09 02:30:54,723 - DEBUG - ====Verifying data for ctest-policy1-67068242 in API_Server ====== 2026-02-09 02:30:54,723 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-02-09 02:30:54,728 - DEBUG - Requesting: http://10.0.0.19:8082/domain/069df225-a7cb-4796-a8d5-681a22d1bf82 2026-02-09 02:30:54,739 - DEBUG - Requesting: http://10.0.0.19:8082/project/dbfd70a7-4bb3-4c25-9014-1d7e273a07ad 2026-02-09 02:30:54,826 - DEBUG - Requesting: http://10.0.0.19:8082/network-policy/8cfc16c6-9f72-411e-bbd9-d0f6b46a10fe 2026-02-09 02:30:54,836 - INFO - Verified policy ctest-policy1-67068242 in API Server, Result: True 2026-02-09 02:30:54,837 - INFO - Done with setup and verification, moving onto test .. 2026-02-09 02:30:54,848 - INFO - Deleting VN ctest-vn4-70185315 2026-02-09 02:30:55,018 - DEBUG - Response for deleting network () 2026-02-09 02:30:55,018 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/e4bbae82-8c69-453b-a1d1-f2cf246c0f38 2026-02-09 02:30:55,032 - DEBUG - Response Code: 404 2026-02-09 02:30:55,032 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-02-09 02:30:55,038 - DEBUG - Requesting: http://10.0.0.19:8082/domain/069df225-a7cb-4796-a8d5-681a22d1bf82 2026-02-09 02:30:55,049 - DEBUG - Requesting: http://10.0.0.19:8082/project/dbfd70a7-4bb3-4c25-9014-1d7e273a07ad 2026-02-09 02:30:55,135 - INFO - Validated that VN ctest-vn4-70185315 is not found in API Server 2026-02-09 02:30:55,145 - DEBUG - VN ctest-vn4-70185315 is not present in Agent 10.0.0.27 2026-02-09 02:30:55,157 - DEBUG - VN ctest-vn4-70185315 is not present in Agent 10.0.0.65 2026-02-09 02:30:55,157 - INFO - Validated that VN ctest-vn4-70185315 is not in any agent 2026-02-09 02:30:55,190 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-70185315 info 2026-02-09 02:30:55,233 - INFO - Deleted policy ctest-policy1-67068242 2026-02-09 02:30:55,441 - DEBUG - policy ctest-policy1-67068242 is not found in API Server 2026-02-09 02:30:56,699 - DEBUG - No XMPP flaps were noticed during the test