2026-08-20 07:04:11,752 - INFO - Domain Default found not creating 2026-08-20 07:04:11,957 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-76507101 not found, creating it 2026-08-20 07:04:12,514 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-76507101, ID : edd2655a-6cea-49c0-9921-d09a54d8546d 2026-08-20 07:04:14,401 - INFO - ================================================================================ 2026-08-20 07:04:14,401 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-20 07:04:14,676 - DEBUG - Nothing to compare xmpp stats {'10.0.0.177': {'10.20.0.25': '0'}} with 2026-08-20 07:04:14,676 - INFO - Initial checks done. Running the testcase now 2026-08-20 07:04:14,676 - INFO - 2026-08-20 07:04:14,676 - INFO - ================================================================================ 2026-08-20 07:04:14,676 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-20 07:04:14,676 - 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-08-20 07:04:14,972 - DEBUG - Nothing to compare xmpp stats {'10.0.0.177': {'10.20.0.25': '0'}} with 2026-08-20 07:04:14,973 - INFO - Initial checks done. Running the testcase now 2026-08-20 07:04:14,973 - INFO - 2026-08-20 07:04:15,441 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76507101:ctest-vn4-85437990, 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-76507101:ctest-vn4-85437990, 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-76507101:ctest-vn4-85437990, 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-76507101:ctest-vn4-85437990, 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-08-20 07:04:16,013 - DEBUG - Response for create_network : {'network': {'id': 'b2cbee5a-a3a9-4ca1-a232-a213c0d8b20c', 'name': 'ctest-vn4-85437990', 'tenant_id': 'edd2655a6cea49c09921d09a54d8546d', 'project_id': 'edd2655a6cea49c09921d09a54d8546d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-76507101', 'ctest-vn4-85437990'], 'port_security_enabled': True, 'description': ''}} 2026-08-20 07:04:16,266 - DEBUG - Response for create_subnet : {'subnet': {'id': '9ac3c252-6feb-47e4-89b6-d4d84a1432c8', 'name': '', 'tenant_id': 'edd2655a6cea49c09921d09a54d8546d', 'network_id': 'b2cbee5a-a3a9-4ca1-a232-a213c0d8b20c', 'ip_version': 4, 'cidr': '168.0.193.64/26', 'allocation_pools': [{'start': '168.0.193.66', 'end': '168.0.193.126'}], 'gateway_ip': '168.0.193.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '168.0.193.66', 'tags': [], 'project_id': 'edd2655a6cea49c09921d09a54d8546d'}} 2026-08-20 07:04:16,434 - DEBUG - Response for create_subnet : {'subnet': {'id': '59088cd3-0f08-477a-8e1d-9433ad114d63', 'name': '', 'tenant_id': 'edd2655a6cea49c09921d09a54d8546d', 'network_id': 'b2cbee5a-a3a9-4ca1-a232-a213c0d8b20c', 'ip_version': 6, 'cidr': '356a:9ceb:f0f0:9efe:365c:5b40::/96', 'allocation_pools': [{'start': '356a:9ceb:f0f0:9efe:365c:5b40:0:2', 'end': '356a:9ceb:f0f0:9efe:365c:5b40:ffff:fffe'}], 'gateway_ip': '356a:9ceb:f0f0:9efe:365c:5b40:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '356a:9ceb:f0f0:9efe:365c:5b40:0:2', 'tags': [], 'project_id': 'edd2655a6cea49c09921d09a54d8546d'}} 2026-08-20 07:04:16,455 - INFO - Created VN ctest-vn4-85437990 2026-08-20 07:04:16,511 - DEBUG - VN ctest-vn4-85437990 UUID is b2cbee5a-a3a9-4ca1-a232-a213c0d8b20c 2026-08-20 07:04:16,757 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b2cbee5a-a3a9-4ca1-a232-a213c0d8b20c', 'name': 'ctest-vn4-85437990', 'tenant_id': 'edd2655a6cea49c09921d09a54d8546d', 'project_id': 'edd2655a6cea49c09921d09a54d8546d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9ac3c252-6feb-47e4-89b6-d4d84a1432c8', '59088cd3-0f08-477a-8e1d-9433ad114d63'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-76507101', 'ctest-vn4-85437990'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-76507101', 'ctest-policy1-23854557']], 'subnet_ipam': [{'subnet_cidr': '168.0.193.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '356a:9ceb:f0f0:9efe:365c:5b40::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-08-20 07:04:16,919 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-08-20 07:04:17,301 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-08-20 07:04:17,334 - DEBUG - Requesting: http://10.0.0.177:8082/domain/b3608949-028c-4961-ad09-88565b39909b 2026-08-20 07:04:17,352 - DEBUG - Requesting: http://10.0.0.177:8082/project/edd2655a-6cea-49c0-9921-d09a54d8546d 2026-08-20 07:04:17,441 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/b2cbee5a-a3a9-4ca1-a232-a213c0d8b20c 2026-08-20 07:04:17,455 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/b2cbee5a-a3a9-4ca1-a232-a213c0d8b20c 2026-08-20 07:04:17,466 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/84bee248-8bba-4755-80d3-4993d9641045 2026-08-20 07:04:17,475 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/84bee248-8bba-4755-80d3-4993d9641045 2026-08-20 07:04:17,484 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/bb1f94ac-7c7b-43e9-8058-02b132cf9f7e 2026-08-20 07:04:17,492 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-20 07:04:17,492 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/b2cbee5a-a3a9-4ca1-a232-a213c0d8b20c 2026-08-20 07:04:17,504 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/84bee248-8bba-4755-80d3-4993d9641045 2026-08-20 07:04:17,522 - INFO - Verified VN network id 11 for VN b2cbee5a-a3a9-4ca1-a232-a213c0d8b20c 2026-08-20 07:04:17,522 - INFO - Verifications in API Server for VN ctest-vn4-85437990 passed 2026-08-20 07:04:17,522 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/b2cbee5a-a3a9-4ca1-a232-a213c0d8b20c 2026-08-20 07:04:17,535 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/84bee248-8bba-4755-80d3-4993d9641045 2026-08-20 07:04:17,544 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/84bee248-8bba-4755-80d3-4993d9641045 2026-08-20 07:04:17,552 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/bb1f94ac-7c7b-43e9-8058-02b132cf9f7e 2026-08-20 07:04:17,567 - DEBUG - Control-node 10.0.0.177 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76507101:ctest-vn4-85437990', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-76507101', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12883653232083684513', 'uuid-lslong': '11687582188703363596'}, 'enable': 'true', 'created': '2026-08-20T07:04:15', 'last-modified': '2026-08-20T07:04:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.845358'} 2026-08-20 07:04:17,574 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-20 07:04:17,574 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-85437990 passed 2026-08-20 07:04:17,575 - DEBUG - ====Verifying policy data for ctest-vn4-85437990 in API_Server ====== 2026-08-20 07:04:17,575 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-08-20 07:04:17,585 - DEBUG - Requesting: http://10.0.0.177:8082/domain/b3608949-028c-4961-ad09-88565b39909b 2026-08-20 07:04:17,599 - DEBUG - Requesting: http://10.0.0.177:8082/project/edd2655a-6cea-49c0-9921-d09a54d8546d 2026-08-20 07:04:17,676 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/b2cbee5a-a3a9-4ca1-a232-a213c0d8b20c 2026-08-20 07:04:17,688 - DEBUG - ==>Verifying data for policy with id: 3acd6287-35a1-4833-8bfd-3bb3989999b2, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-76507101', 'ctest-policy1-23854557'] 2026-08-20 07:04:17,688 - INFO - VN ctest-vn4-85437990 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-20 07:04:17,688 - DEBUG - Verifying the vn in opserver 2026-08-20 07:04:17,688 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76507101:ctest-vn4-85437990 virtual network link through opserver 10.0.0.177 2026-08-20 07:04:17,688 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks 2026-08-20 07:04:18,067 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks 2026-08-20 07:04:18,130 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76507101:ctest-vn4-85437990', 'href': 'http://10.0.0.177:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76507101:ctest-vn4-85437990?flat'} 2026-08-20 07:04:18,130 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76507101:ctest-vn4-85437990 is found in opserver 2026-08-20 07:04:18,143 - DEBUG - Do not have enough data to verify VN in agent 2026-08-20 07:04:18,149 - DEBUG - VRF ids for VN ctest-vn4-85437990: {} 2026-08-20 07:04:18,149 - DEBUG - ====Verifying data for ctest-policy1-23854557 in API_Server ====== 2026-08-20 07:04:18,149 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-08-20 07:04:18,156 - DEBUG - Requesting: http://10.0.0.177:8082/domain/b3608949-028c-4961-ad09-88565b39909b 2026-08-20 07:04:18,167 - DEBUG - Requesting: http://10.0.0.177:8082/project/edd2655a-6cea-49c0-9921-d09a54d8546d 2026-08-20 07:04:18,245 - DEBUG - Requesting: http://10.0.0.177:8082/network-policy/3acd6287-35a1-4833-8bfd-3bb3989999b2 2026-08-20 07:04:18,257 - INFO - Verified policy ctest-policy1-23854557 in API Server, Result: True 2026-08-20 07:04:18,257 - INFO - Done with setup and verification, moving onto test .. 2026-08-20 07:04:18,268 - INFO - Deleting VN ctest-vn4-85437990 2026-08-20 07:04:18,418 - DEBUG - Response for deleting network () 2026-08-20 07:04:18,418 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/84bee248-8bba-4755-80d3-4993d9641045 2026-08-20 07:04:18,426 - DEBUG - Response Code: 404 2026-08-20 07:04:18,426 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-08-20 07:04:18,434 - DEBUG - Requesting: http://10.0.0.177:8082/domain/b3608949-028c-4961-ad09-88565b39909b 2026-08-20 07:04:18,489 - DEBUG - Requesting: http://10.0.0.177:8082/project/edd2655a-6cea-49c0-9921-d09a54d8546d 2026-08-20 07:04:18,581 - INFO - Validated that VN ctest-vn4-85437990 is not found in API Server 2026-08-20 07:04:18,596 - DEBUG - VN ctest-vn4-85437990 is not present in Agent 10.0.0.177 2026-08-20 07:04:18,596 - INFO - Validated that VN ctest-vn4-85437990 is not in any agent 2026-08-20 07:04:18,614 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-85437990 info 2026-08-20 07:04:18,648 - INFO - Deleted policy ctest-policy1-23854557 2026-08-20 07:04:18,827 - DEBUG - policy ctest-policy1-23854557 is not found in API Server 2026-08-20 07:04:19,098 - DEBUG - No XMPP flaps were noticed during the test
2026-08-20 07:04:19,099 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-08-20 07:04:19,099 - INFO - -------------------------------------------------------------------------------- 2026-08-20 07:04:19,398 - DEBUG - No XMPP flaps were noticed during the test
2026-08-20 07:04:19,398 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-08-20 07:04:19,398 - INFO - -------------------------------------------------------------------------------- 2026-08-20 07:04:20,208 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-76507101, ID : edd2655a-6cea-49c0-9921-d09a54d8546d