2026-02-19 10:16:31,471 - INFO - Domain Default found not creating 2026-02-19 10:16:31,659 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-18195551 not found, creating it 2026-02-19 10:16:32,134 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-18195551, ID : 1290755f-951a-4b60-b2bc-385e5d76e2c7 2026-02-19 10:16:33,687 - INFO - ================================================================================ 2026-02-19 10:16:33,687 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-19 10:16:33,942 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with 2026-02-19 10:16:33,942 - INFO - Initial checks done. Running the testcase now 2026-02-19 10:16:33,942 - INFO - 2026-02-19 10:16:33,942 - INFO - ================================================================================ 2026-02-19 10:16:33,942 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-19 10:16:33,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-02-19 10:16:34,241 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with 2026-02-19 10:16:34,241 - INFO - Initial checks done. Running the testcase now 2026-02-19 10:16:34,241 - INFO - 2026-02-19 10:16:34,576 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18195551:ctest-vn4-86176031, 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-18195551:ctest-vn4-86176031, 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-18195551:ctest-vn4-86176031, 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-18195551:ctest-vn4-86176031, 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-19 10:16:35,100 - DEBUG - Response for create_network : {'network': {'id': '9fd36267-9e67-46c0-92ca-b96323b9d547', 'name': 'ctest-vn4-86176031', 'tenant_id': '1290755f951a4b60b2bc385e5d76e2c7', 'project_id': '1290755f951a4b60b2bc385e5d76e2c7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18195551', 'ctest-vn4-86176031'], 'port_security_enabled': True, 'description': ''}} 2026-02-19 10:16:35,261 - DEBUG - Response for create_subnet : {'subnet': {'id': '205c5257-c6de-43b6-ac14-a24ff6ca3b5a', 'name': '', 'tenant_id': '1290755f951a4b60b2bc385e5d76e2c7', 'network_id': '9fd36267-9e67-46c0-92ca-b96323b9d547', 'ip_version': 4, 'cidr': '27.146.209.0/26', 'allocation_pools': [{'start': '27.146.209.2', 'end': '27.146.209.62'}], 'gateway_ip': '27.146.209.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '27.146.209.2', 'tags': [], 'project_id': '1290755f951a4b60b2bc385e5d76e2c7'}} 2026-02-19 10:16:35,417 - DEBUG - Response for create_subnet : {'subnet': {'id': '482b3011-669d-429e-9bb2-2a5c533f1b2c', 'name': '', 'tenant_id': '1290755f951a4b60b2bc385e5d76e2c7', 'network_id': '9fd36267-9e67-46c0-92ca-b96323b9d547', 'ip_version': 6, 'cidr': '2a67:eaaf:6c4f:705c:b7ab:8d31::/96', 'allocation_pools': [{'start': '2a67:eaaf:6c4f:705c:b7ab:8d31:0:2', 'end': '2a67:eaaf:6c4f:705c:b7ab:8d31:ffff:fffe'}], 'gateway_ip': '2a67:eaaf:6c4f:705c:b7ab:8d31:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2a67:eaaf:6c4f:705c:b7ab:8d31:0:2', 'tags': [], 'project_id': '1290755f951a4b60b2bc385e5d76e2c7'}} 2026-02-19 10:16:35,441 - INFO - Created VN ctest-vn4-86176031 2026-02-19 10:16:35,496 - DEBUG - VN ctest-vn4-86176031 UUID is 9fd36267-9e67-46c0-92ca-b96323b9d547 2026-02-19 10:16:35,735 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9fd36267-9e67-46c0-92ca-b96323b9d547', 'name': 'ctest-vn4-86176031', 'tenant_id': '1290755f951a4b60b2bc385e5d76e2c7', 'project_id': '1290755f951a4b60b2bc385e5d76e2c7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['205c5257-c6de-43b6-ac14-a24ff6ca3b5a', '482b3011-669d-429e-9bb2-2a5c533f1b2c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18195551', 'ctest-vn4-86176031'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18195551', 'ctest-policy1-22783776']], 'subnet_ipam': [{'subnet_cidr': '27.146.209.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2a67:eaaf:6c4f:705c:b7ab:8d31::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-19 10:16:35,908 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-02-19 10:16:36,206 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-02-19 10:16:36,245 - DEBUG - Requesting: http://10.0.0.242:8082/domain/b0c3b526-e381-4c94-87da-52f48c067071 2026-02-19 10:16:36,260 - DEBUG - Requesting: http://10.0.0.242:8082/project/1290755f-951a-4b60-b2bc-385e5d76e2c7 2026-02-19 10:16:36,329 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/9fd36267-9e67-46c0-92ca-b96323b9d547 2026-02-19 10:16:36,341 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/9fd36267-9e67-46c0-92ca-b96323b9d547 2026-02-19 10:16:36,350 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/a9e97a52-ff35-4cd2-9b07-d0fffe1f7d4d 2026-02-19 10:16:36,357 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/a9e97a52-ff35-4cd2-9b07-d0fffe1f7d4d 2026-02-19 10:16:36,364 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/9830314b-3732-4b90-95d9-9cb87597b879 2026-02-19 10:16:36,372 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-19 10:16:36,372 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/9fd36267-9e67-46c0-92ca-b96323b9d547 2026-02-19 10:16:36,382 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/a9e97a52-ff35-4cd2-9b07-d0fffe1f7d4d 2026-02-19 10:16:36,398 - INFO - Verified VN network id 10 for VN 9fd36267-9e67-46c0-92ca-b96323b9d547 2026-02-19 10:16:36,398 - INFO - Verifications in API Server for VN ctest-vn4-86176031 passed 2026-02-19 10:16:36,398 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/9fd36267-9e67-46c0-92ca-b96323b9d547 2026-02-19 10:16:36,407 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/a9e97a52-ff35-4cd2-9b07-d0fffe1f7d4d 2026-02-19 10:16:36,414 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/a9e97a52-ff35-4cd2-9b07-d0fffe1f7d4d 2026-02-19 10:16:36,421 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/9830314b-3732-4b90-95d9-9cb87597b879 2026-02-19 10:16:36,435 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18195551:ctest-vn4-86176031', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-18195551', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11516656869295212224', 'uuid-lslong': '10577470510285313351'}, 'enable': 'true', 'created': '2026-02-19T10:16:35', 'last-modified': '2026-02-19T10:16:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.731205'} 2026-02-19 10:16:36,441 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-19 10:16:36,441 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-86176031 passed 2026-02-19 10:16:36,441 - DEBUG - ====Verifying policy data for ctest-vn4-86176031 in API_Server ====== 2026-02-19 10:16:36,441 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-02-19 10:16:36,447 - DEBUG - Requesting: http://10.0.0.242:8082/domain/b0c3b526-e381-4c94-87da-52f48c067071 2026-02-19 10:16:36,457 - DEBUG - Requesting: http://10.0.0.242:8082/project/1290755f-951a-4b60-b2bc-385e5d76e2c7 2026-02-19 10:16:36,532 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/9fd36267-9e67-46c0-92ca-b96323b9d547 2026-02-19 10:16:36,543 - DEBUG - ==>Verifying data for policy with id: ca6b8662-3236-44d8-b6f2-0a120ea41be1, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18195551', 'ctest-policy1-22783776'] 2026-02-19 10:16:36,544 - INFO - VN ctest-vn4-86176031 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-19 10:16:36,544 - DEBUG - Verifying the vn in opserver 2026-02-19 10:16:36,544 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18195551:ctest-vn4-86176031 virtual network link through opserver 10.0.0.242 2026-02-19 10:16:36,544 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-02-19 10:16:36,838 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-02-19 10:16:36,907 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18195551:ctest-vn4-86176031', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18195551:ctest-vn4-86176031?flat'} 2026-02-19 10:16:36,907 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18195551:ctest-vn4-86176031 is found in opserver 2026-02-19 10:16:36,916 - DEBUG - Do not have enough data to verify VN in agent 2026-02-19 10:16:36,921 - DEBUG - VRF ids for VN ctest-vn4-86176031: {} 2026-02-19 10:16:36,921 - DEBUG - ====Verifying data for ctest-policy1-22783776 in API_Server ====== 2026-02-19 10:16:36,921 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-02-19 10:16:36,928 - DEBUG - Requesting: http://10.0.0.242:8082/domain/b0c3b526-e381-4c94-87da-52f48c067071 2026-02-19 10:16:36,939 - DEBUG - Requesting: http://10.0.0.242:8082/project/1290755f-951a-4b60-b2bc-385e5d76e2c7 2026-02-19 10:16:37,007 - DEBUG - Requesting: http://10.0.0.242:8082/network-policy/ca6b8662-3236-44d8-b6f2-0a120ea41be1 2026-02-19 10:16:37,017 - INFO - Verified policy ctest-policy1-22783776 in API Server, Result: True 2026-02-19 10:16:37,018 - INFO - Done with setup and verification, moving onto test .. 2026-02-19 10:16:37,027 - INFO - Deleting VN ctest-vn4-86176031 2026-02-19 10:16:37,155 - DEBUG - Response for deleting network () 2026-02-19 10:16:37,156 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/a9e97a52-ff35-4cd2-9b07-d0fffe1f7d4d 2026-02-19 10:16:37,161 - DEBUG - Response Code: 404 2026-02-19 10:16:37,161 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-02-19 10:16:37,167 - DEBUG - Requesting: http://10.0.0.242:8082/domain/b0c3b526-e381-4c94-87da-52f48c067071 2026-02-19 10:16:37,221 - DEBUG - Requesting: http://10.0.0.242:8082/project/1290755f-951a-4b60-b2bc-385e5d76e2c7 2026-02-19 10:16:37,296 - INFO - Validated that VN ctest-vn4-86176031 is not found in API Server 2026-02-19 10:16:37,307 - DEBUG - VN ctest-vn4-86176031 is not present in Agent 10.0.0.242 2026-02-19 10:16:37,307 - INFO - Validated that VN ctest-vn4-86176031 is not in any agent 2026-02-19 10:16:37,322 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-86176031 info 2026-02-19 10:16:37,349 - INFO - Deleted policy ctest-policy1-22783776 2026-02-19 10:16:37,516 - DEBUG - policy ctest-policy1-22783776 is not found in API Server 2026-02-19 10:16:37,773 - DEBUG - No XMPP flaps were noticed during the test
2026-02-19 10:16:37,773 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-19 10:16:37,773 - INFO - -------------------------------------------------------------------------------- 2026-02-19 10:16:38,061 - DEBUG - No XMPP flaps were noticed during the test
2026-02-19 10:16:38,061 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-02-19 10:16:38,061 - INFO - -------------------------------------------------------------------------------- 2026-02-19 10:16:38,747 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-18195551, ID : 1290755f-951a-4b60-b2bc-385e5d76e2c7