2025-07-28 02:23:42,992 - INFO - Domain Default found not creating 2025-07-28 02:23:43,154 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-06612267 not found, creating it 2025-07-28 02:23:43,633 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-06612267, ID : e7ef765e-957e-4015-8176-c3c50fa96231 2025-07-28 02:23:45,088 - INFO - ================================================================================ 2025-07-28 02:23:45,088 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-07-28 02:23:45,342 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.14': '0'}} with 2025-07-28 02:23:45,342 - INFO - Initial checks done. Running the testcase now 2025-07-28 02:23:45,342 - INFO - 2025-07-28 02:23:45,342 - INFO - ================================================================================ 2025-07-28 02:23:45,342 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-07-28 02:23:45,343 - 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-07-28 02:23:45,630 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.14': '0'}} with 2025-07-28 02:23:45,630 - INFO - Initial checks done. Running the testcase now 2025-07-28 02:23:45,631 - INFO - 2025-07-28 02:23:45,986 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06612267:ctest-vn4-99707447, 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-06612267:ctest-vn4-99707447, 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-06612267:ctest-vn4-99707447, 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-06612267:ctest-vn4-99707447, 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-07-28 02:23:46,548 - DEBUG - Response for create_network : {'network': {'id': 'f4b16055-a517-4841-b760-fd6884ab060b', 'name': 'ctest-vn4-99707447', 'tenant_id': 'e7ef765e957e40158176c3c50fa96231', 'project_id': 'e7ef765e957e40158176c3c50fa96231', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06612267', 'ctest-vn4-99707447'], 'port_security_enabled': True, 'description': ''}} 2025-07-28 02:23:46,775 - DEBUG - Response for create_subnet : {'subnet': {'id': '0e6db0c5-da4b-467f-8c8f-54b49738eaaf', 'name': '', 'tenant_id': 'e7ef765e957e40158176c3c50fa96231', 'network_id': 'f4b16055-a517-4841-b760-fd6884ab060b', 'ip_version': 4, 'cidr': '153.247.68.128/26', 'allocation_pools': [{'start': '153.247.68.130', 'end': '153.247.68.190'}], 'gateway_ip': '153.247.68.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '153.247.68.130', 'tags': [], 'project_id': 'e7ef765e957e40158176c3c50fa96231'}} 2025-07-28 02:23:46,975 - DEBUG - Response for create_subnet : {'subnet': {'id': '9a1c4db2-6f57-45f4-baab-41f7ce9968ed', 'name': '', 'tenant_id': 'e7ef765e957e40158176c3c50fa96231', 'network_id': 'f4b16055-a517-4841-b760-fd6884ab060b', 'ip_version': 6, 'cidr': '35e6:a775:9e00:1890:f772:ff0b::/96', 'allocation_pools': [{'start': '35e6:a775:9e00:1890:f772:ff0b:0:2', 'end': '35e6:a775:9e00:1890:f772:ff0b:ffff:fffe'}], 'gateway_ip': '35e6:a775:9e00:1890:f772:ff0b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '35e6:a775:9e00:1890:f772:ff0b:0:2', 'tags': [], 'project_id': 'e7ef765e957e40158176c3c50fa96231'}} 2025-07-28 02:23:46,996 - INFO - Created VN ctest-vn4-99707447 2025-07-28 02:23:47,052 - DEBUG - VN ctest-vn4-99707447 UUID is f4b16055-a517-4841-b760-fd6884ab060b 2025-07-28 02:23:47,294 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f4b16055-a517-4841-b760-fd6884ab060b', 'name': 'ctest-vn4-99707447', 'tenant_id': 'e7ef765e957e40158176c3c50fa96231', 'project_id': 'e7ef765e957e40158176c3c50fa96231', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0e6db0c5-da4b-467f-8c8f-54b49738eaaf', '9a1c4db2-6f57-45f4-baab-41f7ce9968ed'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06612267', 'ctest-vn4-99707447'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06612267', 'ctest-policy1-76236346']], 'subnet_ipam': [{'subnet_cidr': '153.247.68.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '35e6:a775:9e00:1890:f772:ff0b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-28 02:23:47,460 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-07-28 02:23:47,758 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-07-28 02:23:47,787 - DEBUG - Requesting: http://10.0.0.41:8082/domain/d06f6505-035f-4bb2-97be-dfdf8405bca5 2025-07-28 02:23:47,800 - DEBUG - Requesting: http://10.0.0.41:8082/project/e7ef765e-957e-4015-8176-c3c50fa96231 2025-07-28 02:23:47,879 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/f4b16055-a517-4841-b760-fd6884ab060b 2025-07-28 02:23:47,893 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/f4b16055-a517-4841-b760-fd6884ab060b 2025-07-28 02:23:47,907 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/d73a4654-e3b6-431f-b760-d6e7ce4084ea 2025-07-28 02:23:47,916 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/d73a4654-e3b6-431f-b760-d6e7ce4084ea 2025-07-28 02:23:47,924 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/2a9e831e-b7f4-40f8-b24a-d74e62356085 2025-07-28 02:23:47,932 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-28 02:23:47,932 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/f4b16055-a517-4841-b760-fd6884ab060b 2025-07-28 02:23:47,944 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/d73a4654-e3b6-431f-b760-d6e7ce4084ea 2025-07-28 02:23:47,962 - INFO - Verified VN network id 11 for VN f4b16055-a517-4841-b760-fd6884ab060b 2025-07-28 02:23:47,962 - INFO - Verifications in API Server for VN ctest-vn4-99707447 passed 2025-07-28 02:23:47,962 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/f4b16055-a517-4841-b760-fd6884ab060b 2025-07-28 02:23:47,977 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/d73a4654-e3b6-431f-b760-d6e7ce4084ea 2025-07-28 02:23:47,987 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/d73a4654-e3b6-431f-b760-d6e7ce4084ea 2025-07-28 02:23:47,996 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/2a9e831e-b7f4-40f8-b24a-d74e62356085 2025-07-28 02:23:48,010 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06612267:ctest-vn4-99707447', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-06612267', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17631979937090455617', 'uuid-lslong': '13213839932049262091'}, 'enable': 'true', 'created': '2025-07-28T02:23:46', 'last-modified': '2025-07-28T02:23:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.767479'} 2025-07-28 02:23:48,019 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-28 02:23:48,019 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-99707447 passed 2025-07-28 02:23:48,020 - DEBUG - ====Verifying policy data for ctest-vn4-99707447 in API_Server ====== 2025-07-28 02:23:48,020 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-07-28 02:23:48,026 - DEBUG - Requesting: http://10.0.0.41:8082/domain/d06f6505-035f-4bb2-97be-dfdf8405bca5 2025-07-28 02:23:48,039 - DEBUG - Requesting: http://10.0.0.41:8082/project/e7ef765e-957e-4015-8176-c3c50fa96231 2025-07-28 02:23:48,111 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/f4b16055-a517-4841-b760-fd6884ab060b 2025-07-28 02:23:48,122 - DEBUG - ==>Verifying data for policy with id: fb8130c0-243d-470d-b0bc-e9281283d096, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06612267', 'ctest-policy1-76236346'] 2025-07-28 02:23:48,122 - INFO - VN ctest-vn4-99707447 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-28 02:23:48,122 - DEBUG - Verifying the vn in opserver 2025-07-28 02:23:48,122 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06612267:ctest-vn4-99707447 virtual network link through opserver 10.0.0.41 2025-07-28 02:23:48,122 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-07-28 02:23:48,418 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-07-28 02:23:48,477 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06612267:ctest-vn4-99707447', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06612267:ctest-vn4-99707447?flat'} 2025-07-28 02:23:48,478 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06612267:ctest-vn4-99707447 is found in opserver 2025-07-28 02:23:48,490 - DEBUG - Do not have enough data to verify VN in agent 2025-07-28 02:23:48,496 - DEBUG - VRF ids for VN ctest-vn4-99707447: {} 2025-07-28 02:23:48,496 - DEBUG - ====Verifying data for ctest-policy1-76236346 in API_Server ====== 2025-07-28 02:23:48,497 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-07-28 02:23:48,504 - DEBUG - Requesting: http://10.0.0.41:8082/domain/d06f6505-035f-4bb2-97be-dfdf8405bca5 2025-07-28 02:23:48,517 - DEBUG - Requesting: http://10.0.0.41:8082/project/e7ef765e-957e-4015-8176-c3c50fa96231 2025-07-28 02:23:48,594 - DEBUG - Requesting: http://10.0.0.41:8082/network-policy/fb8130c0-243d-470d-b0bc-e9281283d096 2025-07-28 02:23:48,605 - INFO - Verified policy ctest-policy1-76236346 in API Server, Result: True 2025-07-28 02:23:48,605 - INFO - Done with setup and verification, moving onto test .. 2025-07-28 02:23:48,613 - INFO - Deleting VN ctest-vn4-99707447 2025-07-28 02:23:48,742 - DEBUG - Response for deleting network () 2025-07-28 02:23:48,743 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/d73a4654-e3b6-431f-b760-d6e7ce4084ea 2025-07-28 02:23:48,749 - DEBUG - Response Code: 404 2025-07-28 02:23:48,749 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-07-28 02:23:48,756 - DEBUG - Requesting: http://10.0.0.41:8082/domain/d06f6505-035f-4bb2-97be-dfdf8405bca5 2025-07-28 02:23:48,816 - DEBUG - Requesting: http://10.0.0.41:8082/project/e7ef765e-957e-4015-8176-c3c50fa96231 2025-07-28 02:23:48,898 - INFO - Validated that VN ctest-vn4-99707447 is not found in API Server 2025-07-28 02:23:48,910 - DEBUG - VN ctest-vn4-99707447 is not present in Agent 10.0.0.41 2025-07-28 02:23:48,910 - INFO - Validated that VN ctest-vn4-99707447 is not in any agent 2025-07-28 02:23:48,928 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-99707447 info 2025-07-28 02:23:48,955 - INFO - Deleted policy ctest-policy1-76236346 2025-07-28 02:23:49,124 - DEBUG - policy ctest-policy1-76236346 is not found in API Server 2025-07-28 02:23:49,381 - DEBUG - No XMPP flaps were noticed during the test