2026-06-03 17:42:48,831 - INFO - Domain Default found not creating 2026-06-03 17:42:49,004 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-31790580 not found, creating it 2026-06-03 17:42:49,795 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-31790580, ID : ed9712d6-b622-407e-877b-afc84710a3e1 2026-06-03 17:42:51,529 - INFO - ================================================================================ 2026-06-03 17:42:51,529 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-03 17:42:52,865 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.25': '0', '10.20.0.17': '0'}, '10.0.0.19': {'10.20.0.25': '0', '10.20.0.17': '0'}} with 2026-06-03 17:42:52,865 - INFO - Initial checks done. Running the testcase now 2026-06-03 17:42:52,865 - INFO - 2026-06-03 17:42:52,865 - INFO - ================================================================================ 2026-06-03 17:42:52,866 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-03 17:42:52,866 - 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-03 17:42:54,160 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.25': '0', '10.20.0.17': '0'}, '10.0.0.19': {'10.20.0.25': '0', '10.20.0.17': '0'}} with 2026-06-03 17:42:54,161 - INFO - Initial checks done. Running the testcase now 2026-06-03 17:42:54,161 - INFO - 2026-06-03 17:42:54,525 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31790580:ctest-vn4-38815233, 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-31790580:ctest-vn4-38815233, 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-31790580:ctest-vn4-38815233, 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-31790580:ctest-vn4-38815233, 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-03 17:42:55,186 - DEBUG - Response for create_network : {'network': {'id': 'e9e54ebb-f3cc-47cd-907b-abed8e0cccc1', 'name': 'ctest-vn4-38815233', 'tenant_id': 'ed9712d6b622407e877bafc84710a3e1', 'project_id': 'ed9712d6b622407e877bafc84710a3e1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31790580', 'ctest-vn4-38815233'], 'port_security_enabled': True, 'description': ''}} 2026-06-03 17:42:55,555 - DEBUG - Response for create_subnet : {'subnet': {'id': '1e3ff05a-9460-43a5-a09b-7f6af296ae0c', 'name': '', 'tenant_id': 'ed9712d6b622407e877bafc84710a3e1', 'network_id': 'e9e54ebb-f3cc-47cd-907b-abed8e0cccc1', 'ip_version': 4, 'cidr': '179.84.199.128/26', 'allocation_pools': [{'start': '179.84.199.130', 'end': '179.84.199.190'}], 'gateway_ip': '179.84.199.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '179.84.199.130', 'tags': [], 'project_id': 'ed9712d6b622407e877bafc84710a3e1'}} 2026-06-03 17:42:55,797 - DEBUG - Response for create_subnet : {'subnet': {'id': '5c82873c-b68c-4d64-a734-5f69fba1362d', 'name': '', 'tenant_id': 'ed9712d6b622407e877bafc84710a3e1', 'network_id': 'e9e54ebb-f3cc-47cd-907b-abed8e0cccc1', 'ip_version': 6, 'cidr': '2351:1415:70f2:7c86:e019:f016::/96', 'allocation_pools': [{'start': '2351:1415:70f2:7c86:e019:f016:0:2', 'end': '2351:1415:70f2:7c86:e019:f016:ffff:fffe'}], 'gateway_ip': '2351:1415:70f2:7c86:e019:f016:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2351:1415:70f2:7c86:e019:f016:0:2', 'tags': [], 'project_id': 'ed9712d6b622407e877bafc84710a3e1'}} 2026-06-03 17:42:55,833 - INFO - Created VN ctest-vn4-38815233 2026-06-03 17:42:55,844 - DEBUG - VN ctest-vn4-38815233 UUID is e9e54ebb-f3cc-47cd-907b-abed8e0cccc1 2026-06-03 17:42:56,089 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e9e54ebb-f3cc-47cd-907b-abed8e0cccc1', 'name': 'ctest-vn4-38815233', 'tenant_id': 'ed9712d6b622407e877bafc84710a3e1', 'project_id': 'ed9712d6b622407e877bafc84710a3e1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1e3ff05a-9460-43a5-a09b-7f6af296ae0c', '5c82873c-b68c-4d64-a734-5f69fba1362d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31790580', 'ctest-vn4-38815233'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31790580', 'ctest-policy1-18881085']], 'subnet_ipam': [{'subnet_cidr': '179.84.199.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2351:1415:70f2:7c86:e019:f016::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-03 17:42:56,193 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-03 17:42:56,525 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-03 17:42:56,856 - DEBUG - Requesting: http://10.0.0.50:8082/domain/cfce58c2-bdea-4e41-80d8-e31e3dad5e9f 2026-06-03 17:42:56,876 - DEBUG - Requesting: http://10.0.0.50:8082/project/ed9712d6-b622-407e-877b-afc84710a3e1 2026-06-03 17:42:56,987 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e9e54ebb-f3cc-47cd-907b-abed8e0cccc1 2026-06-03 17:42:57,003 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e9e54ebb-f3cc-47cd-907b-abed8e0cccc1 2026-06-03 17:42:57,014 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/82f846cc-614e-41af-96b0-f5ed571a442f 2026-06-03 17:42:57,023 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/82f846cc-614e-41af-96b0-f5ed571a442f 2026-06-03 17:42:57,031 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/cd28abcb-9ae2-4cdc-b5b3-074f9b055864 2026-06-03 17:42:57,039 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-03 17:42:57,039 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e9e54ebb-f3cc-47cd-907b-abed8e0cccc1 2026-06-03 17:42:57,050 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/82f846cc-614e-41af-96b0-f5ed571a442f 2026-06-03 17:42:57,068 - INFO - Verified VN network id 14 for VN e9e54ebb-f3cc-47cd-907b-abed8e0cccc1 2026-06-03 17:42:57,068 - INFO - Verifications in API Server for VN ctest-vn4-38815233 passed 2026-06-03 17:42:57,068 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e9e54ebb-f3cc-47cd-907b-abed8e0cccc1 2026-06-03 17:42:57,079 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/82f846cc-614e-41af-96b0-f5ed571a442f 2026-06-03 17:42:57,088 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/82f846cc-614e-41af-96b0-f5ed571a442f 2026-06-03 17:42:57,097 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/cd28abcb-9ae2-4cdc-b5b3-074f9b055864 2026-06-03 17:42:57,109 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31790580:ctest-vn4-38815233', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-31790580', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16853963749660051405', 'uuid-lslong': '10411104000375835841'}, 'enable': 'true', 'created': '2026-06-03T17:42:55', 'last-modified': '2026-06-03T17:42:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.065343'} 2026-06-03 17:42:57,114 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-03 17:42:57,121 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31790580:ctest-vn4-38815233', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-31790580', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16853963749660051405', 'uuid-lslong': '10411104000375835841'}, 'enable': 'true', 'created': '2026-06-03T17:42:55', 'last-modified': '2026-06-03T17:42:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.075660'} 2026-06-03 17:42:57,128 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-03 17:42:57,134 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31790580:ctest-vn4-38815233', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-31790580', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16853963749660051405', 'uuid-lslong': '10411104000375835841'}, 'enable': 'true', 'created': '2026-06-03T17:42:55', 'last-modified': '2026-06-03T17:42:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.093780'} 2026-06-03 17:42:57,142 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-03 17:42:57,142 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-38815233 passed 2026-06-03 17:42:57,142 - DEBUG - ====Verifying policy data for ctest-vn4-38815233 in API_Server ====== 2026-06-03 17:42:57,142 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-03 17:42:57,149 - DEBUG - Requesting: http://10.0.0.50:8082/domain/cfce58c2-bdea-4e41-80d8-e31e3dad5e9f 2026-06-03 17:42:57,163 - DEBUG - Requesting: http://10.0.0.50:8082/project/ed9712d6-b622-407e-877b-afc84710a3e1 2026-06-03 17:42:57,281 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e9e54ebb-f3cc-47cd-907b-abed8e0cccc1 2026-06-03 17:42:57,294 - DEBUG - ==>Verifying data for policy with id: bbebd549-8c85-4f48-9705-c153345ec089, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31790580', 'ctest-policy1-18881085'] 2026-06-03 17:42:57,294 - INFO - VN ctest-vn4-38815233 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-03 17:42:57,294 - DEBUG - Verifying the vn in opserver 2026-06-03 17:42:57,294 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31790580:ctest-vn4-38815233 virtual network link through opserver 10.0.0.50 2026-06-03 17:42:57,294 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-06-03 17:42:57,600 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-06-03 17:42:57,709 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31790580:ctest-vn4-38815233', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31790580:ctest-vn4-38815233?flat'} 2026-06-03 17:42:57,709 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31790580:ctest-vn4-38815233 virtual network link through opserver 10.0.0.33 2026-06-03 17:42:57,710 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-06-03 17:42:58,015 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-06-03 17:42:58,084 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31790580:ctest-vn4-38815233', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31790580:ctest-vn4-38815233?flat'} 2026-06-03 17:42:58,084 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31790580:ctest-vn4-38815233 virtual network link through opserver 10.0.0.249 2026-06-03 17:42:58,085 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-06-03 17:42:58,379 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-06-03 17:42:58,448 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31790580:ctest-vn4-38815233', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31790580:ctest-vn4-38815233?flat'} 2026-06-03 17:42:58,448 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31790580:ctest-vn4-38815233 is found in opserver 2026-06-03 17:42:58,471 - DEBUG - Do not have enough data to verify VN in agent 2026-06-03 17:42:58,498 - DEBUG - VRF ids for VN ctest-vn4-38815233: {} 2026-06-03 17:42:58,498 - DEBUG - ====Verifying data for ctest-policy1-18881085 in API_Server ====== 2026-06-03 17:42:58,498 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-03 17:42:58,504 - DEBUG - Requesting: http://10.0.0.50:8082/domain/cfce58c2-bdea-4e41-80d8-e31e3dad5e9f 2026-06-03 17:42:58,517 - DEBUG - Requesting: http://10.0.0.50:8082/project/ed9712d6-b622-407e-877b-afc84710a3e1 2026-06-03 17:42:58,628 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/bbebd549-8c85-4f48-9705-c153345ec089 2026-06-03 17:42:58,637 - INFO - Verified policy ctest-policy1-18881085 in API Server, Result: True 2026-06-03 17:42:58,637 - INFO - Done with setup and verification, moving onto test .. 2026-06-03 17:42:58,649 - INFO - Deleting VN ctest-vn4-38815233 2026-06-03 17:42:58,898 - DEBUG - Response for deleting network () 2026-06-03 17:42:58,898 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/82f846cc-614e-41af-96b0-f5ed571a442f 2026-06-03 17:42:58,913 - DEBUG - Response Code: 404 2026-06-03 17:42:58,913 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-03 17:42:58,924 - DEBUG - Requesting: http://10.0.0.50:8082/domain/cfce58c2-bdea-4e41-80d8-e31e3dad5e9f 2026-06-03 17:42:58,945 - DEBUG - Requesting: http://10.0.0.50:8082/project/ed9712d6-b622-407e-877b-afc84710a3e1 2026-06-03 17:42:59,072 - INFO - Validated that VN ctest-vn4-38815233 is not found in API Server 2026-06-03 17:42:59,084 - DEBUG - VN ctest-vn4-38815233 is not present in Agent 10.0.0.22 2026-06-03 17:42:59,103 - DEBUG - VN ctest-vn4-38815233 is not present in Agent 10.0.0.19 2026-06-03 17:42:59,103 - INFO - Validated that VN ctest-vn4-38815233 is not in any agent 2026-06-03 17:42:59,145 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-38815233 info 2026-06-03 17:42:59,191 - INFO - Deleted policy ctest-policy1-18881085 2026-06-03 17:42:59,377 - DEBUG - policy ctest-policy1-18881085 is not found in API Server 2026-06-03 17:43:00,652 - DEBUG - No XMPP flaps were noticed during the test
2026-06-03 17:43:00,652 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:08]
2026-06-03 17:43:00,652 - INFO - -------------------------------------------------------------------------------- 2026-06-03 17:43:01,947 - DEBUG - No XMPP flaps were noticed during the test
2026-06-03 17:43:01,947 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:10]
2026-06-03 17:43:01,947 - INFO - -------------------------------------------------------------------------------- 2026-06-03 17:43:02,741 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-31790580, ID : ed9712d6-b622-407e-877b-afc84710a3e1