2026-09-28 18:36:54,300 - INFO - Domain Default found not creating 2026-09-28 18:36:54,526 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-70135237 not found, creating it 2026-09-28 18:36:55,092 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-70135237, ID : b4dad705-141c-412c-a679-8bcbd5ac58ba 2026-09-28 18:36:57,134 - INFO - ================================================================================ 2026-09-28 18:36:57,135 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-28 18:36:57,416 - DEBUG - Nothing to compare xmpp stats {'10.0.0.177': {'10.20.0.17': '0'}} with 2026-09-28 18:36:57,416 - INFO - Initial checks done. Running the testcase now 2026-09-28 18:36:57,416 - INFO - 2026-09-28 18:36:57,416 - INFO - ================================================================================ 2026-09-28 18:36:57,416 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-28 18:36:57,416 - 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-28 18:36:57,727 - DEBUG - Nothing to compare xmpp stats {'10.0.0.177': {'10.20.0.17': '0'}} with 2026-09-28 18:36:57,728 - INFO - Initial checks done. Running the testcase now 2026-09-28 18:36:57,728 - INFO - 2026-09-28 18:36:58,185 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70135237:ctest-vn4-71055060, 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-70135237:ctest-vn4-71055060, 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-70135237:ctest-vn4-71055060, 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-70135237:ctest-vn4-71055060, 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-28 18:36:58,807 - DEBUG - Response for create_network : {'network': {'id': 'b660cac3-1aa1-45fc-a297-87915f52fb1c', 'name': 'ctest-vn4-71055060', 'tenant_id': 'b4dad705141c412ca6798bcbd5ac58ba', 'project_id': 'b4dad705141c412ca6798bcbd5ac58ba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70135237', 'ctest-vn4-71055060'], 'port_security_enabled': True, 'description': ''}} 2026-09-28 18:36:59,018 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b5a22c12-5394-45d2-b7b8-28a31774ebde', 'name': '', 'tenant_id': 'b4dad705141c412ca6798bcbd5ac58ba', 'network_id': 'b660cac3-1aa1-45fc-a297-87915f52fb1c', 'ip_version': 4, 'cidr': '42.199.229.0/26', 'allocation_pools': [{'start': '42.199.229.2', 'end': '42.199.229.62'}], 'gateway_ip': '42.199.229.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '42.199.229.2', 'tags': [], 'project_id': 'b4dad705141c412ca6798bcbd5ac58ba'}} 2026-09-28 18:36:59,265 - DEBUG - Response for create_subnet : {'subnet': {'id': '0fd62751-614d-4768-8892-21eac186f0aa', 'name': '', 'tenant_id': 'b4dad705141c412ca6798bcbd5ac58ba', 'network_id': 'b660cac3-1aa1-45fc-a297-87915f52fb1c', 'ip_version': 6, 'cidr': '3f22:d372:1921:a1dc:cdda:2abb::/96', 'allocation_pools': [{'start': '3f22:d372:1921:a1dc:cdda:2abb:0:2', 'end': '3f22:d372:1921:a1dc:cdda:2abb:ffff:fffe'}], 'gateway_ip': '3f22:d372:1921:a1dc:cdda:2abb:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3f22:d372:1921:a1dc:cdda:2abb:0:2', 'tags': [], 'project_id': 'b4dad705141c412ca6798bcbd5ac58ba'}} 2026-09-28 18:36:59,292 - INFO - Created VN ctest-vn4-71055060 2026-09-28 18:36:59,346 - DEBUG - VN ctest-vn4-71055060 UUID is b660cac3-1aa1-45fc-a297-87915f52fb1c 2026-09-28 18:36:59,638 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b660cac3-1aa1-45fc-a297-87915f52fb1c', 'name': 'ctest-vn4-71055060', 'tenant_id': 'b4dad705141c412ca6798bcbd5ac58ba', 'project_id': 'b4dad705141c412ca6798bcbd5ac58ba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['b5a22c12-5394-45d2-b7b8-28a31774ebde', '0fd62751-614d-4768-8892-21eac186f0aa'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70135237', 'ctest-vn4-71055060'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70135237', 'ctest-policy1-00093535']], 'subnet_ipam': [{'subnet_cidr': '42.199.229.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3f22:d372:1921:a1dc:cdda:2abb::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-28 18:36:59,815 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-09-28 18:37:00,200 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-09-28 18:37:00,245 - DEBUG - Requesting: http://10.0.0.177:8082/domain/a1333800-9c1e-4c41-8ab7-af60e3ff6387 2026-09-28 18:37:00,266 - DEBUG - Requesting: http://10.0.0.177:8082/project/b4dad705-141c-412c-a679-8bcbd5ac58ba 2026-09-28 18:37:00,353 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/b660cac3-1aa1-45fc-a297-87915f52fb1c 2026-09-28 18:37:00,371 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/b660cac3-1aa1-45fc-a297-87915f52fb1c 2026-09-28 18:37:00,387 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/9b8daf1a-2417-4799-b263-45a7968b7993 2026-09-28 18:37:00,399 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/9b8daf1a-2417-4799-b263-45a7968b7993 2026-09-28 18:37:00,409 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/0379187f-01b8-423a-b78c-df901bf2bcca 2026-09-28 18:37:00,418 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-28 18:37:00,418 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/b660cac3-1aa1-45fc-a297-87915f52fb1c 2026-09-28 18:37:00,433 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/9b8daf1a-2417-4799-b263-45a7968b7993 2026-09-28 18:37:00,452 - INFO - Verified VN network id 12 for VN b660cac3-1aa1-45fc-a297-87915f52fb1c 2026-09-28 18:37:00,452 - INFO - Verifications in API Server for VN ctest-vn4-71055060 passed 2026-09-28 18:37:00,453 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/b660cac3-1aa1-45fc-a297-87915f52fb1c 2026-09-28 18:37:00,467 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/9b8daf1a-2417-4799-b263-45a7968b7993 2026-09-28 18:37:00,477 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/9b8daf1a-2417-4799-b263-45a7968b7993 2026-09-28 18:37:00,487 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/0379187f-01b8-423a-b78c-df901bf2bcca 2026-09-28 18:37:00,505 - DEBUG - Control-node 10.0.0.177 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70135237:ctest-vn4-71055060', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-70135237', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13141726651981317628', 'uuid-lslong': '11715982014066916124'}, 'enable': 'true', 'created': '2026-09-28T18:36:58', 'last-modified': '2026-09-28T18:36:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.911100'} 2026-09-28 18:37:00,514 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-28 18:37:00,514 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-71055060 passed 2026-09-28 18:37:00,514 - DEBUG - ====Verifying policy data for ctest-vn4-71055060 in API_Server ====== 2026-09-28 18:37:00,514 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-09-28 18:37:00,523 - DEBUG - Requesting: http://10.0.0.177:8082/domain/a1333800-9c1e-4c41-8ab7-af60e3ff6387 2026-09-28 18:37:00,541 - DEBUG - Requesting: http://10.0.0.177:8082/project/b4dad705-141c-412c-a679-8bcbd5ac58ba 2026-09-28 18:37:00,639 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/b660cac3-1aa1-45fc-a297-87915f52fb1c 2026-09-28 18:37:00,675 - DEBUG - ==>Verifying data for policy with id: 6878e269-6854-40c4-87d5-1e6d4806061f, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70135237', 'ctest-policy1-00093535'] 2026-09-28 18:37:00,675 - INFO - VN ctest-vn4-71055060 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-28 18:37:00,675 - DEBUG - Verifying the vn in opserver 2026-09-28 18:37:00,675 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70135237:ctest-vn4-71055060 virtual network link through opserver 10.0.0.177 2026-09-28 18:37:00,675 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks 2026-09-28 18:37:01,099 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks 2026-09-28 18:37:01,182 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70135237:ctest-vn4-71055060', 'href': 'http://10.0.0.177:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70135237:ctest-vn4-71055060?flat'} 2026-09-28 18:37:01,182 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70135237:ctest-vn4-71055060 is found in opserver 2026-09-28 18:37:01,199 - DEBUG - Do not have enough data to verify VN in agent 2026-09-28 18:37:01,206 - DEBUG - VRF ids for VN ctest-vn4-71055060: {} 2026-09-28 18:37:01,207 - DEBUG - ====Verifying data for ctest-policy1-00093535 in API_Server ====== 2026-09-28 18:37:01,207 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-09-28 18:37:01,215 - DEBUG - Requesting: http://10.0.0.177:8082/domain/a1333800-9c1e-4c41-8ab7-af60e3ff6387 2026-09-28 18:37:01,232 - DEBUG - Requesting: http://10.0.0.177:8082/project/b4dad705-141c-412c-a679-8bcbd5ac58ba 2026-09-28 18:37:01,321 - DEBUG - Requesting: http://10.0.0.177:8082/network-policy/6878e269-6854-40c4-87d5-1e6d4806061f 2026-09-28 18:37:01,394 - INFO - Verified policy ctest-policy1-00093535 in API Server, Result: True 2026-09-28 18:37:01,394 - INFO - Done with setup and verification, moving onto test .. 2026-09-28 18:37:01,408 - INFO - Deleting VN ctest-vn4-71055060 2026-09-28 18:37:01,598 - DEBUG - Response for deleting network () 2026-09-28 18:37:01,598 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/9b8daf1a-2417-4799-b263-45a7968b7993 2026-09-28 18:37:01,607 - DEBUG - Response Code: 404 2026-09-28 18:37:01,607 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-09-28 18:37:01,618 - DEBUG - Requesting: http://10.0.0.177:8082/domain/a1333800-9c1e-4c41-8ab7-af60e3ff6387 2026-09-28 18:37:01,677 - DEBUG - Requesting: http://10.0.0.177:8082/project/b4dad705-141c-412c-a679-8bcbd5ac58ba 2026-09-28 18:37:01,767 - INFO - Validated that VN ctest-vn4-71055060 is not found in API Server 2026-09-28 18:37:01,783 - DEBUG - VN ctest-vn4-71055060 is not present in Agent 10.0.0.177 2026-09-28 18:37:01,783 - INFO - Validated that VN ctest-vn4-71055060 is not in any agent 2026-09-28 18:37:01,808 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-71055060 info 2026-09-28 18:37:01,852 - INFO - Deleted policy ctest-policy1-00093535 2026-09-28 18:37:02,046 - DEBUG - policy ctest-policy1-00093535 is not found in API Server 2026-09-28 18:37:02,333 - DEBUG - No XMPP flaps were noticed during the test 2026-09-28 18:37:02,333 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-09-28 18:37:02,333 - INFO - -------------------------------------------------------------------------------- 2026-09-28 18:37:02,634 - DEBUG - No XMPP flaps were noticed during the test 2026-09-28 18:37:02,634 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-09-28 18:37:02,634 - INFO - -------------------------------------------------------------------------------- 2026-09-28 18:37:03,534 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-70135237, ID : b4dad705-141c-412c-a679-8bcbd5ac58ba