2026-06-15 02:20:41,650 - INFO - Domain Default found not creating 2026-06-15 02:20:41,785 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-55256836 not found, creating it 2026-06-15 02:20:42,278 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-55256836, ID : 4397f4e0-a8cd-4221-a9f5-876da317fff9 2026-06-15 02:20:43,681 - INFO - ================================================================================ 2026-06-15 02:20:43,681 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-15 02:20:44,958 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.193': '0', '10.20.0.25': '0'}, '10.0.0.130': {'10.20.0.25': '0', '10.20.0.129': '0'}} with 2026-06-15 02:20:44,958 - INFO - Initial checks done. Running the testcase now 2026-06-15 02:20:44,958 - INFO - 2026-06-15 02:20:44,958 - INFO - ================================================================================ 2026-06-15 02:20:44,958 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-15 02:20:44,958 - 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-06-15 02:20:46,259 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.193': '0', '10.20.0.25': '0'}, '10.0.0.130': {'10.20.0.25': '0', '10.20.0.129': '0'}} with 2026-06-15 02:20:46,259 - INFO - Initial checks done. Running the testcase now 2026-06-15 02:20:46,259 - INFO - 2026-06-15 02:20:46,628 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55256836:ctest-vn4-94367384, 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-55256836:ctest-vn4-94367384, 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-55256836:ctest-vn4-94367384, 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-55256836:ctest-vn4-94367384, 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-06-15 02:20:47,280 - DEBUG - Response for create_network : {'network': {'id': 'cea92815-d6f5-482c-b4db-5becf898e339', 'name': 'ctest-vn4-94367384', 'tenant_id': '4397f4e0a8cd4221a9f5876da317fff9', 'project_id': '4397f4e0a8cd4221a9f5876da317fff9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-55256836', 'ctest-vn4-94367384'], 'port_security_enabled': True, 'description': ''}} 2026-06-15 02:20:47,576 - DEBUG - Response for create_subnet : {'subnet': {'id': '90157aaa-0509-4b28-b7ed-aa6e85068bbb', 'name': '', 'tenant_id': '4397f4e0a8cd4221a9f5876da317fff9', 'network_id': 'cea92815-d6f5-482c-b4db-5becf898e339', 'ip_version': 4, 'cidr': '176.212.131.64/26', 'allocation_pools': [{'start': '176.212.131.66', 'end': '176.212.131.126'}], 'gateway_ip': '176.212.131.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '176.212.131.66', 'tags': [], 'project_id': '4397f4e0a8cd4221a9f5876da317fff9'}} 2026-06-15 02:20:47,819 - DEBUG - Response for create_subnet : {'subnet': {'id': '2bb9a707-810b-4e21-81e3-b54cc95c73cf', 'name': '', 'tenant_id': '4397f4e0a8cd4221a9f5876da317fff9', 'network_id': 'cea92815-d6f5-482c-b4db-5becf898e339', 'ip_version': 6, 'cidr': '3cbc:aa1c:55f7:9122:69ea:a487::/96', 'allocation_pools': [{'start': '3cbc:aa1c:55f7:9122:69ea:a487:0:2', 'end': '3cbc:aa1c:55f7:9122:69ea:a487:ffff:fffe'}], 'gateway_ip': '3cbc:aa1c:55f7:9122:69ea:a487:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3cbc:aa1c:55f7:9122:69ea:a487:0:2', 'tags': [], 'project_id': '4397f4e0a8cd4221a9f5876da317fff9'}} 2026-06-15 02:20:47,848 - INFO - Created VN ctest-vn4-94367384 2026-06-15 02:20:47,864 - DEBUG - VN ctest-vn4-94367384 UUID is cea92815-d6f5-482c-b4db-5becf898e339 2026-06-15 02:20:48,146 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cea92815-d6f5-482c-b4db-5becf898e339', 'name': 'ctest-vn4-94367384', 'tenant_id': '4397f4e0a8cd4221a9f5876da317fff9', 'project_id': '4397f4e0a8cd4221a9f5876da317fff9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['90157aaa-0509-4b28-b7ed-aa6e85068bbb', '2bb9a707-810b-4e21-81e3-b54cc95c73cf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-55256836', 'ctest-vn4-94367384'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-55256836', 'ctest-policy1-36543088']], 'subnet_ipam': [{'subnet_cidr': '176.212.131.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3cbc:aa1c:55f7:9122:69ea:a487::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-15 02:20:48,250 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-06-15 02:20:48,624 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-06-15 02:20:48,659 - DEBUG - Requesting: http://10.0.0.23:8082/domain/3390ac60-5c4f-4526-adeb-e44fba34e75e 2026-06-15 02:20:48,673 - DEBUG - Requesting: http://10.0.0.23:8082/project/4397f4e0-a8cd-4221-a9f5-876da317fff9 2026-06-15 02:20:48,773 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/cea92815-d6f5-482c-b4db-5becf898e339 2026-06-15 02:20:48,787 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/cea92815-d6f5-482c-b4db-5becf898e339 2026-06-15 02:20:48,797 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/49254b3b-0938-448f-bf6e-45d5f4f9275d 2026-06-15 02:20:48,805 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/49254b3b-0938-448f-bf6e-45d5f4f9275d 2026-06-15 02:20:48,814 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/c870a544-9b44-4885-9cea-bb3e42f784e3 2026-06-15 02:20:48,821 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-15 02:20:48,821 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/cea92815-d6f5-482c-b4db-5becf898e339 2026-06-15 02:20:48,831 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/49254b3b-0938-448f-bf6e-45d5f4f9275d 2026-06-15 02:20:48,848 - INFO - Verified VN network id 11 for VN cea92815-d6f5-482c-b4db-5becf898e339 2026-06-15 02:20:48,848 - INFO - Verifications in API Server for VN ctest-vn4-94367384 passed 2026-06-15 02:20:48,848 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/cea92815-d6f5-482c-b4db-5becf898e339 2026-06-15 02:20:48,861 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/49254b3b-0938-448f-bf6e-45d5f4f9275d 2026-06-15 02:20:48,873 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/49254b3b-0938-448f-bf6e-45d5f4f9275d 2026-06-15 02:20:48,880 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/c870a544-9b44-4885-9cea-bb3e42f784e3 2026-06-15 02:20:48,901 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55256836:ctest-vn4-94367384', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-55256836', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14891477717143078956', 'uuid-lslong': '13032111020067840825'}, 'enable': 'true', 'created': '2026-06-15T02:20:47', 'last-modified': '2026-06-15T02:20:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.801819'} 2026-06-15 02:20:48,906 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-15 02:20:48,911 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55256836:ctest-vn4-94367384', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-55256836', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14891477717143078956', 'uuid-lslong': '13032111020067840825'}, 'enable': 'true', 'created': '2026-06-15T02:20:47', 'last-modified': '2026-06-15T02:20:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.827338'} 2026-06-15 02:20:48,925 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-15 02:20:48,934 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55256836:ctest-vn4-94367384', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-55256836', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14891477717143078956', 'uuid-lslong': '13032111020067840825'}, 'enable': 'true', 'created': '2026-06-15T02:20:47', 'last-modified': '2026-06-15T02:20:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.850180'} 2026-06-15 02:20:48,941 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-15 02:20:48,941 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-94367384 passed 2026-06-15 02:20:48,941 - DEBUG - ====Verifying policy data for ctest-vn4-94367384 in API_Server ====== 2026-06-15 02:20:48,941 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-06-15 02:20:48,948 - DEBUG - Requesting: http://10.0.0.23:8082/domain/3390ac60-5c4f-4526-adeb-e44fba34e75e 2026-06-15 02:20:48,967 - DEBUG - Requesting: http://10.0.0.23:8082/project/4397f4e0-a8cd-4221-a9f5-876da317fff9 2026-06-15 02:20:49,056 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/cea92815-d6f5-482c-b4db-5becf898e339 2026-06-15 02:20:49,071 - DEBUG - ==>Verifying data for policy with id: 7d7cb9f8-1168-4601-980f-93ce2da478fa, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-55256836', 'ctest-policy1-36543088'] 2026-06-15 02:20:49,071 - INFO - VN ctest-vn4-94367384 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-15 02:20:49,071 - DEBUG - Verifying the vn in opserver 2026-06-15 02:20:49,071 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55256836:ctest-vn4-94367384 virtual network link through opserver 10.0.0.23 2026-06-15 02:20:49,072 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-06-15 02:20:49,365 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-06-15 02:20:49,425 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55256836:ctest-vn4-94367384', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55256836:ctest-vn4-94367384?flat'} 2026-06-15 02:20:49,425 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55256836:ctest-vn4-94367384 virtual network link through opserver 10.0.0.33 2026-06-15 02:20:49,425 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-06-15 02:20:49,713 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-06-15 02:20:49,788 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55256836:ctest-vn4-94367384', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55256836:ctest-vn4-94367384?flat'} 2026-06-15 02:20:49,788 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55256836:ctest-vn4-94367384 virtual network link through opserver 10.0.0.65 2026-06-15 02:20:49,788 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2026-06-15 02:20:50,078 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2026-06-15 02:20:50,130 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55256836:ctest-vn4-94367384', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55256836:ctest-vn4-94367384?flat'} 2026-06-15 02:20:50,130 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55256836:ctest-vn4-94367384 is found in opserver 2026-06-15 02:20:50,152 - DEBUG - Do not have enough data to verify VN in agent 2026-06-15 02:20:50,162 - DEBUG - VRF ids for VN ctest-vn4-94367384: {} 2026-06-15 02:20:50,162 - DEBUG - ====Verifying data for ctest-policy1-36543088 in API_Server ====== 2026-06-15 02:20:50,162 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-06-15 02:20:50,168 - DEBUG - Requesting: http://10.0.0.23:8082/domain/3390ac60-5c4f-4526-adeb-e44fba34e75e 2026-06-15 02:20:50,181 - DEBUG - Requesting: http://10.0.0.23:8082/project/4397f4e0-a8cd-4221-a9f5-876da317fff9 2026-06-15 02:20:50,270 - DEBUG - Requesting: http://10.0.0.23:8082/network-policy/7d7cb9f8-1168-4601-980f-93ce2da478fa 2026-06-15 02:20:50,282 - INFO - Verified policy ctest-policy1-36543088 in API Server, Result: True 2026-06-15 02:20:50,282 - INFO - Done with setup and verification, moving onto test .. 2026-06-15 02:20:50,291 - INFO - Deleting VN ctest-vn4-94367384 2026-06-15 02:20:50,501 - DEBUG - Response for deleting network () 2026-06-15 02:20:50,501 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/49254b3b-0938-448f-bf6e-45d5f4f9275d 2026-06-15 02:20:50,509 - DEBUG - Response Code: 404 2026-06-15 02:20:50,509 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-06-15 02:20:50,517 - DEBUG - Requesting: http://10.0.0.23:8082/domain/3390ac60-5c4f-4526-adeb-e44fba34e75e 2026-06-15 02:20:50,574 - DEBUG - Requesting: http://10.0.0.23:8082/project/4397f4e0-a8cd-4221-a9f5-876da317fff9 2026-06-15 02:20:50,679 - INFO - Validated that VN ctest-vn4-94367384 is not found in API Server 2026-06-15 02:20:50,689 - DEBUG - VN ctest-vn4-94367384 is not present in Agent 10.0.0.141 2026-06-15 02:20:50,699 - DEBUG - VN ctest-vn4-94367384 is not present in Agent 10.0.0.130 2026-06-15 02:20:50,699 - INFO - Validated that VN ctest-vn4-94367384 is not in any agent 2026-06-15 02:20:50,734 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-94367384 info 2026-06-15 02:20:50,780 - INFO - Deleted policy ctest-policy1-36543088 2026-06-15 02:20:50,972 - DEBUG - policy ctest-policy1-36543088 is not found in API Server 2026-06-15 02:20:52,234 - DEBUG - No XMPP flaps were noticed during the test 2026-06-15 02:20:52,235 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:08] 2026-06-15 02:20:52,235 - INFO - -------------------------------------------------------------------------------- 2026-06-15 02:20:53,496 - DEBUG - No XMPP flaps were noticed during the test 2026-06-15 02:20:53,496 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:10] 2026-06-15 02:20:53,496 - INFO - -------------------------------------------------------------------------------- 2026-06-15 02:20:54,203 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-55256836, ID : 4397f4e0-a8cd-4221-a9f5-876da317fff9