2026-01-30 13:18:39,968 - INFO - Domain Default found not creating 2026-01-30 13:18:40,139 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-07089009 not found, creating it 2026-01-30 13:18:40,613 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-07089009, ID : db8a141d-3f19-42d0-8466-ac3411153104 2026-01-30 13:18:42,116 - INFO - ================================================================================ 2026-01-30 13:18:42,116 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-30 13:18:42,380 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2026-01-30 13:18:42,380 - INFO - Initial checks done. Running the testcase now 2026-01-30 13:18:42,380 - INFO - 2026-01-30 13:18:42,380 - INFO - ================================================================================ 2026-01-30 13:18:42,380 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-30 13:18:42,380 - 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-01-30 13:18:42,667 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2026-01-30 13:18:42,668 - INFO - Initial checks done. Running the testcase now 2026-01-30 13:18:42,668 - INFO - 2026-01-30 13:18:43,034 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07089009:ctest-vn4-77159387, 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-07089009:ctest-vn4-77159387, 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-07089009:ctest-vn4-77159387, 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-07089009:ctest-vn4-77159387, 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-01-30 13:18:43,559 - DEBUG - Response for create_network : {'network': {'id': 'ea526828-0f25-44e1-85bc-3027ec1f2660', 'name': 'ctest-vn4-77159387', 'tenant_id': 'db8a141d3f1942d08466ac3411153104', 'project_id': 'db8a141d3f1942d08466ac3411153104', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07089009', 'ctest-vn4-77159387'], 'port_security_enabled': True, 'description': ''}} 2026-01-30 13:18:43,781 - DEBUG - Response for create_subnet : {'subnet': {'id': '2752292f-9bc4-4ada-85a7-bf23ce24bfdf', 'name': '', 'tenant_id': 'db8a141d3f1942d08466ac3411153104', 'network_id': 'ea526828-0f25-44e1-85bc-3027ec1f2660', 'ip_version': 4, 'cidr': '81.211.33.64/26', 'allocation_pools': [{'start': '81.211.33.66', 'end': '81.211.33.126'}], 'gateway_ip': '81.211.33.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '81.211.33.66', 'tags': [], 'project_id': 'db8a141d3f1942d08466ac3411153104'}} 2026-01-30 13:18:43,987 - DEBUG - Response for create_subnet : {'subnet': {'id': '3d7cebd7-e1e6-4ece-832a-e5be20166fbb', 'name': '', 'tenant_id': 'db8a141d3f1942d08466ac3411153104', 'network_id': 'ea526828-0f25-44e1-85bc-3027ec1f2660', 'ip_version': 6, 'cidr': '2dc5:acac:4ac:3615:30ec:e9fe::/96', 'allocation_pools': [{'start': '2dc5:acac:4ac:3615:30ec:e9fe:0:2', 'end': '2dc5:acac:4ac:3615:30ec:e9fe:ffff:fffe'}], 'gateway_ip': '2dc5:acac:4ac:3615:30ec:e9fe:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2dc5:acac:4ac:3615:30ec:e9fe:0:2', 'tags': [], 'project_id': 'db8a141d3f1942d08466ac3411153104'}} 2026-01-30 13:18:44,005 - INFO - Created VN ctest-vn4-77159387 2026-01-30 13:18:44,059 - DEBUG - VN ctest-vn4-77159387 UUID is ea526828-0f25-44e1-85bc-3027ec1f2660 2026-01-30 13:18:44,252 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ea526828-0f25-44e1-85bc-3027ec1f2660', 'name': 'ctest-vn4-77159387', 'tenant_id': 'db8a141d3f1942d08466ac3411153104', 'project_id': 'db8a141d3f1942d08466ac3411153104', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2752292f-9bc4-4ada-85a7-bf23ce24bfdf', '3d7cebd7-e1e6-4ece-832a-e5be20166fbb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07089009', 'ctest-vn4-77159387'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07089009', 'ctest-policy1-51740333']], 'subnet_ipam': [{'subnet_cidr': '81.211.33.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2dc5:acac:4ac:3615:30ec:e9fe::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-30 13:18:44,419 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-30 13:18:44,718 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-30 13:18:44,756 - DEBUG - Requesting: http://10.0.0.22:8082/domain/cc267587-a7e2-4580-b6d3-8fddb46f3fba 2026-01-30 13:18:44,767 - DEBUG - Requesting: http://10.0.0.22:8082/project/db8a141d-3f19-42d0-8466-ac3411153104 2026-01-30 13:18:44,851 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ea526828-0f25-44e1-85bc-3027ec1f2660 2026-01-30 13:18:44,866 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ea526828-0f25-44e1-85bc-3027ec1f2660 2026-01-30 13:18:44,877 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/62c95b99-ced9-49eb-9570-fe083fbaa12e 2026-01-30 13:18:44,884 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/62c95b99-ced9-49eb-9570-fe083fbaa12e 2026-01-30 13:18:44,890 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/ec5e2b37-7884-4410-af89-75e1a972fdaa 2026-01-30 13:18:44,896 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-30 13:18:44,896 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ea526828-0f25-44e1-85bc-3027ec1f2660 2026-01-30 13:18:44,905 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/62c95b99-ced9-49eb-9570-fe083fbaa12e 2026-01-30 13:18:44,919 - INFO - Verified VN network id 12 for VN ea526828-0f25-44e1-85bc-3027ec1f2660 2026-01-30 13:18:44,919 - INFO - Verifications in API Server for VN ctest-vn4-77159387 passed 2026-01-30 13:18:44,920 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ea526828-0f25-44e1-85bc-3027ec1f2660 2026-01-30 13:18:44,929 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/62c95b99-ced9-49eb-9570-fe083fbaa12e 2026-01-30 13:18:44,937 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/62c95b99-ced9-49eb-9570-fe083fbaa12e 2026-01-30 13:18:44,943 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/ec5e2b37-7884-4410-af89-75e1a972fdaa 2026-01-30 13:18:44,955 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07089009:ctest-vn4-77159387', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-07089009', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16884672474227492065', 'uuid-lslong': '9636630250689341024'}, 'enable': 'true', 'created': '2026-01-30T13:18:43', 'last-modified': '2026-01-30T13:18:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.727979'} 2026-01-30 13:18:44,961 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-30 13:18:44,961 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-77159387 passed 2026-01-30 13:18:44,961 - DEBUG - ====Verifying policy data for ctest-vn4-77159387 in API_Server ====== 2026-01-30 13:18:44,961 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-30 13:18:44,966 - DEBUG - Requesting: http://10.0.0.22:8082/domain/cc267587-a7e2-4580-b6d3-8fddb46f3fba 2026-01-30 13:18:44,977 - DEBUG - Requesting: http://10.0.0.22:8082/project/db8a141d-3f19-42d0-8466-ac3411153104 2026-01-30 13:18:45,049 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ea526828-0f25-44e1-85bc-3027ec1f2660 2026-01-30 13:18:45,057 - DEBUG - ==>Verifying data for policy with id: e3a98fed-de50-465d-8ef5-b74e151b368b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07089009', 'ctest-policy1-51740333'] 2026-01-30 13:18:45,057 - INFO - VN ctest-vn4-77159387 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-30 13:18:45,057 - DEBUG - Verifying the vn in opserver 2026-01-30 13:18:45,057 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07089009:ctest-vn4-77159387 virtual network link through opserver 10.0.0.22 2026-01-30 13:18:45,058 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-01-30 13:18:45,352 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-01-30 13:18:45,417 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07089009:ctest-vn4-77159387', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07089009:ctest-vn4-77159387?flat'} 2026-01-30 13:18:45,417 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07089009:ctest-vn4-77159387 is found in opserver 2026-01-30 13:18:45,428 - DEBUG - Do not have enough data to verify VN in agent 2026-01-30 13:18:45,433 - DEBUG - VRF ids for VN ctest-vn4-77159387: {} 2026-01-30 13:18:45,433 - DEBUG - ====Verifying data for ctest-policy1-51740333 in API_Server ====== 2026-01-30 13:18:45,433 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-30 13:18:45,439 - DEBUG - Requesting: http://10.0.0.22:8082/domain/cc267587-a7e2-4580-b6d3-8fddb46f3fba 2026-01-30 13:18:45,449 - DEBUG - Requesting: http://10.0.0.22:8082/project/db8a141d-3f19-42d0-8466-ac3411153104 2026-01-30 13:18:45,522 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/e3a98fed-de50-465d-8ef5-b74e151b368b 2026-01-30 13:18:45,531 - INFO - Verified policy ctest-policy1-51740333 in API Server, Result: True 2026-01-30 13:18:45,531 - INFO - Done with setup and verification, moving onto test .. 2026-01-30 13:18:45,538 - INFO - Deleting VN ctest-vn4-77159387 2026-01-30 13:18:45,657 - DEBUG - Response for deleting network () 2026-01-30 13:18:45,657 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/62c95b99-ced9-49eb-9570-fe083fbaa12e 2026-01-30 13:18:45,663 - DEBUG - Response Code: 404 2026-01-30 13:18:45,664 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-30 13:18:45,670 - DEBUG - Requesting: http://10.0.0.22:8082/domain/cc267587-a7e2-4580-b6d3-8fddb46f3fba 2026-01-30 13:18:45,724 - DEBUG - Requesting: http://10.0.0.22:8082/project/db8a141d-3f19-42d0-8466-ac3411153104 2026-01-30 13:18:45,803 - INFO - Validated that VN ctest-vn4-77159387 is not found in API Server 2026-01-30 13:18:45,821 - DEBUG - VN ctest-vn4-77159387 is not present in Agent 10.0.0.22 2026-01-30 13:18:45,821 - INFO - Validated that VN ctest-vn4-77159387 is not in any agent 2026-01-30 13:18:45,840 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-77159387 info 2026-01-30 13:18:45,874 - INFO - Deleted policy ctest-policy1-51740333 2026-01-30 13:18:46,042 - DEBUG - policy ctest-policy1-51740333 is not found in API Server 2026-01-30 13:18:46,306 - DEBUG - No XMPP flaps were noticed during the test
2026-01-30 13:18:46,306 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-01-30 13:18:46,306 - INFO - -------------------------------------------------------------------------------- 2026-01-30 13:18:46,592 - DEBUG - No XMPP flaps were noticed during the test
2026-01-30 13:18:46,592 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-01-30 13:18:46,593 - INFO - -------------------------------------------------------------------------------- 2026-01-30 13:18:47,278 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-07089009, ID : db8a141d-3f19-42d0-8466-ac3411153104