2026-02-17 11:10:40,618 - INFO - Domain Default found not creating 2026-02-17 11:10:40,836 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-34654744 not found, creating it 2026-02-17 11:10:41,332 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-34654744, ID : b312806f-4c74-4ff3-9dd7-760f03b41582 2026-02-17 11:10:43,103 - INFO - ================================================================================ 2026-02-17 11:10:43,104 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-17 11:10:43,402 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-02-17 11:10:43,402 - INFO - Initial checks done. Running the testcase now 2026-02-17 11:10:43,402 - INFO - 2026-02-17 11:10:43,402 - INFO - ================================================================================ 2026-02-17 11:10:43,402 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-17 11:10:43,402 - 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-17 11:10:43,721 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-02-17 11:10:43,721 - INFO - Initial checks done. Running the testcase now 2026-02-17 11:10:43,721 - INFO - 2026-02-17 11:10:44,114 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34654744:ctest-vn4-34100873, 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-34654744:ctest-vn4-34100873, 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-34654744:ctest-vn4-34100873, 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-34654744:ctest-vn4-34100873, 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-17 11:10:44,764 - DEBUG - Response for create_network : {'network': {'id': 'e4c7b96c-1b07-49dc-94d9-a85020f26845', 'name': 'ctest-vn4-34100873', 'tenant_id': 'b312806f4c744ff39dd7760f03b41582', 'project_id': 'b312806f4c744ff39dd7760f03b41582', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-34654744', 'ctest-vn4-34100873'], 'port_security_enabled': True, 'description': ''}} 2026-02-17 11:10:45,014 - DEBUG - Response for create_subnet : {'subnet': {'id': '7c295fb9-db9b-4a77-a1c8-a4be6f411feb', 'name': '', 'tenant_id': 'b312806f4c744ff39dd7760f03b41582', 'network_id': 'e4c7b96c-1b07-49dc-94d9-a85020f26845', 'ip_version': 4, 'cidr': '16.6.95.0/26', 'allocation_pools': [{'start': '16.6.95.2', 'end': '16.6.95.62'}], 'gateway_ip': '16.6.95.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '16.6.95.2', 'tags': [], 'project_id': 'b312806f4c744ff39dd7760f03b41582'}} 2026-02-17 11:10:45,243 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f5769360-4578-4e31-bed5-76f4f36ea48f', 'name': '', 'tenant_id': 'b312806f4c744ff39dd7760f03b41582', 'network_id': 'e4c7b96c-1b07-49dc-94d9-a85020f26845', 'ip_version': 6, 'cidr': '38c7:207d:b99a:505b:4a96:35ab::/96', 'allocation_pools': [{'start': '38c7:207d:b99a:505b:4a96:35ab:0:2', 'end': '38c7:207d:b99a:505b:4a96:35ab:ffff:fffe'}], 'gateway_ip': '38c7:207d:b99a:505b:4a96:35ab:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '38c7:207d:b99a:505b:4a96:35ab:0:2', 'tags': [], 'project_id': 'b312806f4c744ff39dd7760f03b41582'}} 2026-02-17 11:10:45,274 - INFO - Created VN ctest-vn4-34100873 2026-02-17 11:10:45,336 - DEBUG - VN ctest-vn4-34100873 UUID is e4c7b96c-1b07-49dc-94d9-a85020f26845 2026-02-17 11:10:45,639 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e4c7b96c-1b07-49dc-94d9-a85020f26845', 'name': 'ctest-vn4-34100873', 'tenant_id': 'b312806f4c744ff39dd7760f03b41582', 'project_id': 'b312806f4c744ff39dd7760f03b41582', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7c295fb9-db9b-4a77-a1c8-a4be6f411feb', 'f5769360-4578-4e31-bed5-76f4f36ea48f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-34654744', 'ctest-vn4-34100873'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-34654744', 'ctest-policy1-73211086']], 'subnet_ipam': [{'subnet_cidr': '16.6.95.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '38c7:207d:b99a:505b:4a96:35ab::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-17 11:10:45,804 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-17 11:10:46,117 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-17 11:10:46,154 - DEBUG - Requesting: http://10.0.0.38:8082/domain/675ca7df-856d-40bd-87ce-a196b8ab4d00 2026-02-17 11:10:46,184 - DEBUG - Requesting: http://10.0.0.38:8082/project/b312806f-4c74-4ff3-9dd7-760f03b41582 2026-02-17 11:10:46,289 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e4c7b96c-1b07-49dc-94d9-a85020f26845 2026-02-17 11:10:46,308 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e4c7b96c-1b07-49dc-94d9-a85020f26845 2026-02-17 11:10:46,324 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/77413661-b209-4148-a093-5e99c33e215b 2026-02-17 11:10:46,334 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/77413661-b209-4148-a093-5e99c33e215b 2026-02-17 11:10:46,345 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/7a23e048-e4eb-404b-9198-e9602c568f91 2026-02-17 11:10:46,355 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-17 11:10:46,355 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e4c7b96c-1b07-49dc-94d9-a85020f26845 2026-02-17 11:10:46,372 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/77413661-b209-4148-a093-5e99c33e215b 2026-02-17 11:10:46,395 - INFO - Verified VN network id 11 for VN e4c7b96c-1b07-49dc-94d9-a85020f26845 2026-02-17 11:10:46,395 - INFO - Verifications in API Server for VN ctest-vn4-34100873 passed 2026-02-17 11:10:46,395 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e4c7b96c-1b07-49dc-94d9-a85020f26845 2026-02-17 11:10:46,410 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/77413661-b209-4148-a093-5e99c33e215b 2026-02-17 11:10:46,417 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/77413661-b209-4148-a093-5e99c33e215b 2026-02-17 11:10:46,425 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/7a23e048-e4eb-404b-9198-e9602c568f91 2026-02-17 11:10:46,438 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34654744:ctest-vn4-34100873', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-34654744', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16485348834974058972', 'uuid-lslong': '10725789049663154245'}, 'enable': 'true', 'created': '2026-02-17T11:10:44', 'last-modified': '2026-02-17T11:10:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.851775'} 2026-02-17 11:10:46,445 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-17 11:10:46,445 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-34100873 passed 2026-02-17 11:10:46,445 - DEBUG - ====Verifying policy data for ctest-vn4-34100873 in API_Server ====== 2026-02-17 11:10:46,445 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-17 11:10:46,451 - DEBUG - Requesting: http://10.0.0.38:8082/domain/675ca7df-856d-40bd-87ce-a196b8ab4d00 2026-02-17 11:10:46,461 - DEBUG - Requesting: http://10.0.0.38:8082/project/b312806f-4c74-4ff3-9dd7-760f03b41582 2026-02-17 11:10:46,536 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e4c7b96c-1b07-49dc-94d9-a85020f26845 2026-02-17 11:10:46,548 - DEBUG - ==>Verifying data for policy with id: d3a524fc-2352-4d06-a3e0-86f958b8dfdd, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-34654744', 'ctest-policy1-73211086'] 2026-02-17 11:10:46,548 - INFO - VN ctest-vn4-34100873 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-17 11:10:46,548 - DEBUG - Verifying the vn in opserver 2026-02-17 11:10:46,548 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34654744:ctest-vn4-34100873 virtual network link through opserver 10.0.0.38 2026-02-17 11:10:46,548 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-17 11:10:46,854 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-17 11:10:46,925 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34654744:ctest-vn4-34100873', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34654744:ctest-vn4-34100873?flat'} 2026-02-17 11:10:46,925 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34654744:ctest-vn4-34100873 is found in opserver 2026-02-17 11:10:46,944 - DEBUG - Do not have enough data to verify VN in agent 2026-02-17 11:10:46,950 - DEBUG - VRF ids for VN ctest-vn4-34100873: {} 2026-02-17 11:10:46,950 - DEBUG - ====Verifying data for ctest-policy1-73211086 in API_Server ====== 2026-02-17 11:10:46,950 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-17 11:10:46,959 - DEBUG - Requesting: http://10.0.0.38:8082/domain/675ca7df-856d-40bd-87ce-a196b8ab4d00 2026-02-17 11:10:46,980 - DEBUG - Requesting: http://10.0.0.38:8082/project/b312806f-4c74-4ff3-9dd7-760f03b41582 2026-02-17 11:10:47,064 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/d3a524fc-2352-4d06-a3e0-86f958b8dfdd 2026-02-17 11:10:47,081 - INFO - Verified policy ctest-policy1-73211086 in API Server, Result: True 2026-02-17 11:10:47,081 - INFO - Done with setup and verification, moving onto test .. 2026-02-17 11:10:47,094 - INFO - Deleting VN ctest-vn4-34100873 2026-02-17 11:10:47,252 - DEBUG - Response for deleting network () 2026-02-17 11:10:47,252 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/77413661-b209-4148-a093-5e99c33e215b 2026-02-17 11:10:47,258 - DEBUG - Response Code: 404 2026-02-17 11:10:47,258 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-17 11:10:47,265 - DEBUG - Requesting: http://10.0.0.38:8082/domain/675ca7df-856d-40bd-87ce-a196b8ab4d00 2026-02-17 11:10:47,325 - DEBUG - Requesting: http://10.0.0.38:8082/project/b312806f-4c74-4ff3-9dd7-760f03b41582 2026-02-17 11:10:47,410 - INFO - Validated that VN ctest-vn4-34100873 is not found in API Server 2026-02-17 11:10:47,423 - DEBUG - VN ctest-vn4-34100873 is not present in Agent 10.0.0.38 2026-02-17 11:10:47,423 - INFO - Validated that VN ctest-vn4-34100873 is not in any agent 2026-02-17 11:10:47,439 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-34100873 info 2026-02-17 11:10:47,462 - INFO - Deleted policy ctest-policy1-73211086 2026-02-17 11:10:47,636 - DEBUG - policy ctest-policy1-73211086 is not found in API Server 2026-02-17 11:10:47,926 - DEBUG - No XMPP flaps were noticed during the test