2025-09-04 15:19:49,107 - INFO - Domain Default found not creating 2025-09-04 15:19:49,256 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-57042352 not found, creating it 2025-09-04 15:19:49,772 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-57042352, ID : 065ec5da-52f8-47b5-b523-f318d1f2c8e0 2025-09-04 15:19:51,316 - INFO - ================================================================================ 2025-09-04 15:19:51,316 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-04 15:19:51,579 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2025-09-04 15:19:51,579 - INFO - Initial checks done. Running the testcase now 2025-09-04 15:19:51,579 - INFO - 2025-09-04 15:19:51,579 - INFO - ================================================================================ 2025-09-04 15:19:51,579 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-04 15:19:51,580 - 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-09-04 15:19:51,874 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2025-09-04 15:19:51,874 - INFO - Initial checks done. Running the testcase now 2025-09-04 15:19:51,874 - INFO - 2025-09-04 15:19:52,264 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57042352:ctest-vn4-29483935, 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-57042352:ctest-vn4-29483935, 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-57042352:ctest-vn4-29483935, 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-57042352:ctest-vn4-29483935, 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-09-04 15:19:52,770 - DEBUG - Response for create_network : {'network': {'id': 'e80b754e-d7ab-451d-85b0-f50f752ac6b0', 'name': 'ctest-vn4-29483935', 'tenant_id': '065ec5da52f847b5b523f318d1f2c8e0', 'project_id': '065ec5da52f847b5b523f318d1f2c8e0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-57042352', 'ctest-vn4-29483935'], 'port_security_enabled': True, 'description': ''}} 2025-09-04 15:19:52,989 - DEBUG - Response for create_subnet : {'subnet': {'id': '7ed142b5-b1a3-4801-883b-e9096499bc88', 'name': '', 'tenant_id': '065ec5da52f847b5b523f318d1f2c8e0', 'network_id': 'e80b754e-d7ab-451d-85b0-f50f752ac6b0', 'ip_version': 4, 'cidr': '50.82.51.128/26', 'allocation_pools': [{'start': '50.82.51.130', 'end': '50.82.51.190'}], 'gateway_ip': '50.82.51.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '50.82.51.130', 'tags': [], 'project_id': '065ec5da52f847b5b523f318d1f2c8e0'}} 2025-09-04 15:19:53,251 - DEBUG - Response for create_subnet : {'subnet': {'id': '8b4c20e0-af6e-42ef-bd5b-b4187927e907', 'name': '', 'tenant_id': '065ec5da52f847b5b523f318d1f2c8e0', 'network_id': 'e80b754e-d7ab-451d-85b0-f50f752ac6b0', 'ip_version': 6, 'cidr': '304c:7a5b:5000:5e4d:4d4f:4600::/96', 'allocation_pools': [{'start': '304c:7a5b:5000:5e4d:4d4f:4600:0:2', 'end': '304c:7a5b:5000:5e4d:4d4f:4600:ffff:fffe'}], 'gateway_ip': '304c:7a5b:5000:5e4d:4d4f:4600:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '304c:7a5b:5000:5e4d:4d4f:4600:0:2', 'tags': [], 'project_id': '065ec5da52f847b5b523f318d1f2c8e0'}} 2025-09-04 15:19:53,272 - INFO - Created VN ctest-vn4-29483935 2025-09-04 15:19:53,329 - DEBUG - VN ctest-vn4-29483935 UUID is e80b754e-d7ab-451d-85b0-f50f752ac6b0 2025-09-04 15:19:53,535 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e80b754e-d7ab-451d-85b0-f50f752ac6b0', 'name': 'ctest-vn4-29483935', 'tenant_id': '065ec5da52f847b5b523f318d1f2c8e0', 'project_id': '065ec5da52f847b5b523f318d1f2c8e0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7ed142b5-b1a3-4801-883b-e9096499bc88', '8b4c20e0-af6e-42ef-bd5b-b4187927e907'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-57042352', 'ctest-vn4-29483935'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-57042352', 'ctest-policy1-44861534']], 'subnet_ipam': [{'subnet_cidr': '50.82.51.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '304c:7a5b:5000:5e4d:4d4f:4600::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-04 15:19:53,700 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-04 15:19:54,034 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-04 15:19:54,064 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9fff6ffd-9a96-4ff4-a10a-772bb83e8044 2025-09-04 15:19:54,075 - DEBUG - Requesting: http://10.0.0.22:8082/project/065ec5da-52f8-47b5-b523-f318d1f2c8e0 2025-09-04 15:19:54,153 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e80b754e-d7ab-451d-85b0-f50f752ac6b0 2025-09-04 15:19:54,164 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e80b754e-d7ab-451d-85b0-f50f752ac6b0 2025-09-04 15:19:54,173 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/297613ea-4d66-4e80-8464-9a2128659c30 2025-09-04 15:19:54,179 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/297613ea-4d66-4e80-8464-9a2128659c30 2025-09-04 15:19:54,185 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/22362d0d-e29c-435d-8bc6-a0c9d781151b 2025-09-04 15:19:54,190 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-04 15:19:54,190 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e80b754e-d7ab-451d-85b0-f50f752ac6b0 2025-09-04 15:19:54,199 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/297613ea-4d66-4e80-8464-9a2128659c30 2025-09-04 15:19:54,210 - INFO - Verified VN network id 11 for VN e80b754e-d7ab-451d-85b0-f50f752ac6b0 2025-09-04 15:19:54,210 - INFO - Verifications in API Server for VN ctest-vn4-29483935 passed 2025-09-04 15:19:54,210 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e80b754e-d7ab-451d-85b0-f50f752ac6b0 2025-09-04 15:19:54,218 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/297613ea-4d66-4e80-8464-9a2128659c30 2025-09-04 15:19:54,223 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/297613ea-4d66-4e80-8464-9a2128659c30 2025-09-04 15:19:54,229 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/22362d0d-e29c-435d-8bc6-a0c9d781151b 2025-09-04 15:19:54,239 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57042352:ctest-vn4-29483935', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-57042352', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16720587023029323037', 'uuid-lslong': '9633469049684543152'}, 'enable': 'true', 'created': '2025-09-04T15:19:52', 'last-modified': '2025-09-04T15:19:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.739123'} 2025-09-04 15:19:54,244 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-04 15:19:54,244 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-29483935 passed 2025-09-04 15:19:54,245 - DEBUG - ====Verifying policy data for ctest-vn4-29483935 in API_Server ====== 2025-09-04 15:19:54,245 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-04 15:19:54,249 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9fff6ffd-9a96-4ff4-a10a-772bb83e8044 2025-09-04 15:19:54,258 - DEBUG - Requesting: http://10.0.0.22:8082/project/065ec5da-52f8-47b5-b523-f318d1f2c8e0 2025-09-04 15:19:54,326 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e80b754e-d7ab-451d-85b0-f50f752ac6b0 2025-09-04 15:19:54,335 - DEBUG - ==>Verifying data for policy with id: 1d5e344e-49f1-44d7-ac45-fdac1de01209, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-57042352', 'ctest-policy1-44861534'] 2025-09-04 15:19:54,335 - INFO - VN ctest-vn4-29483935 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-04 15:19:54,335 - DEBUG - Verifying the vn in opserver 2025-09-04 15:19:54,335 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57042352:ctest-vn4-29483935 virtual network link through opserver 10.0.0.22 2025-09-04 15:19:54,336 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-09-04 15:19:54,673 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-09-04 15:19:54,731 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57042352:ctest-vn4-29483935', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57042352:ctest-vn4-29483935?flat'} 2025-09-04 15:19:54,731 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57042352:ctest-vn4-29483935 is found in opserver 2025-09-04 15:19:54,741 - DEBUG - Do not have enough data to verify VN in agent 2025-09-04 15:19:54,745 - DEBUG - VRF ids for VN ctest-vn4-29483935: {} 2025-09-04 15:19:54,745 - DEBUG - ====Verifying data for ctest-policy1-44861534 in API_Server ====== 2025-09-04 15:19:54,745 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-04 15:19:54,751 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9fff6ffd-9a96-4ff4-a10a-772bb83e8044 2025-09-04 15:19:54,761 - DEBUG - Requesting: http://10.0.0.22:8082/project/065ec5da-52f8-47b5-b523-f318d1f2c8e0 2025-09-04 15:19:54,843 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/1d5e344e-49f1-44d7-ac45-fdac1de01209 2025-09-04 15:19:54,852 - INFO - Verified policy ctest-policy1-44861534 in API Server, Result: True 2025-09-04 15:19:54,852 - INFO - Done with setup and verification, moving onto test .. 2025-09-04 15:19:54,858 - INFO - Deleting VN ctest-vn4-29483935 2025-09-04 15:19:54,972 - DEBUG - Response for deleting network () 2025-09-04 15:19:54,972 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/297613ea-4d66-4e80-8464-9a2128659c30 2025-09-04 15:19:54,976 - DEBUG - Response Code: 404 2025-09-04 15:19:54,976 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-04 15:19:54,981 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9fff6ffd-9a96-4ff4-a10a-772bb83e8044 2025-09-04 15:19:55,033 - DEBUG - Requesting: http://10.0.0.22:8082/project/065ec5da-52f8-47b5-b523-f318d1f2c8e0 2025-09-04 15:19:55,103 - INFO - Validated that VN ctest-vn4-29483935 is not found in API Server 2025-09-04 15:19:55,114 - DEBUG - VN ctest-vn4-29483935 is not present in Agent 10.0.0.22 2025-09-04 15:19:55,114 - INFO - Validated that VN ctest-vn4-29483935 is not in any agent 2025-09-04 15:19:55,127 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-29483935 info 2025-09-04 15:19:55,152 - INFO - Deleted policy ctest-policy1-44861534 2025-09-04 15:19:55,324 - DEBUG - policy ctest-policy1-44861534 is not found in API Server 2025-09-04 15:19:55,578 - DEBUG - No XMPP flaps were noticed during the test