2026-02-10 10:16:24,854 - INFO - Domain Default found not creating 2026-02-10 10:16:25,011 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-33270001 not found, creating it 2026-02-10 10:16:25,457 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-33270001, ID : adc95aa2-8f63-4d14-9b9b-6e687cd19fe3 2026-02-10 10:16:26,916 - INFO - ================================================================================ 2026-02-10 10:16:26,916 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-10 10:16:27,170 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0'}} with 2026-02-10 10:16:27,170 - INFO - Initial checks done. Running the testcase now 2026-02-10 10:16:27,170 - INFO - 2026-02-10 10:16:27,170 - INFO - ================================================================================ 2026-02-10 10:16:27,170 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-10 10:16:27,170 - 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-10 10:16:27,465 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0'}} with 2026-02-10 10:16:27,465 - INFO - Initial checks done. Running the testcase now 2026-02-10 10:16:27,465 - INFO - 2026-02-10 10:16:27,816 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33270001:ctest-vn4-02339843, 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-33270001:ctest-vn4-02339843, 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-33270001:ctest-vn4-02339843, 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-33270001:ctest-vn4-02339843, 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-10 10:16:28,315 - DEBUG - Response for create_network : {'network': {'id': '446e0ec4-05ed-4baf-a29c-7efad80059ee', 'name': 'ctest-vn4-02339843', 'tenant_id': 'adc95aa28f634d149b9b6e687cd19fe3', 'project_id': 'adc95aa28f634d149b9b6e687cd19fe3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33270001', 'ctest-vn4-02339843'], 'port_security_enabled': True, 'description': ''}} 2026-02-10 10:16:28,498 - DEBUG - Response for create_subnet : {'subnet': {'id': '57fcfe13-1733-453a-861b-5cd92d2ee6c4', 'name': '', 'tenant_id': 'adc95aa28f634d149b9b6e687cd19fe3', 'network_id': '446e0ec4-05ed-4baf-a29c-7efad80059ee', 'ip_version': 4, 'cidr': '5.112.214.192/26', 'allocation_pools': [{'start': '5.112.214.194', 'end': '5.112.214.254'}], 'gateway_ip': '5.112.214.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '5.112.214.194', 'tags': [], 'project_id': 'adc95aa28f634d149b9b6e687cd19fe3'}} 2026-02-10 10:16:28,652 - DEBUG - Response for create_subnet : {'subnet': {'id': '0a0226fc-d45b-40a0-a7e4-69b1155e2615', 'name': '', 'tenant_id': 'adc95aa28f634d149b9b6e687cd19fe3', 'network_id': '446e0ec4-05ed-4baf-a29c-7efad80059ee', 'ip_version': 6, 'cidr': '3fbb:6b0f:1c5d:ddfa:80d1:ee3d::/96', 'allocation_pools': [{'start': '3fbb:6b0f:1c5d:ddfa:80d1:ee3d:0:2', 'end': '3fbb:6b0f:1c5d:ddfa:80d1:ee3d:ffff:fffe'}], 'gateway_ip': '3fbb:6b0f:1c5d:ddfa:80d1:ee3d:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3fbb:6b0f:1c5d:ddfa:80d1:ee3d:0:2', 'tags': [], 'project_id': 'adc95aa28f634d149b9b6e687cd19fe3'}} 2026-02-10 10:16:28,670 - INFO - Created VN ctest-vn4-02339843 2026-02-10 10:16:28,720 - DEBUG - VN ctest-vn4-02339843 UUID is 446e0ec4-05ed-4baf-a29c-7efad80059ee 2026-02-10 10:16:28,914 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '446e0ec4-05ed-4baf-a29c-7efad80059ee', 'name': 'ctest-vn4-02339843', 'tenant_id': 'adc95aa28f634d149b9b6e687cd19fe3', 'project_id': 'adc95aa28f634d149b9b6e687cd19fe3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['57fcfe13-1733-453a-861b-5cd92d2ee6c4', '0a0226fc-d45b-40a0-a7e4-69b1155e2615'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33270001', 'ctest-vn4-02339843'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33270001', 'ctest-policy1-04322181']], 'subnet_ipam': [{'subnet_cidr': '5.112.214.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3fbb:6b0f:1c5d:ddfa:80d1:ee3d::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-10 10:16:29,084 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-02-10 10:16:29,376 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-02-10 10:16:29,414 - DEBUG - Requesting: http://10.0.0.33:8082/domain/0b4bc223-4427-4b5a-bd04-b83206917d2e 2026-02-10 10:16:29,426 - DEBUG - Requesting: http://10.0.0.33:8082/project/adc95aa2-8f63-4d14-9b9b-6e687cd19fe3 2026-02-10 10:16:29,498 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/446e0ec4-05ed-4baf-a29c-7efad80059ee 2026-02-10 10:16:29,509 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/446e0ec4-05ed-4baf-a29c-7efad80059ee 2026-02-10 10:16:29,517 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/89f170dc-0239-4189-96c0-a59fbc29ecdf 2026-02-10 10:16:29,523 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/89f170dc-0239-4189-96c0-a59fbc29ecdf 2026-02-10 10:16:29,530 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/d6d348eb-a2e8-4520-8d9a-38689ed0aeb7 2026-02-10 10:16:29,536 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-10 10:16:29,536 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/446e0ec4-05ed-4baf-a29c-7efad80059ee 2026-02-10 10:16:29,545 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/89f170dc-0239-4189-96c0-a59fbc29ecdf 2026-02-10 10:16:29,558 - INFO - Verified VN network id 11 for VN 446e0ec4-05ed-4baf-a29c-7efad80059ee 2026-02-10 10:16:29,559 - INFO - Verifications in API Server for VN ctest-vn4-02339843 passed 2026-02-10 10:16:29,559 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/446e0ec4-05ed-4baf-a29c-7efad80059ee 2026-02-10 10:16:29,567 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/89f170dc-0239-4189-96c0-a59fbc29ecdf 2026-02-10 10:16:29,574 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/89f170dc-0239-4189-96c0-a59fbc29ecdf 2026-02-10 10:16:29,582 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/d6d348eb-a2e8-4520-8d9a-38689ed0aeb7 2026-02-10 10:16:29,594 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33270001:ctest-vn4-02339843', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-33270001', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4930894877093088175', 'uuid-lslong': '11717379946342013422'}, 'enable': 'true', 'created': '2026-02-10T10:16:28', 'last-modified': '2026-02-10T10:16:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.704938'} 2026-02-10 10:16:29,599 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-10 10:16:29,599 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-02339843 passed 2026-02-10 10:16:29,600 - DEBUG - ====Verifying policy data for ctest-vn4-02339843 in API_Server ====== 2026-02-10 10:16:29,600 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-02-10 10:16:29,605 - DEBUG - Requesting: http://10.0.0.33:8082/domain/0b4bc223-4427-4b5a-bd04-b83206917d2e 2026-02-10 10:16:29,615 - DEBUG - Requesting: http://10.0.0.33:8082/project/adc95aa2-8f63-4d14-9b9b-6e687cd19fe3 2026-02-10 10:16:29,687 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/446e0ec4-05ed-4baf-a29c-7efad80059ee 2026-02-10 10:16:29,697 - DEBUG - ==>Verifying data for policy with id: f265976b-bf6a-4d69-831d-95c6f2249f00, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33270001', 'ctest-policy1-04322181'] 2026-02-10 10:16:29,697 - INFO - VN ctest-vn4-02339843 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-10 10:16:29,697 - DEBUG - Verifying the vn in opserver 2026-02-10 10:16:29,697 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33270001:ctest-vn4-02339843 virtual network link through opserver 10.0.0.33 2026-02-10 10:16:29,697 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-02-10 10:16:29,999 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-02-10 10:16:30,067 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33270001:ctest-vn4-02339843', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33270001:ctest-vn4-02339843?flat'} 2026-02-10 10:16:30,067 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33270001:ctest-vn4-02339843 is found in opserver 2026-02-10 10:16:30,076 - DEBUG - Do not have enough data to verify VN in agent 2026-02-10 10:16:30,081 - DEBUG - VRF ids for VN ctest-vn4-02339843: {} 2026-02-10 10:16:30,082 - DEBUG - ====Verifying data for ctest-policy1-04322181 in API_Server ====== 2026-02-10 10:16:30,082 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-02-10 10:16:30,087 - DEBUG - Requesting: http://10.0.0.33:8082/domain/0b4bc223-4427-4b5a-bd04-b83206917d2e 2026-02-10 10:16:30,096 - DEBUG - Requesting: http://10.0.0.33:8082/project/adc95aa2-8f63-4d14-9b9b-6e687cd19fe3 2026-02-10 10:16:30,169 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/f265976b-bf6a-4d69-831d-95c6f2249f00 2026-02-10 10:16:30,178 - INFO - Verified policy ctest-policy1-04322181 in API Server, Result: True 2026-02-10 10:16:30,178 - INFO - Done with setup and verification, moving onto test .. 2026-02-10 10:16:30,186 - INFO - Deleting VN ctest-vn4-02339843 2026-02-10 10:16:30,306 - DEBUG - Response for deleting network () 2026-02-10 10:16:30,307 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/89f170dc-0239-4189-96c0-a59fbc29ecdf 2026-02-10 10:16:30,312 - DEBUG - Response Code: 404 2026-02-10 10:16:30,312 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-02-10 10:16:30,318 - DEBUG - Requesting: http://10.0.0.33:8082/domain/0b4bc223-4427-4b5a-bd04-b83206917d2e 2026-02-10 10:16:30,374 - DEBUG - Requesting: http://10.0.0.33:8082/project/adc95aa2-8f63-4d14-9b9b-6e687cd19fe3 2026-02-10 10:16:30,441 - INFO - Validated that VN ctest-vn4-02339843 is not found in API Server 2026-02-10 10:16:30,452 - DEBUG - VN ctest-vn4-02339843 is not present in Agent 10.0.0.33 2026-02-10 10:16:30,452 - INFO - Validated that VN ctest-vn4-02339843 is not in any agent 2026-02-10 10:16:30,465 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-02339843 info 2026-02-10 10:16:30,498 - INFO - Deleted policy ctest-policy1-04322181 2026-02-10 10:16:30,668 - DEBUG - policy ctest-policy1-04322181 is not found in API Server 2026-02-10 10:16:30,924 - DEBUG - No XMPP flaps were noticed during the test