2025-10-24 19:42:17,213 - INFO - Domain Default found not creating 2025-10-24 19:42:17,353 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-44550897 not found, creating it 2025-10-24 19:42:17,792 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-44550897, ID : b25b34bd-a0d5-4ab6-83c0-4083df409e95 2025-10-24 19:42:19,158 - INFO - ================================================================================ 2025-10-24 19:42:19,159 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-24 19:42:19,412 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.254': '0'}} with 2025-10-24 19:42:19,412 - INFO - Initial checks done. Running the testcase now 2025-10-24 19:42:19,412 - INFO - 2025-10-24 19:42:19,412 - INFO - ================================================================================ 2025-10-24 19:42:19,412 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-24 19:42:19,413 - 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-24 19:42:19,708 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.254': '0'}} with 2025-10-24 19:42:19,708 - INFO - Initial checks done. Running the testcase now 2025-10-24 19:42:19,708 - INFO - 2025-10-24 19:42:20,049 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44550897:ctest-vn4-12926311, 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-44550897:ctest-vn4-12926311, 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-44550897:ctest-vn4-12926311, 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-44550897:ctest-vn4-12926311, 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-24 19:42:20,539 - DEBUG - Response for create_network : {'network': {'id': '954f8f60-9e2f-4fc6-b892-d0be4b35cf04', 'name': 'ctest-vn4-12926311', 'tenant_id': 'b25b34bda0d54ab683c04083df409e95', 'project_id': 'b25b34bda0d54ab683c04083df409e95', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-44550897', 'ctest-vn4-12926311'], 'port_security_enabled': True, 'description': ''}} 2025-10-24 19:42:20,701 - DEBUG - Response for create_subnet : {'subnet': {'id': '8cb57be6-98e5-482e-a859-f46b311c88b4', 'name': '', 'tenant_id': 'b25b34bda0d54ab683c04083df409e95', 'network_id': '954f8f60-9e2f-4fc6-b892-d0be4b35cf04', 'ip_version': 4, 'cidr': '177.220.162.64/26', 'allocation_pools': [{'start': '177.220.162.66', 'end': '177.220.162.126'}], 'gateway_ip': '177.220.162.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '177.220.162.66', 'tags': [], 'project_id': 'b25b34bda0d54ab683c04083df409e95'}} 2025-10-24 19:42:20,886 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dd5c13e9-f562-4e3b-990d-57eb2bf02a2f', 'name': '', 'tenant_id': 'b25b34bda0d54ab683c04083df409e95', 'network_id': '954f8f60-9e2f-4fc6-b892-d0be4b35cf04', 'ip_version': 6, 'cidr': '2a0f:fe67:6eb2:aa0:4844:4767::/96', 'allocation_pools': [{'start': '2a0f:fe67:6eb2:aa0:4844:4767:0:2', 'end': '2a0f:fe67:6eb2:aa0:4844:4767:ffff:fffe'}], 'gateway_ip': '2a0f:fe67:6eb2:aa0:4844:4767:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2a0f:fe67:6eb2:aa0:4844:4767:0:2', 'tags': [], 'project_id': 'b25b34bda0d54ab683c04083df409e95'}} 2025-10-24 19:42:20,908 - INFO - Created VN ctest-vn4-12926311 2025-10-24 19:42:20,960 - DEBUG - VN ctest-vn4-12926311 UUID is 954f8f60-9e2f-4fc6-b892-d0be4b35cf04 2025-10-24 19:42:21,158 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '954f8f60-9e2f-4fc6-b892-d0be4b35cf04', 'name': 'ctest-vn4-12926311', 'tenant_id': 'b25b34bda0d54ab683c04083df409e95', 'project_id': 'b25b34bda0d54ab683c04083df409e95', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8cb57be6-98e5-482e-a859-f46b311c88b4', 'dd5c13e9-f562-4e3b-990d-57eb2bf02a2f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-44550897', 'ctest-vn4-12926311'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-44550897', 'ctest-policy1-85199909']], 'subnet_ipam': [{'subnet_cidr': '177.220.162.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2a0f:fe67:6eb2:aa0:4844:4767::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-24 19:42:21,324 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-24 19:42:21,614 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-24 19:42:21,639 - DEBUG - Requesting: http://10.0.0.242:8082/domain/60935b09-8ef8-4054-80ac-d6b63ada9d5e 2025-10-24 19:42:21,650 - DEBUG - Requesting: http://10.0.0.242:8082/project/b25b34bd-a0d5-4ab6-83c0-4083df409e95 2025-10-24 19:42:21,717 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/954f8f60-9e2f-4fc6-b892-d0be4b35cf04 2025-10-24 19:42:21,730 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/954f8f60-9e2f-4fc6-b892-d0be4b35cf04 2025-10-24 19:42:21,741 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/659df086-fbc6-4269-a63a-e5c15734e4e1 2025-10-24 19:42:21,749 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/659df086-fbc6-4269-a63a-e5c15734e4e1 2025-10-24 19:42:21,757 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/6baadbb3-6184-4858-abbf-deae1034c3fc 2025-10-24 19:42:21,765 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-24 19:42:21,765 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/954f8f60-9e2f-4fc6-b892-d0be4b35cf04 2025-10-24 19:42:21,776 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/659df086-fbc6-4269-a63a-e5c15734e4e1 2025-10-24 19:42:21,793 - INFO - Verified VN network id 12 for VN 954f8f60-9e2f-4fc6-b892-d0be4b35cf04 2025-10-24 19:42:21,794 - INFO - Verifications in API Server for VN ctest-vn4-12926311 passed 2025-10-24 19:42:21,794 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/954f8f60-9e2f-4fc6-b892-d0be4b35cf04 2025-10-24 19:42:21,805 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/659df086-fbc6-4269-a63a-e5c15734e4e1 2025-10-24 19:42:21,814 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/659df086-fbc6-4269-a63a-e5c15734e4e1 2025-10-24 19:42:21,821 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/6baadbb3-6184-4858-abbf-deae1034c3fc 2025-10-24 19:42:21,833 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44550897:ctest-vn4-12926311', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-44550897', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10758975679944937414', 'uuid-lslong': '13299922165302677252'}, 'enable': 'true', 'created': '2025-10-24T19:42:20', 'last-modified': '2025-10-24T19:42:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.700967'} 2025-10-24 19:42:21,838 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-24 19:42:21,838 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-12926311 passed 2025-10-24 19:42:21,838 - DEBUG - ====Verifying policy data for ctest-vn4-12926311 in API_Server ====== 2025-10-24 19:42:21,838 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-24 19:42:21,843 - DEBUG - Requesting: http://10.0.0.242:8082/domain/60935b09-8ef8-4054-80ac-d6b63ada9d5e 2025-10-24 19:42:21,858 - DEBUG - Requesting: http://10.0.0.242:8082/project/b25b34bd-a0d5-4ab6-83c0-4083df409e95 2025-10-24 19:42:21,932 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/954f8f60-9e2f-4fc6-b892-d0be4b35cf04 2025-10-24 19:42:21,945 - DEBUG - ==>Verifying data for policy with id: 1974335f-7132-4912-aac9-3f604dd18b3a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-44550897', 'ctest-policy1-85199909'] 2025-10-24 19:42:21,945 - INFO - VN ctest-vn4-12926311 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-24 19:42:21,945 - DEBUG - Verifying the vn in opserver 2025-10-24 19:42:21,945 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44550897:ctest-vn4-12926311 virtual network link through opserver 10.0.0.242 2025-10-24 19:42:21,945 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-10-24 19:42:22,233 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-10-24 19:42:22,285 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44550897:ctest-vn4-12926311', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44550897:ctest-vn4-12926311?flat'} 2025-10-24 19:42:22,285 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44550897:ctest-vn4-12926311 is found in opserver 2025-10-24 19:42:22,296 - DEBUG - Do not have enough data to verify VN in agent 2025-10-24 19:42:22,300 - DEBUG - VRF ids for VN ctest-vn4-12926311: {} 2025-10-24 19:42:22,301 - DEBUG - ====Verifying data for ctest-policy1-85199909 in API_Server ====== 2025-10-24 19:42:22,301 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-24 19:42:22,305 - DEBUG - Requesting: http://10.0.0.242:8082/domain/60935b09-8ef8-4054-80ac-d6b63ada9d5e 2025-10-24 19:42:22,315 - DEBUG - Requesting: http://10.0.0.242:8082/project/b25b34bd-a0d5-4ab6-83c0-4083df409e95 2025-10-24 19:42:22,379 - DEBUG - Requesting: http://10.0.0.242:8082/network-policy/1974335f-7132-4912-aac9-3f604dd18b3a 2025-10-24 19:42:22,388 - INFO - Verified policy ctest-policy1-85199909 in API Server, Result: True 2025-10-24 19:42:22,388 - INFO - Done with setup and verification, moving onto test .. 2025-10-24 19:42:22,396 - INFO - Deleting VN ctest-vn4-12926311 2025-10-24 19:42:22,510 - DEBUG - Response for deleting network () 2025-10-24 19:42:22,510 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/659df086-fbc6-4269-a63a-e5c15734e4e1 2025-10-24 19:42:22,514 - DEBUG - Response Code: 404 2025-10-24 19:42:22,514 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-24 19:42:22,518 - DEBUG - Requesting: http://10.0.0.242:8082/domain/60935b09-8ef8-4054-80ac-d6b63ada9d5e 2025-10-24 19:42:22,569 - DEBUG - Requesting: http://10.0.0.242:8082/project/b25b34bd-a0d5-4ab6-83c0-4083df409e95 2025-10-24 19:42:22,637 - INFO - Validated that VN ctest-vn4-12926311 is not found in API Server 2025-10-24 19:42:22,646 - DEBUG - VN ctest-vn4-12926311 is not present in Agent 10.0.0.242 2025-10-24 19:42:22,646 - INFO - Validated that VN ctest-vn4-12926311 is not in any agent 2025-10-24 19:42:22,660 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-12926311 info 2025-10-24 19:42:22,683 - INFO - Deleted policy ctest-policy1-85199909 2025-10-24 19:42:22,848 - DEBUG - policy ctest-policy1-85199909 is not found in API Server 2025-10-24 19:42:23,106 - DEBUG - No XMPP flaps were noticed during the test