2026-02-03 21:09:37,768 - INFO - Domain Default found not creating 2026-02-03 21:09:38,041 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-59174346 not found, creating it 2026-02-03 21:09:38,645 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-59174346, ID : 1c24e6fc-6c22-4d56-9a54-9b33fa1fff6e 2026-02-03 21:09:40,736 - INFO - ================================================================================ 2026-02-03 21:09:40,736 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-03 21:09:41,045 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-02-03 21:09:41,045 - INFO - Initial checks done. Running the testcase now 2026-02-03 21:09:41,045 - INFO - 2026-02-03 21:09:41,045 - INFO - ================================================================================ 2026-02-03 21:09:41,045 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-03 21:09:41,045 - 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-03 21:09:41,374 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-02-03 21:09:41,375 - INFO - Initial checks done. Running the testcase now 2026-02-03 21:09:41,375 - INFO - 2026-02-03 21:09:41,811 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59174346:ctest-vn4-19185810, 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-59174346:ctest-vn4-19185810, 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-59174346:ctest-vn4-19185810, 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-59174346:ctest-vn4-19185810, 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-03 21:09:42,530 - DEBUG - Response for create_network : {'network': {'id': '246e61cd-d614-4d2c-89cd-b3e08465018d', 'name': 'ctest-vn4-19185810', 'tenant_id': '1c24e6fc6c224d569a549b33fa1fff6e', 'project_id': '1c24e6fc6c224d569a549b33fa1fff6e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-59174346', 'ctest-vn4-19185810'], 'port_security_enabled': True, 'description': ''}} 2026-02-03 21:09:42,790 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd631c8cf-096b-40f5-8479-a1294cced90c', 'name': '', 'tenant_id': '1c24e6fc6c224d569a549b33fa1fff6e', 'network_id': '246e61cd-d614-4d2c-89cd-b3e08465018d', 'ip_version': 4, 'cidr': '169.34.199.0/26', 'allocation_pools': [{'start': '169.34.199.2', 'end': '169.34.199.62'}], 'gateway_ip': '169.34.199.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '169.34.199.2', 'tags': [], 'project_id': '1c24e6fc6c224d569a549b33fa1fff6e'}} 2026-02-03 21:09:43,015 - DEBUG - Response for create_subnet : {'subnet': {'id': '550e2e42-b72f-424b-9857-54b4f64eeb18', 'name': '', 'tenant_id': '1c24e6fc6c224d569a549b33fa1fff6e', 'network_id': '246e61cd-d614-4d2c-89cd-b3e08465018d', 'ip_version': 6, 'cidr': '3593:d9b8:ac1:a3e6:9405:7ff7::/96', 'allocation_pools': [{'start': '3593:d9b8:ac1:a3e6:9405:7ff7:0:2', 'end': '3593:d9b8:ac1:a3e6:9405:7ff7:ffff:fffe'}], 'gateway_ip': '3593:d9b8:ac1:a3e6:9405:7ff7:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3593:d9b8:ac1:a3e6:9405:7ff7:0:2', 'tags': [], 'project_id': '1c24e6fc6c224d569a549b33fa1fff6e'}} 2026-02-03 21:09:43,046 - INFO - Created VN ctest-vn4-19185810 2026-02-03 21:09:43,102 - DEBUG - VN ctest-vn4-19185810 UUID is 246e61cd-d614-4d2c-89cd-b3e08465018d 2026-02-03 21:09:43,460 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '246e61cd-d614-4d2c-89cd-b3e08465018d', 'name': 'ctest-vn4-19185810', 'tenant_id': '1c24e6fc6c224d569a549b33fa1fff6e', 'project_id': '1c24e6fc6c224d569a549b33fa1fff6e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d631c8cf-096b-40f5-8479-a1294cced90c', '550e2e42-b72f-424b-9857-54b4f64eeb18'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-59174346', 'ctest-vn4-19185810'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-59174346', 'ctest-policy1-80879897']], 'subnet_ipam': [{'subnet_cidr': '169.34.199.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3593:d9b8:ac1:a3e6:9405:7ff7::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-03 21:09:43,651 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-03 21:09:43,997 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-03 21:09:44,081 - DEBUG - Requesting: http://10.0.0.38:8082/domain/56850077-a7da-49b3-9fe3-bf5b74d036c3 2026-02-03 21:09:44,101 - DEBUG - Requesting: http://10.0.0.38:8082/project/1c24e6fc-6c22-4d56-9a54-9b33fa1fff6e 2026-02-03 21:09:44,215 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/246e61cd-d614-4d2c-89cd-b3e08465018d 2026-02-03 21:09:44,238 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/246e61cd-d614-4d2c-89cd-b3e08465018d 2026-02-03 21:09:44,255 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4ed40179-dd69-4d31-bff8-2608244deb82 2026-02-03 21:09:44,266 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4ed40179-dd69-4d31-bff8-2608244deb82 2026-02-03 21:09:44,277 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/fd9b732e-fdfb-47d8-a564-0290307b3665 2026-02-03 21:09:44,295 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-03 21:09:44,296 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/246e61cd-d614-4d2c-89cd-b3e08465018d 2026-02-03 21:09:44,323 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4ed40179-dd69-4d31-bff8-2608244deb82 2026-02-03 21:09:44,357 - INFO - Verified VN network id 11 for VN 246e61cd-d614-4d2c-89cd-b3e08465018d 2026-02-03 21:09:44,357 - INFO - Verifications in API Server for VN ctest-vn4-19185810 passed 2026-02-03 21:09:44,358 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/246e61cd-d614-4d2c-89cd-b3e08465018d 2026-02-03 21:09:44,376 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4ed40179-dd69-4d31-bff8-2608244deb82 2026-02-03 21:09:44,389 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4ed40179-dd69-4d31-bff8-2608244deb82 2026-02-03 21:09:44,401 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/fd9b732e-fdfb-47d8-a564-0290307b3665 2026-02-03 21:09:44,420 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59174346:ctest-vn4-19185810', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-59174346', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2625143169491422508', 'uuid-lslong': '9929790530297069965'}, 'enable': 'true', 'created': '2026-02-03T21:09:42', 'last-modified': '2026-02-03T21:09:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.003425'} 2026-02-03 21:09:44,434 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-03 21:09:44,434 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-19185810 passed 2026-02-03 21:09:44,434 - DEBUG - ====Verifying policy data for ctest-vn4-19185810 in API_Server ====== 2026-02-03 21:09:44,434 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-03 21:09:44,445 - DEBUG - Requesting: http://10.0.0.38:8082/domain/56850077-a7da-49b3-9fe3-bf5b74d036c3 2026-02-03 21:09:44,463 - DEBUG - Requesting: http://10.0.0.38:8082/project/1c24e6fc-6c22-4d56-9a54-9b33fa1fff6e 2026-02-03 21:09:44,552 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/246e61cd-d614-4d2c-89cd-b3e08465018d 2026-02-03 21:09:44,580 - DEBUG - ==>Verifying data for policy with id: 841c1e29-8c58-4b91-b9ee-672207401863, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-59174346', 'ctest-policy1-80879897'] 2026-02-03 21:09:44,580 - INFO - VN ctest-vn4-19185810 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-03 21:09:44,581 - DEBUG - Verifying the vn in opserver 2026-02-03 21:09:44,581 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59174346:ctest-vn4-19185810 virtual network link through opserver 10.0.0.38 2026-02-03 21:09:44,581 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-03 21:09:44,949 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-03 21:09:45,106 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59174346:ctest-vn4-19185810', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59174346:ctest-vn4-19185810?flat'} 2026-02-03 21:09:45,106 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59174346:ctest-vn4-19185810 is found in opserver 2026-02-03 21:09:45,125 - DEBUG - Do not have enough data to verify VN in agent 2026-02-03 21:09:45,135 - DEBUG - VRF ids for VN ctest-vn4-19185810: {} 2026-02-03 21:09:45,136 - DEBUG - ====Verifying data for ctest-policy1-80879897 in API_Server ====== 2026-02-03 21:09:45,137 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-03 21:09:45,150 - DEBUG - Requesting: http://10.0.0.38:8082/domain/56850077-a7da-49b3-9fe3-bf5b74d036c3 2026-02-03 21:09:45,179 - DEBUG - Requesting: http://10.0.0.38:8082/project/1c24e6fc-6c22-4d56-9a54-9b33fa1fff6e 2026-02-03 21:09:45,294 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/841c1e29-8c58-4b91-b9ee-672207401863 2026-02-03 21:09:45,321 - INFO - Verified policy ctest-policy1-80879897 in API Server, Result: True 2026-02-03 21:09:45,322 - INFO - Done with setup and verification, moving onto test .. 2026-02-03 21:09:45,341 - INFO - Deleting VN ctest-vn4-19185810 2026-02-03 21:09:45,563 - DEBUG - Response for deleting network () 2026-02-03 21:09:45,564 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4ed40179-dd69-4d31-bff8-2608244deb82 2026-02-03 21:09:45,572 - DEBUG - Response Code: 404 2026-02-03 21:09:45,573 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-03 21:09:45,582 - DEBUG - Requesting: http://10.0.0.38:8082/domain/56850077-a7da-49b3-9fe3-bf5b74d036c3 2026-02-03 21:09:45,651 - DEBUG - Requesting: http://10.0.0.38:8082/project/1c24e6fc-6c22-4d56-9a54-9b33fa1fff6e 2026-02-03 21:09:45,763 - INFO - Validated that VN ctest-vn4-19185810 is not found in API Server 2026-02-03 21:09:45,775 - DEBUG - VN ctest-vn4-19185810 is not present in Agent 10.0.0.38 2026-02-03 21:09:45,775 - INFO - Validated that VN ctest-vn4-19185810 is not in any agent 2026-02-03 21:09:45,800 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-19185810 info 2026-02-03 21:09:45,840 - INFO - Deleted policy ctest-policy1-80879897 2026-02-03 21:09:46,034 - DEBUG - policy ctest-policy1-80879897 is not found in API Server 2026-02-03 21:09:46,359 - DEBUG - No XMPP flaps were noticed during the test 2026-02-03 21:09:46,359 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-02-03 21:09:46,359 - INFO - -------------------------------------------------------------------------------- 2026-02-03 21:09:46,695 - DEBUG - No XMPP flaps were noticed during the test 2026-02-03 21:09:46,696 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:06] 2026-02-03 21:09:46,696 - INFO - -------------------------------------------------------------------------------- 2026-02-03 21:09:47,711 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-59174346, ID : 1c24e6fc-6c22-4d56-9a54-9b33fa1fff6e