2026-10-12 15:49:04,857 - INFO - Domain Default found not creating 2026-10-12 15:49:04,979 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-11306109 not found, creating it 2026-10-12 15:49:05,388 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-11306109, ID : a2f6eed7-eebb-4f07-8811-bff7b87aa2c2 2026-10-12 15:49:06,918 - INFO - ================================================================================ 2026-10-12 15:49:06,918 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-12 15:49:07,172 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-10-12 15:49:07,172 - INFO - Initial checks done. Running the testcase now 2026-10-12 15:49:07,172 - INFO - 2026-10-12 15:49:07,172 - INFO - ================================================================================ 2026-10-12 15:49:07,172 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-12 15:49:07,172 - 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-10-12 15:49:07,472 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-10-12 15:49:07,472 - INFO - Initial checks done. Running the testcase now 2026-10-12 15:49:07,472 - INFO - 2026-10-12 15:49:07,883 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11306109:ctest-vn4-14431455, 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-11306109:ctest-vn4-14431455, 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-11306109:ctest-vn4-14431455, 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-11306109:ctest-vn4-14431455, 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-10-12 15:49:08,379 - DEBUG - Response for create_network : {'network': {'id': '4a95b601-5b99-4785-8cdf-a151eb70b67d', 'name': 'ctest-vn4-14431455', 'tenant_id': 'a2f6eed7eebb4f078811bff7b87aa2c2', 'project_id': 'a2f6eed7eebb4f078811bff7b87aa2c2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11306109', 'ctest-vn4-14431455'], 'port_security_enabled': True, 'description': ''}} 2026-10-12 15:49:08,585 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fa85a0e8-e743-44b6-9c34-3ef7564d2adb', 'name': '', 'tenant_id': 'a2f6eed7eebb4f078811bff7b87aa2c2', 'network_id': '4a95b601-5b99-4785-8cdf-a151eb70b67d', 'ip_version': 4, 'cidr': '137.69.170.64/26', 'allocation_pools': [{'start': '137.69.170.66', 'end': '137.69.170.126'}], 'gateway_ip': '137.69.170.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '137.69.170.66', 'tags': [], 'project_id': 'a2f6eed7eebb4f078811bff7b87aa2c2'}} 2026-10-12 15:49:08,768 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ce6bae26-8ba8-4662-bc0f-1bab99d9b93c', 'name': '', 'tenant_id': 'a2f6eed7eebb4f078811bff7b87aa2c2', 'network_id': '4a95b601-5b99-4785-8cdf-a151eb70b67d', 'ip_version': 6, 'cidr': '3490:55bd:80be:f863:d216:e45c::/96', 'allocation_pools': [{'start': '3490:55bd:80be:f863:d216:e45c:0:2', 'end': '3490:55bd:80be:f863:d216:e45c:ffff:fffe'}], 'gateway_ip': '3490:55bd:80be:f863:d216:e45c:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3490:55bd:80be:f863:d216:e45c:0:2', 'tags': [], 'project_id': 'a2f6eed7eebb4f078811bff7b87aa2c2'}} 2026-10-12 15:49:08,783 - INFO - Created VN ctest-vn4-14431455 2026-10-12 15:49:08,836 - DEBUG - VN ctest-vn4-14431455 UUID is 4a95b601-5b99-4785-8cdf-a151eb70b67d 2026-10-12 15:49:09,018 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4a95b601-5b99-4785-8cdf-a151eb70b67d', 'name': 'ctest-vn4-14431455', 'tenant_id': 'a2f6eed7eebb4f078811bff7b87aa2c2', 'project_id': 'a2f6eed7eebb4f078811bff7b87aa2c2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['fa85a0e8-e743-44b6-9c34-3ef7564d2adb', 'ce6bae26-8ba8-4662-bc0f-1bab99d9b93c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11306109', 'ctest-vn4-14431455'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11306109', 'ctest-policy1-10736551']], 'subnet_ipam': [{'subnet_cidr': '137.69.170.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3490:55bd:80be:f863:d216:e45c::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-10-12 15:49:09,175 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-10-12 15:49:09,533 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-10-12 15:49:09,558 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6540815f-4e3b-47b6-b9c3-73c4da3beb10 2026-10-12 15:49:09,569 - DEBUG - Requesting: http://10.0.0.38:8082/project/a2f6eed7-eebb-4f07-8811-bff7b87aa2c2 2026-10-12 15:49:09,639 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4a95b601-5b99-4785-8cdf-a151eb70b67d 2026-10-12 15:49:09,650 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4a95b601-5b99-4785-8cdf-a151eb70b67d 2026-10-12 15:49:09,658 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/14669c2f-126f-420e-bab4-9dfd62371095 2026-10-12 15:49:09,663 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/14669c2f-126f-420e-bab4-9dfd62371095 2026-10-12 15:49:09,669 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/0648102a-c0e5-4a1c-b5f1-af7c13d3c7b6 2026-10-12 15:49:09,674 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-12 15:49:09,674 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4a95b601-5b99-4785-8cdf-a151eb70b67d 2026-10-12 15:49:09,682 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/14669c2f-126f-420e-bab4-9dfd62371095 2026-10-12 15:49:09,692 - INFO - Verified VN network id 12 for VN 4a95b601-5b99-4785-8cdf-a151eb70b67d 2026-10-12 15:49:09,692 - INFO - Verifications in API Server for VN ctest-vn4-14431455 passed 2026-10-12 15:49:09,693 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4a95b601-5b99-4785-8cdf-a151eb70b67d 2026-10-12 15:49:09,701 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/14669c2f-126f-420e-bab4-9dfd62371095 2026-10-12 15:49:09,705 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/14669c2f-126f-420e-bab4-9dfd62371095 2026-10-12 15:49:09,710 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/0648102a-c0e5-4a1c-b5f1-af7c13d3c7b6 2026-10-12 15:49:09,722 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11306109:ctest-vn4-14431455', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-11306109', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5374401847284549509', 'uuid-lslong': '10151009458330842749'}, 'enable': 'true', 'created': '2026-10-12T15:49:08', 'last-modified': '2026-10-12T15:49:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.731982'} 2026-10-12 15:49:09,728 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-12 15:49:09,728 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-14431455 passed 2026-10-12 15:49:09,728 - DEBUG - ====Verifying policy data for ctest-vn4-14431455 in API_Server ====== 2026-10-12 15:49:09,728 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-10-12 15:49:09,733 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6540815f-4e3b-47b6-b9c3-73c4da3beb10 2026-10-12 15:49:09,741 - DEBUG - Requesting: http://10.0.0.38:8082/project/a2f6eed7-eebb-4f07-8811-bff7b87aa2c2 2026-10-12 15:49:09,807 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4a95b601-5b99-4785-8cdf-a151eb70b67d 2026-10-12 15:49:09,816 - DEBUG - ==>Verifying data for policy with id: 464b4237-45a9-43f3-af12-7e05e3b02ea9, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11306109', 'ctest-policy1-10736551'] 2026-10-12 15:49:09,816 - INFO - VN ctest-vn4-14431455 Policy verification: verify_vn_policy_in_api_server, status: True 2026-10-12 15:49:09,816 - DEBUG - Verifying the vn in opserver 2026-10-12 15:49:09,816 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11306109:ctest-vn4-14431455 virtual network link through opserver 10.0.0.38 2026-10-12 15:49:09,816 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-10-12 15:49:10,179 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-10-12 15:49:10,225 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11306109:ctest-vn4-14431455', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11306109:ctest-vn4-14431455?flat'} 2026-10-12 15:49:10,225 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11306109:ctest-vn4-14431455 is found in opserver 2026-10-12 15:49:10,234 - DEBUG - Do not have enough data to verify VN in agent 2026-10-12 15:49:10,238 - DEBUG - VRF ids for VN ctest-vn4-14431455: {} 2026-10-12 15:49:10,239 - DEBUG - ====Verifying data for ctest-policy1-10736551 in API_Server ====== 2026-10-12 15:49:10,239 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-10-12 15:49:10,243 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6540815f-4e3b-47b6-b9c3-73c4da3beb10 2026-10-12 15:49:10,253 - DEBUG - Requesting: http://10.0.0.38:8082/project/a2f6eed7-eebb-4f07-8811-bff7b87aa2c2 2026-10-12 15:49:10,323 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/464b4237-45a9-43f3-af12-7e05e3b02ea9 2026-10-12 15:49:10,335 - INFO - Verified policy ctest-policy1-10736551 in API Server, Result: True 2026-10-12 15:49:10,335 - INFO - Done with setup and verification, moving onto test .. 2026-10-12 15:49:10,343 - INFO - Deleting VN ctest-vn4-14431455 2026-10-12 15:49:10,470 - DEBUG - Response for deleting network () 2026-10-12 15:49:10,470 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/14669c2f-126f-420e-bab4-9dfd62371095 2026-10-12 15:49:10,475 - DEBUG - Response Code: 404 2026-10-12 15:49:10,475 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-10-12 15:49:10,479 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6540815f-4e3b-47b6-b9c3-73c4da3beb10 2026-10-12 15:49:10,532 - DEBUG - Requesting: http://10.0.0.38:8082/project/a2f6eed7-eebb-4f07-8811-bff7b87aa2c2 2026-10-12 15:49:10,610 - INFO - Validated that VN ctest-vn4-14431455 is not found in API Server 2026-10-12 15:49:10,620 - DEBUG - VN ctest-vn4-14431455 is not present in Agent 10.0.0.38 2026-10-12 15:49:10,620 - INFO - Validated that VN ctest-vn4-14431455 is not in any agent 2026-10-12 15:49:10,639 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-14431455 info 2026-10-12 15:49:10,663 - INFO - Deleted policy ctest-policy1-10736551 2026-10-12 15:49:10,827 - DEBUG - policy ctest-policy1-10736551 is not found in API Server 2026-10-12 15:49:11,089 - DEBUG - No XMPP flaps were noticed during the test
2026-10-12 15:49:11,089 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-10-12 15:49:11,089 - INFO - -------------------------------------------------------------------------------- 2026-10-12 15:49:11,377 - DEBUG - No XMPP flaps were noticed during the test
2026-10-12 15:49:11,377 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-10-12 15:49:11,377 - INFO - -------------------------------------------------------------------------------- 2026-10-12 15:49:12,109 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-11306109, ID : a2f6eed7-eebb-4f07-8811-bff7b87aa2c2