2025-08-26 00:08:15,633 - INFO - Domain Default found not creating 2025-08-26 00:08:15,788 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-21817426 not found, creating it 2025-08-26 00:08:16,269 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-21817426, ID : 1f536f84-592f-4cbf-9922-c426999f50cb 2025-08-26 00:08:17,686 - INFO - ================================================================================ 2025-08-26 00:08:17,686 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-26 00:08:17,939 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.192': '0'}} with 2025-08-26 00:08:17,939 - INFO - Initial checks done. Running the testcase now 2025-08-26 00:08:17,939 - INFO - 2025-08-26 00:08:17,939 - INFO - ================================================================================ 2025-08-26 00:08:17,939 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-26 00:08:17,939 - 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-08-26 00:08:18,249 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.192': '0'}} with 2025-08-26 00:08:18,249 - INFO - Initial checks done. Running the testcase now 2025-08-26 00:08:18,249 - INFO - 2025-08-26 00:08:18,598 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21817426:ctest-vn4-00092588, 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-21817426:ctest-vn4-00092588, 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-21817426:ctest-vn4-00092588, 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-21817426:ctest-vn4-00092588, 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-08-26 00:08:19,121 - DEBUG - Response for create_network : {'network': {'id': '21b76eae-0d46-4932-96f7-80c275369bb0', 'name': 'ctest-vn4-00092588', 'tenant_id': '1f536f84592f4cbf9922c426999f50cb', 'project_id': '1f536f84592f4cbf9922c426999f50cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-21817426', 'ctest-vn4-00092588'], 'port_security_enabled': True, 'description': ''}} 2025-08-26 00:08:19,273 - DEBUG - Response for create_subnet : {'subnet': {'id': '7421b67c-e9b4-48b1-9b9f-790d10ab3b02', 'name': '', 'tenant_id': '1f536f84592f4cbf9922c426999f50cb', 'network_id': '21b76eae-0d46-4932-96f7-80c275369bb0', 'ip_version': 4, 'cidr': '44.102.47.64/26', 'allocation_pools': [{'start': '44.102.47.66', 'end': '44.102.47.126'}], 'gateway_ip': '44.102.47.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '44.102.47.66', 'tags': [], 'project_id': '1f536f84592f4cbf9922c426999f50cb'}} 2025-08-26 00:08:19,493 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd4256ca0-7c38-457f-ae58-2704ca81fb16', 'name': '', 'tenant_id': '1f536f84592f4cbf9922c426999f50cb', 'network_id': '21b76eae-0d46-4932-96f7-80c275369bb0', 'ip_version': 6, 'cidr': '37ae:320f:a84e:2a33:7066:f140::/96', 'allocation_pools': [{'start': '37ae:320f:a84e:2a33:7066:f140:0:2', 'end': '37ae:320f:a84e:2a33:7066:f140:ffff:fffe'}], 'gateway_ip': '37ae:320f:a84e:2a33:7066:f140:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '37ae:320f:a84e:2a33:7066:f140:0:2', 'tags': [], 'project_id': '1f536f84592f4cbf9922c426999f50cb'}} 2025-08-26 00:08:19,518 - INFO - Created VN ctest-vn4-00092588 2025-08-26 00:08:19,569 - DEBUG - VN ctest-vn4-00092588 UUID is 21b76eae-0d46-4932-96f7-80c275369bb0 2025-08-26 00:08:19,795 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '21b76eae-0d46-4932-96f7-80c275369bb0', 'name': 'ctest-vn4-00092588', 'tenant_id': '1f536f84592f4cbf9922c426999f50cb', 'project_id': '1f536f84592f4cbf9922c426999f50cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7421b67c-e9b4-48b1-9b9f-790d10ab3b02', 'd4256ca0-7c38-457f-ae58-2704ca81fb16'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-21817426', 'ctest-vn4-00092588'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-21817426', 'ctest-policy1-42541464']], 'subnet_ipam': [{'subnet_cidr': '44.102.47.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '37ae:320f:a84e:2a33:7066:f140::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-26 00:08:19,974 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-08-26 00:08:20,273 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-08-26 00:08:20,301 - DEBUG - Requesting: http://10.0.0.141:8082/domain/4ef1fae8-73cb-4d23-a633-7ef3c9f6dfd7 2025-08-26 00:08:20,317 - DEBUG - Requesting: http://10.0.0.141:8082/project/1f536f84-592f-4cbf-9922-c426999f50cb 2025-08-26 00:08:20,396 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/21b76eae-0d46-4932-96f7-80c275369bb0 2025-08-26 00:08:20,412 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/21b76eae-0d46-4932-96f7-80c275369bb0 2025-08-26 00:08:20,424 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e947d789-c833-46ac-ac64-a981f5ffa06a 2025-08-26 00:08:20,432 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e947d789-c833-46ac-ac64-a981f5ffa06a 2025-08-26 00:08:20,439 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/2dd657b3-b5e3-42f1-9b1a-492c99f93637 2025-08-26 00:08:20,446 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-26 00:08:20,446 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/21b76eae-0d46-4932-96f7-80c275369bb0 2025-08-26 00:08:20,457 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e947d789-c833-46ac-ac64-a981f5ffa06a 2025-08-26 00:08:20,471 - INFO - Verified VN network id 12 for VN 21b76eae-0d46-4932-96f7-80c275369bb0 2025-08-26 00:08:20,471 - INFO - Verifications in API Server for VN ctest-vn4-00092588 passed 2025-08-26 00:08:20,471 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/21b76eae-0d46-4932-96f7-80c275369bb0 2025-08-26 00:08:20,483 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e947d789-c833-46ac-ac64-a981f5ffa06a 2025-08-26 00:08:20,490 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e947d789-c833-46ac-ac64-a981f5ffa06a 2025-08-26 00:08:20,497 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/2dd657b3-b5e3-42f1-9b1a-492c99f93637 2025-08-26 00:08:20,509 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21817426:ctest-vn4-00092588', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-21817426', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2429532217815746866', 'uuid-lslong': '10878304997615246256'}, 'enable': 'true', 'created': '2025-08-26T00:08:19', 'last-modified': '2025-08-26T00:08:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.746065'} 2025-08-26 00:08:20,517 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-26 00:08:20,517 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-00092588 passed 2025-08-26 00:08:20,517 - DEBUG - ====Verifying policy data for ctest-vn4-00092588 in API_Server ====== 2025-08-26 00:08:20,517 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-08-26 00:08:20,524 - DEBUG - Requesting: http://10.0.0.141:8082/domain/4ef1fae8-73cb-4d23-a633-7ef3c9f6dfd7 2025-08-26 00:08:20,541 - DEBUG - Requesting: http://10.0.0.141:8082/project/1f536f84-592f-4cbf-9922-c426999f50cb 2025-08-26 00:08:20,612 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/21b76eae-0d46-4932-96f7-80c275369bb0 2025-08-26 00:08:20,624 - DEBUG - ==>Verifying data for policy with id: d0ad02dc-6bc3-4b7b-b99b-507c3e5a4716, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-21817426', 'ctest-policy1-42541464'] 2025-08-26 00:08:20,624 - INFO - VN ctest-vn4-00092588 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-26 00:08:20,624 - DEBUG - Verifying the vn in opserver 2025-08-26 00:08:20,624 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21817426:ctest-vn4-00092588 virtual network link through opserver 10.0.0.141 2025-08-26 00:08:20,624 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-08-26 00:08:20,918 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-08-26 00:08:20,976 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21817426:ctest-vn4-00092588', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21817426:ctest-vn4-00092588?flat'} 2025-08-26 00:08:20,976 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21817426:ctest-vn4-00092588 is found in opserver 2025-08-26 00:08:20,989 - DEBUG - Do not have enough data to verify VN in agent 2025-08-26 00:08:20,994 - DEBUG - VRF ids for VN ctest-vn4-00092588: {} 2025-08-26 00:08:20,995 - DEBUG - ====Verifying data for ctest-policy1-42541464 in API_Server ====== 2025-08-26 00:08:20,995 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-08-26 00:08:21,000 - DEBUG - Requesting: http://10.0.0.141:8082/domain/4ef1fae8-73cb-4d23-a633-7ef3c9f6dfd7 2025-08-26 00:08:21,013 - DEBUG - Requesting: http://10.0.0.141:8082/project/1f536f84-592f-4cbf-9922-c426999f50cb 2025-08-26 00:08:21,090 - DEBUG - Requesting: http://10.0.0.141:8082/network-policy/d0ad02dc-6bc3-4b7b-b99b-507c3e5a4716 2025-08-26 00:08:21,102 - INFO - Verified policy ctest-policy1-42541464 in API Server, Result: True 2025-08-26 00:08:21,102 - INFO - Done with setup and verification, moving onto test .. 2025-08-26 00:08:21,113 - INFO - Deleting VN ctest-vn4-00092588 2025-08-26 00:08:21,245 - DEBUG - Response for deleting network () 2025-08-26 00:08:21,245 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e947d789-c833-46ac-ac64-a981f5ffa06a 2025-08-26 00:08:21,251 - DEBUG - Response Code: 404 2025-08-26 00:08:21,251 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-08-26 00:08:21,256 - DEBUG - Requesting: http://10.0.0.141:8082/domain/4ef1fae8-73cb-4d23-a633-7ef3c9f6dfd7 2025-08-26 00:08:21,311 - DEBUG - Requesting: http://10.0.0.141:8082/project/1f536f84-592f-4cbf-9922-c426999f50cb 2025-08-26 00:08:21,390 - INFO - Validated that VN ctest-vn4-00092588 is not found in API Server 2025-08-26 00:08:21,404 - DEBUG - VN ctest-vn4-00092588 is not present in Agent 10.0.0.141 2025-08-26 00:08:21,404 - INFO - Validated that VN ctest-vn4-00092588 is not in any agent 2025-08-26 00:08:21,429 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-00092588 info 2025-08-26 00:08:21,460 - INFO - Deleted policy ctest-policy1-42541464 2025-08-26 00:08:21,637 - DEBUG - policy ctest-policy1-42541464 is not found in API Server 2025-08-26 00:08:21,891 - DEBUG - No XMPP flaps were noticed during the test 2025-08-26 00:08:21,891 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-08-26 00:08:21,891 - INFO - -------------------------------------------------------------------------------- 2025-08-26 00:08:22,179 - DEBUG - No XMPP flaps were noticed during the test 2025-08-26 00:08:22,179 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-08-26 00:08:22,179 - INFO - -------------------------------------------------------------------------------- 2025-08-26 00:08:22,843 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-21817426, ID : 1f536f84-592f-4cbf-9922-c426999f50cb