2026-02-26 02:04:18,213 - INFO - Domain Default found not creating 2026-02-26 02:04:18,368 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-24086753 not found, creating it 2026-02-26 02:04:18,823 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-24086753, ID : 176163f3-72fd-4c93-a538-e76021c74b0c 2026-02-26 02:04:20,270 - INFO - ================================================================================ 2026-02-26 02:04:20,270 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-26 02:04:20,526 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.193': '0'}} with 2026-02-26 02:04:20,526 - INFO - Initial checks done. Running the testcase now 2026-02-26 02:04:20,526 - INFO - 2026-02-26 02:04:20,526 - INFO - ================================================================================ 2026-02-26 02:04:20,526 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-26 02:04:20,526 - 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-02-26 02:04:20,813 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.193': '0'}} with 2026-02-26 02:04:20,813 - INFO - Initial checks done. Running the testcase now 2026-02-26 02:04:20,813 - INFO - 2026-02-26 02:04:21,162 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24086753:ctest-vn4-85793403, 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-24086753:ctest-vn4-85793403, 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-24086753:ctest-vn4-85793403, 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-24086753:ctest-vn4-85793403, 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-02-26 02:04:21,677 - DEBUG - Response for create_network : {'network': {'id': '29ea9dd8-4363-4d9b-8273-e6e374b983cf', 'name': 'ctest-vn4-85793403', 'tenant_id': '176163f372fd4c93a538e76021c74b0c', 'project_id': '176163f372fd4c93a538e76021c74b0c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-24086753', 'ctest-vn4-85793403'], 'port_security_enabled': True, 'description': ''}} 2026-02-26 02:04:21,884 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fb39a99b-f334-4da0-b42d-5f95ef99638b', 'name': '', 'tenant_id': '176163f372fd4c93a538e76021c74b0c', 'network_id': '29ea9dd8-4363-4d9b-8273-e6e374b983cf', 'ip_version': 4, 'cidr': '145.204.98.128/26', 'allocation_pools': [{'start': '145.204.98.130', 'end': '145.204.98.190'}], 'gateway_ip': '145.204.98.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '145.204.98.130', 'tags': [], 'project_id': '176163f372fd4c93a538e76021c74b0c'}} 2026-02-26 02:04:22,018 - DEBUG - Response for create_subnet : {'subnet': {'id': 'caf6abba-896a-41a2-8121-d427dc49d402', 'name': '', 'tenant_id': '176163f372fd4c93a538e76021c74b0c', 'network_id': '29ea9dd8-4363-4d9b-8273-e6e374b983cf', 'ip_version': 6, 'cidr': '33cc:b48b:e641:6d0c:e133:bf85::/96', 'allocation_pools': [{'start': '33cc:b48b:e641:6d0c:e133:bf85:0:2', 'end': '33cc:b48b:e641:6d0c:e133:bf85:ffff:fffe'}], 'gateway_ip': '33cc:b48b:e641:6d0c:e133:bf85:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '33cc:b48b:e641:6d0c:e133:bf85:0:2', 'tags': [], 'project_id': '176163f372fd4c93a538e76021c74b0c'}} 2026-02-26 02:04:22,035 - INFO - Created VN ctest-vn4-85793403 2026-02-26 02:04:22,089 - DEBUG - VN ctest-vn4-85793403 UUID is 29ea9dd8-4363-4d9b-8273-e6e374b983cf 2026-02-26 02:04:22,278 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '29ea9dd8-4363-4d9b-8273-e6e374b983cf', 'name': 'ctest-vn4-85793403', 'tenant_id': '176163f372fd4c93a538e76021c74b0c', 'project_id': '176163f372fd4c93a538e76021c74b0c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fb39a99b-f334-4da0-b42d-5f95ef99638b', 'caf6abba-896a-41a2-8121-d427dc49d402'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-24086753', 'ctest-vn4-85793403'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-24086753', 'ctest-policy1-99922538']], 'subnet_ipam': [{'subnet_cidr': '145.204.98.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '33cc:b48b:e641:6d0c:e133:bf85::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-26 02:04:22,441 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-02-26 02:04:22,746 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-02-26 02:04:22,779 - DEBUG - Requesting: http://10.0.0.19:8082/domain/181e1d4c-9a7b-432a-bb9e-ee6e530d3fd1 2026-02-26 02:04:22,790 - DEBUG - Requesting: http://10.0.0.19:8082/project/176163f3-72fd-4c93-a538-e76021c74b0c 2026-02-26 02:04:22,860 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/29ea9dd8-4363-4d9b-8273-e6e374b983cf 2026-02-26 02:04:22,870 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/29ea9dd8-4363-4d9b-8273-e6e374b983cf 2026-02-26 02:04:22,879 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/727ae508-c14e-4e18-9857-b509324ff662 2026-02-26 02:04:22,885 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/727ae508-c14e-4e18-9857-b509324ff662 2026-02-26 02:04:22,891 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/b083d9f2-e046-42df-a78d-9f8d2a742c3a 2026-02-26 02:04:22,897 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-26 02:04:22,897 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/29ea9dd8-4363-4d9b-8273-e6e374b983cf 2026-02-26 02:04:22,906 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/727ae508-c14e-4e18-9857-b509324ff662 2026-02-26 02:04:22,918 - INFO - Verified VN network id 11 for VN 29ea9dd8-4363-4d9b-8273-e6e374b983cf 2026-02-26 02:04:22,918 - INFO - Verifications in API Server for VN ctest-vn4-85793403 passed 2026-02-26 02:04:22,918 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/29ea9dd8-4363-4d9b-8273-e6e374b983cf 2026-02-26 02:04:22,926 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/727ae508-c14e-4e18-9857-b509324ff662 2026-02-26 02:04:22,932 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/727ae508-c14e-4e18-9857-b509324ff662 2026-02-26 02:04:22,938 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/b083d9f2-e046-42df-a78d-9f8d2a742c3a 2026-02-26 02:04:22,948 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24086753:ctest-vn4-85793403', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-24086753', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3020400052274417051', 'uuid-lslong': '9400110711842636751'}, 'enable': 'true', 'created': '2026-02-26T02:04:21', 'last-modified': '2026-02-26T02:04:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.695464'} 2026-02-26 02:04:22,954 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-26 02:04:22,954 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-85793403 passed 2026-02-26 02:04:22,954 - DEBUG - ====Verifying policy data for ctest-vn4-85793403 in API_Server ====== 2026-02-26 02:04:22,955 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-02-26 02:04:22,962 - DEBUG - Requesting: http://10.0.0.19:8082/domain/181e1d4c-9a7b-432a-bb9e-ee6e530d3fd1 2026-02-26 02:04:22,973 - DEBUG - Requesting: http://10.0.0.19:8082/project/176163f3-72fd-4c93-a538-e76021c74b0c 2026-02-26 02:04:23,043 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/29ea9dd8-4363-4d9b-8273-e6e374b983cf 2026-02-26 02:04:23,053 - DEBUG - ==>Verifying data for policy with id: 7ddb5867-c7d2-46b4-9ae1-a9763ad8c4d4, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-24086753', 'ctest-policy1-99922538'] 2026-02-26 02:04:23,053 - INFO - VN ctest-vn4-85793403 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-26 02:04:23,053 - DEBUG - Verifying the vn in opserver 2026-02-26 02:04:23,053 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24086753:ctest-vn4-85793403 virtual network link through opserver 10.0.0.19 2026-02-26 02:04:23,053 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2026-02-26 02:04:23,347 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2026-02-26 02:04:23,409 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24086753:ctest-vn4-85793403', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24086753:ctest-vn4-85793403?flat'} 2026-02-26 02:04:23,409 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24086753:ctest-vn4-85793403 is found in opserver 2026-02-26 02:04:23,417 - DEBUG - Do not have enough data to verify VN in agent 2026-02-26 02:04:23,421 - DEBUG - VRF ids for VN ctest-vn4-85793403: {} 2026-02-26 02:04:23,421 - DEBUG - ====Verifying data for ctest-policy1-99922538 in API_Server ====== 2026-02-26 02:04:23,421 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-02-26 02:04:23,426 - DEBUG - Requesting: http://10.0.0.19:8082/domain/181e1d4c-9a7b-432a-bb9e-ee6e530d3fd1 2026-02-26 02:04:23,435 - DEBUG - Requesting: http://10.0.0.19:8082/project/176163f3-72fd-4c93-a538-e76021c74b0c 2026-02-26 02:04:23,506 - DEBUG - Requesting: http://10.0.0.19:8082/network-policy/7ddb5867-c7d2-46b4-9ae1-a9763ad8c4d4 2026-02-26 02:04:23,515 - INFO - Verified policy ctest-policy1-99922538 in API Server, Result: True 2026-02-26 02:04:23,515 - INFO - Done with setup and verification, moving onto test .. 2026-02-26 02:04:23,526 - INFO - Deleting VN ctest-vn4-85793403 2026-02-26 02:04:23,656 - DEBUG - Response for deleting network () 2026-02-26 02:04:23,657 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/727ae508-c14e-4e18-9857-b509324ff662 2026-02-26 02:04:23,662 - DEBUG - Response Code: 404 2026-02-26 02:04:23,662 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-02-26 02:04:23,667 - DEBUG - Requesting: http://10.0.0.19:8082/domain/181e1d4c-9a7b-432a-bb9e-ee6e530d3fd1 2026-02-26 02:04:23,721 - DEBUG - Requesting: http://10.0.0.19:8082/project/176163f3-72fd-4c93-a538-e76021c74b0c 2026-02-26 02:04:23,804 - INFO - Validated that VN ctest-vn4-85793403 is not found in API Server 2026-02-26 02:04:23,814 - DEBUG - VN ctest-vn4-85793403 is not present in Agent 10.0.0.19 2026-02-26 02:04:23,814 - INFO - Validated that VN ctest-vn4-85793403 is not in any agent 2026-02-26 02:04:23,829 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-85793403 info 2026-02-26 02:04:23,855 - INFO - Deleted policy ctest-policy1-99922538 2026-02-26 02:04:24,012 - DEBUG - policy ctest-policy1-99922538 is not found in API Server 2026-02-26 02:04:24,265 - DEBUG - No XMPP flaps were noticed during the test 2026-02-26 02:04:24,265 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-26 02:04:24,265 - INFO - -------------------------------------------------------------------------------- 2026-02-26 02:04:24,557 - DEBUG - No XMPP flaps were noticed during the test 2026-02-26 02:04:24,557 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-26 02:04:24,557 - INFO - -------------------------------------------------------------------------------- 2026-02-26 02:04:25,216 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-24086753, ID : 176163f3-72fd-4c93-a538-e76021c74b0c