2025-09-09 22:53:06,024 - INFO - Domain Default found not creating 2025-09-09 22:53:06,172 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-19573003 not found, creating it 2025-09-09 22:53:06,597 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-19573003, ID : 6590ac23-9f84-4c64-9513-3433331d7a10 2025-09-09 22:53:07,975 - INFO - ================================================================================ 2025-09-09 22:53:07,975 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-09 22:53:08,229 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2025-09-09 22:53:08,230 - INFO - Initial checks done. Running the testcase now 2025-09-09 22:53:08,230 - INFO - 2025-09-09 22:53:08,230 - INFO - ================================================================================ 2025-09-09 22:53:08,230 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-09 22:53:08,230 - 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-09-09 22:53:08,516 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2025-09-09 22:53:08,516 - INFO - Initial checks done. Running the testcase now 2025-09-09 22:53:08,516 - INFO - 2025-09-09 22:53:08,858 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19573003:ctest-vn4-00607992, 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-19573003:ctest-vn4-00607992, 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-19573003:ctest-vn4-00607992, 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-19573003:ctest-vn4-00607992, 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-09-09 22:53:09,343 - DEBUG - Response for create_network : {'network': {'id': 'ff376e62-48b4-4620-9a27-0f19a87aa584', 'name': 'ctest-vn4-00607992', 'tenant_id': '6590ac239f844c6495133433331d7a10', 'project_id': '6590ac239f844c6495133433331d7a10', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19573003', 'ctest-vn4-00607992'], 'port_security_enabled': True, 'description': ''}} 2025-09-09 22:53:09,512 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fd64a021-79de-48b3-b931-3f30ffe97e8e', 'name': '', 'tenant_id': '6590ac239f844c6495133433331d7a10', 'network_id': 'ff376e62-48b4-4620-9a27-0f19a87aa584', 'ip_version': 4, 'cidr': '27.173.95.128/26', 'allocation_pools': [{'start': '27.173.95.130', 'end': '27.173.95.190'}], 'gateway_ip': '27.173.95.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '27.173.95.130', 'tags': [], 'project_id': '6590ac239f844c6495133433331d7a10'}} 2025-09-09 22:53:09,657 - DEBUG - Response for create_subnet : {'subnet': {'id': '818c705e-016a-4cd1-b7b6-df97e14688bd', 'name': '', 'tenant_id': '6590ac239f844c6495133433331d7a10', 'network_id': 'ff376e62-48b4-4620-9a27-0f19a87aa584', 'ip_version': 6, 'cidr': '2179:542b:ae18:b5e2:ca64:f408::/96', 'allocation_pools': [{'start': '2179:542b:ae18:b5e2:ca64:f408:0:2', 'end': '2179:542b:ae18:b5e2:ca64:f408:ffff:fffe'}], 'gateway_ip': '2179:542b:ae18:b5e2:ca64:f408:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2179:542b:ae18:b5e2:ca64:f408:0:2', 'tags': [], 'project_id': '6590ac239f844c6495133433331d7a10'}} 2025-09-09 22:53:09,674 - INFO - Created VN ctest-vn4-00607992 2025-09-09 22:53:09,727 - DEBUG - VN ctest-vn4-00607992 UUID is ff376e62-48b4-4620-9a27-0f19a87aa584 2025-09-09 22:53:09,939 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ff376e62-48b4-4620-9a27-0f19a87aa584', 'name': 'ctest-vn4-00607992', 'tenant_id': '6590ac239f844c6495133433331d7a10', 'project_id': '6590ac239f844c6495133433331d7a10', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fd64a021-79de-48b3-b931-3f30ffe97e8e', '818c705e-016a-4cd1-b7b6-df97e14688bd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19573003', 'ctest-vn4-00607992'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19573003', 'ctest-policy1-83012076']], 'subnet_ipam': [{'subnet_cidr': '27.173.95.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2179:542b:ae18:b5e2:ca64:f408::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-09 22:53:10,099 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-09 22:53:10,401 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-09 22:53:10,430 - DEBUG - Requesting: http://10.0.0.22:8082/domain/895af511-6514-4b32-8f26-1df8e0ce6baf 2025-09-09 22:53:10,441 - DEBUG - Requesting: http://10.0.0.22:8082/project/6590ac23-9f84-4c64-9513-3433331d7a10 2025-09-09 22:53:10,517 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ff376e62-48b4-4620-9a27-0f19a87aa584 2025-09-09 22:53:10,530 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ff376e62-48b4-4620-9a27-0f19a87aa584 2025-09-09 22:53:10,540 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2923d77e-6c03-4abb-98fb-89ee35e106c0 2025-09-09 22:53:10,548 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2923d77e-6c03-4abb-98fb-89ee35e106c0 2025-09-09 22:53:10,554 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/1cc6eccd-b089-4170-99b9-2cb499a7bc65 2025-09-09 22:53:10,559 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-09 22:53:10,559 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ff376e62-48b4-4620-9a27-0f19a87aa584 2025-09-09 22:53:10,568 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2923d77e-6c03-4abb-98fb-89ee35e106c0 2025-09-09 22:53:10,582 - INFO - Verified VN network id 12 for VN ff376e62-48b4-4620-9a27-0f19a87aa584 2025-09-09 22:53:10,582 - INFO - Verifications in API Server for VN ctest-vn4-00607992 passed 2025-09-09 22:53:10,582 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ff376e62-48b4-4620-9a27-0f19a87aa584 2025-09-09 22:53:10,591 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2923d77e-6c03-4abb-98fb-89ee35e106c0 2025-09-09 22:53:10,597 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2923d77e-6c03-4abb-98fb-89ee35e106c0 2025-09-09 22:53:10,602 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/1cc6eccd-b089-4170-99b9-2cb499a7bc65 2025-09-09 22:53:10,613 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19573003:ctest-vn4-00607992', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-19573003', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18390288971796334112', 'uuid-lslong': '11107863608807826820'}, 'enable': 'true', 'created': '2025-09-09T22:53:09', 'last-modified': '2025-09-09T22:53:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.717132'} 2025-09-09 22:53:10,621 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-09 22:53:10,622 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-00607992 passed 2025-09-09 22:53:10,622 - DEBUG - ====Verifying policy data for ctest-vn4-00607992 in API_Server ====== 2025-09-09 22:53:10,622 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-09 22:53:10,627 - DEBUG - Requesting: http://10.0.0.22:8082/domain/895af511-6514-4b32-8f26-1df8e0ce6baf 2025-09-09 22:53:10,636 - DEBUG - Requesting: http://10.0.0.22:8082/project/6590ac23-9f84-4c64-9513-3433331d7a10 2025-09-09 22:53:10,707 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ff376e62-48b4-4620-9a27-0f19a87aa584 2025-09-09 22:53:10,716 - DEBUG - ==>Verifying data for policy with id: 81447931-296c-46cd-98b9-08800e445085, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19573003', 'ctest-policy1-83012076'] 2025-09-09 22:53:10,716 - INFO - VN ctest-vn4-00607992 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-09 22:53:10,716 - DEBUG - Verifying the vn in opserver 2025-09-09 22:53:10,716 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19573003:ctest-vn4-00607992 virtual network link through opserver 10.0.0.22 2025-09-09 22:53:10,716 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-09-09 22:53:11,011 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-09-09 22:53:11,065 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19573003:ctest-vn4-00607992', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19573003:ctest-vn4-00607992?flat'} 2025-09-09 22:53:11,065 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19573003:ctest-vn4-00607992 is found in opserver 2025-09-09 22:53:11,074 - DEBUG - Do not have enough data to verify VN in agent 2025-09-09 22:53:11,079 - DEBUG - VRF ids for VN ctest-vn4-00607992: {} 2025-09-09 22:53:11,080 - DEBUG - ====Verifying data for ctest-policy1-83012076 in API_Server ====== 2025-09-09 22:53:11,080 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-09 22:53:11,085 - DEBUG - Requesting: http://10.0.0.22:8082/domain/895af511-6514-4b32-8f26-1df8e0ce6baf 2025-09-09 22:53:11,096 - DEBUG - Requesting: http://10.0.0.22:8082/project/6590ac23-9f84-4c64-9513-3433331d7a10 2025-09-09 22:53:11,166 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/81447931-296c-46cd-98b9-08800e445085 2025-09-09 22:53:11,175 - INFO - Verified policy ctest-policy1-83012076 in API Server, Result: True 2025-09-09 22:53:11,175 - INFO - Done with setup and verification, moving onto test .. 2025-09-09 22:53:11,183 - INFO - Deleting VN ctest-vn4-00607992 2025-09-09 22:53:11,294 - DEBUG - Response for deleting network () 2025-09-09 22:53:11,294 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2923d77e-6c03-4abb-98fb-89ee35e106c0 2025-09-09 22:53:11,298 - DEBUG - Response Code: 404 2025-09-09 22:53:11,298 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-09 22:53:11,307 - DEBUG - Requesting: http://10.0.0.22:8082/domain/895af511-6514-4b32-8f26-1df8e0ce6baf 2025-09-09 22:53:11,360 - DEBUG - Requesting: http://10.0.0.22:8082/project/6590ac23-9f84-4c64-9513-3433331d7a10 2025-09-09 22:53:11,434 - INFO - Validated that VN ctest-vn4-00607992 is not found in API Server 2025-09-09 22:53:11,443 - DEBUG - VN ctest-vn4-00607992 is not present in Agent 10.0.0.22 2025-09-09 22:53:11,443 - INFO - Validated that VN ctest-vn4-00607992 is not in any agent 2025-09-09 22:53:11,455 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-00607992 info 2025-09-09 22:53:11,477 - INFO - Deleted policy ctest-policy1-83012076 2025-09-09 22:53:11,635 - DEBUG - policy ctest-policy1-83012076 is not found in API Server 2025-09-09 22:53:11,889 - DEBUG - No XMPP flaps were noticed during the test