2026-01-07 12:14:12,352 - INFO - Domain Default found not creating 2026-01-07 12:14:12,507 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-72186998 not found, creating it 2026-01-07 12:14:12,966 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-72186998, ID : c9f80907-e6c4-470a-a805-c29960b05837 2026-01-07 12:14:14,368 - INFO - ================================================================================ 2026-01-07 12:14:14,368 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-07 12:14:14,622 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-01-07 12:14:14,622 - INFO - Initial checks done. Running the testcase now 2026-01-07 12:14:14,622 - INFO - 2026-01-07 12:14:14,622 - INFO - ================================================================================ 2026-01-07 12:14:14,622 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-07 12:14:14,622 - 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-07 12:14:14,909 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-01-07 12:14:14,909 - INFO - Initial checks done. Running the testcase now 2026-01-07 12:14:14,910 - INFO - 2026-01-07 12:14:15,286 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72186998:ctest-vn4-56954630, 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-72186998:ctest-vn4-56954630, 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-72186998:ctest-vn4-56954630, 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-72186998:ctest-vn4-56954630, 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-07 12:14:15,823 - DEBUG - Response for create_network : {'network': {'id': '70729de9-2f5c-4c3f-8c8b-80b8deedeeef', 'name': 'ctest-vn4-56954630', 'tenant_id': 'c9f80907e6c4470aa805c29960b05837', 'project_id': 'c9f80907e6c4470aa805c29960b05837', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-72186998', 'ctest-vn4-56954630'], 'port_security_enabled': True, 'description': ''}} 2026-01-07 12:14:16,011 - DEBUG - Response for create_subnet : {'subnet': {'id': '2dd406aa-7174-4f47-ac52-a768568ade64', 'name': '', 'tenant_id': 'c9f80907e6c4470aa805c29960b05837', 'network_id': '70729de9-2f5c-4c3f-8c8b-80b8deedeeef', 'ip_version': 4, 'cidr': '18.255.194.64/26', 'allocation_pools': [{'start': '18.255.194.66', 'end': '18.255.194.126'}], 'gateway_ip': '18.255.194.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '18.255.194.66', 'tags': [], 'project_id': 'c9f80907e6c4470aa805c29960b05837'}} 2026-01-07 12:14:16,158 - DEBUG - Response for create_subnet : {'subnet': {'id': '4c58bfaa-642f-4791-84f9-d5b68ee7f814', 'name': '', 'tenant_id': 'c9f80907e6c4470aa805c29960b05837', 'network_id': '70729de9-2f5c-4c3f-8c8b-80b8deedeeef', 'ip_version': 6, 'cidr': '3d4d:8e1f:4637:c37:ebe3:caf6::/96', 'allocation_pools': [{'start': '3d4d:8e1f:4637:c37:ebe3:caf6:0:2', 'end': '3d4d:8e1f:4637:c37:ebe3:caf6:ffff:fffe'}], 'gateway_ip': '3d4d:8e1f:4637:c37:ebe3:caf6:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3d4d:8e1f:4637:c37:ebe3:caf6:0:2', 'tags': [], 'project_id': 'c9f80907e6c4470aa805c29960b05837'}} 2026-01-07 12:14:16,178 - INFO - Created VN ctest-vn4-56954630 2026-01-07 12:14:16,231 - DEBUG - VN ctest-vn4-56954630 UUID is 70729de9-2f5c-4c3f-8c8b-80b8deedeeef 2026-01-07 12:14:16,417 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '70729de9-2f5c-4c3f-8c8b-80b8deedeeef', 'name': 'ctest-vn4-56954630', 'tenant_id': 'c9f80907e6c4470aa805c29960b05837', 'project_id': 'c9f80907e6c4470aa805c29960b05837', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2dd406aa-7174-4f47-ac52-a768568ade64', '4c58bfaa-642f-4791-84f9-d5b68ee7f814'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-72186998', 'ctest-vn4-56954630'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-72186998', 'ctest-policy1-06817034']], 'subnet_ipam': [{'subnet_cidr': '18.255.194.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3d4d:8e1f:4637:c37:ebe3:caf6::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-07 12:14:16,575 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-07 12:14:16,867 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-07 12:14:16,895 - DEBUG - Requesting: http://10.0.0.38:8082/domain/9f1e2f63-88ab-45d1-87b2-9e1b3ab5b66e 2026-01-07 12:14:16,906 - DEBUG - Requesting: http://10.0.0.38:8082/project/c9f80907-e6c4-470a-a805-c29960b05837 2026-01-07 12:14:16,970 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/70729de9-2f5c-4c3f-8c8b-80b8deedeeef 2026-01-07 12:14:16,981 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/70729de9-2f5c-4c3f-8c8b-80b8deedeeef 2026-01-07 12:14:16,991 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f4dcb854-0387-4595-b018-8612b6a9c4ec 2026-01-07 12:14:16,997 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f4dcb854-0387-4595-b018-8612b6a9c4ec 2026-01-07 12:14:17,003 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/5caba9ff-2152-40f1-ab2f-865d5d281ad0 2026-01-07 12:14:17,009 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-07 12:14:17,009 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/70729de9-2f5c-4c3f-8c8b-80b8deedeeef 2026-01-07 12:14:17,018 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f4dcb854-0387-4595-b018-8612b6a9c4ec 2026-01-07 12:14:17,030 - INFO - Verified VN network id 11 for VN 70729de9-2f5c-4c3f-8c8b-80b8deedeeef 2026-01-07 12:14:17,030 - INFO - Verifications in API Server for VN ctest-vn4-56954630 passed 2026-01-07 12:14:17,030 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/70729de9-2f5c-4c3f-8c8b-80b8deedeeef 2026-01-07 12:14:17,039 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f4dcb854-0387-4595-b018-8612b6a9c4ec 2026-01-07 12:14:17,044 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f4dcb854-0387-4595-b018-8612b6a9c4ec 2026-01-07 12:14:17,051 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/5caba9ff-2152-40f1-ab2f-865d5d281ad0 2026-01-07 12:14:17,061 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72186998:ctest-vn4-56954630', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-72186998', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8102712304440462399', 'uuid-lslong': '10127329718575165167'}, 'enable': 'true', 'created': '2026-01-07T12:14:15', 'last-modified': '2026-01-07T12:14:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.668598'} 2026-01-07 12:14:17,067 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-07 12:14:17,067 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-56954630 passed 2026-01-07 12:14:17,067 - DEBUG - ====Verifying policy data for ctest-vn4-56954630 in API_Server ====== 2026-01-07 12:14:17,067 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-07 12:14:17,073 - DEBUG - Requesting: http://10.0.0.38:8082/domain/9f1e2f63-88ab-45d1-87b2-9e1b3ab5b66e 2026-01-07 12:14:17,083 - DEBUG - Requesting: http://10.0.0.38:8082/project/c9f80907-e6c4-470a-a805-c29960b05837 2026-01-07 12:14:17,151 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/70729de9-2f5c-4c3f-8c8b-80b8deedeeef 2026-01-07 12:14:17,161 - DEBUG - ==>Verifying data for policy with id: 58208ce0-5d6a-43e1-8477-12c50f2144e8, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-72186998', 'ctest-policy1-06817034'] 2026-01-07 12:14:17,161 - INFO - VN ctest-vn4-56954630 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-07 12:14:17,161 - DEBUG - Verifying the vn in opserver 2026-01-07 12:14:17,161 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72186998:ctest-vn4-56954630 virtual network link through opserver 10.0.0.38 2026-01-07 12:14:17,161 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-07 12:14:17,457 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-07 12:14:17,519 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72186998:ctest-vn4-56954630', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72186998:ctest-vn4-56954630?flat'} 2026-01-07 12:14:17,519 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72186998:ctest-vn4-56954630 is found in opserver 2026-01-07 12:14:17,528 - DEBUG - Do not have enough data to verify VN in agent 2026-01-07 12:14:17,532 - DEBUG - VRF ids for VN ctest-vn4-56954630: {} 2026-01-07 12:14:17,532 - DEBUG - ====Verifying data for ctest-policy1-06817034 in API_Server ====== 2026-01-07 12:14:17,532 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-07 12:14:17,537 - DEBUG - Requesting: http://10.0.0.38:8082/domain/9f1e2f63-88ab-45d1-87b2-9e1b3ab5b66e 2026-01-07 12:14:17,549 - DEBUG - Requesting: http://10.0.0.38:8082/project/c9f80907-e6c4-470a-a805-c29960b05837 2026-01-07 12:14:17,618 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/58208ce0-5d6a-43e1-8477-12c50f2144e8 2026-01-07 12:14:17,628 - INFO - Verified policy ctest-policy1-06817034 in API Server, Result: True 2026-01-07 12:14:17,628 - INFO - Done with setup and verification, moving onto test .. 2026-01-07 12:14:17,635 - INFO - Deleting VN ctest-vn4-56954630 2026-01-07 12:14:17,748 - DEBUG - Response for deleting network () 2026-01-07 12:14:17,748 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f4dcb854-0387-4595-b018-8612b6a9c4ec 2026-01-07 12:14:17,752 - DEBUG - Response Code: 404 2026-01-07 12:14:17,752 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-07 12:14:17,757 - DEBUG - Requesting: http://10.0.0.38:8082/domain/9f1e2f63-88ab-45d1-87b2-9e1b3ab5b66e 2026-01-07 12:14:17,812 - DEBUG - Requesting: http://10.0.0.38:8082/project/c9f80907-e6c4-470a-a805-c29960b05837 2026-01-07 12:14:17,881 - INFO - Validated that VN ctest-vn4-56954630 is not found in API Server 2026-01-07 12:14:17,890 - DEBUG - VN ctest-vn4-56954630 is not present in Agent 10.0.0.38 2026-01-07 12:14:17,890 - INFO - Validated that VN ctest-vn4-56954630 is not in any agent 2026-01-07 12:14:17,903 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-56954630 info 2026-01-07 12:14:17,928 - INFO - Deleted policy ctest-policy1-06817034 2026-01-07 12:14:18,095 - DEBUG - policy ctest-policy1-06817034 is not found in API Server 2026-01-07 12:14:18,349 - DEBUG - No XMPP flaps were noticed during the test
2026-01-07 12:14:18,349 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-01-07 12:14:18,349 - INFO - -------------------------------------------------------------------------------- 2026-01-07 12:14:18,639 - DEBUG - No XMPP flaps were noticed during the test
2026-01-07 12:14:18,639 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-01-07 12:14:18,639 - INFO - -------------------------------------------------------------------------------- 2026-01-07 12:14:19,312 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-72186998, ID : c9f80907-e6c4-470a-a805-c29960b05837