2025-10-23 19:14:21,923 - INFO - Domain Default found not creating 2025-10-23 19:14:22,065 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-62820764 not found, creating it 2025-10-23 19:14:22,515 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-62820764, ID : 7425b182-1b0e-4d05-a621-e09375a6ccd3 2025-10-23 19:14:24,023 - INFO - ================================================================================ 2025-10-23 19:14:24,023 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-23 19:14:24,288 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.17': '0'}} with 2025-10-23 19:14:24,288 - INFO - Initial checks done. Running the testcase now 2025-10-23 19:14:24,288 - INFO - 2025-10-23 19:14:24,288 - INFO - ================================================================================ 2025-10-23 19:14:24,288 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-23 19:14:24,288 - 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-23 19:14:24,571 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.17': '0'}} with 2025-10-23 19:14:24,571 - INFO - Initial checks done. Running the testcase now 2025-10-23 19:14:24,571 - INFO - 2025-10-23 19:14:24,959 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62820764:ctest-vn4-40031932, 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-62820764:ctest-vn4-40031932, 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-62820764:ctest-vn4-40031932, 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-62820764:ctest-vn4-40031932, 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-23 19:14:25,461 - DEBUG - Response for create_network : {'network': {'id': '4aa6c2ea-38a4-46b9-862f-37a532a51601', 'name': 'ctest-vn4-40031932', 'tenant_id': '7425b1821b0e4d05a621e09375a6ccd3', 'project_id': '7425b1821b0e4d05a621e09375a6ccd3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-62820764', 'ctest-vn4-40031932'], 'port_security_enabled': True, 'description': ''}} 2025-10-23 19:14:25,657 - DEBUG - Response for create_subnet : {'subnet': {'id': '9ac23daa-d74b-44c8-9c2e-17c8be94488e', 'name': '', 'tenant_id': '7425b1821b0e4d05a621e09375a6ccd3', 'network_id': '4aa6c2ea-38a4-46b9-862f-37a532a51601', 'ip_version': 4, 'cidr': '201.218.207.64/26', 'allocation_pools': [{'start': '201.218.207.66', 'end': '201.218.207.126'}], 'gateway_ip': '201.218.207.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '201.218.207.66', 'tags': [], 'project_id': '7425b1821b0e4d05a621e09375a6ccd3'}} 2025-10-23 19:14:25,869 - DEBUG - Response for create_subnet : {'subnet': {'id': '280cd216-6b19-4520-b01e-a04aafdf4ca8', 'name': '', 'tenant_id': '7425b1821b0e4d05a621e09375a6ccd3', 'network_id': '4aa6c2ea-38a4-46b9-862f-37a532a51601', 'ip_version': 6, 'cidr': '3b90:2345:6dc7:e8d2:820a:35c5::/96', 'allocation_pools': [{'start': '3b90:2345:6dc7:e8d2:820a:35c5:0:2', 'end': '3b90:2345:6dc7:e8d2:820a:35c5:ffff:fffe'}], 'gateway_ip': '3b90:2345:6dc7:e8d2:820a:35c5:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3b90:2345:6dc7:e8d2:820a:35c5:0:2', 'tags': [], 'project_id': '7425b1821b0e4d05a621e09375a6ccd3'}} 2025-10-23 19:14:25,889 - INFO - Created VN ctest-vn4-40031932 2025-10-23 19:14:25,939 - DEBUG - VN ctest-vn4-40031932 UUID is 4aa6c2ea-38a4-46b9-862f-37a532a51601 2025-10-23 19:14:26,146 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4aa6c2ea-38a4-46b9-862f-37a532a51601', 'name': 'ctest-vn4-40031932', 'tenant_id': '7425b1821b0e4d05a621e09375a6ccd3', 'project_id': '7425b1821b0e4d05a621e09375a6ccd3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9ac23daa-d74b-44c8-9c2e-17c8be94488e', '280cd216-6b19-4520-b01e-a04aafdf4ca8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-62820764', 'ctest-vn4-40031932'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-62820764', 'ctest-policy1-60400841']], 'subnet_ipam': [{'subnet_cidr': '201.218.207.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3b90:2345:6dc7:e8d2:820a:35c5::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-23 19:14:26,311 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-10-23 19:14:26,644 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-10-23 19:14:26,671 - DEBUG - Requesting: http://10.0.0.27:8082/domain/df81026e-0496-4f51-96b6-e05d8349d64c 2025-10-23 19:14:26,682 - DEBUG - Requesting: http://10.0.0.27:8082/project/7425b182-1b0e-4d05-a621-e09375a6ccd3 2025-10-23 19:14:26,810 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/4aa6c2ea-38a4-46b9-862f-37a532a51601 2025-10-23 19:14:26,824 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/4aa6c2ea-38a4-46b9-862f-37a532a51601 2025-10-23 19:14:26,836 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c689e2b2-4285-41c2-b67a-34c5fd7302fe 2025-10-23 19:14:26,845 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c689e2b2-4285-41c2-b67a-34c5fd7302fe 2025-10-23 19:14:26,854 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/73623b7a-33d0-4b90-b6f3-8344beb711ec 2025-10-23 19:14:26,861 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-23 19:14:26,861 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/4aa6c2ea-38a4-46b9-862f-37a532a51601 2025-10-23 19:14:26,871 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c689e2b2-4285-41c2-b67a-34c5fd7302fe 2025-10-23 19:14:26,886 - INFO - Verified VN network id 11 for VN 4aa6c2ea-38a4-46b9-862f-37a532a51601 2025-10-23 19:14:26,886 - INFO - Verifications in API Server for VN ctest-vn4-40031932 passed 2025-10-23 19:14:26,886 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/4aa6c2ea-38a4-46b9-862f-37a532a51601 2025-10-23 19:14:26,897 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c689e2b2-4285-41c2-b67a-34c5fd7302fe 2025-10-23 19:14:26,903 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c689e2b2-4285-41c2-b67a-34c5fd7302fe 2025-10-23 19:14:26,910 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/73623b7a-33d0-4b90-b6f3-8344beb711ec 2025-10-23 19:14:26,923 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62820764:ctest-vn4-40031932', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-62820764', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5379201116169062073', 'uuid-lslong': '9669008107646555649'}, 'enable': 'true', 'created': '2025-10-23T19:14:25', 'last-modified': '2025-10-23T19:14:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.811252'} 2025-10-23 19:14:26,930 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-23 19:14:26,930 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-40031932 passed 2025-10-23 19:14:26,930 - DEBUG - ====Verifying policy data for ctest-vn4-40031932 in API_Server ====== 2025-10-23 19:14:26,930 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-10-23 19:14:26,935 - DEBUG - Requesting: http://10.0.0.27:8082/domain/df81026e-0496-4f51-96b6-e05d8349d64c 2025-10-23 19:14:26,947 - DEBUG - Requesting: http://10.0.0.27:8082/project/7425b182-1b0e-4d05-a621-e09375a6ccd3 2025-10-23 19:14:27,020 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/4aa6c2ea-38a4-46b9-862f-37a532a51601 2025-10-23 19:14:27,032 - DEBUG - ==>Verifying data for policy with id: c9bd5f5e-15c7-42c0-84bf-c8c8f4ac168e, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-62820764', 'ctest-policy1-60400841'] 2025-10-23 19:14:27,032 - INFO - VN ctest-vn4-40031932 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-23 19:14:27,032 - DEBUG - Verifying the vn in opserver 2025-10-23 19:14:27,032 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62820764:ctest-vn4-40031932 virtual network link through opserver 10.0.0.27 2025-10-23 19:14:27,032 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-10-23 19:14:27,368 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-10-23 19:14:27,431 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62820764:ctest-vn4-40031932', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62820764:ctest-vn4-40031932?flat'} 2025-10-23 19:14:27,431 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62820764:ctest-vn4-40031932 is found in opserver 2025-10-23 19:14:27,441 - DEBUG - Do not have enough data to verify VN in agent 2025-10-23 19:14:27,447 - DEBUG - VRF ids for VN ctest-vn4-40031932: {} 2025-10-23 19:14:27,447 - DEBUG - ====Verifying data for ctest-policy1-60400841 in API_Server ====== 2025-10-23 19:14:27,447 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-10-23 19:14:27,453 - DEBUG - Requesting: http://10.0.0.27:8082/domain/df81026e-0496-4f51-96b6-e05d8349d64c 2025-10-23 19:14:27,464 - DEBUG - Requesting: http://10.0.0.27:8082/project/7425b182-1b0e-4d05-a621-e09375a6ccd3 2025-10-23 19:14:27,538 - DEBUG - Requesting: http://10.0.0.27:8082/network-policy/c9bd5f5e-15c7-42c0-84bf-c8c8f4ac168e 2025-10-23 19:14:27,547 - INFO - Verified policy ctest-policy1-60400841 in API Server, Result: True 2025-10-23 19:14:27,547 - INFO - Done with setup and verification, moving onto test .. 2025-10-23 19:14:27,556 - INFO - Deleting VN ctest-vn4-40031932 2025-10-23 19:14:27,676 - DEBUG - Response for deleting network () 2025-10-23 19:14:27,676 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c689e2b2-4285-41c2-b67a-34c5fd7302fe 2025-10-23 19:14:27,682 - DEBUG - Response Code: 404 2025-10-23 19:14:27,682 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-10-23 19:14:27,688 - DEBUG - Requesting: http://10.0.0.27:8082/domain/df81026e-0496-4f51-96b6-e05d8349d64c 2025-10-23 19:14:27,740 - DEBUG - Requesting: http://10.0.0.27:8082/project/7425b182-1b0e-4d05-a621-e09375a6ccd3 2025-10-23 19:14:27,813 - INFO - Validated that VN ctest-vn4-40031932 is not found in API Server 2025-10-23 19:14:27,822 - DEBUG - VN ctest-vn4-40031932 is not present in Agent 10.0.0.27 2025-10-23 19:14:27,823 - INFO - Validated that VN ctest-vn4-40031932 is not in any agent 2025-10-23 19:14:27,836 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-40031932 info 2025-10-23 19:14:27,859 - INFO - Deleted policy ctest-policy1-60400841 2025-10-23 19:14:28,022 - DEBUG - policy ctest-policy1-60400841 is not found in API Server 2025-10-23 19:14:28,280 - DEBUG - No XMPP flaps were noticed during the test