2026-10-06 11:47:41,469 - INFO - Domain Default found not creating 2026-10-06 11:47:41,621 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-74249429 not found, creating it 2026-10-06 11:47:42,097 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-74249429, ID : deb2e5bf-25e7-4f35-8dd2-090ebc69c985 2026-10-06 11:47:43,745 - INFO - ================================================================================ 2026-10-06 11:47:43,745 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-06 11:47:44,011 - DEBUG - Nothing to compare xmpp stats {'10.0.0.163': {'10.20.0.25': '0'}} with 2026-10-06 11:47:44,011 - INFO - Initial checks done. Running the testcase now 2026-10-06 11:47:44,011 - INFO - 2026-10-06 11:47:44,011 - INFO - ================================================================================ 2026-10-06 11:47:44,011 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-06 11:47:44,011 - 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-06 11:47:44,317 - DEBUG - Nothing to compare xmpp stats {'10.0.0.163': {'10.20.0.25': '0'}} with 2026-10-06 11:47:44,317 - INFO - Initial checks done. Running the testcase now 2026-10-06 11:47:44,317 - INFO - 2026-10-06 11:47:44,757 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74249429:ctest-vn4-82488989, 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-74249429:ctest-vn4-82488989, 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-74249429:ctest-vn4-82488989, 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-74249429:ctest-vn4-82488989, 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-06 11:47:45,267 - DEBUG - Response for create_network : {'network': {'id': '11e3ce89-c1e7-498b-b806-29eab0b953df', 'name': 'ctest-vn4-82488989', 'tenant_id': 'deb2e5bf25e74f358dd2090ebc69c985', 'project_id': 'deb2e5bf25e74f358dd2090ebc69c985', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74249429', 'ctest-vn4-82488989'], 'port_security_enabled': True, 'description': ''}} 2026-10-06 11:47:45,446 - DEBUG - Response for create_subnet : {'subnet': {'id': '0d255d82-857c-403e-8c22-8c7150329f3c', 'name': '', 'tenant_id': 'deb2e5bf25e74f358dd2090ebc69c985', 'network_id': '11e3ce89-c1e7-498b-b806-29eab0b953df', 'ip_version': 4, 'cidr': '23.64.186.64/26', 'allocation_pools': [{'start': '23.64.186.66', 'end': '23.64.186.126'}], 'gateway_ip': '23.64.186.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '23.64.186.66', 'tags': [], 'project_id': 'deb2e5bf25e74f358dd2090ebc69c985'}} 2026-10-06 11:47:45,595 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd942eb41-90a1-4610-9086-23fe1cc646f5', 'name': '', 'tenant_id': 'deb2e5bf25e74f358dd2090ebc69c985', 'network_id': '11e3ce89-c1e7-498b-b806-29eab0b953df', 'ip_version': 6, 'cidr': '2a6d:c0a6:e46c:d3ae:3273:119b::/96', 'allocation_pools': [{'start': '2a6d:c0a6:e46c:d3ae:3273:119b:0:2', 'end': '2a6d:c0a6:e46c:d3ae:3273:119b:ffff:fffe'}], 'gateway_ip': '2a6d:c0a6:e46c:d3ae:3273:119b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2a6d:c0a6:e46c:d3ae:3273:119b:0:2', 'tags': [], 'project_id': 'deb2e5bf25e74f358dd2090ebc69c985'}} 2026-10-06 11:47:45,612 - INFO - Created VN ctest-vn4-82488989 2026-10-06 11:47:45,665 - DEBUG - VN ctest-vn4-82488989 UUID is 11e3ce89-c1e7-498b-b806-29eab0b953df 2026-10-06 11:47:45,842 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '11e3ce89-c1e7-498b-b806-29eab0b953df', 'name': 'ctest-vn4-82488989', 'tenant_id': 'deb2e5bf25e74f358dd2090ebc69c985', 'project_id': 'deb2e5bf25e74f358dd2090ebc69c985', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['0d255d82-857c-403e-8c22-8c7150329f3c', 'd942eb41-90a1-4610-9086-23fe1cc646f5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74249429', 'ctest-vn4-82488989'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74249429', 'ctest-policy1-05257131']], 'subnet_ipam': [{'subnet_cidr': '23.64.186.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2a6d:c0a6:e46c:d3ae:3273:119b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-10-06 11:47:46,001 - DEBUG - Requesting: http://10.0.0.163:8082/domains 2026-10-06 11:47:46,372 - DEBUG - Requesting: http://10.0.0.163:8082/domains 2026-10-06 11:47:46,399 - DEBUG - Requesting: http://10.0.0.163:8082/domain/c37a85e0-04c5-49bc-901e-0717a992399e 2026-10-06 11:47:46,411 - DEBUG - Requesting: http://10.0.0.163:8082/project/deb2e5bf-25e7-4f35-8dd2-090ebc69c985 2026-10-06 11:47:46,485 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/11e3ce89-c1e7-498b-b806-29eab0b953df 2026-10-06 11:47:46,496 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/11e3ce89-c1e7-498b-b806-29eab0b953df 2026-10-06 11:47:46,505 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/ca832fa1-0a48-49cf-b2b7-0537180d19b4 2026-10-06 11:47:46,510 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/ca832fa1-0a48-49cf-b2b7-0537180d19b4 2026-10-06 11:47:46,516 - DEBUG - Requesting: http://10.0.0.163:8082/route-target/f4eed092-275b-49ec-862d-f741eea0c99f 2026-10-06 11:47:46,521 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-06 11:47:46,521 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/11e3ce89-c1e7-498b-b806-29eab0b953df 2026-10-06 11:47:46,529 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/ca832fa1-0a48-49cf-b2b7-0537180d19b4 2026-10-06 11:47:46,541 - INFO - Verified VN network id 12 for VN 11e3ce89-c1e7-498b-b806-29eab0b953df 2026-10-06 11:47:46,542 - INFO - Verifications in API Server for VN ctest-vn4-82488989 passed 2026-10-06 11:47:46,542 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/11e3ce89-c1e7-498b-b806-29eab0b953df 2026-10-06 11:47:46,551 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/ca832fa1-0a48-49cf-b2b7-0537180d19b4 2026-10-06 11:47:46,558 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/ca832fa1-0a48-49cf-b2b7-0537180d19b4 2026-10-06 11:47:46,565 - DEBUG - Requesting: http://10.0.0.163:8082/route-target/f4eed092-275b-49ec-862d-f741eea0c99f 2026-10-06 11:47:46,578 - DEBUG - Control-node 10.0.0.163 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74249429:ctest-vn4-82488989', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-74249429', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1289101009417095563', 'uuid-lslong': '13260332240803025887'}, 'enable': 'true', 'created': '2026-10-06T11:47:45', 'last-modified': '2026-10-06T11:47:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.757838'} 2026-10-06 11:47:46,585 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-06 11:47:46,585 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-82488989 passed 2026-10-06 11:47:46,585 - DEBUG - ====Verifying policy data for ctest-vn4-82488989 in API_Server ====== 2026-10-06 11:47:46,585 - DEBUG - Requesting: http://10.0.0.163:8082/domains 2026-10-06 11:47:46,590 - DEBUG - Requesting: http://10.0.0.163:8082/domain/c37a85e0-04c5-49bc-901e-0717a992399e 2026-10-06 11:47:46,600 - DEBUG - Requesting: http://10.0.0.163:8082/project/deb2e5bf-25e7-4f35-8dd2-090ebc69c985 2026-10-06 11:47:46,677 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/11e3ce89-c1e7-498b-b806-29eab0b953df 2026-10-06 11:47:46,686 - DEBUG - ==>Verifying data for policy with id: 2fc06e8b-da52-43d7-a28a-632ca304fe51, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74249429', 'ctest-policy1-05257131'] 2026-10-06 11:47:46,686 - INFO - VN ctest-vn4-82488989 Policy verification: verify_vn_policy_in_api_server, status: True 2026-10-06 11:47:46,687 - DEBUG - Verifying the vn in opserver 2026-10-06 11:47:46,687 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74249429:ctest-vn4-82488989 virtual network link through opserver 10.0.0.163 2026-10-06 11:47:46,687 - DEBUG - Requesting: http://10.0.0.163:8081/analytics/uves/virtual-networks 2026-10-06 11:47:47,051 - DEBUG - Requesting: http://10.0.0.163:8081/analytics/uves/virtual-networks 2026-10-06 11:47:47,099 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74249429:ctest-vn4-82488989', 'href': 'http://10.0.0.163:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74249429:ctest-vn4-82488989?flat'} 2026-10-06 11:47:47,099 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74249429:ctest-vn4-82488989 is found in opserver 2026-10-06 11:47:47,109 - DEBUG - Do not have enough data to verify VN in agent 2026-10-06 11:47:47,113 - DEBUG - VRF ids for VN ctest-vn4-82488989: {} 2026-10-06 11:47:47,113 - DEBUG - ====Verifying data for ctest-policy1-05257131 in API_Server ====== 2026-10-06 11:47:47,113 - DEBUG - Requesting: http://10.0.0.163:8082/domains 2026-10-06 11:47:47,119 - DEBUG - Requesting: http://10.0.0.163:8082/domain/c37a85e0-04c5-49bc-901e-0717a992399e 2026-10-06 11:47:47,128 - DEBUG - Requesting: http://10.0.0.163:8082/project/deb2e5bf-25e7-4f35-8dd2-090ebc69c985 2026-10-06 11:47:47,202 - DEBUG - Requesting: http://10.0.0.163:8082/network-policy/2fc06e8b-da52-43d7-a28a-632ca304fe51 2026-10-06 11:47:47,211 - INFO - Verified policy ctest-policy1-05257131 in API Server, Result: True 2026-10-06 11:47:47,211 - INFO - Done with setup and verification, moving onto test .. 2026-10-06 11:47:47,218 - INFO - Deleting VN ctest-vn4-82488989 2026-10-06 11:47:47,338 - DEBUG - Response for deleting network () 2026-10-06 11:47:47,338 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/ca832fa1-0a48-49cf-b2b7-0537180d19b4 2026-10-06 11:47:47,343 - DEBUG - Response Code: 404 2026-10-06 11:47:47,343 - DEBUG - Requesting: http://10.0.0.163:8082/domains 2026-10-06 11:47:47,348 - DEBUG - Requesting: http://10.0.0.163:8082/domain/c37a85e0-04c5-49bc-901e-0717a992399e 2026-10-06 11:47:47,406 - DEBUG - Requesting: http://10.0.0.163:8082/project/deb2e5bf-25e7-4f35-8dd2-090ebc69c985 2026-10-06 11:47:47,475 - INFO - Validated that VN ctest-vn4-82488989 is not found in API Server 2026-10-06 11:47:47,485 - DEBUG - VN ctest-vn4-82488989 is not present in Agent 10.0.0.163 2026-10-06 11:47:47,485 - INFO - Validated that VN ctest-vn4-82488989 is not in any agent 2026-10-06 11:47:47,500 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-82488989 info 2026-10-06 11:47:47,523 - INFO - Deleted policy ctest-policy1-05257131 2026-10-06 11:47:47,685 - DEBUG - policy ctest-policy1-05257131 is not found in API Server 2026-10-06 11:47:47,941 - DEBUG - No XMPP flaps were noticed during the test