2025-11-05 10:21:29,945 - INFO - Domain Default found not creating 2025-11-05 10:21:30,091 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-65787475 not found, creating it 2025-11-05 10:21:30,519 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-65787475, ID : d5840dbc-f809-419b-a227-10d6f94d24b9 2025-11-05 10:21:31,906 - INFO - ================================================================================ 2025-11-05 10:21:31,906 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-05 10:21:32,165 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2025-11-05 10:21:32,165 - INFO - Initial checks done. Running the testcase now 2025-11-05 10:21:32,165 - INFO - 2025-11-05 10:21:32,165 - INFO - ================================================================================ 2025-11-05 10:21:32,165 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-05 10:21:32,165 - 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-05 10:21:32,452 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2025-11-05 10:21:32,452 - INFO - Initial checks done. Running the testcase now 2025-11-05 10:21:32,452 - INFO - 2025-11-05 10:21:32,791 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65787475:ctest-vn4-95725085, 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-65787475:ctest-vn4-95725085, 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-65787475:ctest-vn4-95725085, 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-65787475:ctest-vn4-95725085, 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-05 10:21:33,287 - DEBUG - Response for create_network : {'network': {'id': 'f6935d85-52bc-4c4c-ac33-8ab864598d8b', 'name': 'ctest-vn4-95725085', 'tenant_id': 'd5840dbcf809419ba22710d6f94d24b9', 'project_id': 'd5840dbcf809419ba22710d6f94d24b9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-65787475', 'ctest-vn4-95725085'], 'port_security_enabled': True, 'description': ''}} 2025-11-05 10:21:33,493 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c730e305-0531-427b-9d5f-609a63ef2386', 'name': '', 'tenant_id': 'd5840dbcf809419ba22710d6f94d24b9', 'network_id': 'f6935d85-52bc-4c4c-ac33-8ab864598d8b', 'ip_version': 4, 'cidr': '135.67.74.64/26', 'allocation_pools': [{'start': '135.67.74.66', 'end': '135.67.74.126'}], 'gateway_ip': '135.67.74.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '135.67.74.66', 'tags': [], 'project_id': 'd5840dbcf809419ba22710d6f94d24b9'}} 2025-11-05 10:21:33,653 - DEBUG - Response for create_subnet : {'subnet': {'id': '612bbffa-f7e4-4557-ac8f-5561d4869902', 'name': '', 'tenant_id': 'd5840dbcf809419ba22710d6f94d24b9', 'network_id': 'f6935d85-52bc-4c4c-ac33-8ab864598d8b', 'ip_version': 6, 'cidr': '3aec:1252:92d4:7419:36a1:9767::/96', 'allocation_pools': [{'start': '3aec:1252:92d4:7419:36a1:9767:0:2', 'end': '3aec:1252:92d4:7419:36a1:9767:ffff:fffe'}], 'gateway_ip': '3aec:1252:92d4:7419:36a1:9767:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3aec:1252:92d4:7419:36a1:9767:0:2', 'tags': [], 'project_id': 'd5840dbcf809419ba22710d6f94d24b9'}} 2025-11-05 10:21:33,671 - INFO - Created VN ctest-vn4-95725085 2025-11-05 10:21:33,724 - DEBUG - VN ctest-vn4-95725085 UUID is f6935d85-52bc-4c4c-ac33-8ab864598d8b 2025-11-05 10:21:33,910 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f6935d85-52bc-4c4c-ac33-8ab864598d8b', 'name': 'ctest-vn4-95725085', 'tenant_id': 'd5840dbcf809419ba22710d6f94d24b9', 'project_id': 'd5840dbcf809419ba22710d6f94d24b9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c730e305-0531-427b-9d5f-609a63ef2386', '612bbffa-f7e4-4557-ac8f-5561d4869902'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-65787475', 'ctest-vn4-95725085'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-65787475', 'ctest-policy1-16386157']], 'subnet_ipam': [{'subnet_cidr': '135.67.74.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3aec:1252:92d4:7419:36a1:9767::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-05 10:21:34,068 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-05 10:21:34,358 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-05 10:21:34,383 - DEBUG - Requesting: http://10.0.0.22:8082/domain/dc9eb001-0a20-4e7f-a58b-b9d10f002181 2025-11-05 10:21:34,393 - DEBUG - Requesting: http://10.0.0.22:8082/project/d5840dbc-f809-419b-a227-10d6f94d24b9 2025-11-05 10:21:34,467 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f6935d85-52bc-4c4c-ac33-8ab864598d8b 2025-11-05 10:21:34,477 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f6935d85-52bc-4c4c-ac33-8ab864598d8b 2025-11-05 10:21:34,485 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/fa78651c-88d7-4b7a-a4d2-19ef7e896955 2025-11-05 10:21:34,490 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/fa78651c-88d7-4b7a-a4d2-19ef7e896955 2025-11-05 10:21:34,495 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/232169b6-23c2-466e-94b8-ae759686687d 2025-11-05 10:21:34,500 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-05 10:21:34,500 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f6935d85-52bc-4c4c-ac33-8ab864598d8b 2025-11-05 10:21:34,507 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/fa78651c-88d7-4b7a-a4d2-19ef7e896955 2025-11-05 10:21:34,519 - INFO - Verified VN network id 11 for VN f6935d85-52bc-4c4c-ac33-8ab864598d8b 2025-11-05 10:21:34,519 - INFO - Verifications in API Server for VN ctest-vn4-95725085 passed 2025-11-05 10:21:34,519 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f6935d85-52bc-4c4c-ac33-8ab864598d8b 2025-11-05 10:21:34,527 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/fa78651c-88d7-4b7a-a4d2-19ef7e896955 2025-11-05 10:21:34,533 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/fa78651c-88d7-4b7a-a4d2-19ef7e896955 2025-11-05 10:21:34,538 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/232169b6-23c2-466e-94b8-ae759686687d 2025-11-05 10:21:34,548 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65787475:ctest-vn4-95725085', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-65787475', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17767647782106844236', 'uuid-lslong': '12408413922898054539'}, 'enable': 'true', 'created': '2025-11-05T10:21:33', 'last-modified': '2025-11-05T10:21:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.661701'} 2025-11-05 10:21:34,554 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-05 10:21:34,554 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-95725085 passed 2025-11-05 10:21:34,554 - DEBUG - ====Verifying policy data for ctest-vn4-95725085 in API_Server ====== 2025-11-05 10:21:34,554 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-05 10:21:34,558 - DEBUG - Requesting: http://10.0.0.22:8082/domain/dc9eb001-0a20-4e7f-a58b-b9d10f002181 2025-11-05 10:21:34,568 - DEBUG - Requesting: http://10.0.0.22:8082/project/d5840dbc-f809-419b-a227-10d6f94d24b9 2025-11-05 10:21:34,638 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f6935d85-52bc-4c4c-ac33-8ab864598d8b 2025-11-05 10:21:34,647 - DEBUG - ==>Verifying data for policy with id: ca65e5af-817f-44b4-a38c-0e106ef0f649, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-65787475', 'ctest-policy1-16386157'] 2025-11-05 10:21:34,647 - INFO - VN ctest-vn4-95725085 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-05 10:21:34,647 - DEBUG - Verifying the vn in opserver 2025-11-05 10:21:34,647 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65787475:ctest-vn4-95725085 virtual network link through opserver 10.0.0.22 2025-11-05 10:21:34,647 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-11-05 10:21:34,936 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-11-05 10:21:34,987 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65787475:ctest-vn4-95725085', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65787475:ctest-vn4-95725085?flat'} 2025-11-05 10:21:34,987 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65787475:ctest-vn4-95725085 is found in opserver 2025-11-05 10:21:34,995 - DEBUG - Do not have enough data to verify VN in agent 2025-11-05 10:21:34,999 - DEBUG - VRF ids for VN ctest-vn4-95725085: {} 2025-11-05 10:21:34,999 - DEBUG - ====Verifying data for ctest-policy1-16386157 in API_Server ====== 2025-11-05 10:21:34,999 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-05 10:21:35,004 - DEBUG - Requesting: http://10.0.0.22:8082/domain/dc9eb001-0a20-4e7f-a58b-b9d10f002181 2025-11-05 10:21:35,016 - DEBUG - Requesting: http://10.0.0.22:8082/project/d5840dbc-f809-419b-a227-10d6f94d24b9 2025-11-05 10:21:35,084 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/ca65e5af-817f-44b4-a38c-0e106ef0f649 2025-11-05 10:21:35,092 - INFO - Verified policy ctest-policy1-16386157 in API Server, Result: True 2025-11-05 10:21:35,092 - INFO - Done with setup and verification, moving onto test .. 2025-11-05 10:21:35,099 - INFO - Deleting VN ctest-vn4-95725085 2025-11-05 10:21:35,253 - DEBUG - Response for deleting network () 2025-11-05 10:21:35,253 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/fa78651c-88d7-4b7a-a4d2-19ef7e896955 2025-11-05 10:21:35,257 - DEBUG - Response Code: 404 2025-11-05 10:21:35,257 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-05 10:21:35,262 - DEBUG - Requesting: http://10.0.0.22:8082/domain/dc9eb001-0a20-4e7f-a58b-b9d10f002181 2025-11-05 10:21:35,314 - DEBUG - Requesting: http://10.0.0.22:8082/project/d5840dbc-f809-419b-a227-10d6f94d24b9 2025-11-05 10:21:35,385 - INFO - Validated that VN ctest-vn4-95725085 is not found in API Server 2025-11-05 10:21:35,395 - DEBUG - VN ctest-vn4-95725085 is not present in Agent 10.0.0.22 2025-11-05 10:21:35,395 - INFO - Validated that VN ctest-vn4-95725085 is not in any agent 2025-11-05 10:21:35,410 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-95725085 info 2025-11-05 10:21:35,436 - INFO - Deleted policy ctest-policy1-16386157 2025-11-05 10:21:35,604 - DEBUG - policy ctest-policy1-16386157 is not found in API Server 2025-11-05 10:21:35,860 - DEBUG - No XMPP flaps were noticed during the test
2025-11-05 10:21:35,860 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03]
2025-11-05 10:21:35,860 - INFO - -------------------------------------------------------------------------------- 2025-11-05 10:21:36,155 - DEBUG - No XMPP flaps were noticed during the test
2025-11-05 10:21:36,155 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-11-05 10:21:36,155 - INFO - -------------------------------------------------------------------------------- 2025-11-05 10:21:36,823 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-65787475, ID : d5840dbc-f809-419b-a227-10d6f94d24b9