2025-10-02 10:36:31,166 - INFO - Domain Default found not creating 2025-10-02 10:36:31,332 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-80304808 not found, creating it 2025-10-02 10:36:31,882 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-80304808, ID : 00e27dc8-efb9-42c3-8f7a-293b32c184fb 2025-10-02 10:36:33,419 - INFO - ================================================================================ 2025-10-02 10:36:33,420 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-02 10:36:33,681 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-10-02 10:36:33,681 - INFO - Initial checks done. Running the testcase now 2025-10-02 10:36:33,681 - INFO - 2025-10-02 10:36:33,681 - INFO - ================================================================================ 2025-10-02 10:36:33,682 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-02 10:36:33,682 - 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-02 10:36:33,970 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-10-02 10:36:33,970 - INFO - Initial checks done. Running the testcase now 2025-10-02 10:36:33,970 - INFO - 2025-10-02 10:36:34,328 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80304808:ctest-vn4-84620464, 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-80304808:ctest-vn4-84620464, 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-80304808:ctest-vn4-84620464, 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-80304808:ctest-vn4-84620464, 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-02 10:36:34,859 - DEBUG - Response for create_network : {'network': {'id': '2c2b2be9-0c93-43e3-a857-1f8ee818b505', 'name': 'ctest-vn4-84620464', 'tenant_id': '00e27dc8efb942c38f7a293b32c184fb', 'project_id': '00e27dc8efb942c38f7a293b32c184fb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80304808', 'ctest-vn4-84620464'], 'port_security_enabled': True, 'description': ''}} 2025-10-02 10:36:35,091 - DEBUG - Response for create_subnet : {'subnet': {'id': '2db2d327-ec13-442e-86a0-3ac481a89d9c', 'name': '', 'tenant_id': '00e27dc8efb942c38f7a293b32c184fb', 'network_id': '2c2b2be9-0c93-43e3-a857-1f8ee818b505', 'ip_version': 4, 'cidr': '134.89.193.64/26', 'allocation_pools': [{'start': '134.89.193.66', 'end': '134.89.193.126'}], 'gateway_ip': '134.89.193.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '134.89.193.66', 'tags': [], 'project_id': '00e27dc8efb942c38f7a293b32c184fb'}} 2025-10-02 10:36:35,274 - DEBUG - Response for create_subnet : {'subnet': {'id': '060b5096-a565-4dab-a0b3-e6e650a54015', 'name': '', 'tenant_id': '00e27dc8efb942c38f7a293b32c184fb', 'network_id': '2c2b2be9-0c93-43e3-a857-1f8ee818b505', 'ip_version': 6, 'cidr': '3c9f:553d:b7f:530a:6422:b840::/96', 'allocation_pools': [{'start': '3c9f:553d:b7f:530a:6422:b840:0:2', 'end': '3c9f:553d:b7f:530a:6422:b840:ffff:fffe'}], 'gateway_ip': '3c9f:553d:b7f:530a:6422:b840:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3c9f:553d:b7f:530a:6422:b840:0:2', 'tags': [], 'project_id': '00e27dc8efb942c38f7a293b32c184fb'}} 2025-10-02 10:36:35,298 - INFO - Created VN ctest-vn4-84620464 2025-10-02 10:36:35,352 - DEBUG - VN ctest-vn4-84620464 UUID is 2c2b2be9-0c93-43e3-a857-1f8ee818b505 2025-10-02 10:36:35,560 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2c2b2be9-0c93-43e3-a857-1f8ee818b505', 'name': 'ctest-vn4-84620464', 'tenant_id': '00e27dc8efb942c38f7a293b32c184fb', 'project_id': '00e27dc8efb942c38f7a293b32c184fb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2db2d327-ec13-442e-86a0-3ac481a89d9c', '060b5096-a565-4dab-a0b3-e6e650a54015'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80304808', 'ctest-vn4-84620464'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80304808', 'ctest-policy1-06159683']], 'subnet_ipam': [{'subnet_cidr': '134.89.193.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3c9f:553d:b7f:530a:6422:b840::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-02 10:36:35,720 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-02 10:36:36,015 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-02 10:36:36,046 - DEBUG - Requesting: http://10.0.0.38:8082/domain/86d76833-02f1-4e41-b822-96b155b48b0e 2025-10-02 10:36:36,059 - DEBUG - Requesting: http://10.0.0.38:8082/project/00e27dc8-efb9-42c3-8f7a-293b32c184fb 2025-10-02 10:36:36,131 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2c2b2be9-0c93-43e3-a857-1f8ee818b505 2025-10-02 10:36:36,143 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2c2b2be9-0c93-43e3-a857-1f8ee818b505 2025-10-02 10:36:36,153 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4667c0a8-ab7a-4f53-85a7-36e09163d312 2025-10-02 10:36:36,160 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4667c0a8-ab7a-4f53-85a7-36e09163d312 2025-10-02 10:36:36,167 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/dfa75736-0307-42dd-9d67-ff6a3f3424da 2025-10-02 10:36:36,175 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-02 10:36:36,175 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2c2b2be9-0c93-43e3-a857-1f8ee818b505 2025-10-02 10:36:36,185 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4667c0a8-ab7a-4f53-85a7-36e09163d312 2025-10-02 10:36:36,200 - INFO - Verified VN network id 12 for VN 2c2b2be9-0c93-43e3-a857-1f8ee818b505 2025-10-02 10:36:36,200 - INFO - Verifications in API Server for VN ctest-vn4-84620464 passed 2025-10-02 10:36:36,200 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2c2b2be9-0c93-43e3-a857-1f8ee818b505 2025-10-02 10:36:36,209 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4667c0a8-ab7a-4f53-85a7-36e09163d312 2025-10-02 10:36:36,216 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4667c0a8-ab7a-4f53-85a7-36e09163d312 2025-10-02 10:36:36,222 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/dfa75736-0307-42dd-9d67-ff6a3f3424da 2025-10-02 10:36:36,234 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80304808:ctest-vn4-84620464', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-80304808', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3182685841605739491', 'uuid-lslong': '12130198819985470725'}, 'enable': 'true', 'created': '2025-10-02T10:36:34', 'last-modified': '2025-10-02T10:36:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.692827'} 2025-10-02 10:36:36,239 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-02 10:36:36,239 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-84620464 passed 2025-10-02 10:36:36,240 - DEBUG - ====Verifying policy data for ctest-vn4-84620464 in API_Server ====== 2025-10-02 10:36:36,240 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-02 10:36:36,246 - DEBUG - Requesting: http://10.0.0.38:8082/domain/86d76833-02f1-4e41-b822-96b155b48b0e 2025-10-02 10:36:36,256 - DEBUG - Requesting: http://10.0.0.38:8082/project/00e27dc8-efb9-42c3-8f7a-293b32c184fb 2025-10-02 10:36:36,325 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2c2b2be9-0c93-43e3-a857-1f8ee818b505 2025-10-02 10:36:36,333 - DEBUG - ==>Verifying data for policy with id: 9506fc6d-6870-45f7-9494-c4eabc810c6a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80304808', 'ctest-policy1-06159683'] 2025-10-02 10:36:36,334 - INFO - VN ctest-vn4-84620464 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-02 10:36:36,334 - DEBUG - Verifying the vn in opserver 2025-10-02 10:36:36,334 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80304808:ctest-vn4-84620464 virtual network link through opserver 10.0.0.38 2025-10-02 10:36:36,334 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-02 10:36:36,631 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-02 10:36:36,694 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80304808:ctest-vn4-84620464', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80304808:ctest-vn4-84620464?flat'} 2025-10-02 10:36:36,694 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80304808:ctest-vn4-84620464 is found in opserver 2025-10-02 10:36:36,704 - DEBUG - Do not have enough data to verify VN in agent 2025-10-02 10:36:36,708 - DEBUG - VRF ids for VN ctest-vn4-84620464: {} 2025-10-02 10:36:36,708 - DEBUG - ====Verifying data for ctest-policy1-06159683 in API_Server ====== 2025-10-02 10:36:36,708 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-02 10:36:36,713 - DEBUG - Requesting: http://10.0.0.38:8082/domain/86d76833-02f1-4e41-b822-96b155b48b0e 2025-10-02 10:36:36,723 - DEBUG - Requesting: http://10.0.0.38:8082/project/00e27dc8-efb9-42c3-8f7a-293b32c184fb 2025-10-02 10:36:36,797 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/9506fc6d-6870-45f7-9494-c4eabc810c6a 2025-10-02 10:36:36,807 - INFO - Verified policy ctest-policy1-06159683 in API Server, Result: True 2025-10-02 10:36:36,807 - INFO - Done with setup and verification, moving onto test .. 2025-10-02 10:36:36,816 - INFO - Deleting VN ctest-vn4-84620464 2025-10-02 10:36:36,945 - DEBUG - Response for deleting network () 2025-10-02 10:36:36,946 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4667c0a8-ab7a-4f53-85a7-36e09163d312 2025-10-02 10:36:36,952 - DEBUG - Response Code: 404 2025-10-02 10:36:36,952 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-02 10:36:36,957 - DEBUG - Requesting: http://10.0.0.38:8082/domain/86d76833-02f1-4e41-b822-96b155b48b0e 2025-10-02 10:36:37,014 - DEBUG - Requesting: http://10.0.0.38:8082/project/00e27dc8-efb9-42c3-8f7a-293b32c184fb 2025-10-02 10:36:37,086 - INFO - Validated that VN ctest-vn4-84620464 is not found in API Server 2025-10-02 10:36:37,096 - DEBUG - VN ctest-vn4-84620464 is not present in Agent 10.0.0.38 2025-10-02 10:36:37,096 - INFO - Validated that VN ctest-vn4-84620464 is not in any agent 2025-10-02 10:36:37,111 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-84620464 info 2025-10-02 10:36:37,137 - INFO - Deleted policy ctest-policy1-06159683 2025-10-02 10:36:37,304 - DEBUG - policy ctest-policy1-06159683 is not found in API Server 2025-10-02 10:36:37,571 - DEBUG - No XMPP flaps were noticed during the test
2025-10-02 10:36:37,571 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-02 10:36:37,571 - INFO - -------------------------------------------------------------------------------- 2025-10-02 10:36:37,857 - DEBUG - No XMPP flaps were noticed during the test
2025-10-02 10:36:37,857 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-02 10:36:37,857 - INFO - -------------------------------------------------------------------------------- 2025-10-02 10:36:38,548 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-80304808, ID : 00e27dc8-efb9-42c3-8f7a-293b32c184fb