2025-12-22 02:19:06,623 - INFO - Domain Default found not creating 2025-12-22 02:19:06,790 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-92945789 not found, creating it 2025-12-22 02:19:07,272 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-92945789, ID : 72d41c5e-b327-4d97-9c1e-22e7eaacdf45 2025-12-22 02:19:08,782 - INFO - ================================================================================ 2025-12-22 02:19:08,783 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-22 02:19:09,053 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.242': '0'}} with 2025-12-22 02:19:09,054 - INFO - Initial checks done. Running the testcase now 2025-12-22 02:19:09,054 - INFO - 2025-12-22 02:19:09,054 - INFO - ================================================================================ 2025-12-22 02:19:09,054 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-22 02:19:09,054 - 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-12-22 02:19:09,351 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.242': '0'}} with 2025-12-22 02:19:09,351 - INFO - Initial checks done. Running the testcase now 2025-12-22 02:19:09,352 - INFO - 2025-12-22 02:19:09,730 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92945789:ctest-vn4-76493242, 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-92945789:ctest-vn4-76493242, 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-92945789:ctest-vn4-76493242, 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-92945789:ctest-vn4-76493242, 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-12-22 02:19:10,273 - DEBUG - Response for create_network : {'network': {'id': 'a4e92292-9629-4525-9016-97a8968e566c', 'name': 'ctest-vn4-76493242', 'tenant_id': '72d41c5eb3274d979c1e22e7eaacdf45', 'project_id': '72d41c5eb3274d979c1e22e7eaacdf45', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-92945789', 'ctest-vn4-76493242'], 'port_security_enabled': True, 'description': ''}} 2025-12-22 02:19:10,482 - DEBUG - Response for create_subnet : {'subnet': {'id': '817bfe8a-6272-4839-8f06-8e57a8d5e181', 'name': '', 'tenant_id': '72d41c5eb3274d979c1e22e7eaacdf45', 'network_id': 'a4e92292-9629-4525-9016-97a8968e566c', 'ip_version': 4, 'cidr': '91.49.248.192/26', 'allocation_pools': [{'start': '91.49.248.194', 'end': '91.49.248.254'}], 'gateway_ip': '91.49.248.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '91.49.248.194', 'tags': [], 'project_id': '72d41c5eb3274d979c1e22e7eaacdf45'}} 2025-12-22 02:19:10,695 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fa4595ee-3db5-4a42-b881-6a5c7569970e', 'name': '', 'tenant_id': '72d41c5eb3274d979c1e22e7eaacdf45', 'network_id': 'a4e92292-9629-4525-9016-97a8968e566c', 'ip_version': 6, 'cidr': '2031:f20b:c37c:34c0:ffa6:c698::/96', 'allocation_pools': [{'start': '2031:f20b:c37c:34c0:ffa6:c698:0:2', 'end': '2031:f20b:c37c:34c0:ffa6:c698:ffff:fffe'}], 'gateway_ip': '2031:f20b:c37c:34c0:ffa6:c698:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2031:f20b:c37c:34c0:ffa6:c698:0:2', 'tags': [], 'project_id': '72d41c5eb3274d979c1e22e7eaacdf45'}} 2025-12-22 02:19:10,715 - INFO - Created VN ctest-vn4-76493242 2025-12-22 02:19:10,767 - DEBUG - VN ctest-vn4-76493242 UUID is a4e92292-9629-4525-9016-97a8968e566c 2025-12-22 02:19:10,991 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a4e92292-9629-4525-9016-97a8968e566c', 'name': 'ctest-vn4-76493242', 'tenant_id': '72d41c5eb3274d979c1e22e7eaacdf45', 'project_id': '72d41c5eb3274d979c1e22e7eaacdf45', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['817bfe8a-6272-4839-8f06-8e57a8d5e181', 'fa4595ee-3db5-4a42-b881-6a5c7569970e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-92945789', 'ctest-vn4-76493242'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-92945789', 'ctest-policy1-66944082']], 'subnet_ipam': [{'subnet_cidr': '91.49.248.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2031:f20b:c37c:34c0:ffa6:c698::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-22 02:19:11,159 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-22 02:19:11,473 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-22 02:19:11,506 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d7d786fd-4fd7-42a5-b62e-06c5e0c5ff6b 2025-12-22 02:19:11,518 - DEBUG - Requesting: http://10.0.0.38:8082/project/72d41c5e-b327-4d97-9c1e-22e7eaacdf45 2025-12-22 02:19:11,593 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a4e92292-9629-4525-9016-97a8968e566c 2025-12-22 02:19:11,615 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a4e92292-9629-4525-9016-97a8968e566c 2025-12-22 02:19:11,624 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/42f13fd3-f1d5-497b-9b2a-abaa2b2cc065 2025-12-22 02:19:11,631 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/42f13fd3-f1d5-497b-9b2a-abaa2b2cc065 2025-12-22 02:19:11,637 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f8ed576c-9999-4113-b30d-f0e3073020fc 2025-12-22 02:19:11,643 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-22 02:19:11,643 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a4e92292-9629-4525-9016-97a8968e566c 2025-12-22 02:19:11,651 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/42f13fd3-f1d5-497b-9b2a-abaa2b2cc065 2025-12-22 02:19:11,663 - INFO - Verified VN network id 11 for VN a4e92292-9629-4525-9016-97a8968e566c 2025-12-22 02:19:11,664 - INFO - Verifications in API Server for VN ctest-vn4-76493242 passed 2025-12-22 02:19:11,664 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a4e92292-9629-4525-9016-97a8968e566c 2025-12-22 02:19:11,672 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/42f13fd3-f1d5-497b-9b2a-abaa2b2cc065 2025-12-22 02:19:11,679 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/42f13fd3-f1d5-497b-9b2a-abaa2b2cc065 2025-12-22 02:19:11,685 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f8ed576c-9999-4113-b30d-f0e3073020fc 2025-12-22 02:19:11,697 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92945789:ctest-vn4-76493242', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-92945789', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11883067104773621029', 'uuid-lslong': '10382652741285467756'}, 'enable': 'true', 'created': '2025-12-22T02:19:10', 'last-modified': '2025-12-22T02:19:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.738263'} 2025-12-22 02:19:11,702 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-22 02:19:11,702 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-76493242 passed 2025-12-22 02:19:11,703 - DEBUG - ====Verifying policy data for ctest-vn4-76493242 in API_Server ====== 2025-12-22 02:19:11,703 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-22 02:19:11,708 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d7d786fd-4fd7-42a5-b62e-06c5e0c5ff6b 2025-12-22 02:19:11,718 - DEBUG - Requesting: http://10.0.0.38:8082/project/72d41c5e-b327-4d97-9c1e-22e7eaacdf45 2025-12-22 02:19:11,788 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a4e92292-9629-4525-9016-97a8968e566c 2025-12-22 02:19:11,799 - DEBUG - ==>Verifying data for policy with id: 37546ee9-0ea5-4b4d-823c-7d03d9386848, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-92945789', 'ctest-policy1-66944082'] 2025-12-22 02:19:11,799 - INFO - VN ctest-vn4-76493242 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-22 02:19:11,799 - DEBUG - Verifying the vn in opserver 2025-12-22 02:19:11,799 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92945789:ctest-vn4-76493242 virtual network link through opserver 10.0.0.38 2025-12-22 02:19:11,799 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-12-22 02:19:12,110 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-12-22 02:19:12,187 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92945789:ctest-vn4-76493242', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92945789:ctest-vn4-76493242?flat'} 2025-12-22 02:19:12,187 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92945789:ctest-vn4-76493242 is found in opserver 2025-12-22 02:19:12,198 - DEBUG - Do not have enough data to verify VN in agent 2025-12-22 02:19:12,203 - DEBUG - VRF ids for VN ctest-vn4-76493242: {} 2025-12-22 02:19:12,204 - DEBUG - ====Verifying data for ctest-policy1-66944082 in API_Server ====== 2025-12-22 02:19:12,204 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-22 02:19:12,209 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d7d786fd-4fd7-42a5-b62e-06c5e0c5ff6b 2025-12-22 02:19:12,219 - DEBUG - Requesting: http://10.0.0.38:8082/project/72d41c5e-b327-4d97-9c1e-22e7eaacdf45 2025-12-22 02:19:12,295 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/37546ee9-0ea5-4b4d-823c-7d03d9386848 2025-12-22 02:19:12,305 - INFO - Verified policy ctest-policy1-66944082 in API Server, Result: True 2025-12-22 02:19:12,305 - INFO - Done with setup and verification, moving onto test .. 2025-12-22 02:19:12,314 - INFO - Deleting VN ctest-vn4-76493242 2025-12-22 02:19:12,440 - DEBUG - Response for deleting network () 2025-12-22 02:19:12,440 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/42f13fd3-f1d5-497b-9b2a-abaa2b2cc065 2025-12-22 02:19:12,445 - DEBUG - Response Code: 404 2025-12-22 02:19:12,445 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-22 02:19:12,452 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d7d786fd-4fd7-42a5-b62e-06c5e0c5ff6b 2025-12-22 02:19:12,504 - DEBUG - Requesting: http://10.0.0.38:8082/project/72d41c5e-b327-4d97-9c1e-22e7eaacdf45 2025-12-22 02:19:12,587 - INFO - Validated that VN ctest-vn4-76493242 is not found in API Server 2025-12-22 02:19:12,598 - DEBUG - VN ctest-vn4-76493242 is not present in Agent 10.0.0.38 2025-12-22 02:19:12,598 - INFO - Validated that VN ctest-vn4-76493242 is not in any agent 2025-12-22 02:19:12,613 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-76493242 info 2025-12-22 02:19:12,638 - INFO - Deleted policy ctest-policy1-66944082 2025-12-22 02:19:12,803 - DEBUG - policy ctest-policy1-66944082 is not found in API Server 2025-12-22 02:19:13,072 - DEBUG - No XMPP flaps were noticed during the test