2025-11-20 14:34:37,910 - INFO - Domain Default found not creating 2025-11-20 14:34:38,101 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-85136750 not found, creating it 2025-11-20 14:34:38,617 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-85136750, ID : 8728565a-3c71-48cf-859a-73a84b9c6a39 2025-11-20 14:34:40,151 - INFO - ================================================================================ 2025-11-20 14:34:40,151 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-20 14:34:40,411 - DEBUG - Nothing to compare xmpp stats {'10.0.0.136': {'10.20.0.218': '0'}} with 2025-11-20 14:34:40,411 - INFO - Initial checks done. Running the testcase now 2025-11-20 14:34:40,411 - INFO - 2025-11-20 14:34:40,411 - INFO - ================================================================================ 2025-11-20 14:34:40,411 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-20 14:34:40,411 - 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-20 14:34:40,700 - DEBUG - Nothing to compare xmpp stats {'10.0.0.136': {'10.20.0.218': '0'}} with 2025-11-20 14:34:40,701 - INFO - Initial checks done. Running the testcase now 2025-11-20 14:34:40,701 - INFO - 2025-11-20 14:34:41,057 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85136750:ctest-vn4-47523954, 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-85136750:ctest-vn4-47523954, 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-85136750:ctest-vn4-47523954, 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-85136750:ctest-vn4-47523954, 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-20 14:34:41,630 - DEBUG - Response for create_network : {'network': {'id': '345ce894-f71a-4627-b961-ad415aedbec9', 'name': 'ctest-vn4-47523954', 'tenant_id': '8728565a3c7148cf859a73a84b9c6a39', 'project_id': '8728565a3c7148cf859a73a84b9c6a39', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85136750', 'ctest-vn4-47523954'], 'port_security_enabled': True, 'description': ''}} 2025-11-20 14:34:41,861 - DEBUG - Response for create_subnet : {'subnet': {'id': '1c3cc40e-abfe-4c57-91a6-32ffed5e6f14', 'name': '', 'tenant_id': '8728565a3c7148cf859a73a84b9c6a39', 'network_id': '345ce894-f71a-4627-b961-ad415aedbec9', 'ip_version': 4, 'cidr': '83.120.61.0/26', 'allocation_pools': [{'start': '83.120.61.2', 'end': '83.120.61.62'}], 'gateway_ip': '83.120.61.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '83.120.61.2', 'tags': [], 'project_id': '8728565a3c7148cf859a73a84b9c6a39'}} 2025-11-20 14:34:42,038 - DEBUG - Response for create_subnet : {'subnet': {'id': '6e8b4183-b52b-4a80-a683-58b006bcc729', 'name': '', 'tenant_id': '8728565a3c7148cf859a73a84b9c6a39', 'network_id': '345ce894-f71a-4627-b961-ad415aedbec9', 'ip_version': 6, 'cidr': '294d:88eb:ef1a:a28a:7629:d19e::/96', 'allocation_pools': [{'start': '294d:88eb:ef1a:a28a:7629:d19e:0:2', 'end': '294d:88eb:ef1a:a28a:7629:d19e:ffff:fffe'}], 'gateway_ip': '294d:88eb:ef1a:a28a:7629:d19e:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '294d:88eb:ef1a:a28a:7629:d19e:0:2', 'tags': [], 'project_id': '8728565a3c7148cf859a73a84b9c6a39'}} 2025-11-20 14:34:42,061 - INFO - Created VN ctest-vn4-47523954 2025-11-20 14:34:42,115 - DEBUG - VN ctest-vn4-47523954 UUID is 345ce894-f71a-4627-b961-ad415aedbec9 2025-11-20 14:34:42,315 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '345ce894-f71a-4627-b961-ad415aedbec9', 'name': 'ctest-vn4-47523954', 'tenant_id': '8728565a3c7148cf859a73a84b9c6a39', 'project_id': '8728565a3c7148cf859a73a84b9c6a39', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1c3cc40e-abfe-4c57-91a6-32ffed5e6f14', '6e8b4183-b52b-4a80-a683-58b006bcc729'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85136750', 'ctest-vn4-47523954'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85136750', 'ctest-policy1-17444988']], 'subnet_ipam': [{'subnet_cidr': '83.120.61.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '294d:88eb:ef1a:a28a:7629:d19e::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-20 14:34:42,475 - DEBUG - Requesting: http://10.0.0.136:8082/domains 2025-11-20 14:34:42,787 - DEBUG - Requesting: http://10.0.0.136:8082/domains 2025-11-20 14:34:42,825 - DEBUG - Requesting: http://10.0.0.136:8082/domain/20a2c035-69a8-436f-bf67-7a856b884082 2025-11-20 14:34:42,840 - DEBUG - Requesting: http://10.0.0.136:8082/project/8728565a-3c71-48cf-859a-73a84b9c6a39 2025-11-20 14:34:42,912 - DEBUG - Requesting: http://10.0.0.136:8082/virtual-network/345ce894-f71a-4627-b961-ad415aedbec9 2025-11-20 14:34:42,926 - DEBUG - Requesting: http://10.0.0.136:8082/virtual-network/345ce894-f71a-4627-b961-ad415aedbec9 2025-11-20 14:34:42,935 - DEBUG - Requesting: http://10.0.0.136:8082/routing-instance/6c10c654-a9a3-41a6-8685-da4120aee35a 2025-11-20 14:34:42,942 - DEBUG - Requesting: http://10.0.0.136:8082/routing-instance/6c10c654-a9a3-41a6-8685-da4120aee35a 2025-11-20 14:34:42,951 - DEBUG - Requesting: http://10.0.0.136:8082/route-target/3ba2b0a4-4f8e-4057-b145-ba7192c31328 2025-11-20 14:34:42,958 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-20 14:34:42,958 - DEBUG - Requesting: http://10.0.0.136:8082/virtual-network/345ce894-f71a-4627-b961-ad415aedbec9 2025-11-20 14:34:42,967 - DEBUG - Requesting: http://10.0.0.136:8082/routing-instance/6c10c654-a9a3-41a6-8685-da4120aee35a 2025-11-20 14:34:42,981 - INFO - Verified VN network id 12 for VN 345ce894-f71a-4627-b961-ad415aedbec9 2025-11-20 14:34:42,981 - INFO - Verifications in API Server for VN ctest-vn4-47523954 passed 2025-11-20 14:34:42,981 - DEBUG - Requesting: http://10.0.0.136:8082/virtual-network/345ce894-f71a-4627-b961-ad415aedbec9 2025-11-20 14:34:42,991 - DEBUG - Requesting: http://10.0.0.136:8082/routing-instance/6c10c654-a9a3-41a6-8685-da4120aee35a 2025-11-20 14:34:43,000 - DEBUG - Requesting: http://10.0.0.136:8082/routing-instance/6c10c654-a9a3-41a6-8685-da4120aee35a 2025-11-20 14:34:43,009 - DEBUG - Requesting: http://10.0.0.136:8082/route-target/3ba2b0a4-4f8e-4057-b145-ba7192c31328 2025-11-20 14:34:43,022 - DEBUG - Control-node 10.0.0.136 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85136750:ctest-vn4-47523954', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-85136750', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3773146314328131111', 'uuid-lslong': '13358148465967611593'}, 'enable': 'true', 'created': '2025-11-20T14:34:41', 'last-modified': '2025-11-20T14:34:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.730853'} 2025-11-20 14:34:43,028 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-20 14:34:43,028 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-47523954 passed 2025-11-20 14:34:43,028 - DEBUG - ====Verifying policy data for ctest-vn4-47523954 in API_Server ====== 2025-11-20 14:34:43,028 - DEBUG - Requesting: http://10.0.0.136:8082/domains 2025-11-20 14:34:43,034 - DEBUG - Requesting: http://10.0.0.136:8082/domain/20a2c035-69a8-436f-bf67-7a856b884082 2025-11-20 14:34:43,045 - DEBUG - Requesting: http://10.0.0.136:8082/project/8728565a-3c71-48cf-859a-73a84b9c6a39 2025-11-20 14:34:43,118 - DEBUG - Requesting: http://10.0.0.136:8082/virtual-network/345ce894-f71a-4627-b961-ad415aedbec9 2025-11-20 14:34:43,127 - DEBUG - ==>Verifying data for policy with id: a73f875f-82b4-4baf-862e-efc4181b031c, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85136750', 'ctest-policy1-17444988'] 2025-11-20 14:34:43,127 - INFO - VN ctest-vn4-47523954 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-20 14:34:43,127 - DEBUG - Verifying the vn in opserver 2025-11-20 14:34:43,127 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85136750:ctest-vn4-47523954 virtual network link through opserver 10.0.0.136 2025-11-20 14:34:43,127 - DEBUG - Requesting: http://10.0.0.136:8081/analytics/uves/virtual-networks 2025-11-20 14:34:43,432 - DEBUG - Requesting: http://10.0.0.136:8081/analytics/uves/virtual-networks 2025-11-20 14:34:43,495 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85136750:ctest-vn4-47523954', 'href': 'http://10.0.0.136:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85136750:ctest-vn4-47523954?flat'} 2025-11-20 14:34:43,495 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85136750:ctest-vn4-47523954 is found in opserver 2025-11-20 14:34:43,505 - DEBUG - Do not have enough data to verify VN in agent 2025-11-20 14:34:43,509 - DEBUG - VRF ids for VN ctest-vn4-47523954: {} 2025-11-20 14:34:43,509 - DEBUG - ====Verifying data for ctest-policy1-17444988 in API_Server ====== 2025-11-20 14:34:43,509 - DEBUG - Requesting: http://10.0.0.136:8082/domains 2025-11-20 14:34:43,515 - DEBUG - Requesting: http://10.0.0.136:8082/domain/20a2c035-69a8-436f-bf67-7a856b884082 2025-11-20 14:34:43,525 - DEBUG - Requesting: http://10.0.0.136:8082/project/8728565a-3c71-48cf-859a-73a84b9c6a39 2025-11-20 14:34:43,598 - DEBUG - Requesting: http://10.0.0.136:8082/network-policy/a73f875f-82b4-4baf-862e-efc4181b031c 2025-11-20 14:34:43,608 - INFO - Verified policy ctest-policy1-17444988 in API Server, Result: True 2025-11-20 14:34:43,608 - INFO - Done with setup and verification, moving onto test .. 2025-11-20 14:34:43,617 - INFO - Deleting VN ctest-vn4-47523954 2025-11-20 14:34:43,732 - DEBUG - Response for deleting network () 2025-11-20 14:34:43,732 - DEBUG - Requesting: http://10.0.0.136:8082/routing-instance/6c10c654-a9a3-41a6-8685-da4120aee35a 2025-11-20 14:34:43,737 - DEBUG - Response Code: 404 2025-11-20 14:34:43,737 - DEBUG - Requesting: http://10.0.0.136:8082/domains 2025-11-20 14:34:43,743 - DEBUG - Requesting: http://10.0.0.136:8082/domain/20a2c035-69a8-436f-bf67-7a856b884082 2025-11-20 14:34:43,796 - DEBUG - Requesting: http://10.0.0.136:8082/project/8728565a-3c71-48cf-859a-73a84b9c6a39 2025-11-20 14:34:43,862 - INFO - Validated that VN ctest-vn4-47523954 is not found in API Server 2025-11-20 14:34:43,871 - DEBUG - VN ctest-vn4-47523954 is not present in Agent 10.0.0.136 2025-11-20 14:34:43,871 - INFO - Validated that VN ctest-vn4-47523954 is not in any agent 2025-11-20 14:34:43,889 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-47523954 info 2025-11-20 14:34:43,920 - INFO - Deleted policy ctest-policy1-17444988 2025-11-20 14:34:44,087 - DEBUG - policy ctest-policy1-17444988 is not found in API Server 2025-11-20 14:34:44,344 - DEBUG - No XMPP flaps were noticed during the test
2025-11-20 14:34:44,344 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-11-20 14:34:44,344 - INFO - -------------------------------------------------------------------------------- 2025-11-20 14:34:44,633 - DEBUG - No XMPP flaps were noticed during the test
2025-11-20 14:34:44,633 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-11-20 14:34:44,634 - INFO - -------------------------------------------------------------------------------- 2025-11-20 14:34:45,328 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-85136750, ID : 8728565a-3c71-48cf-859a-73a84b9c6a39