2025-12-08 22:45:26,058 - INFO - Domain Default found not creating 2025-12-08 22:45:26,211 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-78868853 not found, creating it 2025-12-08 22:45:26,703 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-78868853, ID : a699d0e2-3276-455d-9f98-e34fa56b5a30 2025-12-08 22:45:28,116 - INFO - ================================================================================ 2025-12-08 22:45:28,116 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-08 22:45:28,376 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.25': '0'}} with 2025-12-08 22:45:28,376 - INFO - Initial checks done. Running the testcase now 2025-12-08 22:45:28,376 - INFO - 2025-12-08 22:45:28,376 - INFO - ================================================================================ 2025-12-08 22:45:28,376 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-08 22:45:28,376 - 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-08 22:45:28,663 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.25': '0'}} with 2025-12-08 22:45:28,663 - INFO - Initial checks done. Running the testcase now 2025-12-08 22:45:28,663 - INFO - 2025-12-08 22:45:29,016 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78868853:ctest-vn4-81590322, 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-78868853:ctest-vn4-81590322, 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-78868853:ctest-vn4-81590322, 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-78868853:ctest-vn4-81590322, 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-08 22:45:29,503 - DEBUG - Response for create_network : {'network': {'id': 'b5f60589-d913-41b9-8903-72694a75aa6c', 'name': 'ctest-vn4-81590322', 'tenant_id': 'a699d0e23276455d9f98e34fa56b5a30', 'project_id': 'a699d0e23276455d9f98e34fa56b5a30', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-78868853', 'ctest-vn4-81590322'], 'port_security_enabled': True, 'description': ''}} 2025-12-08 22:45:29,689 - DEBUG - Response for create_subnet : {'subnet': {'id': '33133809-c7cd-4c96-afde-fe2e8ac89bf1', 'name': '', 'tenant_id': 'a699d0e23276455d9f98e34fa56b5a30', 'network_id': 'b5f60589-d913-41b9-8903-72694a75aa6c', 'ip_version': 4, 'cidr': '155.243.96.192/26', 'allocation_pools': [{'start': '155.243.96.194', 'end': '155.243.96.254'}], 'gateway_ip': '155.243.96.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '155.243.96.194', 'tags': [], 'project_id': 'a699d0e23276455d9f98e34fa56b5a30'}} 2025-12-08 22:45:29,891 - DEBUG - Response for create_subnet : {'subnet': {'id': '31505da2-218b-4a9a-a32f-d288c691b1f1', 'name': '', 'tenant_id': 'a699d0e23276455d9f98e34fa56b5a30', 'network_id': 'b5f60589-d913-41b9-8903-72694a75aa6c', 'ip_version': 6, 'cidr': '3935:1a9d:417f:a8c7:866d:824b::/96', 'allocation_pools': [{'start': '3935:1a9d:417f:a8c7:866d:824b:0:2', 'end': '3935:1a9d:417f:a8c7:866d:824b:ffff:fffe'}], 'gateway_ip': '3935:1a9d:417f:a8c7:866d:824b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3935:1a9d:417f:a8c7:866d:824b:0:2', 'tags': [], 'project_id': 'a699d0e23276455d9f98e34fa56b5a30'}} 2025-12-08 22:45:29,912 - INFO - Created VN ctest-vn4-81590322 2025-12-08 22:45:29,963 - DEBUG - VN ctest-vn4-81590322 UUID is b5f60589-d913-41b9-8903-72694a75aa6c 2025-12-08 22:45:30,136 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b5f60589-d913-41b9-8903-72694a75aa6c', 'name': 'ctest-vn4-81590322', 'tenant_id': 'a699d0e23276455d9f98e34fa56b5a30', 'project_id': 'a699d0e23276455d9f98e34fa56b5a30', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['33133809-c7cd-4c96-afde-fe2e8ac89bf1', '31505da2-218b-4a9a-a32f-d288c691b1f1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-78868853', 'ctest-vn4-81590322'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-78868853', 'ctest-policy1-57457933']], 'subnet_ipam': [{'subnet_cidr': '155.243.96.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3935:1a9d:417f:a8c7:866d:824b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-08 22:45:30,307 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-12-08 22:45:30,601 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-12-08 22:45:30,628 - DEBUG - Requesting: http://10.0.0.33:8082/domain/740877dd-e386-4898-85dd-a8c4d4fb5efd 2025-12-08 22:45:30,642 - DEBUG - Requesting: http://10.0.0.33:8082/project/a699d0e2-3276-455d-9f98-e34fa56b5a30 2025-12-08 22:45:30,713 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b5f60589-d913-41b9-8903-72694a75aa6c 2025-12-08 22:45:30,723 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b5f60589-d913-41b9-8903-72694a75aa6c 2025-12-08 22:45:30,731 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/833c8966-c4f5-49c2-a48c-5d51c79c71ef 2025-12-08 22:45:30,736 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/833c8966-c4f5-49c2-a48c-5d51c79c71ef 2025-12-08 22:45:30,742 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/149cb4d8-68df-4231-a1f1-cb158790ace3 2025-12-08 22:45:30,747 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-08 22:45:30,747 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b5f60589-d913-41b9-8903-72694a75aa6c 2025-12-08 22:45:30,754 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/833c8966-c4f5-49c2-a48c-5d51c79c71ef 2025-12-08 22:45:30,764 - INFO - Verified VN network id 12 for VN b5f60589-d913-41b9-8903-72694a75aa6c 2025-12-08 22:45:30,765 - INFO - Verifications in API Server for VN ctest-vn4-81590322 passed 2025-12-08 22:45:30,765 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b5f60589-d913-41b9-8903-72694a75aa6c 2025-12-08 22:45:30,772 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/833c8966-c4f5-49c2-a48c-5d51c79c71ef 2025-12-08 22:45:30,779 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/833c8966-c4f5-49c2-a48c-5d51c79c71ef 2025-12-08 22:45:30,785 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/149cb4d8-68df-4231-a1f1-cb158790ace3 2025-12-08 22:45:30,794 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78868853:ctest-vn4-81590322', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-78868853', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13111673454746354105', 'uuid-lslong': '9872860604672617068'}, 'enable': 'true', 'created': '2025-12-08T22:45:29', 'last-modified': '2025-12-08T22:45:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.673133'} 2025-12-08 22:45:30,799 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-08 22:45:30,799 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-81590322 passed 2025-12-08 22:45:30,799 - DEBUG - ====Verifying policy data for ctest-vn4-81590322 in API_Server ====== 2025-12-08 22:45:30,799 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-12-08 22:45:30,804 - DEBUG - Requesting: http://10.0.0.33:8082/domain/740877dd-e386-4898-85dd-a8c4d4fb5efd 2025-12-08 22:45:30,815 - DEBUG - Requesting: http://10.0.0.33:8082/project/a699d0e2-3276-455d-9f98-e34fa56b5a30 2025-12-08 22:45:30,883 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b5f60589-d913-41b9-8903-72694a75aa6c 2025-12-08 22:45:30,891 - DEBUG - ==>Verifying data for policy with id: 5328ebea-324e-41de-bff3-2bb660b5a1ea, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-78868853', 'ctest-policy1-57457933'] 2025-12-08 22:45:30,891 - INFO - VN ctest-vn4-81590322 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-08 22:45:30,891 - DEBUG - Verifying the vn in opserver 2025-12-08 22:45:30,891 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78868853:ctest-vn4-81590322 virtual network link through opserver 10.0.0.33 2025-12-08 22:45:30,891 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-12-08 22:45:31,183 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-12-08 22:45:31,236 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78868853:ctest-vn4-81590322', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78868853:ctest-vn4-81590322?flat'} 2025-12-08 22:45:31,236 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78868853:ctest-vn4-81590322 is found in opserver 2025-12-08 22:45:31,244 - DEBUG - Do not have enough data to verify VN in agent 2025-12-08 22:45:31,248 - DEBUG - VRF ids for VN ctest-vn4-81590322: {} 2025-12-08 22:45:31,248 - DEBUG - ====Verifying data for ctest-policy1-57457933 in API_Server ====== 2025-12-08 22:45:31,249 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-12-08 22:45:31,253 - DEBUG - Requesting: http://10.0.0.33:8082/domain/740877dd-e386-4898-85dd-a8c4d4fb5efd 2025-12-08 22:45:31,261 - DEBUG - Requesting: http://10.0.0.33:8082/project/a699d0e2-3276-455d-9f98-e34fa56b5a30 2025-12-08 22:45:31,326 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/5328ebea-324e-41de-bff3-2bb660b5a1ea 2025-12-08 22:45:31,337 - INFO - Verified policy ctest-policy1-57457933 in API Server, Result: True 2025-12-08 22:45:31,337 - INFO - Done with setup and verification, moving onto test .. 2025-12-08 22:45:31,344 - INFO - Deleting VN ctest-vn4-81590322 2025-12-08 22:45:31,438 - DEBUG - Response for deleting network () 2025-12-08 22:45:31,438 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/833c8966-c4f5-49c2-a48c-5d51c79c71ef 2025-12-08 22:45:31,442 - DEBUG - Response Code: 404 2025-12-08 22:45:31,442 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-12-08 22:45:31,447 - DEBUG - Requesting: http://10.0.0.33:8082/domain/740877dd-e386-4898-85dd-a8c4d4fb5efd 2025-12-08 22:45:31,503 - DEBUG - Requesting: http://10.0.0.33:8082/project/a699d0e2-3276-455d-9f98-e34fa56b5a30 2025-12-08 22:45:31,573 - INFO - Validated that VN ctest-vn4-81590322 is not found in API Server 2025-12-08 22:45:31,581 - DEBUG - VN ctest-vn4-81590322 is not present in Agent 10.0.0.33 2025-12-08 22:45:31,581 - INFO - Validated that VN ctest-vn4-81590322 is not in any agent 2025-12-08 22:45:31,593 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-81590322 info 2025-12-08 22:45:31,614 - INFO - Deleted policy ctest-policy1-57457933 2025-12-08 22:45:31,774 - DEBUG - policy ctest-policy1-57457933 is not found in API Server 2025-12-08 22:45:32,027 - DEBUG - No XMPP flaps were noticed during the test