2025-10-30 22:07:05,299 - INFO - Domain Default found not creating 2025-10-30 22:07:05,465 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-85178585 not found, creating it 2025-10-30 22:07:05,942 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-85178585, ID : 34fef1b9-0ee1-4829-bf0d-f98fc28c6ea7 2025-10-30 22:07:07,373 - INFO - ================================================================================ 2025-10-30 22:07:07,373 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-30 22:07:07,630 - DEBUG - Nothing to compare xmpp stats {'10.0.0.131': {'10.20.0.5': '0'}} with 2025-10-30 22:07:07,630 - INFO - Initial checks done. Running the testcase now 2025-10-30 22:07:07,630 - INFO - 2025-10-30 22:07:07,631 - INFO - ================================================================================ 2025-10-30 22:07:07,631 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-30 22:07:07,631 - 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-10-30 22:07:07,915 - DEBUG - Nothing to compare xmpp stats {'10.0.0.131': {'10.20.0.5': '0'}} with 2025-10-30 22:07:07,915 - INFO - Initial checks done. Running the testcase now 2025-10-30 22:07:07,915 - INFO - 2025-10-30 22:07:08,296 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85178585:ctest-vn4-72303494, 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-85178585:ctest-vn4-72303494, 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-85178585:ctest-vn4-72303494, 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-85178585:ctest-vn4-72303494, 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-10-30 22:07:08,819 - DEBUG - Response for create_network : {'network': {'id': '9e62e1ef-3778-4101-a9cf-273d162201ed', 'name': 'ctest-vn4-72303494', 'tenant_id': '34fef1b90ee14829bf0df98fc28c6ea7', 'project_id': '34fef1b90ee14829bf0df98fc28c6ea7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85178585', 'ctest-vn4-72303494'], 'port_security_enabled': True, 'description': ''}} 2025-10-30 22:07:09,037 - DEBUG - Response for create_subnet : {'subnet': {'id': '3dc1ac2b-a1c3-4693-8215-aa14f01904b3', 'name': '', 'tenant_id': '34fef1b90ee14829bf0df98fc28c6ea7', 'network_id': '9e62e1ef-3778-4101-a9cf-273d162201ed', 'ip_version': 4, 'cidr': '36.209.46.128/26', 'allocation_pools': [{'start': '36.209.46.130', 'end': '36.209.46.190'}], 'gateway_ip': '36.209.46.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '36.209.46.130', 'tags': [], 'project_id': '34fef1b90ee14829bf0df98fc28c6ea7'}} 2025-10-30 22:07:09,205 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e6af302f-6b32-4a54-8a60-0227e55f4b61', 'name': '', 'tenant_id': '34fef1b90ee14829bf0df98fc28c6ea7', 'network_id': '9e62e1ef-3778-4101-a9cf-273d162201ed', 'ip_version': 6, 'cidr': '2fd9:8a97:80ff:bd9:8dd5:9333::/96', 'allocation_pools': [{'start': '2fd9:8a97:80ff:bd9:8dd5:9333:0:2', 'end': '2fd9:8a97:80ff:bd9:8dd5:9333:ffff:fffe'}], 'gateway_ip': '2fd9:8a97:80ff:bd9:8dd5:9333:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2fd9:8a97:80ff:bd9:8dd5:9333:0:2', 'tags': [], 'project_id': '34fef1b90ee14829bf0df98fc28c6ea7'}} 2025-10-30 22:07:09,228 - INFO - Created VN ctest-vn4-72303494 2025-10-30 22:07:09,282 - DEBUG - VN ctest-vn4-72303494 UUID is 9e62e1ef-3778-4101-a9cf-273d162201ed 2025-10-30 22:07:09,498 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9e62e1ef-3778-4101-a9cf-273d162201ed', 'name': 'ctest-vn4-72303494', 'tenant_id': '34fef1b90ee14829bf0df98fc28c6ea7', 'project_id': '34fef1b90ee14829bf0df98fc28c6ea7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3dc1ac2b-a1c3-4693-8215-aa14f01904b3', 'e6af302f-6b32-4a54-8a60-0227e55f4b61'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85178585', 'ctest-vn4-72303494'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85178585', 'ctest-policy1-66064430']], 'subnet_ipam': [{'subnet_cidr': '36.209.46.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2fd9:8a97:80ff:bd9:8dd5:9333::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-30 22:07:09,666 - DEBUG - Requesting: http://10.0.0.131:8082/domains 2025-10-30 22:07:09,963 - DEBUG - Requesting: http://10.0.0.131:8082/domains 2025-10-30 22:07:09,994 - DEBUG - Requesting: http://10.0.0.131:8082/domain/db9e8859-5248-4656-9cff-a6381aae9e19 2025-10-30 22:07:10,007 - DEBUG - Requesting: http://10.0.0.131:8082/project/34fef1b9-0ee1-4829-bf0d-f98fc28c6ea7 2025-10-30 22:07:10,084 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/9e62e1ef-3778-4101-a9cf-273d162201ed 2025-10-30 22:07:10,095 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/9e62e1ef-3778-4101-a9cf-273d162201ed 2025-10-30 22:07:10,103 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/af9e3357-fb0b-4760-b163-c4e563a2aa00 2025-10-30 22:07:10,109 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/af9e3357-fb0b-4760-b163-c4e563a2aa00 2025-10-30 22:07:10,115 - DEBUG - Requesting: http://10.0.0.131:8082/route-target/8b44418a-0d67-458b-a29e-707f965240ef 2025-10-30 22:07:10,121 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-30 22:07:10,121 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/9e62e1ef-3778-4101-a9cf-273d162201ed 2025-10-30 22:07:10,132 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/af9e3357-fb0b-4760-b163-c4e563a2aa00 2025-10-30 22:07:10,238 - INFO - Verified VN network id 11 for VN 9e62e1ef-3778-4101-a9cf-273d162201ed 2025-10-30 22:07:10,238 - INFO - Verifications in API Server for VN ctest-vn4-72303494 passed 2025-10-30 22:07:10,238 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/9e62e1ef-3778-4101-a9cf-273d162201ed 2025-10-30 22:07:10,251 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/af9e3357-fb0b-4760-b163-c4e563a2aa00 2025-10-30 22:07:10,259 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/af9e3357-fb0b-4760-b163-c4e563a2aa00 2025-10-30 22:07:10,269 - DEBUG - Requesting: http://10.0.0.131:8082/route-target/8b44418a-0d67-458b-a29e-707f965240ef 2025-10-30 22:07:10,284 - DEBUG - Control-node 10.0.0.131 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85178585:ctest-vn4-72303494', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-85178585', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11412932823254319361', 'uuid-lslong': '12236041855906742765'}, 'enable': 'true', 'created': '2025-10-30T22:07:08', 'last-modified': '2025-10-30T22:07:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.809833'} 2025-10-30 22:07:10,291 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-30 22:07:10,291 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-72303494 passed 2025-10-30 22:07:10,291 - DEBUG - ====Verifying policy data for ctest-vn4-72303494 in API_Server ====== 2025-10-30 22:07:10,291 - DEBUG - Requesting: http://10.0.0.131:8082/domains 2025-10-30 22:07:10,297 - DEBUG - Requesting: http://10.0.0.131:8082/domain/db9e8859-5248-4656-9cff-a6381aae9e19 2025-10-30 22:07:10,309 - DEBUG - Requesting: http://10.0.0.131:8082/project/34fef1b9-0ee1-4829-bf0d-f98fc28c6ea7 2025-10-30 22:07:10,390 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/9e62e1ef-3778-4101-a9cf-273d162201ed 2025-10-30 22:07:10,400 - DEBUG - ==>Verifying data for policy with id: 96324c1a-009b-4bd8-8d61-22d07cf45b97, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85178585', 'ctest-policy1-66064430'] 2025-10-30 22:07:10,400 - INFO - VN ctest-vn4-72303494 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-30 22:07:10,400 - DEBUG - Verifying the vn in opserver 2025-10-30 22:07:10,400 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85178585:ctest-vn4-72303494 virtual network link through opserver 10.0.0.131 2025-10-30 22:07:10,400 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks 2025-10-30 22:07:10,703 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks 2025-10-30 22:07:10,767 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85178585:ctest-vn4-72303494', 'href': 'http://10.0.0.131:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85178585:ctest-vn4-72303494?flat'} 2025-10-30 22:07:10,767 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85178585:ctest-vn4-72303494 is found in opserver 2025-10-30 22:07:10,777 - DEBUG - Do not have enough data to verify VN in agent 2025-10-30 22:07:10,781 - DEBUG - VRF ids for VN ctest-vn4-72303494: {} 2025-10-30 22:07:10,782 - DEBUG - ====Verifying data for ctest-policy1-66064430 in API_Server ====== 2025-10-30 22:07:10,782 - DEBUG - Requesting: http://10.0.0.131:8082/domains 2025-10-30 22:07:10,788 - DEBUG - Requesting: http://10.0.0.131:8082/domain/db9e8859-5248-4656-9cff-a6381aae9e19 2025-10-30 22:07:10,798 - DEBUG - Requesting: http://10.0.0.131:8082/project/34fef1b9-0ee1-4829-bf0d-f98fc28c6ea7 2025-10-30 22:07:10,865 - DEBUG - Requesting: http://10.0.0.131:8082/network-policy/96324c1a-009b-4bd8-8d61-22d07cf45b97 2025-10-30 22:07:10,875 - INFO - Verified policy ctest-policy1-66064430 in API Server, Result: True 2025-10-30 22:07:10,875 - INFO - Done with setup and verification, moving onto test .. 2025-10-30 22:07:10,883 - INFO - Deleting VN ctest-vn4-72303494 2025-10-30 22:07:11,001 - DEBUG - Response for deleting network () 2025-10-30 22:07:11,001 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/af9e3357-fb0b-4760-b163-c4e563a2aa00 2025-10-30 22:07:11,007 - DEBUG - Response Code: 404 2025-10-30 22:07:11,007 - DEBUG - Requesting: http://10.0.0.131:8082/domains 2025-10-30 22:07:11,013 - DEBUG - Requesting: http://10.0.0.131:8082/domain/db9e8859-5248-4656-9cff-a6381aae9e19 2025-10-30 22:07:11,071 - DEBUG - Requesting: http://10.0.0.131:8082/project/34fef1b9-0ee1-4829-bf0d-f98fc28c6ea7 2025-10-30 22:07:11,148 - INFO - Validated that VN ctest-vn4-72303494 is not found in API Server 2025-10-30 22:07:11,159 - DEBUG - VN ctest-vn4-72303494 is not present in Agent 10.0.0.131 2025-10-30 22:07:11,159 - INFO - Validated that VN ctest-vn4-72303494 is not in any agent 2025-10-30 22:07:11,172 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-72303494 info 2025-10-30 22:07:11,198 - INFO - Deleted policy ctest-policy1-66064430 2025-10-30 22:07:11,374 - DEBUG - policy ctest-policy1-66064430 is not found in API Server 2025-10-30 22:07:11,639 - DEBUG - No XMPP flaps were noticed during the test
2025-10-30 22:07:11,639 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-30 22:07:11,639 - INFO - -------------------------------------------------------------------------------- 2025-10-30 22:07:11,923 - DEBUG - No XMPP flaps were noticed during the test
2025-10-30 22:07:11,923 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-30 22:07:11,923 - INFO - -------------------------------------------------------------------------------- 2025-10-30 22:07:12,600 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-85178585, ID : 34fef1b9-0ee1-4829-bf0d-f98fc28c6ea7