2026-04-29 02:22:35,471 - INFO - Domain Default found not creating 2026-04-29 02:22:35,660 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-54645481 not found, creating it 2026-04-29 02:22:36,147 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-54645481, ID : 2d23abfc-2118-4e01-bebb-7252d1afa8ef 2026-04-29 02:22:37,865 - INFO - ================================================================================ 2026-04-29 02:22:37,865 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-29 02:22:38,119 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-04-29 02:22:38,119 - INFO - Initial checks done. Running the testcase now 2026-04-29 02:22:38,119 - INFO - 2026-04-29 02:22:38,119 - INFO - ================================================================================ 2026-04-29 02:22:38,119 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-29 02:22:38,119 - 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-29 02:22:38,414 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-04-29 02:22:38,414 - INFO - Initial checks done. Running the testcase now 2026-04-29 02:22:38,414 - INFO - 2026-04-29 02:22:38,830 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54645481:ctest-vn4-04621267, 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-54645481:ctest-vn4-04621267, 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-54645481:ctest-vn4-04621267, 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-54645481:ctest-vn4-04621267, 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-29 02:22:39,383 - DEBUG - Response for create_network : {'network': {'id': 'abfe002b-8f2a-426e-bf65-7357e1340345', 'name': 'ctest-vn4-04621267', 'tenant_id': '2d23abfc21184e01bebb7252d1afa8ef', 'project_id': '2d23abfc21184e01bebb7252d1afa8ef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-54645481', 'ctest-vn4-04621267'], 'port_security_enabled': True, 'description': ''}} 2026-04-29 02:22:39,607 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b6fbbdb6-dcf1-49d5-bcfc-7c03eb660c52', 'name': '', 'tenant_id': '2d23abfc21184e01bebb7252d1afa8ef', 'network_id': 'abfe002b-8f2a-426e-bf65-7357e1340345', 'ip_version': 4, 'cidr': '78.162.94.0/26', 'allocation_pools': [{'start': '78.162.94.2', 'end': '78.162.94.62'}], 'gateway_ip': '78.162.94.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '78.162.94.2', 'tags': [], 'project_id': '2d23abfc21184e01bebb7252d1afa8ef'}} 2026-04-29 02:22:39,809 - DEBUG - Response for create_subnet : {'subnet': {'id': 'daac7501-4ae8-4998-bd33-ee5a15003629', 'name': '', 'tenant_id': '2d23abfc21184e01bebb7252d1afa8ef', 'network_id': 'abfe002b-8f2a-426e-bf65-7357e1340345', 'ip_version': 6, 'cidr': '23e0:f1a6:9da1:3cd7:7e15:df9f::/96', 'allocation_pools': [{'start': '23e0:f1a6:9da1:3cd7:7e15:df9f:0:2', 'end': '23e0:f1a6:9da1:3cd7:7e15:df9f:ffff:fffe'}], 'gateway_ip': '23e0:f1a6:9da1:3cd7:7e15:df9f:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '23e0:f1a6:9da1:3cd7:7e15:df9f:0:2', 'tags': [], 'project_id': '2d23abfc21184e01bebb7252d1afa8ef'}} 2026-04-29 02:22:39,833 - INFO - Created VN ctest-vn4-04621267 2026-04-29 02:22:39,888 - DEBUG - VN ctest-vn4-04621267 UUID is abfe002b-8f2a-426e-bf65-7357e1340345 2026-04-29 02:22:40,121 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'abfe002b-8f2a-426e-bf65-7357e1340345', 'name': 'ctest-vn4-04621267', 'tenant_id': '2d23abfc21184e01bebb7252d1afa8ef', 'project_id': '2d23abfc21184e01bebb7252d1afa8ef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b6fbbdb6-dcf1-49d5-bcfc-7c03eb660c52', 'daac7501-4ae8-4998-bd33-ee5a15003629'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-54645481', 'ctest-vn4-04621267'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-54645481', 'ctest-policy1-24317844']], 'subnet_ipam': [{'subnet_cidr': '78.162.94.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '23e0:f1a6:9da1:3cd7:7e15:df9f::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-29 02:22:40,292 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-29 02:22:40,632 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-29 02:22:40,667 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0cd39402-a790-4a04-8c5b-fa283d970f72 2026-04-29 02:22:40,681 - DEBUG - Requesting: http://10.0.0.50:8082/project/2d23abfc-2118-4e01-bebb-7252d1afa8ef 2026-04-29 02:22:40,761 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/abfe002b-8f2a-426e-bf65-7357e1340345 2026-04-29 02:22:40,774 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/abfe002b-8f2a-426e-bf65-7357e1340345 2026-04-29 02:22:40,784 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/133cc5d5-1ec4-4a61-a420-9af34009097e 2026-04-29 02:22:40,791 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/133cc5d5-1ec4-4a61-a420-9af34009097e 2026-04-29 02:22:40,799 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/79560695-c908-4fb2-8dac-94065e5e91e8 2026-04-29 02:22:40,806 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-29 02:22:40,806 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/abfe002b-8f2a-426e-bf65-7357e1340345 2026-04-29 02:22:40,817 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/133cc5d5-1ec4-4a61-a420-9af34009097e 2026-04-29 02:22:40,833 - INFO - Verified VN network id 12 for VN abfe002b-8f2a-426e-bf65-7357e1340345 2026-04-29 02:22:40,834 - INFO - Verifications in API Server for VN ctest-vn4-04621267 passed 2026-04-29 02:22:40,834 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/abfe002b-8f2a-426e-bf65-7357e1340345 2026-04-29 02:22:40,844 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/133cc5d5-1ec4-4a61-a420-9af34009097e 2026-04-29 02:22:40,852 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/133cc5d5-1ec4-4a61-a420-9af34009097e 2026-04-29 02:22:40,860 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/79560695-c908-4fb2-8dac-94065e5e91e8 2026-04-29 02:22:40,874 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54645481:ctest-vn4-04621267', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-54645481', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12393343411655688814', 'uuid-lslong': '13791556255169643333'}, 'enable': 'true', 'created': '2026-04-29T02:22:39', 'last-modified': '2026-04-29T02:22:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.786402'} 2026-04-29 02:22:40,881 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-29 02:22:40,882 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-04621267 passed 2026-04-29 02:22:40,882 - DEBUG - ====Verifying policy data for ctest-vn4-04621267 in API_Server ====== 2026-04-29 02:22:40,882 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-29 02:22:40,888 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0cd39402-a790-4a04-8c5b-fa283d970f72 2026-04-29 02:22:40,901 - DEBUG - Requesting: http://10.0.0.50:8082/project/2d23abfc-2118-4e01-bebb-7252d1afa8ef 2026-04-29 02:22:40,980 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/abfe002b-8f2a-426e-bf65-7357e1340345 2026-04-29 02:22:40,991 - DEBUG - ==>Verifying data for policy with id: fc8f11ce-3442-4f99-a18e-7f77c4a29b8c, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-54645481', 'ctest-policy1-24317844'] 2026-04-29 02:22:40,991 - INFO - VN ctest-vn4-04621267 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-29 02:22:40,991 - DEBUG - Verifying the vn in opserver 2026-04-29 02:22:40,991 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54645481:ctest-vn4-04621267 virtual network link through opserver 10.0.0.50 2026-04-29 02:22:40,991 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-04-29 02:22:41,332 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-04-29 02:22:41,409 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54645481:ctest-vn4-04621267', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54645481:ctest-vn4-04621267?flat'} 2026-04-29 02:22:41,409 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54645481:ctest-vn4-04621267 is found in opserver 2026-04-29 02:22:41,421 - DEBUG - Do not have enough data to verify VN in agent 2026-04-29 02:22:41,426 - DEBUG - VRF ids for VN ctest-vn4-04621267: {} 2026-04-29 02:22:41,426 - DEBUG - ====Verifying data for ctest-policy1-24317844 in API_Server ====== 2026-04-29 02:22:41,427 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-29 02:22:41,434 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0cd39402-a790-4a04-8c5b-fa283d970f72 2026-04-29 02:22:41,449 - DEBUG - Requesting: http://10.0.0.50:8082/project/2d23abfc-2118-4e01-bebb-7252d1afa8ef 2026-04-29 02:22:41,527 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/fc8f11ce-3442-4f99-a18e-7f77c4a29b8c 2026-04-29 02:22:41,537 - INFO - Verified policy ctest-policy1-24317844 in API Server, Result: True 2026-04-29 02:22:41,537 - INFO - Done with setup and verification, moving onto test .. 2026-04-29 02:22:41,546 - INFO - Deleting VN ctest-vn4-04621267 2026-04-29 02:22:41,700 - DEBUG - Response for deleting network () 2026-04-29 02:22:41,700 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/133cc5d5-1ec4-4a61-a420-9af34009097e 2026-04-29 02:22:41,706 - DEBUG - Response Code: 404 2026-04-29 02:22:41,706 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-29 02:22:41,713 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0cd39402-a790-4a04-8c5b-fa283d970f72 2026-04-29 02:22:41,770 - DEBUG - Requesting: http://10.0.0.50:8082/project/2d23abfc-2118-4e01-bebb-7252d1afa8ef 2026-04-29 02:22:41,844 - INFO - Validated that VN ctest-vn4-04621267 is not found in API Server 2026-04-29 02:22:41,855 - DEBUG - VN ctest-vn4-04621267 is not present in Agent 10.0.0.50 2026-04-29 02:22:41,856 - INFO - Validated that VN ctest-vn4-04621267 is not in any agent 2026-04-29 02:22:41,873 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-04621267 info 2026-04-29 02:22:41,908 - INFO - Deleted policy ctest-policy1-24317844 2026-04-29 02:22:42,080 - DEBUG - policy ctest-policy1-24317844 is not found in API Server 2026-04-29 02:22:42,337 - DEBUG - No XMPP flaps were noticed during the test 2026-04-29 02:22:42,337 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-04-29 02:22:42,337 - INFO - -------------------------------------------------------------------------------- 2026-04-29 02:22:42,637 - DEBUG - No XMPP flaps were noticed during the test 2026-04-29 02:22:42,637 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-04-29 02:22:42,637 - INFO - -------------------------------------------------------------------------------- 2026-04-29 02:22:43,591 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-54645481, ID : 2d23abfc-2118-4e01-bebb-7252d1afa8ef