2025-10-22 06:22:36,956 - INFO - Domain Default found not creating 2025-10-22 06:22:37,118 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-85307100 not found, creating it 2025-10-22 06:22:37,625 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-85307100, ID : 6847a875-0638-4a5b-9506-3c183306ed62 2025-10-22 06:22:39,143 - INFO - ================================================================================ 2025-10-22 06:22:39,143 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-22 06:22:39,416 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2025-10-22 06:22:39,416 - INFO - Initial checks done. Running the testcase now 2025-10-22 06:22:39,416 - INFO - 2025-10-22 06:22:39,416 - INFO - ================================================================================ 2025-10-22 06:22:39,416 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-22 06:22:39,416 - 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-22 06:22:39,713 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2025-10-22 06:22:39,713 - INFO - Initial checks done. Running the testcase now 2025-10-22 06:22:39,713 - INFO - 2025-10-22 06:22:40,131 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85307100:ctest-vn4-07573412, 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-85307100:ctest-vn4-07573412, 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-85307100:ctest-vn4-07573412, 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-85307100:ctest-vn4-07573412, 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-22 06:22:40,656 - DEBUG - Response for create_network : {'network': {'id': 'd8951018-8e2f-41c2-ae89-f2f732a53a62', 'name': 'ctest-vn4-07573412', 'tenant_id': '6847a87506384a5b95063c183306ed62', 'project_id': '6847a87506384a5b95063c183306ed62', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85307100', 'ctest-vn4-07573412'], 'port_security_enabled': True, 'description': ''}} 2025-10-22 06:22:40,820 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b4df3c9c-402f-4b6d-971c-33e025ef0142', 'name': '', 'tenant_id': '6847a87506384a5b95063c183306ed62', 'network_id': 'd8951018-8e2f-41c2-ae89-f2f732a53a62', 'ip_version': 4, 'cidr': '48.102.101.64/26', 'allocation_pools': [{'start': '48.102.101.66', 'end': '48.102.101.126'}], 'gateway_ip': '48.102.101.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '48.102.101.66', 'tags': [], 'project_id': '6847a87506384a5b95063c183306ed62'}} 2025-10-22 06:22:40,989 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cdb8085c-0520-4007-8fe6-412f28cd1dab', 'name': '', 'tenant_id': '6847a87506384a5b95063c183306ed62', 'network_id': 'd8951018-8e2f-41c2-ae89-f2f732a53a62', 'ip_version': 6, 'cidr': '3327:e6e9:7d56:af47:aa32:7d22::/96', 'allocation_pools': [{'start': '3327:e6e9:7d56:af47:aa32:7d22:0:2', 'end': '3327:e6e9:7d56:af47:aa32:7d22:ffff:fffe'}], 'gateway_ip': '3327:e6e9:7d56:af47:aa32:7d22:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3327:e6e9:7d56:af47:aa32:7d22:0:2', 'tags': [], 'project_id': '6847a87506384a5b95063c183306ed62'}} 2025-10-22 06:22:41,011 - INFO - Created VN ctest-vn4-07573412 2025-10-22 06:22:41,067 - DEBUG - VN ctest-vn4-07573412 UUID is d8951018-8e2f-41c2-ae89-f2f732a53a62 2025-10-22 06:22:41,283 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd8951018-8e2f-41c2-ae89-f2f732a53a62', 'name': 'ctest-vn4-07573412', 'tenant_id': '6847a87506384a5b95063c183306ed62', 'project_id': '6847a87506384a5b95063c183306ed62', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b4df3c9c-402f-4b6d-971c-33e025ef0142', 'cdb8085c-0520-4007-8fe6-412f28cd1dab'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85307100', 'ctest-vn4-07573412'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85307100', 'ctest-policy1-84255505']], 'subnet_ipam': [{'subnet_cidr': '48.102.101.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3327:e6e9:7d56:af47:aa32:7d22::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-22 06:22:41,443 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-22 06:22:41,740 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-22 06:22:41,770 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d1b7ce6f-4b84-4801-940d-30d8754f79ef 2025-10-22 06:22:41,782 - DEBUG - Requesting: http://10.0.0.38:8082/project/6847a875-0638-4a5b-9506-3c183306ed62 2025-10-22 06:22:41,853 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d8951018-8e2f-41c2-ae89-f2f732a53a62 2025-10-22 06:22:41,865 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d8951018-8e2f-41c2-ae89-f2f732a53a62 2025-10-22 06:22:41,874 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/229cb73a-8ba5-4b52-a598-d211aa07bad9 2025-10-22 06:22:41,881 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/229cb73a-8ba5-4b52-a598-d211aa07bad9 2025-10-22 06:22:41,887 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/77257634-3f0c-4e74-9fb0-e5f5bd1c4aa1 2025-10-22 06:22:41,894 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-22 06:22:41,894 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d8951018-8e2f-41c2-ae89-f2f732a53a62 2025-10-22 06:22:41,903 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/229cb73a-8ba5-4b52-a598-d211aa07bad9 2025-10-22 06:22:41,922 - INFO - Verified VN network id 11 for VN d8951018-8e2f-41c2-ae89-f2f732a53a62 2025-10-22 06:22:41,922 - INFO - Verifications in API Server for VN ctest-vn4-07573412 passed 2025-10-22 06:22:41,922 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d8951018-8e2f-41c2-ae89-f2f732a53a62 2025-10-22 06:22:41,933 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/229cb73a-8ba5-4b52-a598-d211aa07bad9 2025-10-22 06:22:41,942 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/229cb73a-8ba5-4b52-a598-d211aa07bad9 2025-10-22 06:22:41,949 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/77257634-3f0c-4e74-9fb0-e5f5bd1c4aa1 2025-10-22 06:22:41,961 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85307100:ctest-vn4-07573412', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-85307100', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15606397781373043138', 'uuid-lslong': '12576850577929353826'}, 'enable': 'true', 'created': '2025-10-22T06:22:40', 'last-modified': '2025-10-22T06:22:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.705455'} 2025-10-22 06:22:41,969 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-22 06:22:41,969 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-07573412 passed 2025-10-22 06:22:41,970 - DEBUG - ====Verifying policy data for ctest-vn4-07573412 in API_Server ====== 2025-10-22 06:22:41,970 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-22 06:22:41,977 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d1b7ce6f-4b84-4801-940d-30d8754f79ef 2025-10-22 06:22:41,989 - DEBUG - Requesting: http://10.0.0.38:8082/project/6847a875-0638-4a5b-9506-3c183306ed62 2025-10-22 06:22:42,060 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d8951018-8e2f-41c2-ae89-f2f732a53a62 2025-10-22 06:22:42,070 - DEBUG - ==>Verifying data for policy with id: 1714f943-1fb1-435f-b557-bc0056044d2b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85307100', 'ctest-policy1-84255505'] 2025-10-22 06:22:42,070 - INFO - VN ctest-vn4-07573412 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-22 06:22:42,070 - DEBUG - Verifying the vn in opserver 2025-10-22 06:22:42,070 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85307100:ctest-vn4-07573412 virtual network link through opserver 10.0.0.38 2025-10-22 06:22:42,070 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-22 06:22:42,386 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-22 06:22:42,450 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85307100:ctest-vn4-07573412', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85307100:ctest-vn4-07573412?flat'} 2025-10-22 06:22:42,450 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85307100:ctest-vn4-07573412 is found in opserver 2025-10-22 06:22:42,460 - DEBUG - Do not have enough data to verify VN in agent 2025-10-22 06:22:42,465 - DEBUG - VRF ids for VN ctest-vn4-07573412: {} 2025-10-22 06:22:42,465 - DEBUG - ====Verifying data for ctest-policy1-84255505 in API_Server ====== 2025-10-22 06:22:42,466 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-22 06:22:42,472 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d1b7ce6f-4b84-4801-940d-30d8754f79ef 2025-10-22 06:22:42,483 - DEBUG - Requesting: http://10.0.0.38:8082/project/6847a875-0638-4a5b-9506-3c183306ed62 2025-10-22 06:22:42,552 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/1714f943-1fb1-435f-b557-bc0056044d2b 2025-10-22 06:22:42,563 - INFO - Verified policy ctest-policy1-84255505 in API Server, Result: True 2025-10-22 06:22:42,563 - INFO - Done with setup and verification, moving onto test .. 2025-10-22 06:22:42,571 - INFO - Deleting VN ctest-vn4-07573412 2025-10-22 06:22:42,694 - DEBUG - Response for deleting network () 2025-10-22 06:22:42,694 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/229cb73a-8ba5-4b52-a598-d211aa07bad9 2025-10-22 06:22:42,699 - DEBUG - Response Code: 404 2025-10-22 06:22:42,700 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-22 06:22:42,706 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d1b7ce6f-4b84-4801-940d-30d8754f79ef 2025-10-22 06:22:42,761 - DEBUG - Requesting: http://10.0.0.38:8082/project/6847a875-0638-4a5b-9506-3c183306ed62 2025-10-22 06:22:42,838 - INFO - Validated that VN ctest-vn4-07573412 is not found in API Server 2025-10-22 06:22:42,848 - DEBUG - VN ctest-vn4-07573412 is not present in Agent 10.0.0.38 2025-10-22 06:22:42,848 - INFO - Validated that VN ctest-vn4-07573412 is not in any agent 2025-10-22 06:22:42,861 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-07573412 info 2025-10-22 06:22:42,884 - INFO - Deleted policy ctest-policy1-84255505 2025-10-22 06:22:43,051 - DEBUG - policy ctest-policy1-84255505 is not found in API Server 2025-10-22 06:22:43,304 - DEBUG - No XMPP flaps were noticed during the test 2025-10-22 06:22:43,304 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-22 06:22:43,304 - INFO - -------------------------------------------------------------------------------- 2025-10-22 06:22:43,596 - DEBUG - No XMPP flaps were noticed during the test 2025-10-22 06:22:43,596 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-22 06:22:43,596 - INFO - -------------------------------------------------------------------------------- 2025-10-22 06:22:44,306 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-85307100, ID : 6847a875-0638-4a5b-9506-3c183306ed62