2025-12-08 02:13:44,672 - INFO - Domain Default found not creating 2025-12-08 02:13:44,827 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-67042443 not found, creating it 2025-12-08 02:13:45,336 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-67042443, ID : a54428e4-a324-46ea-b34b-28c1a196b8f6 2025-12-08 02:13:46,747 - INFO - ================================================================================ 2025-12-08 02:13:46,747 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-08 02:13:47,000 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.241': '0'}} with 2025-12-08 02:13:47,000 - INFO - Initial checks done. Running the testcase now 2025-12-08 02:13:47,000 - INFO - 2025-12-08 02:13:47,000 - INFO - ================================================================================ 2025-12-08 02:13:47,000 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-08 02:13:47,000 - 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-08 02:13:47,288 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.241': '0'}} with 2025-12-08 02:13:47,288 - INFO - Initial checks done. Running the testcase now 2025-12-08 02:13:47,288 - INFO - 2025-12-08 02:13:47,646 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67042443:ctest-vn4-95429625, 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-67042443:ctest-vn4-95429625, 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-67042443:ctest-vn4-95429625, 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-67042443:ctest-vn4-95429625, 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-08 02:13:48,144 - DEBUG - Response for create_network : {'network': {'id': '7d229220-8a18-4984-a841-e39f7164b412', 'name': 'ctest-vn4-95429625', 'tenant_id': 'a54428e4a32446eab34b28c1a196b8f6', 'project_id': 'a54428e4a32446eab34b28c1a196b8f6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-67042443', 'ctest-vn4-95429625'], 'port_security_enabled': True, 'description': ''}} 2025-12-08 02:13:48,341 - DEBUG - Response for create_subnet : {'subnet': {'id': '2b5167f8-8e4f-456b-b8fd-d047214d10e9', 'name': '', 'tenant_id': 'a54428e4a32446eab34b28c1a196b8f6', 'network_id': '7d229220-8a18-4984-a841-e39f7164b412', 'ip_version': 4, 'cidr': '106.254.190.64/26', 'allocation_pools': [{'start': '106.254.190.66', 'end': '106.254.190.126'}], 'gateway_ip': '106.254.190.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '106.254.190.66', 'tags': [], 'project_id': 'a54428e4a32446eab34b28c1a196b8f6'}} 2025-12-08 02:13:48,486 - DEBUG - Response for create_subnet : {'subnet': {'id': '828f278e-d30a-4a91-b7b8-df53a13f17f3', 'name': '', 'tenant_id': 'a54428e4a32446eab34b28c1a196b8f6', 'network_id': '7d229220-8a18-4984-a841-e39f7164b412', 'ip_version': 6, 'cidr': '34d0:deb9:aa47:3014:5a8a:5199::/96', 'allocation_pools': [{'start': '34d0:deb9:aa47:3014:5a8a:5199:0:2', 'end': '34d0:deb9:aa47:3014:5a8a:5199:ffff:fffe'}], 'gateway_ip': '34d0:deb9:aa47:3014:5a8a:5199:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '34d0:deb9:aa47:3014:5a8a:5199:0:2', 'tags': [], 'project_id': 'a54428e4a32446eab34b28c1a196b8f6'}} 2025-12-08 02:13:48,506 - INFO - Created VN ctest-vn4-95429625 2025-12-08 02:13:48,559 - DEBUG - VN ctest-vn4-95429625 UUID is 7d229220-8a18-4984-a841-e39f7164b412 2025-12-08 02:13:48,735 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7d229220-8a18-4984-a841-e39f7164b412', 'name': 'ctest-vn4-95429625', 'tenant_id': 'a54428e4a32446eab34b28c1a196b8f6', 'project_id': 'a54428e4a32446eab34b28c1a196b8f6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2b5167f8-8e4f-456b-b8fd-d047214d10e9', '828f278e-d30a-4a91-b7b8-df53a13f17f3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-67042443', 'ctest-vn4-95429625'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-67042443', 'ctest-policy1-33044949']], 'subnet_ipam': [{'subnet_cidr': '106.254.190.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '34d0:deb9:aa47:3014:5a8a:5199::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-08 02:13:48,891 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-12-08 02:13:49,182 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-12-08 02:13:49,211 - DEBUG - Requesting: http://10.0.0.130:8082/domain/89255e1c-530c-49a5-b275-cafa7847f34c 2025-12-08 02:13:49,222 - DEBUG - Requesting: http://10.0.0.130:8082/project/a54428e4-a324-46ea-b34b-28c1a196b8f6 2025-12-08 02:13:49,292 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/7d229220-8a18-4984-a841-e39f7164b412 2025-12-08 02:13:49,302 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/7d229220-8a18-4984-a841-e39f7164b412 2025-12-08 02:13:49,310 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/a64defb0-1640-463a-8cfa-829450322f45 2025-12-08 02:13:49,316 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/a64defb0-1640-463a-8cfa-829450322f45 2025-12-08 02:13:49,321 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/b963a61f-e592-4d06-a135-43d798efd32b 2025-12-08 02:13:49,326 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-08 02:13:49,326 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/7d229220-8a18-4984-a841-e39f7164b412 2025-12-08 02:13:49,333 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/a64defb0-1640-463a-8cfa-829450322f45 2025-12-08 02:13:49,344 - INFO - Verified VN network id 11 for VN 7d229220-8a18-4984-a841-e39f7164b412 2025-12-08 02:13:49,344 - INFO - Verifications in API Server for VN ctest-vn4-95429625 passed 2025-12-08 02:13:49,344 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/7d229220-8a18-4984-a841-e39f7164b412 2025-12-08 02:13:49,352 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/a64defb0-1640-463a-8cfa-829450322f45 2025-12-08 02:13:49,358 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/a64defb0-1640-463a-8cfa-829450322f45 2025-12-08 02:13:49,363 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/b963a61f-e592-4d06-a135-43d798efd32b 2025-12-08 02:13:49,374 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67042443:ctest-vn4-95429625', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-67042443', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9016930072402610564', 'uuid-lslong': '12124221945799816210'}, 'enable': 'true', 'created': '2025-12-08T02:13:48', 'last-modified': '2025-12-08T02:13:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.657475'} 2025-12-08 02:13:49,380 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-08 02:13:49,380 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-95429625 passed 2025-12-08 02:13:49,380 - DEBUG - ====Verifying policy data for ctest-vn4-95429625 in API_Server ====== 2025-12-08 02:13:49,380 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-12-08 02:13:49,385 - DEBUG - Requesting: http://10.0.0.130:8082/domain/89255e1c-530c-49a5-b275-cafa7847f34c 2025-12-08 02:13:49,394 - DEBUG - Requesting: http://10.0.0.130:8082/project/a54428e4-a324-46ea-b34b-28c1a196b8f6 2025-12-08 02:13:49,461 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/7d229220-8a18-4984-a841-e39f7164b412 2025-12-08 02:13:49,469 - DEBUG - ==>Verifying data for policy with id: eac45c1f-0df2-4a64-80a3-4065adfd140f, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-67042443', 'ctest-policy1-33044949'] 2025-12-08 02:13:49,469 - INFO - VN ctest-vn4-95429625 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-08 02:13:49,469 - DEBUG - Verifying the vn in opserver 2025-12-08 02:13:49,469 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67042443:ctest-vn4-95429625 virtual network link through opserver 10.0.0.130 2025-12-08 02:13:49,469 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2025-12-08 02:13:49,759 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2025-12-08 02:13:49,820 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67042443:ctest-vn4-95429625', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67042443:ctest-vn4-95429625?flat'} 2025-12-08 02:13:49,820 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67042443:ctest-vn4-95429625 is found in opserver 2025-12-08 02:13:49,829 - DEBUG - Do not have enough data to verify VN in agent 2025-12-08 02:13:49,834 - DEBUG - VRF ids for VN ctest-vn4-95429625: {} 2025-12-08 02:13:49,834 - DEBUG - ====Verifying data for ctest-policy1-33044949 in API_Server ====== 2025-12-08 02:13:49,834 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-12-08 02:13:49,839 - DEBUG - Requesting: http://10.0.0.130:8082/domain/89255e1c-530c-49a5-b275-cafa7847f34c 2025-12-08 02:13:49,848 - DEBUG - Requesting: http://10.0.0.130:8082/project/a54428e4-a324-46ea-b34b-28c1a196b8f6 2025-12-08 02:13:49,917 - DEBUG - Requesting: http://10.0.0.130:8082/network-policy/eac45c1f-0df2-4a64-80a3-4065adfd140f 2025-12-08 02:13:49,925 - INFO - Verified policy ctest-policy1-33044949 in API Server, Result: True 2025-12-08 02:13:49,925 - INFO - Done with setup and verification, moving onto test .. 2025-12-08 02:13:49,932 - INFO - Deleting VN ctest-vn4-95429625 2025-12-08 02:13:50,033 - DEBUG - Response for deleting network () 2025-12-08 02:13:50,034 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/a64defb0-1640-463a-8cfa-829450322f45 2025-12-08 02:13:50,037 - DEBUG - Response Code: 404 2025-12-08 02:13:50,038 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-12-08 02:13:50,042 - DEBUG - Requesting: http://10.0.0.130:8082/domain/89255e1c-530c-49a5-b275-cafa7847f34c 2025-12-08 02:13:50,091 - DEBUG - Requesting: http://10.0.0.130:8082/project/a54428e4-a324-46ea-b34b-28c1a196b8f6 2025-12-08 02:13:50,161 - INFO - Validated that VN ctest-vn4-95429625 is not found in API Server 2025-12-08 02:13:50,171 - DEBUG - VN ctest-vn4-95429625 is not present in Agent 10.0.0.130 2025-12-08 02:13:50,171 - INFO - Validated that VN ctest-vn4-95429625 is not in any agent 2025-12-08 02:13:50,186 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-95429625 info 2025-12-08 02:13:50,210 - INFO - Deleted policy ctest-policy1-33044949 2025-12-08 02:13:50,374 - DEBUG - policy ctest-policy1-33044949 is not found in API Server 2025-12-08 02:13:50,629 - DEBUG - No XMPP flaps were noticed during the test