2025-12-11 17:37:34,936 - INFO - Domain Default found not creating 2025-12-11 17:37:35,115 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-74642798 not found, creating it 2025-12-11 17:37:35,602 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-74642798, ID : 07804a23-cc99-4509-b33f-be2ccd77f753 2025-12-11 17:37:37,159 - INFO - ================================================================================ 2025-12-11 17:37:37,159 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-11 17:37:37,423 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.25': '0'}} with 2025-12-11 17:37:37,423 - INFO - Initial checks done. Running the testcase now 2025-12-11 17:37:37,423 - INFO - 2025-12-11 17:37:37,423 - INFO - ================================================================================ 2025-12-11 17:37:37,423 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-11 17:37:37,423 - 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-11 17:37:37,708 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.25': '0'}} with 2025-12-11 17:37:37,708 - INFO - Initial checks done. Running the testcase now 2025-12-11 17:37:37,708 - INFO - 2025-12-11 17:37:38,085 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74642798:ctest-vn4-88935414, 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-74642798:ctest-vn4-88935414, 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-74642798:ctest-vn4-88935414, 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-74642798:ctest-vn4-88935414, 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-11 17:37:38,626 - DEBUG - Response for create_network : {'network': {'id': '413f0794-c1a8-45a4-8d4f-c2bf93601644', 'name': 'ctest-vn4-88935414', 'tenant_id': '07804a23cc994509b33fbe2ccd77f753', 'project_id': '07804a23cc994509b33fbe2ccd77f753', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74642798', 'ctest-vn4-88935414'], 'port_security_enabled': True, 'description': ''}} 2025-12-11 17:37:38,847 - DEBUG - Response for create_subnet : {'subnet': {'id': '2f4e4020-da19-46b1-923f-857596671a4d', 'name': '', 'tenant_id': '07804a23cc994509b33fbe2ccd77f753', 'network_id': '413f0794-c1a8-45a4-8d4f-c2bf93601644', 'ip_version': 4, 'cidr': '23.192.51.192/26', 'allocation_pools': [{'start': '23.192.51.194', 'end': '23.192.51.254'}], 'gateway_ip': '23.192.51.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '23.192.51.194', 'tags': [], 'project_id': '07804a23cc994509b33fbe2ccd77f753'}} 2025-12-11 17:37:39,015 - DEBUG - Response for create_subnet : {'subnet': {'id': '45d5e6aa-e0b6-45c7-81e5-3e241bb00246', 'name': '', 'tenant_id': '07804a23cc994509b33fbe2ccd77f753', 'network_id': '413f0794-c1a8-45a4-8d4f-c2bf93601644', 'ip_version': 6, 'cidr': '3b46:1625:8b33:4678:7695:8994::/96', 'allocation_pools': [{'start': '3b46:1625:8b33:4678:7695:8994:0:2', 'end': '3b46:1625:8b33:4678:7695:8994:ffff:fffe'}], 'gateway_ip': '3b46:1625:8b33:4678:7695:8994:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3b46:1625:8b33:4678:7695:8994:0:2', 'tags': [], 'project_id': '07804a23cc994509b33fbe2ccd77f753'}} 2025-12-11 17:37:39,037 - INFO - Created VN ctest-vn4-88935414 2025-12-11 17:37:39,090 - DEBUG - VN ctest-vn4-88935414 UUID is 413f0794-c1a8-45a4-8d4f-c2bf93601644 2025-12-11 17:37:39,322 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '413f0794-c1a8-45a4-8d4f-c2bf93601644', 'name': 'ctest-vn4-88935414', 'tenant_id': '07804a23cc994509b33fbe2ccd77f753', 'project_id': '07804a23cc994509b33fbe2ccd77f753', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2f4e4020-da19-46b1-923f-857596671a4d', '45d5e6aa-e0b6-45c7-81e5-3e241bb00246'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74642798', 'ctest-vn4-88935414'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74642798', 'ctest-policy1-88346933']], 'subnet_ipam': [{'subnet_cidr': '23.192.51.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3b46:1625:8b33:4678:7695:8994::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-11 17:37:39,494 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-12-11 17:37:39,793 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-12-11 17:37:39,834 - DEBUG - Requesting: http://10.0.0.242:8082/domain/1f885ef9-7824-475b-8e1f-d2b2777a0188 2025-12-11 17:37:39,852 - DEBUG - Requesting: http://10.0.0.242:8082/project/07804a23-cc99-4509-b33f-be2ccd77f753 2025-12-11 17:37:39,933 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/413f0794-c1a8-45a4-8d4f-c2bf93601644 2025-12-11 17:37:39,947 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/413f0794-c1a8-45a4-8d4f-c2bf93601644 2025-12-11 17:37:39,960 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/6663d40d-cb65-4182-b278-755bc1e55710 2025-12-11 17:37:39,968 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/6663d40d-cb65-4182-b278-755bc1e55710 2025-12-11 17:37:39,978 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/48bc4cdd-2d42-44d8-94b3-8a72df04324b 2025-12-11 17:37:39,989 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-11 17:37:39,989 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/413f0794-c1a8-45a4-8d4f-c2bf93601644 2025-12-11 17:37:39,999 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/6663d40d-cb65-4182-b278-755bc1e55710 2025-12-11 17:37:40,015 - INFO - Verified VN network id 12 for VN 413f0794-c1a8-45a4-8d4f-c2bf93601644 2025-12-11 17:37:40,015 - INFO - Verifications in API Server for VN ctest-vn4-88935414 passed 2025-12-11 17:37:40,015 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/413f0794-c1a8-45a4-8d4f-c2bf93601644 2025-12-11 17:37:40,025 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/6663d40d-cb65-4182-b278-755bc1e55710 2025-12-11 17:37:40,036 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/6663d40d-cb65-4182-b278-755bc1e55710 2025-12-11 17:37:40,044 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/48bc4cdd-2d42-44d8-94b3-8a72df04324b 2025-12-11 17:37:40,058 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74642798:ctest-vn4-88935414', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-74642798', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4701484871483671972', 'uuid-lslong': '10182571410575070788'}, 'enable': 'true', 'created': '2025-12-11T17:37:38', 'last-modified': '2025-12-11T17:37:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.771105'} 2025-12-11 17:37:40,064 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-11 17:37:40,064 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-88935414 passed 2025-12-11 17:37:40,064 - DEBUG - ====Verifying policy data for ctest-vn4-88935414 in API_Server ====== 2025-12-11 17:37:40,065 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-12-11 17:37:40,071 - DEBUG - Requesting: http://10.0.0.242:8082/domain/1f885ef9-7824-475b-8e1f-d2b2777a0188 2025-12-11 17:37:40,083 - DEBUG - Requesting: http://10.0.0.242:8082/project/07804a23-cc99-4509-b33f-be2ccd77f753 2025-12-11 17:37:40,154 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/413f0794-c1a8-45a4-8d4f-c2bf93601644 2025-12-11 17:37:40,166 - DEBUG - ==>Verifying data for policy with id: 3358ab04-45ac-4777-9c61-89a621a4dbbf, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74642798', 'ctest-policy1-88346933'] 2025-12-11 17:37:40,166 - INFO - VN ctest-vn4-88935414 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-11 17:37:40,166 - DEBUG - Verifying the vn in opserver 2025-12-11 17:37:40,166 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74642798:ctest-vn4-88935414 virtual network link through opserver 10.0.0.242 2025-12-11 17:37:40,166 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-12-11 17:37:40,486 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-12-11 17:37:40,558 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74642798:ctest-vn4-88935414', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74642798:ctest-vn4-88935414?flat'} 2025-12-11 17:37:40,558 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74642798:ctest-vn4-88935414 is found in opserver 2025-12-11 17:37:40,568 - DEBUG - Do not have enough data to verify VN in agent 2025-12-11 17:37:40,573 - DEBUG - VRF ids for VN ctest-vn4-88935414: {} 2025-12-11 17:37:40,574 - DEBUG - ====Verifying data for ctest-policy1-88346933 in API_Server ====== 2025-12-11 17:37:40,574 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-12-11 17:37:40,580 - DEBUG - Requesting: http://10.0.0.242:8082/domain/1f885ef9-7824-475b-8e1f-d2b2777a0188 2025-12-11 17:37:40,592 - DEBUG - Requesting: http://10.0.0.242:8082/project/07804a23-cc99-4509-b33f-be2ccd77f753 2025-12-11 17:37:40,674 - DEBUG - Requesting: http://10.0.0.242:8082/network-policy/3358ab04-45ac-4777-9c61-89a621a4dbbf 2025-12-11 17:37:40,685 - INFO - Verified policy ctest-policy1-88346933 in API Server, Result: True 2025-12-11 17:37:40,686 - INFO - Done with setup and verification, moving onto test .. 2025-12-11 17:37:40,695 - INFO - Deleting VN ctest-vn4-88935414 2025-12-11 17:37:40,832 - DEBUG - Response for deleting network () 2025-12-11 17:37:40,832 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/6663d40d-cb65-4182-b278-755bc1e55710 2025-12-11 17:37:40,837 - DEBUG - Response Code: 404 2025-12-11 17:37:40,837 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-12-11 17:37:40,843 - DEBUG - Requesting: http://10.0.0.242:8082/domain/1f885ef9-7824-475b-8e1f-d2b2777a0188 2025-12-11 17:37:40,900 - DEBUG - Requesting: http://10.0.0.242:8082/project/07804a23-cc99-4509-b33f-be2ccd77f753 2025-12-11 17:37:40,972 - INFO - Validated that VN ctest-vn4-88935414 is not found in API Server 2025-12-11 17:37:40,982 - DEBUG - VN ctest-vn4-88935414 is not present in Agent 10.0.0.242 2025-12-11 17:37:40,982 - INFO - Validated that VN ctest-vn4-88935414 is not in any agent 2025-12-11 17:37:40,998 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-88935414 info 2025-12-11 17:37:41,027 - INFO - Deleted policy ctest-policy1-88346933 2025-12-11 17:37:41,194 - DEBUG - policy ctest-policy1-88346933 is not found in API Server 2025-12-11 17:37:41,458 - DEBUG - No XMPP flaps were noticed during the test
2025-12-11 17:37:41,458 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-12-11 17:37:41,458 - INFO - -------------------------------------------------------------------------------- 2025-12-11 17:37:41,749 - DEBUG - No XMPP flaps were noticed during the test
2025-12-11 17:37:41,749 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-12-11 17:37:41,749 - INFO - -------------------------------------------------------------------------------- 2025-12-11 17:37:42,474 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-74642798, ID : 07804a23-cc99-4509-b33f-be2ccd77f753