2026-06-04 16:59:08,952 - INFO - Domain Default found not creating 2026-06-04 16:59:09,126 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-58504474 not found, creating it 2026-06-04 16:59:09,622 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-58504474, ID : f5ca5acf-0565-47ea-a0ec-d3af869d1409 2026-06-04 16:59:11,159 - INFO - ================================================================================ 2026-06-04 16:59:11,159 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-04 16:59:11,412 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.192': '0'}} with 2026-06-04 16:59:11,412 - INFO - Initial checks done. Running the testcase now 2026-06-04 16:59:11,412 - INFO - 2026-06-04 16:59:11,412 - INFO - ================================================================================ 2026-06-04 16:59:11,412 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-04 16:59:11,412 - 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-04 16:59:11,705 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.192': '0'}} with 2026-06-04 16:59:11,705 - INFO - Initial checks done. Running the testcase now 2026-06-04 16:59:11,705 - INFO - 2026-06-04 16:59:12,059 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58504474:ctest-vn4-18381351, 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-58504474:ctest-vn4-18381351, 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-58504474:ctest-vn4-18381351, 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-58504474:ctest-vn4-18381351, 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-04 16:59:12,562 - DEBUG - Response for create_network : {'network': {'id': '0f98f063-1fbd-4428-b827-89c1c399fd8b', 'name': 'ctest-vn4-18381351', 'tenant_id': 'f5ca5acf056547eaa0ecd3af869d1409', 'project_id': 'f5ca5acf056547eaa0ecd3af869d1409', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-58504474', 'ctest-vn4-18381351'], 'port_security_enabled': True, 'description': ''}} 2026-06-04 16:59:12,789 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ab761216-b165-4d4b-a30c-aca241f13109', 'name': '', 'tenant_id': 'f5ca5acf056547eaa0ecd3af869d1409', 'network_id': '0f98f063-1fbd-4428-b827-89c1c399fd8b', 'ip_version': 4, 'cidr': '38.233.47.64/26', 'allocation_pools': [{'start': '38.233.47.66', 'end': '38.233.47.126'}], 'gateway_ip': '38.233.47.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '38.233.47.66', 'tags': [], 'project_id': 'f5ca5acf056547eaa0ecd3af869d1409'}} 2026-06-04 16:59:12,946 - DEBUG - Response for create_subnet : {'subnet': {'id': '90ff975f-fe02-494d-9095-ca52ae8fc058', 'name': '', 'tenant_id': 'f5ca5acf056547eaa0ecd3af869d1409', 'network_id': '0f98f063-1fbd-4428-b827-89c1c399fd8b', 'ip_version': 6, 'cidr': '313d:9e62:1678:6407:2f54:1a83::/96', 'allocation_pools': [{'start': '313d:9e62:1678:6407:2f54:1a83:0:2', 'end': '313d:9e62:1678:6407:2f54:1a83:ffff:fffe'}], 'gateway_ip': '313d:9e62:1678:6407:2f54:1a83:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '313d:9e62:1678:6407:2f54:1a83:0:2', 'tags': [], 'project_id': 'f5ca5acf056547eaa0ecd3af869d1409'}} 2026-06-04 16:59:12,967 - INFO - Created VN ctest-vn4-18381351 2026-06-04 16:59:13,018 - DEBUG - VN ctest-vn4-18381351 UUID is 0f98f063-1fbd-4428-b827-89c1c399fd8b 2026-06-04 16:59:13,225 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0f98f063-1fbd-4428-b827-89c1c399fd8b', 'name': 'ctest-vn4-18381351', 'tenant_id': 'f5ca5acf056547eaa0ecd3af869d1409', 'project_id': 'f5ca5acf056547eaa0ecd3af869d1409', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ab761216-b165-4d4b-a30c-aca241f13109', '90ff975f-fe02-494d-9095-ca52ae8fc058'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-58504474', 'ctest-vn4-18381351'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-58504474', 'ctest-policy1-87427959']], 'subnet_ipam': [{'subnet_cidr': '38.233.47.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '313d:9e62:1678:6407:2f54:1a83::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-04 16:59:13,390 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-06-04 16:59:13,696 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-06-04 16:59:13,730 - DEBUG - Requesting: http://10.0.0.242:8082/domain/4f7d0592-fb7c-4a7d-ab37-da824bb82378 2026-06-04 16:59:13,744 - DEBUG - Requesting: http://10.0.0.242:8082/project/f5ca5acf-0565-47ea-a0ec-d3af869d1409 2026-06-04 16:59:13,821 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/0f98f063-1fbd-4428-b827-89c1c399fd8b 2026-06-04 16:59:13,833 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/0f98f063-1fbd-4428-b827-89c1c399fd8b 2026-06-04 16:59:13,843 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/2e76f1d7-8104-4730-a62b-01637061b9e3 2026-06-04 16:59:13,850 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/2e76f1d7-8104-4730-a62b-01637061b9e3 2026-06-04 16:59:13,857 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/362e6321-9cc2-48ba-af2b-799507be4aa2 2026-06-04 16:59:13,863 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-04 16:59:13,863 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/0f98f063-1fbd-4428-b827-89c1c399fd8b 2026-06-04 16:59:13,874 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/2e76f1d7-8104-4730-a62b-01637061b9e3 2026-06-04 16:59:13,890 - INFO - Verified VN network id 11 for VN 0f98f063-1fbd-4428-b827-89c1c399fd8b 2026-06-04 16:59:13,890 - INFO - Verifications in API Server for VN ctest-vn4-18381351 passed 2026-06-04 16:59:13,890 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/0f98f063-1fbd-4428-b827-89c1c399fd8b 2026-06-04 16:59:13,901 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/2e76f1d7-8104-4730-a62b-01637061b9e3 2026-06-04 16:59:13,908 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/2e76f1d7-8104-4730-a62b-01637061b9e3 2026-06-04 16:59:13,915 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/362e6321-9cc2-48ba-af2b-799507be4aa2 2026-06-04 16:59:13,928 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58504474:ctest-vn4-18381351', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-58504474', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1123912415553864744', 'uuid-lslong': '13269726292373798283'}, 'enable': 'true', 'created': '2026-06-04T16:59:12', 'last-modified': '2026-06-04T16:59:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.724422'} 2026-06-04 16:59:13,933 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-04 16:59:13,933 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-18381351 passed 2026-06-04 16:59:13,934 - DEBUG - ====Verifying policy data for ctest-vn4-18381351 in API_Server ====== 2026-06-04 16:59:13,934 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-06-04 16:59:13,939 - DEBUG - Requesting: http://10.0.0.242:8082/domain/4f7d0592-fb7c-4a7d-ab37-da824bb82378 2026-06-04 16:59:13,952 - DEBUG - Requesting: http://10.0.0.242:8082/project/f5ca5acf-0565-47ea-a0ec-d3af869d1409 2026-06-04 16:59:14,026 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/0f98f063-1fbd-4428-b827-89c1c399fd8b 2026-06-04 16:59:14,036 - DEBUG - ==>Verifying data for policy with id: f4a5c996-4d23-4fb4-af0b-147b32f60372, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-58504474', 'ctest-policy1-87427959'] 2026-06-04 16:59:14,036 - INFO - VN ctest-vn4-18381351 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-04 16:59:14,036 - DEBUG - Verifying the vn in opserver 2026-06-04 16:59:14,036 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58504474:ctest-vn4-18381351 virtual network link through opserver 10.0.0.242 2026-06-04 16:59:14,036 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-06-04 16:59:14,348 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-06-04 16:59:14,422 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58504474:ctest-vn4-18381351', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58504474:ctest-vn4-18381351?flat'} 2026-06-04 16:59:14,422 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58504474:ctest-vn4-18381351 is found in opserver 2026-06-04 16:59:14,432 - DEBUG - Do not have enough data to verify VN in agent 2026-06-04 16:59:14,436 - DEBUG - VRF ids for VN ctest-vn4-18381351: {} 2026-06-04 16:59:14,437 - DEBUG - ====Verifying data for ctest-policy1-87427959 in API_Server ====== 2026-06-04 16:59:14,437 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-06-04 16:59:14,443 - DEBUG - Requesting: http://10.0.0.242:8082/domain/4f7d0592-fb7c-4a7d-ab37-da824bb82378 2026-06-04 16:59:14,456 - DEBUG - Requesting: http://10.0.0.242:8082/project/f5ca5acf-0565-47ea-a0ec-d3af869d1409 2026-06-04 16:59:14,528 - DEBUG - Requesting: http://10.0.0.242:8082/network-policy/f4a5c996-4d23-4fb4-af0b-147b32f60372 2026-06-04 16:59:14,537 - INFO - Verified policy ctest-policy1-87427959 in API Server, Result: True 2026-06-04 16:59:14,537 - INFO - Done with setup and verification, moving onto test .. 2026-06-04 16:59:14,547 - INFO - Deleting VN ctest-vn4-18381351 2026-06-04 16:59:14,660 - DEBUG - Response for deleting network () 2026-06-04 16:59:14,660 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/2e76f1d7-8104-4730-a62b-01637061b9e3 2026-06-04 16:59:14,665 - DEBUG - Response Code: 404 2026-06-04 16:59:14,665 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-06-04 16:59:14,671 - DEBUG - Requesting: http://10.0.0.242:8082/domain/4f7d0592-fb7c-4a7d-ab37-da824bb82378 2026-06-04 16:59:14,723 - DEBUG - Requesting: http://10.0.0.242:8082/project/f5ca5acf-0565-47ea-a0ec-d3af869d1409 2026-06-04 16:59:14,789 - INFO - Validated that VN ctest-vn4-18381351 is not found in API Server 2026-06-04 16:59:14,801 - DEBUG - VN ctest-vn4-18381351 is not present in Agent 10.0.0.242 2026-06-04 16:59:14,801 - INFO - Validated that VN ctest-vn4-18381351 is not in any agent 2026-06-04 16:59:14,814 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-18381351 info 2026-06-04 16:59:14,838 - INFO - Deleted policy ctest-policy1-87427959 2026-06-04 16:59:15,002 - DEBUG - policy ctest-policy1-87427959 is not found in API Server 2026-06-04 16:59:15,255 - DEBUG - No XMPP flaps were noticed during the test 2026-06-04 16:59:15,255 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-06-04 16:59:15,255 - INFO - -------------------------------------------------------------------------------- 2026-06-04 16:59:15,543 - DEBUG - No XMPP flaps were noticed during the test 2026-06-04 16:59:15,543 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-06-04 16:59:15,543 - INFO - -------------------------------------------------------------------------------- 2026-06-04 16:59:16,249 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-58504474, ID : f5ca5acf-0565-47ea-a0ec-d3af869d1409