2026-09-09 13:18:55,266 - INFO - Domain Default found not creating 2026-09-09 13:18:55,430 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-69730948 not found, creating it 2026-09-09 13:18:55,952 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-69730948, ID : 34c85081-4b7a-41d2-8baa-6c685ac52bea 2026-09-09 13:18:57,667 - INFO - ================================================================================ 2026-09-09 13:18:57,667 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-09 13:18:57,941 - DEBUG - Nothing to compare xmpp stats {'10.0.0.177': {'10.20.0.254': '0'}} with 2026-09-09 13:18:57,942 - INFO - Initial checks done. Running the testcase now 2026-09-09 13:18:57,942 - INFO - 2026-09-09 13:18:57,942 - INFO - ================================================================================ 2026-09-09 13:18:57,942 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-09 13:18:57,942 - 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-09-09 13:18:58,225 - DEBUG - Nothing to compare xmpp stats {'10.0.0.177': {'10.20.0.254': '0'}} with 2026-09-09 13:18:58,225 - INFO - Initial checks done. Running the testcase now 2026-09-09 13:18:58,225 - INFO - 2026-09-09 13:18:58,651 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69730948:ctest-vn4-92201776, 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-69730948:ctest-vn4-92201776, 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-69730948:ctest-vn4-92201776, 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-69730948:ctest-vn4-92201776, 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-09-09 13:18:59,209 - DEBUG - Response for create_network : {'network': {'id': 'f55af7fb-6a0b-4030-8685-e51069cbe514', 'name': 'ctest-vn4-92201776', 'tenant_id': '34c850814b7a41d28baa6c685ac52bea', 'project_id': '34c850814b7a41d28baa6c685ac52bea', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-69730948', 'ctest-vn4-92201776'], 'port_security_enabled': True, 'description': ''}} 2026-09-09 13:18:59,409 - DEBUG - Response for create_subnet : {'subnet': {'id': '611ecf74-d6d8-4734-84f9-38ae272ad741', 'name': '', 'tenant_id': '34c850814b7a41d28baa6c685ac52bea', 'network_id': 'f55af7fb-6a0b-4030-8685-e51069cbe514', 'ip_version': 4, 'cidr': '88.57.59.64/26', 'allocation_pools': [{'start': '88.57.59.66', 'end': '88.57.59.126'}], 'gateway_ip': '88.57.59.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '88.57.59.66', 'tags': [], 'project_id': '34c850814b7a41d28baa6c685ac52bea'}} 2026-09-09 13:18:59,563 - DEBUG - Response for create_subnet : {'subnet': {'id': '5526377d-cd8d-4ff6-8db7-3e6ad59d90ef', 'name': '', 'tenant_id': '34c850814b7a41d28baa6c685ac52bea', 'network_id': 'f55af7fb-6a0b-4030-8685-e51069cbe514', 'ip_version': 6, 'cidr': '2c6e:6b15:6b4b:91cb:2b60:177c::/96', 'allocation_pools': [{'start': '2c6e:6b15:6b4b:91cb:2b60:177c:0:2', 'end': '2c6e:6b15:6b4b:91cb:2b60:177c:ffff:fffe'}], 'gateway_ip': '2c6e:6b15:6b4b:91cb:2b60:177c:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2c6e:6b15:6b4b:91cb:2b60:177c:0:2', 'tags': [], 'project_id': '34c850814b7a41d28baa6c685ac52bea'}} 2026-09-09 13:18:59,584 - INFO - Created VN ctest-vn4-92201776 2026-09-09 13:18:59,636 - DEBUG - VN ctest-vn4-92201776 UUID is f55af7fb-6a0b-4030-8685-e51069cbe514 2026-09-09 13:18:59,839 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f55af7fb-6a0b-4030-8685-e51069cbe514', 'name': 'ctest-vn4-92201776', 'tenant_id': '34c850814b7a41d28baa6c685ac52bea', 'project_id': '34c850814b7a41d28baa6c685ac52bea', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['611ecf74-d6d8-4734-84f9-38ae272ad741', '5526377d-cd8d-4ff6-8db7-3e6ad59d90ef'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-69730948', 'ctest-vn4-92201776'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-69730948', 'ctest-policy1-76788032']], 'subnet_ipam': [{'subnet_cidr': '88.57.59.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2c6e:6b15:6b4b:91cb:2b60:177c::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-09 13:19:00,012 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-09-09 13:19:00,382 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-09-09 13:19:00,410 - DEBUG - Requesting: http://10.0.0.177:8082/domain/c2cb5d75-1a7b-4cf8-b61a-728c0285ac63 2026-09-09 13:19:00,423 - DEBUG - Requesting: http://10.0.0.177:8082/project/34c85081-4b7a-41d2-8baa-6c685ac52bea 2026-09-09 13:19:00,501 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/f55af7fb-6a0b-4030-8685-e51069cbe514 2026-09-09 13:19:00,514 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/f55af7fb-6a0b-4030-8685-e51069cbe514 2026-09-09 13:19:00,524 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/3bc805a2-fbbb-4990-bdd2-1637be57683e 2026-09-09 13:19:00,531 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/3bc805a2-fbbb-4990-bdd2-1637be57683e 2026-09-09 13:19:00,538 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/f2ae6011-a739-4d87-93ba-56fc03f9e263 2026-09-09 13:19:00,545 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-09 13:19:00,545 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/f55af7fb-6a0b-4030-8685-e51069cbe514 2026-09-09 13:19:00,554 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/3bc805a2-fbbb-4990-bdd2-1637be57683e 2026-09-09 13:19:00,571 - INFO - Verified VN network id 12 for VN f55af7fb-6a0b-4030-8685-e51069cbe514 2026-09-09 13:19:00,571 - INFO - Verifications in API Server for VN ctest-vn4-92201776 passed 2026-09-09 13:19:00,571 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/f55af7fb-6a0b-4030-8685-e51069cbe514 2026-09-09 13:19:00,585 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/3bc805a2-fbbb-4990-bdd2-1637be57683e 2026-09-09 13:19:00,593 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/3bc805a2-fbbb-4990-bdd2-1637be57683e 2026-09-09 13:19:00,600 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/f2ae6011-a739-4d87-93ba-56fc03f9e263 2026-09-09 13:19:00,616 - DEBUG - Control-node 10.0.0.177 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69730948:ctest-vn4-92201776', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-69730948', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17679715946384277552', 'uuid-lslong': '9693405631642068244'}, 'enable': 'true', 'created': '2026-09-09T13:18:59', 'last-modified': '2026-09-09T13:18:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.804008'} 2026-09-09 13:19:00,624 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-09 13:19:00,624 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-92201776 passed 2026-09-09 13:19:00,625 - DEBUG - ====Verifying policy data for ctest-vn4-92201776 in API_Server ====== 2026-09-09 13:19:00,625 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-09-09 13:19:00,632 - DEBUG - Requesting: http://10.0.0.177:8082/domain/c2cb5d75-1a7b-4cf8-b61a-728c0285ac63 2026-09-09 13:19:00,644 - DEBUG - Requesting: http://10.0.0.177:8082/project/34c85081-4b7a-41d2-8baa-6c685ac52bea 2026-09-09 13:19:00,722 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/f55af7fb-6a0b-4030-8685-e51069cbe514 2026-09-09 13:19:00,733 - DEBUG - ==>Verifying data for policy with id: a1d8ae3e-d95b-4d7e-9b1a-1868a11f0fa9, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-69730948', 'ctest-policy1-76788032'] 2026-09-09 13:19:00,734 - INFO - VN ctest-vn4-92201776 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-09 13:19:00,734 - DEBUG - Verifying the vn in opserver 2026-09-09 13:19:00,734 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69730948:ctest-vn4-92201776 virtual network link through opserver 10.0.0.177 2026-09-09 13:19:00,734 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks 2026-09-09 13:19:01,106 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks 2026-09-09 13:19:01,162 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69730948:ctest-vn4-92201776', 'href': 'http://10.0.0.177:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69730948:ctest-vn4-92201776?flat'} 2026-09-09 13:19:01,162 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69730948:ctest-vn4-92201776 is found in opserver 2026-09-09 13:19:01,174 - DEBUG - Do not have enough data to verify VN in agent 2026-09-09 13:19:01,181 - DEBUG - VRF ids for VN ctest-vn4-92201776: {} 2026-09-09 13:19:01,181 - DEBUG - ====Verifying data for ctest-policy1-76788032 in API_Server ====== 2026-09-09 13:19:01,181 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-09-09 13:19:01,188 - DEBUG - Requesting: http://10.0.0.177:8082/domain/c2cb5d75-1a7b-4cf8-b61a-728c0285ac63 2026-09-09 13:19:01,201 - DEBUG - Requesting: http://10.0.0.177:8082/project/34c85081-4b7a-41d2-8baa-6c685ac52bea 2026-09-09 13:19:01,278 - DEBUG - Requesting: http://10.0.0.177:8082/network-policy/a1d8ae3e-d95b-4d7e-9b1a-1868a11f0fa9 2026-09-09 13:19:01,290 - INFO - Verified policy ctest-policy1-76788032 in API Server, Result: True 2026-09-09 13:19:01,290 - INFO - Done with setup and verification, moving onto test .. 2026-09-09 13:19:01,303 - INFO - Deleting VN ctest-vn4-92201776 2026-09-09 13:19:01,459 - DEBUG - Response for deleting network () 2026-09-09 13:19:01,459 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/3bc805a2-fbbb-4990-bdd2-1637be57683e 2026-09-09 13:19:01,466 - DEBUG - Response Code: 404 2026-09-09 13:19:01,467 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-09-09 13:19:01,472 - DEBUG - Requesting: http://10.0.0.177:8082/domain/c2cb5d75-1a7b-4cf8-b61a-728c0285ac63 2026-09-09 13:19:01,532 - DEBUG - Requesting: http://10.0.0.177:8082/project/34c85081-4b7a-41d2-8baa-6c685ac52bea 2026-09-09 13:19:01,614 - INFO - Validated that VN ctest-vn4-92201776 is not found in API Server 2026-09-09 13:19:01,624 - DEBUG - VN ctest-vn4-92201776 is not present in Agent 10.0.0.177 2026-09-09 13:19:01,624 - INFO - Validated that VN ctest-vn4-92201776 is not in any agent 2026-09-09 13:19:01,642 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-92201776 info 2026-09-09 13:19:01,680 - INFO - Deleted policy ctest-policy1-76788032 2026-09-09 13:19:01,856 - DEBUG - policy ctest-policy1-76788032 is not found in API Server 2026-09-09 13:19:02,115 - DEBUG - No XMPP flaps were noticed during the test 2026-09-09 13:19:02,115 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-09-09 13:19:02,115 - INFO - -------------------------------------------------------------------------------- 2026-09-09 13:19:02,421 - DEBUG - No XMPP flaps were noticed during the test 2026-09-09 13:19:02,421 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-09-09 13:19:02,421 - INFO - -------------------------------------------------------------------------------- 2026-09-09 13:19:03,202 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-69730948, ID : 34c85081-4b7a-41d2-8baa-6c685ac52bea