2025-10-09 13:37:09,243 - INFO - Domain Default found not creating 2025-10-09 13:37:09,386 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-02528091 not found, creating it 2025-10-09 13:37:09,835 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-02528091, ID : 8e1619d1-1e79-47da-883c-fd8444a56f0c 2025-10-09 13:37:11,240 - INFO - ================================================================================ 2025-10-09 13:37:11,240 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-09 13:37:11,494 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with 2025-10-09 13:37:11,494 - INFO - Initial checks done. Running the testcase now 2025-10-09 13:37:11,494 - INFO - 2025-10-09 13:37:11,494 - INFO - ================================================================================ 2025-10-09 13:37:11,494 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-09 13:37:11,494 - 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-09 13:37:11,782 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with 2025-10-09 13:37:11,782 - INFO - Initial checks done. Running the testcase now 2025-10-09 13:37:11,782 - INFO - 2025-10-09 13:37:12,123 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02528091:ctest-vn4-71865540, 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-02528091:ctest-vn4-71865540, 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-02528091:ctest-vn4-71865540, 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-02528091:ctest-vn4-71865540, 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-09 13:37:12,691 - DEBUG - Response for create_network : {'network': {'id': '402f79eb-79ee-4085-b6b2-fa324ccf4a2d', 'name': 'ctest-vn4-71865540', 'tenant_id': '8e1619d11e7947da883cfd8444a56f0c', 'project_id': '8e1619d11e7947da883cfd8444a56f0c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02528091', 'ctest-vn4-71865540'], 'port_security_enabled': True, 'description': ''}} 2025-10-09 13:37:12,851 - DEBUG - Response for create_subnet : {'subnet': {'id': '35cf8562-82e4-487e-b410-45cde9a4d2a2', 'name': '', 'tenant_id': '8e1619d11e7947da883cfd8444a56f0c', 'network_id': '402f79eb-79ee-4085-b6b2-fa324ccf4a2d', 'ip_version': 4, 'cidr': '40.58.169.64/26', 'allocation_pools': [{'start': '40.58.169.66', 'end': '40.58.169.126'}], 'gateway_ip': '40.58.169.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '40.58.169.66', 'tags': [], 'project_id': '8e1619d11e7947da883cfd8444a56f0c'}} 2025-10-09 13:37:12,990 - DEBUG - Response for create_subnet : {'subnet': {'id': 'de0658bb-9acd-4016-a774-8533ab7d6f7f', 'name': '', 'tenant_id': '8e1619d11e7947da883cfd8444a56f0c', 'network_id': '402f79eb-79ee-4085-b6b2-fa324ccf4a2d', 'ip_version': 6, 'cidr': '2ec9:23cc:e546:6a40:73e8:b86d::/96', 'allocation_pools': [{'start': '2ec9:23cc:e546:6a40:73e8:b86d:0:2', 'end': '2ec9:23cc:e546:6a40:73e8:b86d:ffff:fffe'}], 'gateway_ip': '2ec9:23cc:e546:6a40:73e8:b86d:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2ec9:23cc:e546:6a40:73e8:b86d:0:2', 'tags': [], 'project_id': '8e1619d11e7947da883cfd8444a56f0c'}} 2025-10-09 13:37:13,009 - INFO - Created VN ctest-vn4-71865540 2025-10-09 13:37:13,061 - DEBUG - VN ctest-vn4-71865540 UUID is 402f79eb-79ee-4085-b6b2-fa324ccf4a2d 2025-10-09 13:37:13,247 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '402f79eb-79ee-4085-b6b2-fa324ccf4a2d', 'name': 'ctest-vn4-71865540', 'tenant_id': '8e1619d11e7947da883cfd8444a56f0c', 'project_id': '8e1619d11e7947da883cfd8444a56f0c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['35cf8562-82e4-487e-b410-45cde9a4d2a2', 'de0658bb-9acd-4016-a774-8533ab7d6f7f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02528091', 'ctest-vn4-71865540'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02528091', 'ctest-policy1-28003277']], 'subnet_ipam': [{'subnet_cidr': '40.58.169.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2ec9:23cc:e546:6a40:73e8:b86d::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-09 13:37:13,417 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-09 13:37:13,706 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-09 13:37:13,733 - DEBUG - Requesting: http://10.0.0.242:8082/domain/01793127-1b6b-4017-accb-3b3416179715 2025-10-09 13:37:13,745 - DEBUG - Requesting: http://10.0.0.242:8082/project/8e1619d1-1e79-47da-883c-fd8444a56f0c 2025-10-09 13:37:13,820 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/402f79eb-79ee-4085-b6b2-fa324ccf4a2d 2025-10-09 13:37:13,832 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/402f79eb-79ee-4085-b6b2-fa324ccf4a2d 2025-10-09 13:37:13,841 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/4950b73f-0f7b-4b1b-8051-a11cb1de1be4 2025-10-09 13:37:13,848 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/4950b73f-0f7b-4b1b-8051-a11cb1de1be4 2025-10-09 13:37:13,854 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/afcb4d80-f5ee-480c-bd19-9583d9495956 2025-10-09 13:37:13,860 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-09 13:37:13,860 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/402f79eb-79ee-4085-b6b2-fa324ccf4a2d 2025-10-09 13:37:13,870 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/4950b73f-0f7b-4b1b-8051-a11cb1de1be4 2025-10-09 13:37:13,884 - INFO - Verified VN network id 11 for VN 402f79eb-79ee-4085-b6b2-fa324ccf4a2d 2025-10-09 13:37:13,884 - INFO - Verifications in API Server for VN ctest-vn4-71865540 passed 2025-10-09 13:37:13,884 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/402f79eb-79ee-4085-b6b2-fa324ccf4a2d 2025-10-09 13:37:13,896 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/4950b73f-0f7b-4b1b-8051-a11cb1de1be4 2025-10-09 13:37:13,903 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/4950b73f-0f7b-4b1b-8051-a11cb1de1be4 2025-10-09 13:37:13,910 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/afcb4d80-f5ee-480c-bd19-9583d9495956 2025-10-09 13:37:13,922 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02528091:ctest-vn4-71865540', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-02528091', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4625049394602721413', 'uuid-lslong': '13164859754701343277'}, 'enable': 'true', 'created': '2025-10-09T13:37:12', 'last-modified': '2025-10-09T13:37:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.696117'} 2025-10-09 13:37:13,928 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-09 13:37:13,928 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-71865540 passed 2025-10-09 13:37:13,928 - DEBUG - ====Verifying policy data for ctest-vn4-71865540 in API_Server ====== 2025-10-09 13:37:13,928 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-09 13:37:13,934 - DEBUG - Requesting: http://10.0.0.242:8082/domain/01793127-1b6b-4017-accb-3b3416179715 2025-10-09 13:37:13,944 - DEBUG - Requesting: http://10.0.0.242:8082/project/8e1619d1-1e79-47da-883c-fd8444a56f0c 2025-10-09 13:37:14,013 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/402f79eb-79ee-4085-b6b2-fa324ccf4a2d 2025-10-09 13:37:14,022 - DEBUG - ==>Verifying data for policy with id: 74d300e5-e644-4bb3-8f99-674dd0601e57, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02528091', 'ctest-policy1-28003277'] 2025-10-09 13:37:14,022 - INFO - VN ctest-vn4-71865540 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-09 13:37:14,022 - DEBUG - Verifying the vn in opserver 2025-10-09 13:37:14,022 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02528091:ctest-vn4-71865540 virtual network link through opserver 10.0.0.242 2025-10-09 13:37:14,023 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-10-09 13:37:14,313 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-10-09 13:37:14,367 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02528091:ctest-vn4-71865540', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02528091:ctest-vn4-71865540?flat'} 2025-10-09 13:37:14,367 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02528091:ctest-vn4-71865540 is found in opserver 2025-10-09 13:37:14,376 - DEBUG - Do not have enough data to verify VN in agent 2025-10-09 13:37:14,380 - DEBUG - VRF ids for VN ctest-vn4-71865540: {} 2025-10-09 13:37:14,380 - DEBUG - ====Verifying data for ctest-policy1-28003277 in API_Server ====== 2025-10-09 13:37:14,380 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-09 13:37:14,385 - DEBUG - Requesting: http://10.0.0.242:8082/domain/01793127-1b6b-4017-accb-3b3416179715 2025-10-09 13:37:14,395 - DEBUG - Requesting: http://10.0.0.242:8082/project/8e1619d1-1e79-47da-883c-fd8444a56f0c 2025-10-09 13:37:14,463 - DEBUG - Requesting: http://10.0.0.242:8082/network-policy/74d300e5-e644-4bb3-8f99-674dd0601e57 2025-10-09 13:37:14,473 - INFO - Verified policy ctest-policy1-28003277 in API Server, Result: True 2025-10-09 13:37:14,473 - INFO - Done with setup and verification, moving onto test .. 2025-10-09 13:37:14,480 - INFO - Deleting VN ctest-vn4-71865540 2025-10-09 13:37:14,666 - DEBUG - Response for deleting network () 2025-10-09 13:37:14,666 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/4950b73f-0f7b-4b1b-8051-a11cb1de1be4 2025-10-09 13:37:14,671 - DEBUG - Response Code: 404 2025-10-09 13:37:14,671 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-09 13:37:14,677 - DEBUG - Requesting: http://10.0.0.242:8082/domain/01793127-1b6b-4017-accb-3b3416179715 2025-10-09 13:37:14,734 - DEBUG - Requesting: http://10.0.0.242:8082/project/8e1619d1-1e79-47da-883c-fd8444a56f0c 2025-10-09 13:37:14,805 - INFO - Validated that VN ctest-vn4-71865540 is not found in API Server 2025-10-09 13:37:14,814 - DEBUG - VN ctest-vn4-71865540 is not present in Agent 10.0.0.242 2025-10-09 13:37:14,814 - INFO - Validated that VN ctest-vn4-71865540 is not in any agent 2025-10-09 13:37:14,827 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-71865540 info 2025-10-09 13:37:14,852 - INFO - Deleted policy ctest-policy1-28003277 2025-10-09 13:37:15,021 - DEBUG - policy ctest-policy1-28003277 is not found in API Server 2025-10-09 13:37:15,278 - DEBUG - No XMPP flaps were noticed during the test
2025-10-09 13:37:15,278 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-09 13:37:15,278 - INFO - -------------------------------------------------------------------------------- 2025-10-09 13:37:15,571 - DEBUG - No XMPP flaps were noticed during the test
2025-10-09 13:37:15,571 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-09 13:37:15,571 - INFO - -------------------------------------------------------------------------------- 2025-10-09 13:37:16,289 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-02528091, ID : 8e1619d1-1e79-47da-883c-fd8444a56f0c