2025-11-17 02:07:28,408 - INFO - Domain Default found not creating 2025-11-17 02:07:28,614 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-94982043 not found, creating it 2025-11-17 02:07:29,056 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-94982043, ID : da52f58f-e869-445a-b689-e1489a5c464e 2025-11-17 02:07:30,783 - INFO - ================================================================================ 2025-11-17 02:07:30,783 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-17 02:07:31,056 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.14': '0'}} with 2025-11-17 02:07:31,056 - INFO - Initial checks done. Running the testcase now 2025-11-17 02:07:31,057 - INFO - 2025-11-17 02:07:31,057 - INFO - ================================================================================ 2025-11-17 02:07:31,057 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-17 02:07:31,057 - 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-17 02:07:31,355 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.14': '0'}} with 2025-11-17 02:07:31,355 - INFO - Initial checks done. Running the testcase now 2025-11-17 02:07:31,355 - INFO - 2025-11-17 02:07:31,744 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94982043:ctest-vn4-75187359, 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-94982043:ctest-vn4-75187359, 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-94982043:ctest-vn4-75187359, 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-94982043:ctest-vn4-75187359, 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-17 02:07:32,393 - DEBUG - Response for create_network : {'network': {'id': '962e6f7c-f51d-4622-8406-81b4d833f2ae', 'name': 'ctest-vn4-75187359', 'tenant_id': 'da52f58fe869445ab689e1489a5c464e', 'project_id': 'da52f58fe869445ab689e1489a5c464e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94982043', 'ctest-vn4-75187359'], 'port_security_enabled': True, 'description': ''}} 2025-11-17 02:07:32,597 - DEBUG - Response for create_subnet : {'subnet': {'id': '6c4e9edf-0c19-4efe-aba0-0ec33ca7e343', 'name': '', 'tenant_id': 'da52f58fe869445ab689e1489a5c464e', 'network_id': '962e6f7c-f51d-4622-8406-81b4d833f2ae', 'ip_version': 4, 'cidr': '157.9.233.64/26', 'allocation_pools': [{'start': '157.9.233.66', 'end': '157.9.233.126'}], 'gateway_ip': '157.9.233.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '157.9.233.66', 'tags': [], 'project_id': 'da52f58fe869445ab689e1489a5c464e'}} 2025-11-17 02:07:32,783 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bb3ac467-fe06-45d0-b62e-459d857b457d', 'name': '', 'tenant_id': 'da52f58fe869445ab689e1489a5c464e', 'network_id': '962e6f7c-f51d-4622-8406-81b4d833f2ae', 'ip_version': 6, 'cidr': '33da:5c03:499:aff6:cc42:652b::/96', 'allocation_pools': [{'start': '33da:5c03:499:aff6:cc42:652b:0:2', 'end': '33da:5c03:499:aff6:cc42:652b:ffff:fffe'}], 'gateway_ip': '33da:5c03:499:aff6:cc42:652b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '33da:5c03:499:aff6:cc42:652b:0:2', 'tags': [], 'project_id': 'da52f58fe869445ab689e1489a5c464e'}} 2025-11-17 02:07:32,805 - INFO - Created VN ctest-vn4-75187359 2025-11-17 02:07:32,859 - DEBUG - VN ctest-vn4-75187359 UUID is 962e6f7c-f51d-4622-8406-81b4d833f2ae 2025-11-17 02:07:33,108 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '962e6f7c-f51d-4622-8406-81b4d833f2ae', 'name': 'ctest-vn4-75187359', 'tenant_id': 'da52f58fe869445ab689e1489a5c464e', 'project_id': 'da52f58fe869445ab689e1489a5c464e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6c4e9edf-0c19-4efe-aba0-0ec33ca7e343', 'bb3ac467-fe06-45d0-b62e-459d857b457d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94982043', 'ctest-vn4-75187359'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94982043', 'ctest-policy1-49590676']], 'subnet_ipam': [{'subnet_cidr': '157.9.233.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '33da:5c03:499:aff6:cc42:652b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-17 02:07:33,275 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-11-17 02:07:33,592 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-11-17 02:07:33,631 - DEBUG - Requesting: http://10.0.0.27:8082/domain/4082dd1b-6c69-48e4-8064-322ad79b4643 2025-11-17 02:07:33,645 - DEBUG - Requesting: http://10.0.0.27:8082/project/da52f58f-e869-445a-b689-e1489a5c464e 2025-11-17 02:07:33,722 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/962e6f7c-f51d-4622-8406-81b4d833f2ae 2025-11-17 02:07:33,738 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/962e6f7c-f51d-4622-8406-81b4d833f2ae 2025-11-17 02:07:33,749 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/4ea39889-3aa2-4e38-803b-5549a8177dd5 2025-11-17 02:07:33,757 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/4ea39889-3aa2-4e38-803b-5549a8177dd5 2025-11-17 02:07:33,766 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/8c3fa4b5-fb75-420d-9c70-64a9cd9ff5ae 2025-11-17 02:07:33,775 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-17 02:07:33,775 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/962e6f7c-f51d-4622-8406-81b4d833f2ae 2025-11-17 02:07:33,788 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/4ea39889-3aa2-4e38-803b-5549a8177dd5 2025-11-17 02:07:33,806 - INFO - Verified VN network id 12 for VN 962e6f7c-f51d-4622-8406-81b4d833f2ae 2025-11-17 02:07:33,806 - INFO - Verifications in API Server for VN ctest-vn4-75187359 passed 2025-11-17 02:07:33,806 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/962e6f7c-f51d-4622-8406-81b4d833f2ae 2025-11-17 02:07:33,818 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/4ea39889-3aa2-4e38-803b-5549a8177dd5 2025-11-17 02:07:33,829 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/4ea39889-3aa2-4e38-803b-5549a8177dd5 2025-11-17 02:07:33,839 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/8c3fa4b5-fb75-420d-9c70-64a9cd9ff5ae 2025-11-17 02:07:33,854 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94982043:ctest-vn4-75187359', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-94982043', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10821709537096844834', 'uuid-lslong': '9513433876588130990'}, 'enable': 'true', 'created': '2025-11-17T02:07:32', 'last-modified': '2025-11-17T02:07:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.781917'} 2025-11-17 02:07:33,862 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-17 02:07:33,862 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-75187359 passed 2025-11-17 02:07:33,863 - DEBUG - ====Verifying policy data for ctest-vn4-75187359 in API_Server ====== 2025-11-17 02:07:33,863 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-11-17 02:07:33,869 - DEBUG - Requesting: http://10.0.0.27:8082/domain/4082dd1b-6c69-48e4-8064-322ad79b4643 2025-11-17 02:07:33,882 - DEBUG - Requesting: http://10.0.0.27:8082/project/da52f58f-e869-445a-b689-e1489a5c464e 2025-11-17 02:07:33,963 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/962e6f7c-f51d-4622-8406-81b4d833f2ae 2025-11-17 02:07:33,973 - DEBUG - ==>Verifying data for policy with id: 222a209c-e51d-42ec-ae2c-73bb77877532, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94982043', 'ctest-policy1-49590676'] 2025-11-17 02:07:33,973 - INFO - VN ctest-vn4-75187359 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-17 02:07:33,973 - DEBUG - Verifying the vn in opserver 2025-11-17 02:07:33,973 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94982043:ctest-vn4-75187359 virtual network link through opserver 10.0.0.27 2025-11-17 02:07:33,973 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-11-17 02:07:34,282 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-11-17 02:07:34,358 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94982043:ctest-vn4-75187359', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94982043:ctest-vn4-75187359?flat'} 2025-11-17 02:07:34,358 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94982043:ctest-vn4-75187359 is found in opserver 2025-11-17 02:07:34,369 - DEBUG - Do not have enough data to verify VN in agent 2025-11-17 02:07:34,375 - DEBUG - VRF ids for VN ctest-vn4-75187359: {} 2025-11-17 02:07:34,376 - DEBUG - ====Verifying data for ctest-policy1-49590676 in API_Server ====== 2025-11-17 02:07:34,376 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-11-17 02:07:34,382 - DEBUG - Requesting: http://10.0.0.27:8082/domain/4082dd1b-6c69-48e4-8064-322ad79b4643 2025-11-17 02:07:34,393 - DEBUG - Requesting: http://10.0.0.27:8082/project/da52f58f-e869-445a-b689-e1489a5c464e 2025-11-17 02:07:34,472 - DEBUG - Requesting: http://10.0.0.27:8082/network-policy/222a209c-e51d-42ec-ae2c-73bb77877532 2025-11-17 02:07:34,483 - INFO - Verified policy ctest-policy1-49590676 in API Server, Result: True 2025-11-17 02:07:34,483 - INFO - Done with setup and verification, moving onto test .. 2025-11-17 02:07:34,491 - INFO - Deleting VN ctest-vn4-75187359 2025-11-17 02:07:34,634 - DEBUG - Response for deleting network () 2025-11-17 02:07:34,634 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/4ea39889-3aa2-4e38-803b-5549a8177dd5 2025-11-17 02:07:34,639 - DEBUG - Response Code: 404 2025-11-17 02:07:34,639 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-11-17 02:07:34,645 - DEBUG - Requesting: http://10.0.0.27:8082/domain/4082dd1b-6c69-48e4-8064-322ad79b4643 2025-11-17 02:07:34,701 - DEBUG - Requesting: http://10.0.0.27:8082/project/da52f58f-e869-445a-b689-e1489a5c464e 2025-11-17 02:07:34,775 - INFO - Validated that VN ctest-vn4-75187359 is not found in API Server 2025-11-17 02:07:34,785 - DEBUG - VN ctest-vn4-75187359 is not present in Agent 10.0.0.27 2025-11-17 02:07:34,786 - INFO - Validated that VN ctest-vn4-75187359 is not in any agent 2025-11-17 02:07:34,801 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-75187359 info 2025-11-17 02:07:34,831 - INFO - Deleted policy ctest-policy1-49590676 2025-11-17 02:07:34,998 - DEBUG - policy ctest-policy1-49590676 is not found in API Server 2025-11-17 02:07:35,267 - DEBUG - No XMPP flaps were noticed during the test 2025-11-17 02:07:35,267 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-11-17 02:07:35,267 - INFO - -------------------------------------------------------------------------------- 2025-11-17 02:07:35,563 - DEBUG - No XMPP flaps were noticed during the test 2025-11-17 02:07:35,563 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-11-17 02:07:35,563 - INFO - -------------------------------------------------------------------------------- 2025-11-17 02:07:36,793 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-94982043, ID : da52f58f-e869-445a-b689-e1489a5c464e