2025-11-03 02:30:07,051 - INFO - Domain Default found not creating 2025-11-03 02:30:07,186 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-80734482 not found, creating it 2025-11-03 02:30:07,745 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-80734482, ID : 28dec511-a58a-4916-a96e-429122c621d4 2025-11-03 02:30:09,133 - INFO - ================================================================================ 2025-11-03 02:30:09,133 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-03 02:30:10,414 - DEBUG - Nothing to compare xmpp stats {'10.0.0.73': {'10.20.0.25': '0', '10.20.0.17': '0'}, '10.0.0.33': {'10.20.0.17': '0', '10.20.0.193': '0'}} with 2025-11-03 02:30:10,414 - INFO - Initial checks done. Running the testcase now 2025-11-03 02:30:10,414 - INFO - 2025-11-03 02:30:10,415 - INFO - ================================================================================ 2025-11-03 02:30:10,415 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-03 02:30:10,415 - 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-03 02:30:11,707 - DEBUG - Nothing to compare xmpp stats {'10.0.0.73': {'10.20.0.25': '0', '10.20.0.17': '0'}, '10.0.0.33': {'10.20.0.17': '0', '10.20.0.193': '0'}} with 2025-11-03 02:30:11,707 - INFO - Initial checks done. Running the testcase now 2025-11-03 02:30:11,707 - INFO - 2025-11-03 02:30:12,048 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80734482:ctest-vn4-69509382, 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-80734482:ctest-vn4-69509382, 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-80734482:ctest-vn4-69509382, 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-80734482:ctest-vn4-69509382, 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-03 02:30:12,628 - DEBUG - Response for create_network : {'network': {'id': '357b8022-9a41-47e6-80d9-7fb8150356cc', 'name': 'ctest-vn4-69509382', 'tenant_id': '28dec511a58a4916a96e429122c621d4', 'project_id': '28dec511a58a4916a96e429122c621d4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80734482', 'ctest-vn4-69509382'], 'port_security_enabled': True, 'description': ''}} 2025-11-03 02:30:12,937 - DEBUG - Response for create_subnet : {'subnet': {'id': '6219fd7d-215c-4ed7-8e11-0f624fa27f73', 'name': '', 'tenant_id': '28dec511a58a4916a96e429122c621d4', 'network_id': '357b8022-9a41-47e6-80d9-7fb8150356cc', 'ip_version': 4, 'cidr': '68.102.70.64/26', 'allocation_pools': [{'start': '68.102.70.66', 'end': '68.102.70.126'}], 'gateway_ip': '68.102.70.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '68.102.70.66', 'tags': [], 'project_id': '28dec511a58a4916a96e429122c621d4'}} 2025-11-03 02:30:13,154 - DEBUG - Response for create_subnet : {'subnet': {'id': '873f18ad-02b1-4ead-a30a-aa9f33b29e97', 'name': '', 'tenant_id': '28dec511a58a4916a96e429122c621d4', 'network_id': '357b8022-9a41-47e6-80d9-7fb8150356cc', 'ip_version': 6, 'cidr': '3ee9:61f2:4b0b:7be5:fc71:2ca::/96', 'allocation_pools': [{'start': '3ee9:61f2:4b0b:7be5:fc71:2ca:0:2', 'end': '3ee9:61f2:4b0b:7be5:fc71:2ca:ffff:fffe'}], 'gateway_ip': '3ee9:61f2:4b0b:7be5:fc71:2ca:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3ee9:61f2:4b0b:7be5:fc71:2ca:0:2', 'tags': [], 'project_id': '28dec511a58a4916a96e429122c621d4'}} 2025-11-03 02:30:13,182 - INFO - Created VN ctest-vn4-69509382 2025-11-03 02:30:13,193 - DEBUG - VN ctest-vn4-69509382 UUID is 357b8022-9a41-47e6-80d9-7fb8150356cc 2025-11-03 02:30:13,410 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '357b8022-9a41-47e6-80d9-7fb8150356cc', 'name': 'ctest-vn4-69509382', 'tenant_id': '28dec511a58a4916a96e429122c621d4', 'project_id': '28dec511a58a4916a96e429122c621d4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6219fd7d-215c-4ed7-8e11-0f624fa27f73', '873f18ad-02b1-4ead-a30a-aa9f33b29e97'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80734482', 'ctest-vn4-69509382'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80734482', 'ctest-policy1-55428874']], 'subnet_ipam': [{'subnet_cidr': '68.102.70.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3ee9:61f2:4b0b:7be5:fc71:2ca::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-03 02:30:13,534 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-11-03 02:30:13,827 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-11-03 02:30:13,853 - DEBUG - Requesting: http://10.0.0.249:8082/domain/08e054d4-7d42-4fbe-9f71-53fe1c9730a1 2025-11-03 02:30:13,870 - DEBUG - Requesting: http://10.0.0.249:8082/project/28dec511-a58a-4916-a96e-429122c621d4 2025-11-03 02:30:13,968 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/357b8022-9a41-47e6-80d9-7fb8150356cc 2025-11-03 02:30:13,981 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/357b8022-9a41-47e6-80d9-7fb8150356cc 2025-11-03 02:30:13,991 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/35a15e3c-7b87-4382-b3c7-3be946b29ab1 2025-11-03 02:30:13,999 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/35a15e3c-7b87-4382-b3c7-3be946b29ab1 2025-11-03 02:30:14,005 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/d13dbb14-9af0-47e2-9fb0-987dcfa28d06 2025-11-03 02:30:14,011 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-03 02:30:14,011 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/357b8022-9a41-47e6-80d9-7fb8150356cc 2025-11-03 02:30:14,020 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/35a15e3c-7b87-4382-b3c7-3be946b29ab1 2025-11-03 02:30:14,035 - INFO - Verified VN network id 16 for VN 357b8022-9a41-47e6-80d9-7fb8150356cc 2025-11-03 02:30:14,035 - INFO - Verifications in API Server for VN ctest-vn4-69509382 passed 2025-11-03 02:30:14,036 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/357b8022-9a41-47e6-80d9-7fb8150356cc 2025-11-03 02:30:14,047 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/35a15e3c-7b87-4382-b3c7-3be946b29ab1 2025-11-03 02:30:14,055 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/35a15e3c-7b87-4382-b3c7-3be946b29ab1 2025-11-03 02:30:14,061 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/d13dbb14-9af0-47e2-9fb0-987dcfa28d06 2025-11-03 02:30:14,074 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80734482:ctest-vn4-69509382', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-80734482', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3853814792250804198', 'uuid-lslong': '9284592535404238540'}, 'enable': 'true', 'created': '2025-11-03T02:30:12', 'last-modified': '2025-11-03T02:30:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.704155'} 2025-11-03 02:30:14,079 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-03 02:30:14,084 - DEBUG - Control-node 10.0.0.61 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80734482:ctest-vn4-69509382', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-80734482', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3853814792250804198', 'uuid-lslong': '9284592535404238540'}, 'enable': 'true', 'created': '2025-11-03T02:30:12', 'last-modified': '2025-11-03T02:30:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.715700'} 2025-11-03 02:30:14,090 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-03 02:30:14,095 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80734482:ctest-vn4-69509382', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-80734482', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3853814792250804198', 'uuid-lslong': '9284592535404238540'}, 'enable': 'true', 'created': '2025-11-03T02:30:12', 'last-modified': '2025-11-03T02:30:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.729444'} 2025-11-03 02:30:14,099 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-03 02:30:14,100 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-69509382 passed 2025-11-03 02:30:14,100 - DEBUG - ====Verifying policy data for ctest-vn4-69509382 in API_Server ====== 2025-11-03 02:30:14,100 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-11-03 02:30:14,105 - DEBUG - Requesting: http://10.0.0.249:8082/domain/08e054d4-7d42-4fbe-9f71-53fe1c9730a1 2025-11-03 02:30:14,115 - DEBUG - Requesting: http://10.0.0.249:8082/project/28dec511-a58a-4916-a96e-429122c621d4 2025-11-03 02:30:14,206 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/357b8022-9a41-47e6-80d9-7fb8150356cc 2025-11-03 02:30:14,217 - DEBUG - ==>Verifying data for policy with id: 9799e088-b95a-45bf-b08c-ba921cf2964a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80734482', 'ctest-policy1-55428874'] 2025-11-03 02:30:14,217 - INFO - VN ctest-vn4-69509382 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-03 02:30:14,217 - DEBUG - Verifying the vn in opserver 2025-11-03 02:30:14,218 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80734482:ctest-vn4-69509382 virtual network link through opserver 10.0.0.249 2025-11-03 02:30:14,218 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-11-03 02:30:14,509 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-11-03 02:30:14,561 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80734482:ctest-vn4-69509382', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80734482:ctest-vn4-69509382?flat'} 2025-11-03 02:30:14,561 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80734482:ctest-vn4-69509382 virtual network link through opserver 10.0.0.61 2025-11-03 02:30:14,561 - DEBUG - Requesting: http://10.0.0.61:8081/analytics/uves/virtual-networks 2025-11-03 02:30:14,859 - DEBUG - Requesting: http://10.0.0.61:8081/analytics/uves/virtual-networks 2025-11-03 02:30:14,914 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80734482:ctest-vn4-69509382', 'href': 'http://10.0.0.61:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80734482:ctest-vn4-69509382?flat'} 2025-11-03 02:30:14,914 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80734482:ctest-vn4-69509382 virtual network link through opserver 10.0.0.23 2025-11-03 02:30:14,914 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-11-03 02:30:15,211 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-11-03 02:30:15,264 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80734482:ctest-vn4-69509382', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80734482:ctest-vn4-69509382?flat'} 2025-11-03 02:30:15,264 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80734482:ctest-vn4-69509382 is found in opserver 2025-11-03 02:30:15,284 - DEBUG - Do not have enough data to verify VN in agent 2025-11-03 02:30:15,292 - DEBUG - VRF ids for VN ctest-vn4-69509382: {} 2025-11-03 02:30:15,292 - DEBUG - ====Verifying data for ctest-policy1-55428874 in API_Server ====== 2025-11-03 02:30:15,292 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-11-03 02:30:15,297 - DEBUG - Requesting: http://10.0.0.249:8082/domain/08e054d4-7d42-4fbe-9f71-53fe1c9730a1 2025-11-03 02:30:15,308 - DEBUG - Requesting: http://10.0.0.249:8082/project/28dec511-a58a-4916-a96e-429122c621d4 2025-11-03 02:30:15,395 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/9799e088-b95a-45bf-b08c-ba921cf2964a 2025-11-03 02:30:15,405 - INFO - Verified policy ctest-policy1-55428874 in API Server, Result: True 2025-11-03 02:30:15,405 - INFO - Done with setup and verification, moving onto test .. 2025-11-03 02:30:15,417 - INFO - Deleting VN ctest-vn4-69509382 2025-11-03 02:30:15,604 - DEBUG - Response for deleting network () 2025-11-03 02:30:15,605 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/35a15e3c-7b87-4382-b3c7-3be946b29ab1 2025-11-03 02:30:15,618 - DEBUG - Response Code: 404 2025-11-03 02:30:15,618 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-11-03 02:30:15,625 - DEBUG - Requesting: http://10.0.0.249:8082/domain/08e054d4-7d42-4fbe-9f71-53fe1c9730a1 2025-11-03 02:30:15,676 - DEBUG - Requesting: http://10.0.0.249:8082/project/28dec511-a58a-4916-a96e-429122c621d4 2025-11-03 02:30:15,774 - INFO - Validated that VN ctest-vn4-69509382 is not found in API Server 2025-11-03 02:30:15,784 - DEBUG - VN ctest-vn4-69509382 is not present in Agent 10.0.0.73 2025-11-03 02:30:15,793 - DEBUG - VN ctest-vn4-69509382 is not present in Agent 10.0.0.33 2025-11-03 02:30:15,793 - INFO - Validated that VN ctest-vn4-69509382 is not in any agent 2025-11-03 02:30:15,820 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-69509382 info 2025-11-03 02:30:15,862 - INFO - Deleted policy ctest-policy1-55428874 2025-11-03 02:30:16,055 - DEBUG - policy ctest-policy1-55428874 is not found in API Server 2025-11-03 02:30:17,330 - DEBUG - No XMPP flaps were noticed during the test