2025-12-01 02:23:43,225 - INFO - Domain Default found not creating 2025-12-01 02:23:43,445 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-62007169 not found, creating it 2025-12-01 02:23:43,976 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-62007169, ID : b1df0b84-bd22-4f83-abe1-ee62dc37347d 2025-12-01 02:23:45,720 - INFO - ================================================================================ 2025-12-01 02:23:45,720 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-01 02:23:45,983 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.252': '0'}} with 2025-12-01 02:23:45,983 - INFO - Initial checks done. Running the testcase now 2025-12-01 02:23:45,983 - INFO - 2025-12-01 02:23:45,983 - INFO - ================================================================================ 2025-12-01 02:23:45,983 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-01 02:23:45,984 - 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. 2025-12-01 02:23:46,274 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.252': '0'}} with 2025-12-01 02:23:46,274 - INFO - Initial checks done. Running the testcase now 2025-12-01 02:23:46,274 - INFO - 2025-12-01 02:23:46,647 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62007169:ctest-vn4-48022217, 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-62007169:ctest-vn4-48022217, 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-62007169:ctest-vn4-48022217, 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-62007169:ctest-vn4-48022217, 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] 2025-12-01 02:23:47,200 - DEBUG - Response for create_network : {'network': {'id': 'e4f805a0-80be-4b49-b03c-f067658209d5', 'name': 'ctest-vn4-48022217', 'tenant_id': 'b1df0b84bd224f83abe1ee62dc37347d', 'project_id': 'b1df0b84bd224f83abe1ee62dc37347d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-62007169', 'ctest-vn4-48022217'], 'port_security_enabled': True, 'description': ''}} 2025-12-01 02:23:47,350 - DEBUG - Response for create_subnet : {'subnet': {'id': '88ada0e2-eb51-4a60-b0a0-398dd40a2e06', 'name': '', 'tenant_id': 'b1df0b84bd224f83abe1ee62dc37347d', 'network_id': 'e4f805a0-80be-4b49-b03c-f067658209d5', 'ip_version': 4, 'cidr': '82.95.86.192/26', 'allocation_pools': [{'start': '82.95.86.194', 'end': '82.95.86.254'}], 'gateway_ip': '82.95.86.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '82.95.86.194', 'tags': [], 'project_id': 'b1df0b84bd224f83abe1ee62dc37347d'}} 2025-12-01 02:23:47,550 - DEBUG - Response for create_subnet : {'subnet': {'id': '574f1d0d-75db-4134-8745-a23a1659637c', 'name': '', 'tenant_id': 'b1df0b84bd224f83abe1ee62dc37347d', 'network_id': 'e4f805a0-80be-4b49-b03c-f067658209d5', 'ip_version': 6, 'cidr': '36c6:cbde:c1b2:296d:db78:1ef3::/96', 'allocation_pools': [{'start': '36c6:cbde:c1b2:296d:db78:1ef3:0:2', 'end': '36c6:cbde:c1b2:296d:db78:1ef3:ffff:fffe'}], 'gateway_ip': '36c6:cbde:c1b2:296d:db78:1ef3:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '36c6:cbde:c1b2:296d:db78:1ef3:0:2', 'tags': [], 'project_id': 'b1df0b84bd224f83abe1ee62dc37347d'}} 2025-12-01 02:23:47,572 - INFO - Created VN ctest-vn4-48022217 2025-12-01 02:23:47,625 - DEBUG - VN ctest-vn4-48022217 UUID is e4f805a0-80be-4b49-b03c-f067658209d5 2025-12-01 02:23:47,866 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e4f805a0-80be-4b49-b03c-f067658209d5', 'name': 'ctest-vn4-48022217', 'tenant_id': 'b1df0b84bd224f83abe1ee62dc37347d', 'project_id': 'b1df0b84bd224f83abe1ee62dc37347d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['88ada0e2-eb51-4a60-b0a0-398dd40a2e06', '574f1d0d-75db-4134-8745-a23a1659637c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-62007169', 'ctest-vn4-48022217'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-62007169', 'ctest-policy1-01326862']], 'subnet_ipam': [{'subnet_cidr': '82.95.86.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '36c6:cbde:c1b2:296d:db78:1ef3::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-01 02:23:48,045 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-12-01 02:23:48,355 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-12-01 02:23:48,392 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1cdd2d94-11f4-497d-babf-74acad61b1f0 2025-12-01 02:23:48,410 - DEBUG - Requesting: http://10.0.0.50:8082/project/b1df0b84-bd22-4f83-abe1-ee62dc37347d 2025-12-01 02:23:48,496 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e4f805a0-80be-4b49-b03c-f067658209d5 2025-12-01 02:23:48,511 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e4f805a0-80be-4b49-b03c-f067658209d5 2025-12-01 02:23:48,521 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d788dfe9-0359-4a60-aee6-3e60be6c92b8 2025-12-01 02:23:48,532 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d788dfe9-0359-4a60-aee6-3e60be6c92b8 2025-12-01 02:23:48,541 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/5b48ebd4-8ee7-4471-9c7e-f3ae28f4cb1a 2025-12-01 02:23:48,549 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-01 02:23:48,549 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e4f805a0-80be-4b49-b03c-f067658209d5 2025-12-01 02:23:48,562 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d788dfe9-0359-4a60-aee6-3e60be6c92b8 2025-12-01 02:23:48,580 - INFO - Verified VN network id 12 for VN e4f805a0-80be-4b49-b03c-f067658209d5 2025-12-01 02:23:48,580 - INFO - Verifications in API Server for VN ctest-vn4-48022217 passed 2025-12-01 02:23:48,580 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e4f805a0-80be-4b49-b03c-f067658209d5 2025-12-01 02:23:48,594 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d788dfe9-0359-4a60-aee6-3e60be6c92b8 2025-12-01 02:23:48,604 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d788dfe9-0359-4a60-aee6-3e60be6c92b8 2025-12-01 02:23:48,614 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/5b48ebd4-8ee7-4471-9c7e-f3ae28f4cb1a 2025-12-01 02:23:48,629 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62007169:ctest-vn4-48022217', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-62007169', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16498943421784673097', 'uuid-lslong': '12699289376153274837'}, 'enable': 'true', 'created': '2025-12-01T02:23:47', 'last-modified': '2025-12-01T02:23:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.790534'} 2025-12-01 02:23:48,636 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-01 02:23:48,636 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-48022217 passed 2025-12-01 02:23:48,637 - DEBUG - ====Verifying policy data for ctest-vn4-48022217 in API_Server ====== 2025-12-01 02:23:48,637 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-12-01 02:23:48,643 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1cdd2d94-11f4-497d-babf-74acad61b1f0 2025-12-01 02:23:48,656 - DEBUG - Requesting: http://10.0.0.50:8082/project/b1df0b84-bd22-4f83-abe1-ee62dc37347d 2025-12-01 02:23:48,729 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e4f805a0-80be-4b49-b03c-f067658209d5 2025-12-01 02:23:48,739 - DEBUG - ==>Verifying data for policy with id: db621d69-c914-4e7e-801a-d5609612a406, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-62007169', 'ctest-policy1-01326862'] 2025-12-01 02:23:48,739 - INFO - VN ctest-vn4-48022217 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-01 02:23:48,739 - DEBUG - Verifying the vn in opserver 2025-12-01 02:23:48,739 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62007169:ctest-vn4-48022217 virtual network link through opserver 10.0.0.50 2025-12-01 02:23:48,740 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-12-01 02:23:49,070 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-12-01 02:23:49,150 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62007169:ctest-vn4-48022217', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62007169:ctest-vn4-48022217?flat'} 2025-12-01 02:23:49,150 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62007169:ctest-vn4-48022217 is found in opserver 2025-12-01 02:23:49,166 - DEBUG - Do not have enough data to verify VN in agent 2025-12-01 02:23:49,172 - DEBUG - VRF ids for VN ctest-vn4-48022217: {} 2025-12-01 02:23:49,173 - DEBUG - ====Verifying data for ctest-policy1-01326862 in API_Server ====== 2025-12-01 02:23:49,173 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-12-01 02:23:49,181 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1cdd2d94-11f4-497d-babf-74acad61b1f0 2025-12-01 02:23:49,196 - DEBUG - Requesting: http://10.0.0.50:8082/project/b1df0b84-bd22-4f83-abe1-ee62dc37347d 2025-12-01 02:23:49,269 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/db621d69-c914-4e7e-801a-d5609612a406 2025-12-01 02:23:49,280 - INFO - Verified policy ctest-policy1-01326862 in API Server, Result: True 2025-12-01 02:23:49,280 - INFO - Done with setup and verification, moving onto test .. 2025-12-01 02:23:49,289 - INFO - Deleting VN ctest-vn4-48022217 2025-12-01 02:23:49,417 - DEBUG - Response for deleting network () 2025-12-01 02:23:49,418 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d788dfe9-0359-4a60-aee6-3e60be6c92b8 2025-12-01 02:23:49,424 - DEBUG - Response Code: 404 2025-12-01 02:23:49,424 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-12-01 02:23:49,431 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1cdd2d94-11f4-497d-babf-74acad61b1f0 2025-12-01 02:23:49,488 - DEBUG - Requesting: http://10.0.0.50:8082/project/b1df0b84-bd22-4f83-abe1-ee62dc37347d 2025-12-01 02:23:49,563 - INFO - Validated that VN ctest-vn4-48022217 is not found in API Server 2025-12-01 02:23:49,573 - DEBUG - VN ctest-vn4-48022217 is not present in Agent 10.0.0.50 2025-12-01 02:23:49,573 - INFO - Validated that VN ctest-vn4-48022217 is not in any agent 2025-12-01 02:23:49,589 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-48022217 info 2025-12-01 02:23:49,616 - INFO - Deleted policy ctest-policy1-01326862 2025-12-01 02:23:49,789 - DEBUG - policy ctest-policy1-01326862 is not found in API Server 2025-12-01 02:23:50,056 - DEBUG - No XMPP flaps were noticed during the test
2025-12-01 02:23:50,056 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-12-01 02:23:50,056 - INFO - -------------------------------------------------------------------------------- 2025-12-01 02:23:50,353 - DEBUG - No XMPP flaps were noticed during the test
2025-12-01 02:23:50,353 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-12-01 02:23:50,353 - INFO - -------------------------------------------------------------------------------- 2025-12-01 02:23:51,092 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-62007169, ID : b1df0b84-bd22-4f83-abe1-ee62dc37347d