2025-10-30 16:39:18,950 - INFO - Domain Default found not creating 2025-10-30 16:39:19,123 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-36692631 not found, creating it 2025-10-30 16:39:19,620 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-36692631, ID : 567a3d06-ec8a-4b81-85ee-f36cdc610cd4 2025-10-30 16:39:21,338 - INFO - ================================================================================ 2025-10-30 16:39:21,338 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-30 16:39:21,613 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.254': '0'}} with 2025-10-30 16:39:21,613 - INFO - Initial checks done. Running the testcase now 2025-10-30 16:39:21,613 - INFO - 2025-10-30 16:39:21,613 - INFO - ================================================================================ 2025-10-30 16:39:21,614 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-30 16:39:21,614 - 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-30 16:39:21,905 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.254': '0'}} with 2025-10-30 16:39:21,905 - INFO - Initial checks done. Running the testcase now 2025-10-30 16:39:21,905 - INFO - 2025-10-30 16:39:22,326 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36692631:ctest-vn4-23247201, 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-36692631:ctest-vn4-23247201, 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-36692631:ctest-vn4-23247201, 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-36692631:ctest-vn4-23247201, 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-30 16:39:22,879 - DEBUG - Response for create_network : {'network': {'id': '606c4a49-2291-40dd-9c0c-d1301f35ca2b', 'name': 'ctest-vn4-23247201', 'tenant_id': '567a3d06ec8a4b8185eef36cdc610cd4', 'project_id': '567a3d06ec8a4b8185eef36cdc610cd4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36692631', 'ctest-vn4-23247201'], 'port_security_enabled': True, 'description': ''}} 2025-10-30 16:39:23,101 - DEBUG - Response for create_subnet : {'subnet': {'id': '4912fb42-3e70-413d-9d39-1ed1e33e1e44', 'name': '', 'tenant_id': '567a3d06ec8a4b8185eef36cdc610cd4', 'network_id': '606c4a49-2291-40dd-9c0c-d1301f35ca2b', 'ip_version': 4, 'cidr': '209.99.152.0/26', 'allocation_pools': [{'start': '209.99.152.2', 'end': '209.99.152.62'}], 'gateway_ip': '209.99.152.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '209.99.152.2', 'tags': [], 'project_id': '567a3d06ec8a4b8185eef36cdc610cd4'}} 2025-10-30 16:39:23,318 - DEBUG - Response for create_subnet : {'subnet': {'id': '911e1f24-34f6-4c43-9525-445743743ee3', 'name': '', 'tenant_id': '567a3d06ec8a4b8185eef36cdc610cd4', 'network_id': '606c4a49-2291-40dd-9c0c-d1301f35ca2b', 'ip_version': 6, 'cidr': '2af2:61e9:e498:e134:5ffa:e830::/96', 'allocation_pools': [{'start': '2af2:61e9:e498:e134:5ffa:e830:0:2', 'end': '2af2:61e9:e498:e134:5ffa:e830:ffff:fffe'}], 'gateway_ip': '2af2:61e9:e498:e134:5ffa:e830:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2af2:61e9:e498:e134:5ffa:e830:0:2', 'tags': [], 'project_id': '567a3d06ec8a4b8185eef36cdc610cd4'}} 2025-10-30 16:39:23,343 - INFO - Created VN ctest-vn4-23247201 2025-10-30 16:39:23,397 - DEBUG - VN ctest-vn4-23247201 UUID is 606c4a49-2291-40dd-9c0c-d1301f35ca2b 2025-10-30 16:39:23,635 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '606c4a49-2291-40dd-9c0c-d1301f35ca2b', 'name': 'ctest-vn4-23247201', 'tenant_id': '567a3d06ec8a4b8185eef36cdc610cd4', 'project_id': '567a3d06ec8a4b8185eef36cdc610cd4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4912fb42-3e70-413d-9d39-1ed1e33e1e44', '911e1f24-34f6-4c43-9525-445743743ee3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36692631', 'ctest-vn4-23247201'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36692631', 'ctest-policy1-31213292']], 'subnet_ipam': [{'subnet_cidr': '209.99.152.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2af2:61e9:e498:e134:5ffa:e830::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-30 16:39:23,801 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-10-30 16:39:24,150 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-10-30 16:39:24,185 - DEBUG - Requesting: http://10.0.0.65:8082/domain/3a69b510-c9de-4e4f-b626-bc352dc3138e 2025-10-30 16:39:24,201 - DEBUG - Requesting: http://10.0.0.65:8082/project/567a3d06-ec8a-4b81-85ee-f36cdc610cd4 2025-10-30 16:39:24,285 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/606c4a49-2291-40dd-9c0c-d1301f35ca2b 2025-10-30 16:39:24,318 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/606c4a49-2291-40dd-9c0c-d1301f35ca2b 2025-10-30 16:39:24,335 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/a238c44d-bbb5-46da-94a3-28025555c4a8 2025-10-30 16:39:24,344 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/a238c44d-bbb5-46da-94a3-28025555c4a8 2025-10-30 16:39:24,352 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/a8c3b90a-1d8a-4a5f-b030-8597b219b101 2025-10-30 16:39:24,361 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-30 16:39:24,361 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/606c4a49-2291-40dd-9c0c-d1301f35ca2b 2025-10-30 16:39:24,374 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/a238c44d-bbb5-46da-94a3-28025555c4a8 2025-10-30 16:39:24,395 - INFO - Verified VN network id 12 for VN 606c4a49-2291-40dd-9c0c-d1301f35ca2b 2025-10-30 16:39:24,396 - INFO - Verifications in API Server for VN ctest-vn4-23247201 passed 2025-10-30 16:39:24,396 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/606c4a49-2291-40dd-9c0c-d1301f35ca2b 2025-10-30 16:39:24,409 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/a238c44d-bbb5-46da-94a3-28025555c4a8 2025-10-30 16:39:24,420 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/a238c44d-bbb5-46da-94a3-28025555c4a8 2025-10-30 16:39:24,428 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/a8c3b90a-1d8a-4a5f-b030-8597b219b101 2025-10-30 16:39:24,442 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36692631:ctest-vn4-23247201', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-36692631', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6948010003098845405', 'uuid-lslong': '11244592374249540139'}, 'enable': 'true', 'created': '2025-10-30T16:39:22', 'last-modified': '2025-10-30T16:39:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.842993'} 2025-10-30 16:39:24,450 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-30 16:39:24,450 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-23247201 passed 2025-10-30 16:39:24,451 - DEBUG - ====Verifying policy data for ctest-vn4-23247201 in API_Server ====== 2025-10-30 16:39:24,451 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-10-30 16:39:24,459 - DEBUG - Requesting: http://10.0.0.65:8082/domain/3a69b510-c9de-4e4f-b626-bc352dc3138e 2025-10-30 16:39:24,472 - DEBUG - Requesting: http://10.0.0.65:8082/project/567a3d06-ec8a-4b81-85ee-f36cdc610cd4 2025-10-30 16:39:24,553 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/606c4a49-2291-40dd-9c0c-d1301f35ca2b 2025-10-30 16:39:24,564 - DEBUG - ==>Verifying data for policy with id: 84e81775-4b29-459c-9dc5-fbcc59167930, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36692631', 'ctest-policy1-31213292'] 2025-10-30 16:39:24,564 - INFO - VN ctest-vn4-23247201 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-30 16:39:24,564 - DEBUG - Verifying the vn in opserver 2025-10-30 16:39:24,564 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36692631:ctest-vn4-23247201 virtual network link through opserver 10.0.0.65 2025-10-30 16:39:24,564 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-10-30 16:39:24,915 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-10-30 16:39:24,983 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36692631:ctest-vn4-23247201', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36692631:ctest-vn4-23247201?flat'} 2025-10-30 16:39:24,983 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36692631:ctest-vn4-23247201 is found in opserver 2025-10-30 16:39:25,002 - DEBUG - Do not have enough data to verify VN in agent 2025-10-30 16:39:25,011 - DEBUG - VRF ids for VN ctest-vn4-23247201: {} 2025-10-30 16:39:25,012 - DEBUG - ====Verifying data for ctest-policy1-31213292 in API_Server ====== 2025-10-30 16:39:25,012 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-10-30 16:39:25,020 - DEBUG - Requesting: http://10.0.0.65:8082/domain/3a69b510-c9de-4e4f-b626-bc352dc3138e 2025-10-30 16:39:25,035 - DEBUG - Requesting: http://10.0.0.65:8082/project/567a3d06-ec8a-4b81-85ee-f36cdc610cd4 2025-10-30 16:39:25,115 - DEBUG - Requesting: http://10.0.0.65:8082/network-policy/84e81775-4b29-459c-9dc5-fbcc59167930 2025-10-30 16:39:25,125 - INFO - Verified policy ctest-policy1-31213292 in API Server, Result: True 2025-10-30 16:39:25,125 - INFO - Done with setup and verification, moving onto test .. 2025-10-30 16:39:25,135 - INFO - Deleting VN ctest-vn4-23247201 2025-10-30 16:39:25,274 - DEBUG - Response for deleting network () 2025-10-30 16:39:25,274 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/a238c44d-bbb5-46da-94a3-28025555c4a8 2025-10-30 16:39:25,280 - DEBUG - Response Code: 404 2025-10-30 16:39:25,280 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-10-30 16:39:25,286 - DEBUG - Requesting: http://10.0.0.65:8082/domain/3a69b510-c9de-4e4f-b626-bc352dc3138e 2025-10-30 16:39:25,343 - DEBUG - Requesting: http://10.0.0.65:8082/project/567a3d06-ec8a-4b81-85ee-f36cdc610cd4 2025-10-30 16:39:25,416 - INFO - Validated that VN ctest-vn4-23247201 is not found in API Server 2025-10-30 16:39:25,429 - DEBUG - VN ctest-vn4-23247201 is not present in Agent 10.0.0.65 2025-10-30 16:39:25,429 - INFO - Validated that VN ctest-vn4-23247201 is not in any agent 2025-10-30 16:39:25,447 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-23247201 info 2025-10-30 16:39:25,474 - INFO - Deleted policy ctest-policy1-31213292 2025-10-30 16:39:25,656 - DEBUG - policy ctest-policy1-31213292 is not found in API Server 2025-10-30 16:39:25,923 - DEBUG - No XMPP flaps were noticed during the test
2025-10-30 16:39:25,923 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-30 16:39:25,923 - INFO - -------------------------------------------------------------------------------- 2025-10-30 16:39:26,222 - DEBUG - No XMPP flaps were noticed during the test
2025-10-30 16:39:26,223 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-10-30 16:39:26,223 - INFO - -------------------------------------------------------------------------------- 2025-10-30 16:39:27,005 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-36692631, ID : 567a3d06-ec8a-4b81-85ee-f36cdc610cd4