2025-07-23 13:34:40,609 - INFO - Domain Default found not creating 2025-07-23 13:34:40,797 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-45202592 not found, creating it 2025-07-23 13:34:41,316 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-45202592, ID : 46d9530e-833e-4546-85a9-50486f39b653 2025-07-23 13:34:42,891 - INFO - ================================================================================ 2025-07-23 13:34:42,891 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-07-23 13:34:43,153 - DEBUG - Nothing to compare xmpp stats {'10.0.0.56': {'10.20.0.209': '0'}} with 2025-07-23 13:34:43,153 - INFO - Initial checks done. Running the testcase now 2025-07-23 13:34:43,153 - INFO - 2025-07-23 13:34:43,153 - INFO - ================================================================================ 2025-07-23 13:34:43,153 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-07-23 13:34:43,153 - 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-07-23 13:34:43,446 - DEBUG - Nothing to compare xmpp stats {'10.0.0.56': {'10.20.0.209': '0'}} with 2025-07-23 13:34:43,446 - INFO - Initial checks done. Running the testcase now 2025-07-23 13:34:43,447 - INFO - 2025-07-23 13:34:43,818 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45202592:ctest-vn4-88659797, 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-45202592:ctest-vn4-88659797, 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-45202592:ctest-vn4-88659797, 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-45202592:ctest-vn4-88659797, 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-07-23 13:34:44,404 - DEBUG - Response for create_network : {'network': {'id': 'feda21ab-7c86-4413-a970-fd0bbf0b2eda', 'name': 'ctest-vn4-88659797', 'tenant_id': '46d9530e833e454685a950486f39b653', 'project_id': '46d9530e833e454685a950486f39b653', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-45202592', 'ctest-vn4-88659797'], 'port_security_enabled': True, 'description': ''}} 2025-07-23 13:34:44,572 - DEBUG - Response for create_subnet : {'subnet': {'id': '3c94aba0-d81c-42db-ac8f-71d80b50afbc', 'name': '', 'tenant_id': '46d9530e833e454685a950486f39b653', 'network_id': 'feda21ab-7c86-4413-a970-fd0bbf0b2eda', 'ip_version': 4, 'cidr': '39.251.172.128/26', 'allocation_pools': [{'start': '39.251.172.130', 'end': '39.251.172.190'}], 'gateway_ip': '39.251.172.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '39.251.172.130', 'tags': [], 'project_id': '46d9530e833e454685a950486f39b653'}} 2025-07-23 13:34:44,797 - DEBUG - Response for create_subnet : {'subnet': {'id': '60ceb487-d337-432a-ae2a-657243ddc766', 'name': '', 'tenant_id': '46d9530e833e454685a950486f39b653', 'network_id': 'feda21ab-7c86-4413-a970-fd0bbf0b2eda', 'ip_version': 6, 'cidr': '2d68:45b5:f01d:4afa:69c7:8edb::/96', 'allocation_pools': [{'start': '2d68:45b5:f01d:4afa:69c7:8edb:0:2', 'end': '2d68:45b5:f01d:4afa:69c7:8edb:ffff:fffe'}], 'gateway_ip': '2d68:45b5:f01d:4afa:69c7:8edb:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2d68:45b5:f01d:4afa:69c7:8edb:0:2', 'tags': [], 'project_id': '46d9530e833e454685a950486f39b653'}} 2025-07-23 13:34:44,820 - INFO - Created VN ctest-vn4-88659797 2025-07-23 13:34:44,878 - DEBUG - VN ctest-vn4-88659797 UUID is feda21ab-7c86-4413-a970-fd0bbf0b2eda 2025-07-23 13:34:45,123 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'feda21ab-7c86-4413-a970-fd0bbf0b2eda', 'name': 'ctest-vn4-88659797', 'tenant_id': '46d9530e833e454685a950486f39b653', 'project_id': '46d9530e833e454685a950486f39b653', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3c94aba0-d81c-42db-ac8f-71d80b50afbc', '60ceb487-d337-432a-ae2a-657243ddc766'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-45202592', 'ctest-vn4-88659797'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-45202592', 'ctest-policy1-13925092']], 'subnet_ipam': [{'subnet_cidr': '39.251.172.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2d68:45b5:f01d:4afa:69c7:8edb::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-23 13:34:45,298 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-07-23 13:34:45,615 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-07-23 13:34:45,656 - DEBUG - Requesting: http://10.0.0.56:8082/domain/36d184c2-7a48-46c3-8ecf-f335133cfb16 2025-07-23 13:34:45,678 - DEBUG - Requesting: http://10.0.0.56:8082/project/46d9530e-833e-4546-85a9-50486f39b653 2025-07-23 13:34:45,768 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/feda21ab-7c86-4413-a970-fd0bbf0b2eda 2025-07-23 13:34:45,786 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/feda21ab-7c86-4413-a970-fd0bbf0b2eda 2025-07-23 13:34:45,799 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/c1ee221d-334c-43fd-9ee3-5e1c58259e6f 2025-07-23 13:34:45,809 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/c1ee221d-334c-43fd-9ee3-5e1c58259e6f 2025-07-23 13:34:45,820 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/92e61649-8c43-4b61-9acb-79ffb7e3cd4b 2025-07-23 13:34:45,828 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-23 13:34:45,828 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/feda21ab-7c86-4413-a970-fd0bbf0b2eda 2025-07-23 13:34:45,841 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/c1ee221d-334c-43fd-9ee3-5e1c58259e6f 2025-07-23 13:34:45,864 - INFO - Verified VN network id 11 for VN feda21ab-7c86-4413-a970-fd0bbf0b2eda 2025-07-23 13:34:45,864 - INFO - Verifications in API Server for VN ctest-vn4-88659797 passed 2025-07-23 13:34:45,864 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/feda21ab-7c86-4413-a970-fd0bbf0b2eda 2025-07-23 13:34:45,888 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/c1ee221d-334c-43fd-9ee3-5e1c58259e6f 2025-07-23 13:34:45,898 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/c1ee221d-334c-43fd-9ee3-5e1c58259e6f 2025-07-23 13:34:45,907 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/92e61649-8c43-4b61-9acb-79ffb7e3cd4b 2025-07-23 13:34:45,927 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45202592:ctest-vn4-88659797', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-45202592', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18364027450968917011', 'uuid-lslong': '12209536816693063386'}, 'enable': 'true', 'created': '2025-07-23T13:34:44', 'last-modified': '2025-07-23T13:34:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.835513'} 2025-07-23 13:34:45,936 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-23 13:34:45,936 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-88659797 passed 2025-07-23 13:34:45,937 - DEBUG - ====Verifying policy data for ctest-vn4-88659797 in API_Server ====== 2025-07-23 13:34:45,937 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-07-23 13:34:45,944 - DEBUG - Requesting: http://10.0.0.56:8082/domain/36d184c2-7a48-46c3-8ecf-f335133cfb16 2025-07-23 13:34:45,958 - DEBUG - Requesting: http://10.0.0.56:8082/project/46d9530e-833e-4546-85a9-50486f39b653 2025-07-23 13:34:46,040 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/feda21ab-7c86-4413-a970-fd0bbf0b2eda 2025-07-23 13:34:46,055 - DEBUG - ==>Verifying data for policy with id: beb4dac8-6644-402d-9679-6d60247078b1, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-45202592', 'ctest-policy1-13925092'] 2025-07-23 13:34:46,055 - INFO - VN ctest-vn4-88659797 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-23 13:34:46,055 - DEBUG - Verifying the vn in opserver 2025-07-23 13:34:46,055 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45202592:ctest-vn4-88659797 virtual network link through opserver 10.0.0.56 2025-07-23 13:34:46,056 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2025-07-23 13:34:46,362 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2025-07-23 13:34:46,435 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45202592:ctest-vn4-88659797', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45202592:ctest-vn4-88659797?flat'} 2025-07-23 13:34:46,435 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45202592:ctest-vn4-88659797 is found in opserver 2025-07-23 13:34:46,450 - DEBUG - Do not have enough data to verify VN in agent 2025-07-23 13:34:46,456 - DEBUG - VRF ids for VN ctest-vn4-88659797: {} 2025-07-23 13:34:46,456 - DEBUG - ====Verifying data for ctest-policy1-13925092 in API_Server ====== 2025-07-23 13:34:46,457 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-07-23 13:34:46,465 - DEBUG - Requesting: http://10.0.0.56:8082/domain/36d184c2-7a48-46c3-8ecf-f335133cfb16 2025-07-23 13:34:46,480 - DEBUG - Requesting: http://10.0.0.56:8082/project/46d9530e-833e-4546-85a9-50486f39b653 2025-07-23 13:34:46,573 - DEBUG - Requesting: http://10.0.0.56:8082/network-policy/beb4dac8-6644-402d-9679-6d60247078b1 2025-07-23 13:34:46,593 - INFO - Verified policy ctest-policy1-13925092 in API Server, Result: True 2025-07-23 13:34:46,593 - INFO - Done with setup and verification, moving onto test .. 2025-07-23 13:34:46,604 - INFO - Deleting VN ctest-vn4-88659797 2025-07-23 13:34:46,779 - DEBUG - Response for deleting network () 2025-07-23 13:34:46,779 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/c1ee221d-334c-43fd-9ee3-5e1c58259e6f 2025-07-23 13:34:46,786 - DEBUG - Response Code: 404 2025-07-23 13:34:46,787 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-07-23 13:34:46,794 - DEBUG - Requesting: http://10.0.0.56:8082/domain/36d184c2-7a48-46c3-8ecf-f335133cfb16 2025-07-23 13:34:46,853 - DEBUG - Requesting: http://10.0.0.56:8082/project/46d9530e-833e-4546-85a9-50486f39b653 2025-07-23 13:34:46,933 - INFO - Validated that VN ctest-vn4-88659797 is not found in API Server 2025-07-23 13:34:46,946 - DEBUG - VN ctest-vn4-88659797 is not present in Agent 10.0.0.56 2025-07-23 13:34:46,946 - INFO - Validated that VN ctest-vn4-88659797 is not in any agent 2025-07-23 13:34:46,968 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-88659797 info 2025-07-23 13:34:47,003 - INFO - Deleted policy ctest-policy1-13925092 2025-07-23 13:34:47,186 - DEBUG - policy ctest-policy1-13925092 is not found in API Server 2025-07-23 13:34:47,458 - DEBUG - No XMPP flaps were noticed during the test