2025-12-09 03:24:23,329 - INFO - Domain Default found not creating 2025-12-09 03:24:23,493 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-15064074 not found, creating it 2025-12-09 03:24:24,029 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-15064074, ID : 35950ab4-570d-4519-93c7-22f8f7e6bec5 2025-12-09 03:24:25,556 - INFO - ================================================================================ 2025-12-09 03:24:25,556 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-09 03:24:25,814 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.14': '0'}} with 2025-12-09 03:24:25,814 - INFO - Initial checks done. Running the testcase now 2025-12-09 03:24:25,815 - INFO - 2025-12-09 03:24:25,815 - INFO - ================================================================================ 2025-12-09 03:24:25,816 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-09 03:24:25,816 - 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-09 03:24:26,101 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.14': '0'}} with 2025-12-09 03:24:26,101 - INFO - Initial checks done. Running the testcase now 2025-12-09 03:24:26,101 - INFO - 2025-12-09 03:24:26,424 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15064074:ctest-vn4-79768081, 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-15064074:ctest-vn4-79768081, 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-15064074:ctest-vn4-79768081, 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-15064074:ctest-vn4-79768081, 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-09 03:24:26,916 - DEBUG - Response for create_network : {'network': {'id': '57150ea6-ea09-47da-9a77-ab081501cbce', 'name': 'ctest-vn4-79768081', 'tenant_id': '35950ab4570d451993c722f8f7e6bec5', 'project_id': '35950ab4570d451993c722f8f7e6bec5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-15064074', 'ctest-vn4-79768081'], 'port_security_enabled': True, 'description': ''}} 2025-12-09 03:24:27,136 - DEBUG - Response for create_subnet : {'subnet': {'id': '0d2ce027-3eec-4cda-be39-5298e47f7538', 'name': '', 'tenant_id': '35950ab4570d451993c722f8f7e6bec5', 'network_id': '57150ea6-ea09-47da-9a77-ab081501cbce', 'ip_version': 4, 'cidr': '82.30.179.64/26', 'allocation_pools': [{'start': '82.30.179.66', 'end': '82.30.179.126'}], 'gateway_ip': '82.30.179.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '82.30.179.66', 'tags': [], 'project_id': '35950ab4570d451993c722f8f7e6bec5'}} 2025-12-09 03:24:27,314 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c9c7fdfa-9941-4180-a6f8-76b7883ab0ae', 'name': '', 'tenant_id': '35950ab4570d451993c722f8f7e6bec5', 'network_id': '57150ea6-ea09-47da-9a77-ab081501cbce', 'ip_version': 6, 'cidr': '2fb2:84e7:4d24:6fcc:a3da:9b8f::/96', 'allocation_pools': [{'start': '2fb2:84e7:4d24:6fcc:a3da:9b8f:0:2', 'end': '2fb2:84e7:4d24:6fcc:a3da:9b8f:ffff:fffe'}], 'gateway_ip': '2fb2:84e7:4d24:6fcc:a3da:9b8f:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2fb2:84e7:4d24:6fcc:a3da:9b8f:0:2', 'tags': [], 'project_id': '35950ab4570d451993c722f8f7e6bec5'}} 2025-12-09 03:24:27,332 - INFO - Created VN ctest-vn4-79768081 2025-12-09 03:24:27,380 - DEBUG - VN ctest-vn4-79768081 UUID is 57150ea6-ea09-47da-9a77-ab081501cbce 2025-12-09 03:24:27,567 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '57150ea6-ea09-47da-9a77-ab081501cbce', 'name': 'ctest-vn4-79768081', 'tenant_id': '35950ab4570d451993c722f8f7e6bec5', 'project_id': '35950ab4570d451993c722f8f7e6bec5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0d2ce027-3eec-4cda-be39-5298e47f7538', 'c9c7fdfa-9941-4180-a6f8-76b7883ab0ae'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-15064074', 'ctest-vn4-79768081'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-15064074', 'ctest-policy1-12392432']], 'subnet_ipam': [{'subnet_cidr': '82.30.179.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2fb2:84e7:4d24:6fcc:a3da:9b8f::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-09 03:24:27,724 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-12-09 03:24:28,016 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-12-09 03:24:28,049 - DEBUG - Requesting: http://10.0.0.19:8082/domain/805ad1c5-d90d-4cdc-b9a3-318ea9ede812 2025-12-09 03:24:28,060 - DEBUG - Requesting: http://10.0.0.19:8082/project/35950ab4-570d-4519-93c7-22f8f7e6bec5 2025-12-09 03:24:28,134 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/57150ea6-ea09-47da-9a77-ab081501cbce 2025-12-09 03:24:28,144 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/57150ea6-ea09-47da-9a77-ab081501cbce 2025-12-09 03:24:28,153 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/2dec3bb5-8ed5-49e0-b925-7eb3fe202abe 2025-12-09 03:24:28,159 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/2dec3bb5-8ed5-49e0-b925-7eb3fe202abe 2025-12-09 03:24:28,165 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/e09fbafd-503d-480e-aa37-6d3d2f66910a 2025-12-09 03:24:28,171 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-09 03:24:28,171 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/57150ea6-ea09-47da-9a77-ab081501cbce 2025-12-09 03:24:28,179 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/2dec3bb5-8ed5-49e0-b925-7eb3fe202abe 2025-12-09 03:24:28,190 - INFO - Verified VN network id 11 for VN 57150ea6-ea09-47da-9a77-ab081501cbce 2025-12-09 03:24:28,190 - INFO - Verifications in API Server for VN ctest-vn4-79768081 passed 2025-12-09 03:24:28,190 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/57150ea6-ea09-47da-9a77-ab081501cbce 2025-12-09 03:24:28,199 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/2dec3bb5-8ed5-49e0-b925-7eb3fe202abe 2025-12-09 03:24:28,205 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/2dec3bb5-8ed5-49e0-b925-7eb3fe202abe 2025-12-09 03:24:28,210 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/e09fbafd-503d-480e-aa37-6d3d2f66910a 2025-12-09 03:24:28,220 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15064074:ctest-vn4-79768081', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-15064074', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6274937765864490970', 'uuid-lslong': '11130553055269997518'}, 'enable': 'true', 'created': '2025-12-09T03:24:26', 'last-modified': '2025-12-09T03:24:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.677723'} 2025-12-09 03:24:28,226 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-09 03:24:28,226 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-79768081 passed 2025-12-09 03:24:28,226 - DEBUG - ====Verifying policy data for ctest-vn4-79768081 in API_Server ====== 2025-12-09 03:24:28,226 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-12-09 03:24:28,231 - DEBUG - Requesting: http://10.0.0.19:8082/domain/805ad1c5-d90d-4cdc-b9a3-318ea9ede812 2025-12-09 03:24:28,240 - DEBUG - Requesting: http://10.0.0.19:8082/project/35950ab4-570d-4519-93c7-22f8f7e6bec5 2025-12-09 03:24:28,311 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/57150ea6-ea09-47da-9a77-ab081501cbce 2025-12-09 03:24:28,319 - DEBUG - ==>Verifying data for policy with id: b5599bc3-2e72-4945-bca7-31bb46640934, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-15064074', 'ctest-policy1-12392432'] 2025-12-09 03:24:28,320 - INFO - VN ctest-vn4-79768081 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-09 03:24:28,320 - DEBUG - Verifying the vn in opserver 2025-12-09 03:24:28,320 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15064074:ctest-vn4-79768081 virtual network link through opserver 10.0.0.19 2025-12-09 03:24:28,320 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-12-09 03:24:28,609 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-12-09 03:24:28,667 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15064074:ctest-vn4-79768081', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15064074:ctest-vn4-79768081?flat'} 2025-12-09 03:24:28,667 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15064074:ctest-vn4-79768081 is found in opserver 2025-12-09 03:24:28,676 - DEBUG - Do not have enough data to verify VN in agent 2025-12-09 03:24:28,680 - DEBUG - VRF ids for VN ctest-vn4-79768081: {} 2025-12-09 03:24:28,681 - DEBUG - ====Verifying data for ctest-policy1-12392432 in API_Server ====== 2025-12-09 03:24:28,681 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-12-09 03:24:28,686 - DEBUG - Requesting: http://10.0.0.19:8082/domain/805ad1c5-d90d-4cdc-b9a3-318ea9ede812 2025-12-09 03:24:28,695 - DEBUG - Requesting: http://10.0.0.19:8082/project/35950ab4-570d-4519-93c7-22f8f7e6bec5 2025-12-09 03:24:28,759 - DEBUG - Requesting: http://10.0.0.19:8082/network-policy/b5599bc3-2e72-4945-bca7-31bb46640934 2025-12-09 03:24:28,767 - INFO - Verified policy ctest-policy1-12392432 in API Server, Result: True 2025-12-09 03:24:28,767 - INFO - Done with setup and verification, moving onto test .. 2025-12-09 03:24:28,774 - INFO - Deleting VN ctest-vn4-79768081 2025-12-09 03:24:28,872 - DEBUG - Response for deleting network () 2025-12-09 03:24:28,872 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/2dec3bb5-8ed5-49e0-b925-7eb3fe202abe 2025-12-09 03:24:28,876 - DEBUG - Response Code: 404 2025-12-09 03:24:28,877 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-12-09 03:24:28,880 - DEBUG - Requesting: http://10.0.0.19:8082/domain/805ad1c5-d90d-4cdc-b9a3-318ea9ede812 2025-12-09 03:24:28,936 - DEBUG - Requesting: http://10.0.0.19:8082/project/35950ab4-570d-4519-93c7-22f8f7e6bec5 2025-12-09 03:24:29,011 - INFO - Validated that VN ctest-vn4-79768081 is not found in API Server 2025-12-09 03:24:29,022 - DEBUG - VN ctest-vn4-79768081 is not present in Agent 10.0.0.19 2025-12-09 03:24:29,022 - INFO - Validated that VN ctest-vn4-79768081 is not in any agent 2025-12-09 03:24:29,035 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-79768081 info 2025-12-09 03:24:29,053 - INFO - Deleted policy ctest-policy1-12392432 2025-12-09 03:24:29,216 - DEBUG - policy ctest-policy1-12392432 is not found in API Server 2025-12-09 03:24:29,474 - DEBUG - No XMPP flaps were noticed during the test
2025-12-09 03:24:29,474 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-12-09 03:24:29,474 - INFO - -------------------------------------------------------------------------------- 2025-12-09 03:24:29,761 - DEBUG - No XMPP flaps were noticed during the test
2025-12-09 03:24:29,761 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-12-09 03:24:29,762 - INFO - -------------------------------------------------------------------------------- 2025-12-09 03:24:31,049 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-15064074, ID : 35950ab4-570d-4519-93c7-22f8f7e6bec5