2026-02-03 15:38:43,054 - INFO - Domain Default found not creating 2026-02-03 15:38:43,238 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-18496121 not found, creating it 2026-02-03 15:38:43,710 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-18496121, ID : bf8b9826-9b01-42d4-826d-e1f96c0b1ea3 2026-02-03 15:38:45,234 - INFO - ================================================================================ 2026-02-03 15:38:45,234 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-03 15:38:45,502 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with 2026-02-03 15:38:45,502 - INFO - Initial checks done. Running the testcase now 2026-02-03 15:38:45,502 - INFO - 2026-02-03 15:38:45,502 - INFO - ================================================================================ 2026-02-03 15:38:45,502 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-03 15:38:45,502 - 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-03 15:38:45,792 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with 2026-02-03 15:38:45,792 - INFO - Initial checks done. Running the testcase now 2026-02-03 15:38:45,792 - INFO - 2026-02-03 15:38:46,163 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18496121:ctest-vn4-70673370, 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-18496121:ctest-vn4-70673370, 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-18496121:ctest-vn4-70673370, 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-18496121:ctest-vn4-70673370, 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-03 15:38:46,913 - DEBUG - Response for create_network : {'network': {'id': '53dac197-4874-4975-9d22-1abe0eb95c9a', 'name': 'ctest-vn4-70673370', 'tenant_id': 'bf8b98269b0142d4826de1f96c0b1ea3', 'project_id': 'bf8b98269b0142d4826de1f96c0b1ea3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18496121', 'ctest-vn4-70673370'], 'port_security_enabled': True, 'description': ''}} 2026-02-03 15:38:47,146 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e22fa545-1591-4017-973c-357a6eda3cc4', 'name': '', 'tenant_id': 'bf8b98269b0142d4826de1f96c0b1ea3', 'network_id': '53dac197-4874-4975-9d22-1abe0eb95c9a', 'ip_version': 4, 'cidr': '183.234.233.64/26', 'allocation_pools': [{'start': '183.234.233.66', 'end': '183.234.233.126'}], 'gateway_ip': '183.234.233.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '183.234.233.66', 'tags': [], 'project_id': 'bf8b98269b0142d4826de1f96c0b1ea3'}} 2026-02-03 15:38:47,313 - DEBUG - Response for create_subnet : {'subnet': {'id': '6132263a-ec63-44af-b21d-57f149a63db1', 'name': '', 'tenant_id': 'bf8b98269b0142d4826de1f96c0b1ea3', 'network_id': '53dac197-4874-4975-9d22-1abe0eb95c9a', 'ip_version': 6, 'cidr': '2f3f:98d6:5370:bc0:949b:828e::/96', 'allocation_pools': [{'start': '2f3f:98d6:5370:bc0:949b:828e:0:2', 'end': '2f3f:98d6:5370:bc0:949b:828e:ffff:fffe'}], 'gateway_ip': '2f3f:98d6:5370:bc0:949b:828e:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2f3f:98d6:5370:bc0:949b:828e:0:2', 'tags': [], 'project_id': 'bf8b98269b0142d4826de1f96c0b1ea3'}} 2026-02-03 15:38:47,336 - INFO - Created VN ctest-vn4-70673370 2026-02-03 15:38:47,391 - DEBUG - VN ctest-vn4-70673370 UUID is 53dac197-4874-4975-9d22-1abe0eb95c9a 2026-02-03 15:38:47,610 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '53dac197-4874-4975-9d22-1abe0eb95c9a', 'name': 'ctest-vn4-70673370', 'tenant_id': 'bf8b98269b0142d4826de1f96c0b1ea3', 'project_id': 'bf8b98269b0142d4826de1f96c0b1ea3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e22fa545-1591-4017-973c-357a6eda3cc4', '6132263a-ec63-44af-b21d-57f149a63db1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18496121', 'ctest-vn4-70673370'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18496121', 'ctest-policy1-14927950']], 'subnet_ipam': [{'subnet_cidr': '183.234.233.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2f3f:98d6:5370:bc0:949b:828e::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-03 15:38:47,767 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-03 15:38:48,062 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-03 15:38:48,095 - DEBUG - Requesting: http://10.0.0.22:8082/domain/cf93840d-45cc-4e09-838b-5c89f252fa18 2026-02-03 15:38:48,109 - DEBUG - Requesting: http://10.0.0.22:8082/project/bf8b9826-9b01-42d4-826d-e1f96c0b1ea3 2026-02-03 15:38:48,182 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/53dac197-4874-4975-9d22-1abe0eb95c9a 2026-02-03 15:38:48,194 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/53dac197-4874-4975-9d22-1abe0eb95c9a 2026-02-03 15:38:48,204 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b5223d2c-afff-4cf3-a7cb-61d7f24c49c0 2026-02-03 15:38:48,213 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b5223d2c-afff-4cf3-a7cb-61d7f24c49c0 2026-02-03 15:38:48,220 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/b152dc58-fac7-45e4-b8c7-58e570405668 2026-02-03 15:38:48,227 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-03 15:38:48,227 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/53dac197-4874-4975-9d22-1abe0eb95c9a 2026-02-03 15:38:48,236 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b5223d2c-afff-4cf3-a7cb-61d7f24c49c0 2026-02-03 15:38:48,250 - INFO - Verified VN network id 10 for VN 53dac197-4874-4975-9d22-1abe0eb95c9a 2026-02-03 15:38:48,251 - INFO - Verifications in API Server for VN ctest-vn4-70673370 passed 2026-02-03 15:38:48,251 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/53dac197-4874-4975-9d22-1abe0eb95c9a 2026-02-03 15:38:48,261 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b5223d2c-afff-4cf3-a7cb-61d7f24c49c0 2026-02-03 15:38:48,268 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b5223d2c-afff-4cf3-a7cb-61d7f24c49c0 2026-02-03 15:38:48,275 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/b152dc58-fac7-45e4-b8c7-58e570405668 2026-02-03 15:38:48,287 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18496121:ctest-vn4-70673370', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-18496121', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6042354705570744693', 'uuid-lslong': '11322641816755985562'}, 'enable': 'true', 'created': '2026-02-03T15:38:46', 'last-modified': '2026-02-03T15:38:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.713418'} 2026-02-03 15:38:48,293 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-03 15:38:48,293 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-70673370 passed 2026-02-03 15:38:48,293 - DEBUG - ====Verifying policy data for ctest-vn4-70673370 in API_Server ====== 2026-02-03 15:38:48,293 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-03 15:38:48,298 - DEBUG - Requesting: http://10.0.0.22:8082/domain/cf93840d-45cc-4e09-838b-5c89f252fa18 2026-02-03 15:38:48,308 - DEBUG - Requesting: http://10.0.0.22:8082/project/bf8b9826-9b01-42d4-826d-e1f96c0b1ea3 2026-02-03 15:38:48,378 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/53dac197-4874-4975-9d22-1abe0eb95c9a 2026-02-03 15:38:48,388 - DEBUG - ==>Verifying data for policy with id: 9731610c-05b7-456b-adf8-2c1ce06b98bd, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18496121', 'ctest-policy1-14927950'] 2026-02-03 15:38:48,388 - INFO - VN ctest-vn4-70673370 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-03 15:38:48,388 - DEBUG - Verifying the vn in opserver 2026-02-03 15:38:48,388 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18496121:ctest-vn4-70673370 virtual network link through opserver 10.0.0.22 2026-02-03 15:38:48,388 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-02-03 15:38:48,681 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-02-03 15:38:48,752 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18496121:ctest-vn4-70673370', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18496121:ctest-vn4-70673370?flat'} 2026-02-03 15:38:48,752 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18496121:ctest-vn4-70673370 is found in opserver 2026-02-03 15:38:48,762 - DEBUG - Do not have enough data to verify VN in agent 2026-02-03 15:38:48,768 - DEBUG - VRF ids for VN ctest-vn4-70673370: {} 2026-02-03 15:38:48,768 - DEBUG - ====Verifying data for ctest-policy1-14927950 in API_Server ====== 2026-02-03 15:38:48,768 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-03 15:38:48,774 - DEBUG - Requesting: http://10.0.0.22:8082/domain/cf93840d-45cc-4e09-838b-5c89f252fa18 2026-02-03 15:38:48,786 - DEBUG - Requesting: http://10.0.0.22:8082/project/bf8b9826-9b01-42d4-826d-e1f96c0b1ea3 2026-02-03 15:38:48,857 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/9731610c-05b7-456b-adf8-2c1ce06b98bd 2026-02-03 15:38:48,869 - INFO - Verified policy ctest-policy1-14927950 in API Server, Result: True 2026-02-03 15:38:48,869 - INFO - Done with setup and verification, moving onto test .. 2026-02-03 15:38:48,879 - INFO - Deleting VN ctest-vn4-70673370 2026-02-03 15:38:48,997 - DEBUG - Response for deleting network () 2026-02-03 15:38:48,997 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b5223d2c-afff-4cf3-a7cb-61d7f24c49c0 2026-02-03 15:38:49,002 - DEBUG - Response Code: 404 2026-02-03 15:38:49,002 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-03 15:38:49,008 - DEBUG - Requesting: http://10.0.0.22:8082/domain/cf93840d-45cc-4e09-838b-5c89f252fa18 2026-02-03 15:38:49,060 - DEBUG - Requesting: http://10.0.0.22:8082/project/bf8b9826-9b01-42d4-826d-e1f96c0b1ea3 2026-02-03 15:38:49,145 - INFO - Validated that VN ctest-vn4-70673370 is not found in API Server 2026-02-03 15:38:49,155 - DEBUG - VN ctest-vn4-70673370 is not present in Agent 10.0.0.22 2026-02-03 15:38:49,155 - INFO - Validated that VN ctest-vn4-70673370 is not in any agent 2026-02-03 15:38:49,174 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-70673370 info 2026-02-03 15:38:49,204 - INFO - Deleted policy ctest-policy1-14927950 2026-02-03 15:38:49,371 - DEBUG - policy ctest-policy1-14927950 is not found in API Server 2026-02-03 15:38:49,624 - DEBUG - No XMPP flaps were noticed during the test
2026-02-03 15:38:49,624 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-03 15:38:49,624 - INFO - -------------------------------------------------------------------------------- 2026-02-03 15:38:49,927 - DEBUG - No XMPP flaps were noticed during the test
2026-02-03 15:38:49,927 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-03 15:38:49,927 - INFO - -------------------------------------------------------------------------------- 2026-02-03 15:38:50,627 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-18496121, ID : bf8b9826-9b01-42d4-826d-e1f96c0b1ea3