2025-10-06 16:11:44,446 - INFO - Domain Default found not creating 2025-10-06 16:11:44,607 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-80287650 not found, creating it 2025-10-06 16:11:45,068 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-80287650, ID : bdb95c2f-9f9e-4229-bad2-04bf28c39bc7 2025-10-06 16:11:46,509 - INFO - ================================================================================ 2025-10-06 16:11:46,509 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-06 16:11:46,764 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2025-10-06 16:11:46,764 - INFO - Initial checks done. Running the testcase now 2025-10-06 16:11:46,764 - INFO - 2025-10-06 16:11:46,764 - INFO - ================================================================================ 2025-10-06 16:11:46,764 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-06 16:11:46,764 - 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-06 16:11:47,057 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2025-10-06 16:11:47,057 - INFO - Initial checks done. Running the testcase now 2025-10-06 16:11:47,057 - INFO - 2025-10-06 16:11:47,409 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80287650:ctest-vn4-39867999, 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-80287650:ctest-vn4-39867999, 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-80287650:ctest-vn4-39867999, 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-80287650:ctest-vn4-39867999, 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-06 16:11:47,919 - DEBUG - Response for create_network : {'network': {'id': '829abd37-abf6-4511-b9dc-7e3e46e16bfd', 'name': 'ctest-vn4-39867999', 'tenant_id': 'bdb95c2f9f9e4229bad204bf28c39bc7', 'project_id': 'bdb95c2f9f9e4229bad204bf28c39bc7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80287650', 'ctest-vn4-39867999'], 'port_security_enabled': True, 'description': ''}} 2025-10-06 16:11:48,135 - DEBUG - Response for create_subnet : {'subnet': {'id': '679e718e-0e13-424d-adb0-05f1d684f00e', 'name': '', 'tenant_id': 'bdb95c2f9f9e4229bad204bf28c39bc7', 'network_id': '829abd37-abf6-4511-b9dc-7e3e46e16bfd', 'ip_version': 4, 'cidr': '44.231.97.64/26', 'allocation_pools': [{'start': '44.231.97.66', 'end': '44.231.97.126'}], 'gateway_ip': '44.231.97.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '44.231.97.66', 'tags': [], 'project_id': 'bdb95c2f9f9e4229bad204bf28c39bc7'}} 2025-10-06 16:11:48,325 - DEBUG - Response for create_subnet : {'subnet': {'id': '19678b33-30e7-4a52-b6a7-fbb61b835873', 'name': '', 'tenant_id': 'bdb95c2f9f9e4229bad204bf28c39bc7', 'network_id': '829abd37-abf6-4511-b9dc-7e3e46e16bfd', 'ip_version': 6, 'cidr': '35ab:c629:9db:ae17:a44d:3cea::/96', 'allocation_pools': [{'start': '35ab:c629:9db:ae17:a44d:3cea:0:2', 'end': '35ab:c629:9db:ae17:a44d:3cea:ffff:fffe'}], 'gateway_ip': '35ab:c629:9db:ae17:a44d:3cea:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '35ab:c629:9db:ae17:a44d:3cea:0:2', 'tags': [], 'project_id': 'bdb95c2f9f9e4229bad204bf28c39bc7'}} 2025-10-06 16:11:48,345 - INFO - Created VN ctest-vn4-39867999 2025-10-06 16:11:48,399 - DEBUG - VN ctest-vn4-39867999 UUID is 829abd37-abf6-4511-b9dc-7e3e46e16bfd 2025-10-06 16:11:48,601 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '829abd37-abf6-4511-b9dc-7e3e46e16bfd', 'name': 'ctest-vn4-39867999', 'tenant_id': 'bdb95c2f9f9e4229bad204bf28c39bc7', 'project_id': 'bdb95c2f9f9e4229bad204bf28c39bc7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['679e718e-0e13-424d-adb0-05f1d684f00e', '19678b33-30e7-4a52-b6a7-fbb61b835873'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80287650', 'ctest-vn4-39867999'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80287650', 'ctest-policy1-57524996']], 'subnet_ipam': [{'subnet_cidr': '44.231.97.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '35ab:c629:9db:ae17:a44d:3cea::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-06 16:11:48,767 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-10-06 16:11:49,062 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-10-06 16:11:49,091 - DEBUG - Requesting: http://10.0.0.50:8082/domain/4d3ba2d9-9eef-4910-a9c2-3a1aafdaccfe 2025-10-06 16:11:49,115 - DEBUG - Requesting: http://10.0.0.50:8082/project/bdb95c2f-9f9e-4229-bad2-04bf28c39bc7 2025-10-06 16:11:49,185 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/829abd37-abf6-4511-b9dc-7e3e46e16bfd 2025-10-06 16:11:49,198 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/829abd37-abf6-4511-b9dc-7e3e46e16bfd 2025-10-06 16:11:49,207 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/86560c1b-4c41-49c6-81f2-7164d018605e 2025-10-06 16:11:49,214 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/86560c1b-4c41-49c6-81f2-7164d018605e 2025-10-06 16:11:49,221 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/c7f5df57-712c-49db-a53e-7000e744d27f 2025-10-06 16:11:49,230 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-06 16:11:49,230 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/829abd37-abf6-4511-b9dc-7e3e46e16bfd 2025-10-06 16:11:49,239 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/86560c1b-4c41-49c6-81f2-7164d018605e 2025-10-06 16:11:49,253 - INFO - Verified VN network id 11 for VN 829abd37-abf6-4511-b9dc-7e3e46e16bfd 2025-10-06 16:11:49,253 - INFO - Verifications in API Server for VN ctest-vn4-39867999 passed 2025-10-06 16:11:49,253 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/829abd37-abf6-4511-b9dc-7e3e46e16bfd 2025-10-06 16:11:49,262 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/86560c1b-4c41-49c6-81f2-7164d018605e 2025-10-06 16:11:49,269 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/86560c1b-4c41-49c6-81f2-7164d018605e 2025-10-06 16:11:49,276 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/c7f5df57-712c-49db-a53e-7000e744d27f 2025-10-06 16:11:49,287 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80287650:ctest-vn4-39867999', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-80287650', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9411042418149967121', 'uuid-lslong': '13392718197835262973'}, 'enable': 'true', 'created': '2025-10-06T16:11:47', 'last-modified': '2025-10-06T16:11:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.714781'} 2025-10-06 16:11:49,294 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-06 16:11:49,294 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-39867999 passed 2025-10-06 16:11:49,294 - DEBUG - ====Verifying policy data for ctest-vn4-39867999 in API_Server ====== 2025-10-06 16:11:49,294 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-10-06 16:11:49,300 - DEBUG - Requesting: http://10.0.0.50:8082/domain/4d3ba2d9-9eef-4910-a9c2-3a1aafdaccfe 2025-10-06 16:11:49,310 - DEBUG - Requesting: http://10.0.0.50:8082/project/bdb95c2f-9f9e-4229-bad2-04bf28c39bc7 2025-10-06 16:11:49,382 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/829abd37-abf6-4511-b9dc-7e3e46e16bfd 2025-10-06 16:11:49,394 - DEBUG - ==>Verifying data for policy with id: 214689d1-c3d9-429e-85ca-1d2e3289e89e, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80287650', 'ctest-policy1-57524996'] 2025-10-06 16:11:49,394 - INFO - VN ctest-vn4-39867999 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-06 16:11:49,394 - DEBUG - Verifying the vn in opserver 2025-10-06 16:11:49,394 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80287650:ctest-vn4-39867999 virtual network link through opserver 10.0.0.50 2025-10-06 16:11:49,394 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-10-06 16:11:49,688 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-10-06 16:11:49,749 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80287650:ctest-vn4-39867999', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80287650:ctest-vn4-39867999?flat'} 2025-10-06 16:11:49,749 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80287650:ctest-vn4-39867999 is found in opserver 2025-10-06 16:11:49,758 - DEBUG - Do not have enough data to verify VN in agent 2025-10-06 16:11:49,762 - DEBUG - VRF ids for VN ctest-vn4-39867999: {} 2025-10-06 16:11:49,762 - DEBUG - ====Verifying data for ctest-policy1-57524996 in API_Server ====== 2025-10-06 16:11:49,762 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-10-06 16:11:49,768 - DEBUG - Requesting: http://10.0.0.50:8082/domain/4d3ba2d9-9eef-4910-a9c2-3a1aafdaccfe 2025-10-06 16:11:49,779 - DEBUG - Requesting: http://10.0.0.50:8082/project/bdb95c2f-9f9e-4229-bad2-04bf28c39bc7 2025-10-06 16:11:49,852 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/214689d1-c3d9-429e-85ca-1d2e3289e89e 2025-10-06 16:11:49,863 - INFO - Verified policy ctest-policy1-57524996 in API Server, Result: True 2025-10-06 16:11:49,863 - INFO - Done with setup and verification, moving onto test .. 2025-10-06 16:11:49,871 - INFO - Deleting VN ctest-vn4-39867999 2025-10-06 16:11:49,987 - DEBUG - Response for deleting network () 2025-10-06 16:11:49,987 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/86560c1b-4c41-49c6-81f2-7164d018605e 2025-10-06 16:11:49,992 - DEBUG - Response Code: 404 2025-10-06 16:11:49,992 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-10-06 16:11:50,072 - DEBUG - Requesting: http://10.0.0.50:8082/domain/4d3ba2d9-9eef-4910-a9c2-3a1aafdaccfe 2025-10-06 16:11:50,083 - DEBUG - Requesting: http://10.0.0.50:8082/project/bdb95c2f-9f9e-4229-bad2-04bf28c39bc7 2025-10-06 16:11:50,154 - INFO - Validated that VN ctest-vn4-39867999 is not found in API Server 2025-10-06 16:11:50,164 - DEBUG - VN ctest-vn4-39867999 is not present in Agent 10.0.0.50 2025-10-06 16:11:50,164 - INFO - Validated that VN ctest-vn4-39867999 is not in any agent 2025-10-06 16:11:50,177 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-39867999 info 2025-10-06 16:11:50,202 - INFO - Deleted policy ctest-policy1-57524996 2025-10-06 16:11:50,363 - DEBUG - policy ctest-policy1-57524996 is not found in API Server 2025-10-06 16:11:50,616 - DEBUG - No XMPP flaps were noticed during the test
2025-10-06 16:11:50,616 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-06 16:11:50,617 - INFO - -------------------------------------------------------------------------------- 2025-10-06 16:11:50,908 - DEBUG - No XMPP flaps were noticed during the test
2025-10-06 16:11:50,908 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-06 16:11:50,908 - INFO - -------------------------------------------------------------------------------- 2025-10-06 16:11:51,591 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-80287650, ID : bdb95c2f-9f9e-4229-bad2-04bf28c39bc7