2025-11-14 07:51:27,091 - INFO - Domain Default found not creating 2025-11-14 07:51:27,256 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-28811507 not found, creating it 2025-11-14 07:51:27,731 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-28811507, ID : 53add6dd-3e1c-44af-a42c-a0e63da3d898 2025-11-14 07:51:29,728 - INFO - ================================================================================ 2025-11-14 07:51:29,728 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-14 07:51:29,986 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.14': '0'}} with 2025-11-14 07:51:29,986 - INFO - Initial checks done. Running the testcase now 2025-11-14 07:51:29,986 - INFO - 2025-11-14 07:51:29,986 - INFO - ================================================================================ 2025-11-14 07:51:29,986 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-14 07:51:29,986 - 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-11-14 07:51:30,278 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.14': '0'}} with 2025-11-14 07:51:30,278 - INFO - Initial checks done. Running the testcase now 2025-11-14 07:51:30,278 - INFO - 2025-11-14 07:51:30,673 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28811507:ctest-vn4-65552305, 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-28811507:ctest-vn4-65552305, 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-28811507:ctest-vn4-65552305, 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-28811507:ctest-vn4-65552305, 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-11-14 07:51:31,187 - DEBUG - Response for create_network : {'network': {'id': '4af95f8e-541e-48dc-907d-609a6d4d8df2', 'name': 'ctest-vn4-65552305', 'tenant_id': '53add6dd3e1c44afa42ca0e63da3d898', 'project_id': '53add6dd3e1c44afa42ca0e63da3d898', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-28811507', 'ctest-vn4-65552305'], 'port_security_enabled': True, 'description': ''}} 2025-11-14 07:51:31,374 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd0238b16-c3f5-4073-90f7-1b47579c8327', 'name': '', 'tenant_id': '53add6dd3e1c44afa42ca0e63da3d898', 'network_id': '4af95f8e-541e-48dc-907d-609a6d4d8df2', 'ip_version': 4, 'cidr': '29.64.120.128/26', 'allocation_pools': [{'start': '29.64.120.130', 'end': '29.64.120.190'}], 'gateway_ip': '29.64.120.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '29.64.120.130', 'tags': [], 'project_id': '53add6dd3e1c44afa42ca0e63da3d898'}} 2025-11-14 07:51:31,583 - DEBUG - Response for create_subnet : {'subnet': {'id': '3e89a1e3-8f0c-412a-8534-392a91b6a516', 'name': '', 'tenant_id': '53add6dd3e1c44afa42ca0e63da3d898', 'network_id': '4af95f8e-541e-48dc-907d-609a6d4d8df2', 'ip_version': 6, 'cidr': '3576:95d5:84d3:9da6:dc06:6320::/96', 'allocation_pools': [{'start': '3576:95d5:84d3:9da6:dc06:6320:0:2', 'end': '3576:95d5:84d3:9da6:dc06:6320:ffff:fffe'}], 'gateway_ip': '3576:95d5:84d3:9da6:dc06:6320:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3576:95d5:84d3:9da6:dc06:6320:0:2', 'tags': [], 'project_id': '53add6dd3e1c44afa42ca0e63da3d898'}} 2025-11-14 07:51:31,604 - INFO - Created VN ctest-vn4-65552305 2025-11-14 07:51:31,657 - DEBUG - VN ctest-vn4-65552305 UUID is 4af95f8e-541e-48dc-907d-609a6d4d8df2 2025-11-14 07:51:31,883 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4af95f8e-541e-48dc-907d-609a6d4d8df2', 'name': 'ctest-vn4-65552305', 'tenant_id': '53add6dd3e1c44afa42ca0e63da3d898', 'project_id': '53add6dd3e1c44afa42ca0e63da3d898', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d0238b16-c3f5-4073-90f7-1b47579c8327', '3e89a1e3-8f0c-412a-8534-392a91b6a516'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-28811507', 'ctest-vn4-65552305'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-28811507', 'ctest-policy1-60009289']], 'subnet_ipam': [{'subnet_cidr': '29.64.120.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3576:95d5:84d3:9da6:dc06:6320::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-14 07:51:32,049 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-11-14 07:51:32,351 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-11-14 07:51:32,391 - DEBUG - Requesting: http://10.0.0.141:8082/domain/cca70740-afe2-4c9c-87cf-b2c7b25a6d2c 2025-11-14 07:51:32,405 - DEBUG - Requesting: http://10.0.0.141:8082/project/53add6dd-3e1c-44af-a42c-a0e63da3d898 2025-11-14 07:51:32,482 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/4af95f8e-541e-48dc-907d-609a6d4d8df2 2025-11-14 07:51:32,494 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/4af95f8e-541e-48dc-907d-609a6d4d8df2 2025-11-14 07:51:32,503 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/27abeae1-8b32-45fc-8d39-3e196c638a73 2025-11-14 07:51:32,510 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/27abeae1-8b32-45fc-8d39-3e196c638a73 2025-11-14 07:51:32,522 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/0af8d16c-a40f-46ce-82c4-f42260875bb8 2025-11-14 07:51:32,529 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-14 07:51:32,529 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/4af95f8e-541e-48dc-907d-609a6d4d8df2 2025-11-14 07:51:32,538 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/27abeae1-8b32-45fc-8d39-3e196c638a73 2025-11-14 07:51:32,552 - INFO - Verified VN network id 11 for VN 4af95f8e-541e-48dc-907d-609a6d4d8df2 2025-11-14 07:51:32,552 - INFO - Verifications in API Server for VN ctest-vn4-65552305 passed 2025-11-14 07:51:32,552 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/4af95f8e-541e-48dc-907d-609a6d4d8df2 2025-11-14 07:51:32,563 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/27abeae1-8b32-45fc-8d39-3e196c638a73 2025-11-14 07:51:32,569 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/27abeae1-8b32-45fc-8d39-3e196c638a73 2025-11-14 07:51:32,577 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/0af8d16c-a40f-46ce-82c4-f42260875bb8 2025-11-14 07:51:32,589 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28811507:ctest-vn4-65552305', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-28811507', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5402454292908886236', 'uuid-lslong': '10411584129925484018'}, 'enable': 'true', 'created': '2025-11-14T07:51:31', 'last-modified': '2025-11-14T07:51:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.740654'} 2025-11-14 07:51:32,595 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-14 07:51:32,595 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-65552305 passed 2025-11-14 07:51:32,595 - DEBUG - ====Verifying policy data for ctest-vn4-65552305 in API_Server ====== 2025-11-14 07:51:32,595 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-11-14 07:51:32,600 - DEBUG - Requesting: http://10.0.0.141:8082/domain/cca70740-afe2-4c9c-87cf-b2c7b25a6d2c 2025-11-14 07:51:32,611 - DEBUG - Requesting: http://10.0.0.141:8082/project/53add6dd-3e1c-44af-a42c-a0e63da3d898 2025-11-14 07:51:32,692 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/4af95f8e-541e-48dc-907d-609a6d4d8df2 2025-11-14 07:51:32,701 - DEBUG - ==>Verifying data for policy with id: 4e15e9ed-22ca-4261-bbe8-5b18657cae23, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-28811507', 'ctest-policy1-60009289'] 2025-11-14 07:51:32,701 - INFO - VN ctest-vn4-65552305 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-14 07:51:32,701 - DEBUG - Verifying the vn in opserver 2025-11-14 07:51:32,701 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28811507:ctest-vn4-65552305 virtual network link through opserver 10.0.0.141 2025-11-14 07:51:32,701 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-11-14 07:51:32,999 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-11-14 07:51:33,063 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28811507:ctest-vn4-65552305', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28811507:ctest-vn4-65552305?flat'} 2025-11-14 07:51:33,063 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28811507:ctest-vn4-65552305 is found in opserver 2025-11-14 07:51:33,073 - DEBUG - Do not have enough data to verify VN in agent 2025-11-14 07:51:33,077 - DEBUG - VRF ids for VN ctest-vn4-65552305: {} 2025-11-14 07:51:33,078 - DEBUG - ====Verifying data for ctest-policy1-60009289 in API_Server ====== 2025-11-14 07:51:33,078 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-11-14 07:51:33,083 - DEBUG - Requesting: http://10.0.0.141:8082/domain/cca70740-afe2-4c9c-87cf-b2c7b25a6d2c 2025-11-14 07:51:33,093 - DEBUG - Requesting: http://10.0.0.141:8082/project/53add6dd-3e1c-44af-a42c-a0e63da3d898 2025-11-14 07:51:33,162 - DEBUG - Requesting: http://10.0.0.141:8082/network-policy/4e15e9ed-22ca-4261-bbe8-5b18657cae23 2025-11-14 07:51:33,170 - INFO - Verified policy ctest-policy1-60009289 in API Server, Result: True 2025-11-14 07:51:33,170 - INFO - Done with setup and verification, moving onto test .. 2025-11-14 07:51:33,179 - INFO - Deleting VN ctest-vn4-65552305 2025-11-14 07:51:33,289 - DEBUG - Response for deleting network () 2025-11-14 07:51:33,289 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/27abeae1-8b32-45fc-8d39-3e196c638a73 2025-11-14 07:51:33,294 - DEBUG - Response Code: 404 2025-11-14 07:51:33,294 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-11-14 07:51:33,300 - DEBUG - Requesting: http://10.0.0.141:8082/domain/cca70740-afe2-4c9c-87cf-b2c7b25a6d2c 2025-11-14 07:51:33,349 - DEBUG - Requesting: http://10.0.0.141:8082/project/53add6dd-3e1c-44af-a42c-a0e63da3d898 2025-11-14 07:51:33,422 - INFO - Validated that VN ctest-vn4-65552305 is not found in API Server 2025-11-14 07:51:33,432 - DEBUG - VN ctest-vn4-65552305 is not present in Agent 10.0.0.141 2025-11-14 07:51:33,432 - INFO - Validated that VN ctest-vn4-65552305 is not in any agent 2025-11-14 07:51:33,446 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-65552305 info 2025-11-14 07:51:33,466 - INFO - Deleted policy ctest-policy1-60009289 2025-11-14 07:51:33,625 - DEBUG - policy ctest-policy1-60009289 is not found in API Server 2025-11-14 07:51:33,879 - DEBUG - No XMPP flaps were noticed during the test
2025-11-14 07:51:33,879 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-11-14 07:51:33,879 - INFO - -------------------------------------------------------------------------------- 2025-11-14 07:51:34,166 - DEBUG - No XMPP flaps were noticed during the test
2025-11-14 07:51:34,166 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-11-14 07:51:34,166 - INFO - -------------------------------------------------------------------------------- 2025-11-14 07:51:34,831 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-28811507, ID : 53add6dd-3e1c-44af-a42c-a0e63da3d898