2025-10-02 01:50:59,416 - INFO - Domain Default found not creating 2025-10-02 01:50:59,531 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-48262045 not found, creating it 2025-10-02 01:50:59,992 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-48262045, ID : ef8bc578-75dc-492e-891f-422234f6d33c 2025-10-02 01:51:01,292 - INFO - ================================================================================ 2025-10-02 01:51:01,292 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-02 01:51:01,553 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-10-02 01:51:01,553 - INFO - Initial checks done. Running the testcase now 2025-10-02 01:51:01,554 - INFO - 2025-10-02 01:51:01,554 - INFO - ================================================================================ 2025-10-02 01:51:01,554 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-02 01:51:01,554 - 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 01:51:01,840 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-10-02 01:51:01,840 - INFO - Initial checks done. Running the testcase now 2025-10-02 01:51:01,840 - INFO - 2025-10-02 01:51:02,175 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48262045:ctest-vn4-39972311, 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-48262045:ctest-vn4-39972311, 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-48262045:ctest-vn4-39972311, 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-48262045:ctest-vn4-39972311, 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 01:51:02,703 - DEBUG - Response for create_network : {'network': {'id': '070f092d-6b7f-4000-9f89-0115feb2af8a', 'name': 'ctest-vn4-39972311', 'tenant_id': 'ef8bc57875dc492e891f422234f6d33c', 'project_id': 'ef8bc57875dc492e891f422234f6d33c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48262045', 'ctest-vn4-39972311'], 'port_security_enabled': True, 'description': ''}} 2025-10-02 01:51:02,830 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dc1cf64a-6dbc-4a31-b1af-a6a5c2534838', 'name': '', 'tenant_id': 'ef8bc57875dc492e891f422234f6d33c', 'network_id': '070f092d-6b7f-4000-9f89-0115feb2af8a', 'ip_version': 4, 'cidr': '162.1.100.64/26', 'allocation_pools': [{'start': '162.1.100.66', 'end': '162.1.100.126'}], 'gateway_ip': '162.1.100.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '162.1.100.66', 'tags': [], 'project_id': 'ef8bc57875dc492e891f422234f6d33c'}} 2025-10-02 01:51:03,011 - DEBUG - Response for create_subnet : {'subnet': {'id': '17368d6a-c697-4861-936e-56d8aabde653', 'name': '', 'tenant_id': 'ef8bc57875dc492e891f422234f6d33c', 'network_id': '070f092d-6b7f-4000-9f89-0115feb2af8a', 'ip_version': 6, 'cidr': '2c09:5abe:9f25:f1ab:a394:2fbf::/96', 'allocation_pools': [{'start': '2c09:5abe:9f25:f1ab:a394:2fbf:0:2', 'end': '2c09:5abe:9f25:f1ab:a394:2fbf:ffff:fffe'}], 'gateway_ip': '2c09:5abe:9f25:f1ab:a394:2fbf:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2c09:5abe:9f25:f1ab:a394:2fbf:0:2', 'tags': [], 'project_id': 'ef8bc57875dc492e891f422234f6d33c'}} 2025-10-02 01:51:03,029 - INFO - Created VN ctest-vn4-39972311 2025-10-02 01:51:03,080 - DEBUG - VN ctest-vn4-39972311 UUID is 070f092d-6b7f-4000-9f89-0115feb2af8a 2025-10-02 01:51:03,257 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '070f092d-6b7f-4000-9f89-0115feb2af8a', 'name': 'ctest-vn4-39972311', 'tenant_id': 'ef8bc57875dc492e891f422234f6d33c', 'project_id': 'ef8bc57875dc492e891f422234f6d33c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['dc1cf64a-6dbc-4a31-b1af-a6a5c2534838', '17368d6a-c697-4861-936e-56d8aabde653'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48262045', 'ctest-vn4-39972311'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48262045', 'ctest-policy1-22207721']], 'subnet_ipam': [{'subnet_cidr': '162.1.100.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2c09:5abe:9f25:f1ab:a394:2fbf::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-02 01:51:03,412 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-02 01:51:03,701 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-02 01:51:03,726 - DEBUG - Requesting: http://10.0.0.254:8082/domain/07d0a88b-1789-43b3-bb15-a61de59474e7 2025-10-02 01:51:03,735 - DEBUG - Requesting: http://10.0.0.254:8082/project/ef8bc578-75dc-492e-891f-422234f6d33c 2025-10-02 01:51:03,807 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/070f092d-6b7f-4000-9f89-0115feb2af8a 2025-10-02 01:51:03,816 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/070f092d-6b7f-4000-9f89-0115feb2af8a 2025-10-02 01:51:03,824 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9b0b4b15-b11f-42b3-a92c-645419acbbbb 2025-10-02 01:51:03,830 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9b0b4b15-b11f-42b3-a92c-645419acbbbb 2025-10-02 01:51:03,835 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/005ad681-2abe-4365-ac8f-e5d17e01845a 2025-10-02 01:51:03,839 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-02 01:51:03,839 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/070f092d-6b7f-4000-9f89-0115feb2af8a 2025-10-02 01:51:03,847 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9b0b4b15-b11f-42b3-a92c-645419acbbbb 2025-10-02 01:51:03,857 - INFO - Verified VN network id 12 for VN 070f092d-6b7f-4000-9f89-0115feb2af8a 2025-10-02 01:51:03,857 - INFO - Verifications in API Server for VN ctest-vn4-39972311 passed 2025-10-02 01:51:03,857 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/070f092d-6b7f-4000-9f89-0115feb2af8a 2025-10-02 01:51:03,864 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9b0b4b15-b11f-42b3-a92c-645419acbbbb 2025-10-02 01:51:03,869 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9b0b4b15-b11f-42b3-a92c-645419acbbbb 2025-10-02 01:51:03,874 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/005ad681-2abe-4365-ac8f-e5d17e01845a 2025-10-02 01:51:03,882 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48262045:ctest-vn4-39972311', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-48262045', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '508635373597835264', 'uuid-lslong': '11495720717818965898'}, 'enable': 'true', 'created': '2025-10-02T01:51:02', 'last-modified': '2025-10-02T01:51:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.644591'} 2025-10-02 01:51:03,887 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-02 01:51:03,887 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-39972311 passed 2025-10-02 01:51:03,887 - DEBUG - ====Verifying policy data for ctest-vn4-39972311 in API_Server ====== 2025-10-02 01:51:03,887 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-02 01:51:03,890 - DEBUG - Requesting: http://10.0.0.254:8082/domain/07d0a88b-1789-43b3-bb15-a61de59474e7 2025-10-02 01:51:03,898 - DEBUG - Requesting: http://10.0.0.254:8082/project/ef8bc578-75dc-492e-891f-422234f6d33c 2025-10-02 01:51:03,966 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/070f092d-6b7f-4000-9f89-0115feb2af8a 2025-10-02 01:51:03,974 - DEBUG - ==>Verifying data for policy with id: 8ea7753b-8e0a-437a-ad25-1a2a07abb071, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48262045', 'ctest-policy1-22207721'] 2025-10-02 01:51:03,974 - INFO - VN ctest-vn4-39972311 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-02 01:51:03,974 - DEBUG - Verifying the vn in opserver 2025-10-02 01:51:03,974 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48262045:ctest-vn4-39972311 virtual network link through opserver 10.0.0.254 2025-10-02 01:51:03,974 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-02 01:51:04,261 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-02 01:51:04,307 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48262045:ctest-vn4-39972311', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48262045:ctest-vn4-39972311?flat'} 2025-10-02 01:51:04,307 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48262045:ctest-vn4-39972311 is found in opserver 2025-10-02 01:51:04,316 - DEBUG - Do not have enough data to verify VN in agent 2025-10-02 01:51:04,320 - DEBUG - VRF ids for VN ctest-vn4-39972311: {} 2025-10-02 01:51:04,320 - DEBUG - ====Verifying data for ctest-policy1-22207721 in API_Server ====== 2025-10-02 01:51:04,320 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-02 01:51:04,325 - DEBUG - Requesting: http://10.0.0.254:8082/domain/07d0a88b-1789-43b3-bb15-a61de59474e7 2025-10-02 01:51:04,333 - DEBUG - Requesting: http://10.0.0.254:8082/project/ef8bc578-75dc-492e-891f-422234f6d33c 2025-10-02 01:51:04,396 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/8ea7753b-8e0a-437a-ad25-1a2a07abb071 2025-10-02 01:51:04,405 - INFO - Verified policy ctest-policy1-22207721 in API Server, Result: True 2025-10-02 01:51:04,405 - INFO - Done with setup and verification, moving onto test .. 2025-10-02 01:51:04,411 - INFO - Deleting VN ctest-vn4-39972311 2025-10-02 01:51:04,520 - DEBUG - Response for deleting network () 2025-10-02 01:51:04,520 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9b0b4b15-b11f-42b3-a92c-645419acbbbb 2025-10-02 01:51:04,524 - DEBUG - Response Code: 404 2025-10-02 01:51:04,524 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-02 01:51:04,528 - DEBUG - Requesting: http://10.0.0.254:8082/domain/07d0a88b-1789-43b3-bb15-a61de59474e7 2025-10-02 01:51:04,580 - DEBUG - Requesting: http://10.0.0.254:8082/project/ef8bc578-75dc-492e-891f-422234f6d33c 2025-10-02 01:51:04,648 - INFO - Validated that VN ctest-vn4-39972311 is not found in API Server 2025-10-02 01:51:04,658 - DEBUG - VN ctest-vn4-39972311 is not present in Agent 10.0.0.254 2025-10-02 01:51:04,658 - INFO - Validated that VN ctest-vn4-39972311 is not in any agent 2025-10-02 01:51:04,670 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-39972311 info 2025-10-02 01:51:04,695 - INFO - Deleted policy ctest-policy1-22207721 2025-10-02 01:51:04,856 - DEBUG - policy ctest-policy1-22207721 is not found in API Server 2025-10-02 01:51:05,120 - DEBUG - No XMPP flaps were noticed during the test