2025-10-09 18:03:13,194 - INFO - Domain Default found not creating 2025-10-09 18:03:13,326 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-76036901 not found, creating it 2025-10-09 18:03:13,762 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-76036901, ID : 69981d2d-4487-4d3f-bfc5-399c87318d45 2025-10-09 18:03:15,171 - INFO - ================================================================================ 2025-10-09 18:03:15,171 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-09 18:03:15,427 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0'}} with 2025-10-09 18:03:15,427 - INFO - Initial checks done. Running the testcase now 2025-10-09 18:03:15,427 - INFO - 2025-10-09 18:03:15,427 - INFO - ================================================================================ 2025-10-09 18:03:15,427 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-09 18:03:15,427 - 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-09 18:03:15,722 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0'}} with 2025-10-09 18:03:15,722 - INFO - Initial checks done. Running the testcase now 2025-10-09 18:03:15,722 - INFO - 2025-10-09 18:03:16,069 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76036901:ctest-vn4-43369830, 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-76036901:ctest-vn4-43369830, 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-76036901:ctest-vn4-43369830, 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-76036901:ctest-vn4-43369830, 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-09 18:03:16,559 - DEBUG - Response for create_network : {'network': {'id': '2bfd3209-5835-4fba-aa0f-e8780e06bcfa', 'name': 'ctest-vn4-43369830', 'tenant_id': '69981d2d44874d3fbfc5399c87318d45', 'project_id': '69981d2d44874d3fbfc5399c87318d45', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-76036901', 'ctest-vn4-43369830'], 'port_security_enabled': True, 'description': ''}} 2025-10-09 18:03:16,710 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b0d799d1-2759-47b3-9871-47e59dc733e6', 'name': '', 'tenant_id': '69981d2d44874d3fbfc5399c87318d45', 'network_id': '2bfd3209-5835-4fba-aa0f-e8780e06bcfa', 'ip_version': 4, 'cidr': '14.5.156.128/26', 'allocation_pools': [{'start': '14.5.156.130', 'end': '14.5.156.190'}], 'gateway_ip': '14.5.156.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '14.5.156.130', 'tags': [], 'project_id': '69981d2d44874d3fbfc5399c87318d45'}} 2025-10-09 18:03:16,896 - DEBUG - Response for create_subnet : {'subnet': {'id': '885016ae-0044-48a8-a238-6924ebf305c2', 'name': '', 'tenant_id': '69981d2d44874d3fbfc5399c87318d45', 'network_id': '2bfd3209-5835-4fba-aa0f-e8780e06bcfa', 'ip_version': 6, 'cidr': '3aa9:772c:19aa:609a:d873:bc29::/96', 'allocation_pools': [{'start': '3aa9:772c:19aa:609a:d873:bc29:0:2', 'end': '3aa9:772c:19aa:609a:d873:bc29:ffff:fffe'}], 'gateway_ip': '3aa9:772c:19aa:609a:d873:bc29:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3aa9:772c:19aa:609a:d873:bc29:0:2', 'tags': [], 'project_id': '69981d2d44874d3fbfc5399c87318d45'}} 2025-10-09 18:03:16,915 - INFO - Created VN ctest-vn4-43369830 2025-10-09 18:03:16,966 - DEBUG - VN ctest-vn4-43369830 UUID is 2bfd3209-5835-4fba-aa0f-e8780e06bcfa 2025-10-09 18:03:17,176 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2bfd3209-5835-4fba-aa0f-e8780e06bcfa', 'name': 'ctest-vn4-43369830', 'tenant_id': '69981d2d44874d3fbfc5399c87318d45', 'project_id': '69981d2d44874d3fbfc5399c87318d45', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b0d799d1-2759-47b3-9871-47e59dc733e6', '885016ae-0044-48a8-a238-6924ebf305c2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-76036901', 'ctest-vn4-43369830'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-76036901', 'ctest-policy1-75805519']], 'subnet_ipam': [{'subnet_cidr': '14.5.156.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3aa9:772c:19aa:609a:d873:bc29::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-09 18:03:17,338 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-09 18:03:17,629 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-09 18:03:17,656 - DEBUG - Requesting: http://10.0.0.33:8082/domain/2d3cbc57-8e6d-4365-ae81-1c37ad15a8f1 2025-10-09 18:03:17,667 - DEBUG - Requesting: http://10.0.0.33:8082/project/69981d2d-4487-4d3f-bfc5-399c87318d45 2025-10-09 18:03:17,738 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/2bfd3209-5835-4fba-aa0f-e8780e06bcfa 2025-10-09 18:03:17,750 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/2bfd3209-5835-4fba-aa0f-e8780e06bcfa 2025-10-09 18:03:17,759 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9b4229ab-2478-4932-b1ed-72505ea68787 2025-10-09 18:03:17,765 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9b4229ab-2478-4932-b1ed-72505ea68787 2025-10-09 18:03:17,771 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/0234e785-da0c-4038-a222-413c2e87dcfb 2025-10-09 18:03:17,777 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-09 18:03:17,777 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/2bfd3209-5835-4fba-aa0f-e8780e06bcfa 2025-10-09 18:03:17,786 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9b4229ab-2478-4932-b1ed-72505ea68787 2025-10-09 18:03:17,799 - INFO - Verified VN network id 9 for VN 2bfd3209-5835-4fba-aa0f-e8780e06bcfa 2025-10-09 18:03:17,799 - INFO - Verifications in API Server for VN ctest-vn4-43369830 passed 2025-10-09 18:03:17,799 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/2bfd3209-5835-4fba-aa0f-e8780e06bcfa 2025-10-09 18:03:17,808 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9b4229ab-2478-4932-b1ed-72505ea68787 2025-10-09 18:03:17,814 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9b4229ab-2478-4932-b1ed-72505ea68787 2025-10-09 18:03:17,820 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/0234e785-da0c-4038-a222-413c2e87dcfb 2025-10-09 18:03:17,830 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76036901:ctest-vn4-43369830', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-76036901', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3169744728454680506', 'uuid-lslong': '12254268713427451130'}, 'enable': 'true', 'created': '2025-10-09T18:03:16', 'last-modified': '2025-10-09T18:03:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.683065'} 2025-10-09 18:03:17,837 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-09 18:03:17,837 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-43369830 passed 2025-10-09 18:03:17,837 - DEBUG - ====Verifying policy data for ctest-vn4-43369830 in API_Server ====== 2025-10-09 18:03:17,837 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-09 18:03:17,842 - DEBUG - Requesting: http://10.0.0.33:8082/domain/2d3cbc57-8e6d-4365-ae81-1c37ad15a8f1 2025-10-09 18:03:17,852 - DEBUG - Requesting: http://10.0.0.33:8082/project/69981d2d-4487-4d3f-bfc5-399c87318d45 2025-10-09 18:03:17,922 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/2bfd3209-5835-4fba-aa0f-e8780e06bcfa 2025-10-09 18:03:17,932 - DEBUG - ==>Verifying data for policy with id: f8b84611-1541-4dc8-8723-b2a794d329ea, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-76036901', 'ctest-policy1-75805519'] 2025-10-09 18:03:17,933 - INFO - VN ctest-vn4-43369830 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-09 18:03:17,933 - DEBUG - Verifying the vn in opserver 2025-10-09 18:03:17,933 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76036901:ctest-vn4-43369830 virtual network link through opserver 10.0.0.33 2025-10-09 18:03:17,933 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-10-09 18:03:18,226 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-10-09 18:03:18,276 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76036901:ctest-vn4-43369830', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76036901:ctest-vn4-43369830?flat'} 2025-10-09 18:03:18,277 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76036901:ctest-vn4-43369830 is found in opserver 2025-10-09 18:03:18,286 - DEBUG - Do not have enough data to verify VN in agent 2025-10-09 18:03:18,290 - DEBUG - VRF ids for VN ctest-vn4-43369830: {} 2025-10-09 18:03:18,291 - DEBUG - ====Verifying data for ctest-policy1-75805519 in API_Server ====== 2025-10-09 18:03:18,291 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-09 18:03:18,295 - DEBUG - Requesting: http://10.0.0.33:8082/domain/2d3cbc57-8e6d-4365-ae81-1c37ad15a8f1 2025-10-09 18:03:18,305 - DEBUG - Requesting: http://10.0.0.33:8082/project/69981d2d-4487-4d3f-bfc5-399c87318d45 2025-10-09 18:03:18,373 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/f8b84611-1541-4dc8-8723-b2a794d329ea 2025-10-09 18:03:18,383 - INFO - Verified policy ctest-policy1-75805519 in API Server, Result: True 2025-10-09 18:03:18,383 - INFO - Done with setup and verification, moving onto test .. 2025-10-09 18:03:18,390 - INFO - Deleting VN ctest-vn4-43369830 2025-10-09 18:03:18,492 - DEBUG - Response for deleting network () 2025-10-09 18:03:18,492 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9b4229ab-2478-4932-b1ed-72505ea68787 2025-10-09 18:03:18,497 - DEBUG - Response Code: 404 2025-10-09 18:03:18,497 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-09 18:03:18,502 - DEBUG - Requesting: http://10.0.0.33:8082/domain/2d3cbc57-8e6d-4365-ae81-1c37ad15a8f1 2025-10-09 18:03:18,558 - DEBUG - Requesting: http://10.0.0.33:8082/project/69981d2d-4487-4d3f-bfc5-399c87318d45 2025-10-09 18:03:18,625 - INFO - Validated that VN ctest-vn4-43369830 is not found in API Server 2025-10-09 18:03:18,633 - DEBUG - VN ctest-vn4-43369830 is not present in Agent 10.0.0.33 2025-10-09 18:03:18,633 - INFO - Validated that VN ctest-vn4-43369830 is not in any agent 2025-10-09 18:03:18,647 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-43369830 info 2025-10-09 18:03:18,667 - INFO - Deleted policy ctest-policy1-75805519 2025-10-09 18:03:18,830 - DEBUG - policy ctest-policy1-75805519 is not found in API Server 2025-10-09 18:03:19,083 - DEBUG - No XMPP flaps were noticed during the test
2025-10-09 18:03:19,083 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-09 18:03:19,083 - INFO - -------------------------------------------------------------------------------- 2025-10-09 18:03:19,371 - DEBUG - No XMPP flaps were noticed during the test
2025-10-09 18:03:19,371 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-09 18:03:19,371 - INFO - -------------------------------------------------------------------------------- 2025-10-09 18:03:20,048 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-76036901, ID : 69981d2d-4487-4d3f-bfc5-399c87318d45