2025-08-07 02:15:25,521 - INFO - Domain Default found not creating 2025-08-07 02:15:25,681 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-50491403 not found, creating it 2025-08-07 02:15:26,191 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-50491403, ID : e36df654-0802-4bfb-9820-99dc4b35fe2e 2025-08-07 02:15:27,792 - INFO - ================================================================================ 2025-08-07 02:15:27,792 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-07 02:15:28,054 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with 2025-08-07 02:15:28,054 - INFO - Initial checks done. Running the testcase now 2025-08-07 02:15:28,054 - INFO - 2025-08-07 02:15:28,055 - INFO - ================================================================================ 2025-08-07 02:15:28,055 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-07 02:15:28,055 - 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-07 02:15:28,345 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with 2025-08-07 02:15:28,346 - INFO - Initial checks done. Running the testcase now 2025-08-07 02:15:28,346 - INFO - 2025-08-07 02:15:28,790 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50491403:ctest-vn4-82887914, 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-50491403:ctest-vn4-82887914, 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-50491403:ctest-vn4-82887914, 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-50491403:ctest-vn4-82887914, 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-07 02:15:29,492 - DEBUG - Response for create_network : {'network': {'id': 'b00ae62d-5f1c-40b0-b605-bc27ce52e49c', 'name': 'ctest-vn4-82887914', 'tenant_id': 'e36df65408024bfb982099dc4b35fe2e', 'project_id': 'e36df65408024bfb982099dc4b35fe2e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-50491403', 'ctest-vn4-82887914'], 'port_security_enabled': True, 'description': ''}} 2025-08-07 02:15:29,680 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fc4ecf91-7dcb-441e-a604-15ffaba65342', 'name': '', 'tenant_id': 'e36df65408024bfb982099dc4b35fe2e', 'network_id': 'b00ae62d-5f1c-40b0-b605-bc27ce52e49c', 'ip_version': 4, 'cidr': '116.67.23.128/26', 'allocation_pools': [{'start': '116.67.23.130', 'end': '116.67.23.190'}], 'gateway_ip': '116.67.23.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '116.67.23.130', 'tags': [], 'project_id': 'e36df65408024bfb982099dc4b35fe2e'}} 2025-08-07 02:15:29,887 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bf3b5b37-995f-4baa-8ddd-5a2af621bc67', 'name': '', 'tenant_id': 'e36df65408024bfb982099dc4b35fe2e', 'network_id': 'b00ae62d-5f1c-40b0-b605-bc27ce52e49c', 'ip_version': 6, 'cidr': '2432:94aa:d981:15b0:778e:2567::/96', 'allocation_pools': [{'start': '2432:94aa:d981:15b0:778e:2567:0:2', 'end': '2432:94aa:d981:15b0:778e:2567:ffff:fffe'}], 'gateway_ip': '2432:94aa:d981:15b0:778e:2567:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2432:94aa:d981:15b0:778e:2567:0:2', 'tags': [], 'project_id': 'e36df65408024bfb982099dc4b35fe2e'}} 2025-08-07 02:15:29,911 - INFO - Created VN ctest-vn4-82887914 2025-08-07 02:15:29,966 - DEBUG - VN ctest-vn4-82887914 UUID is b00ae62d-5f1c-40b0-b605-bc27ce52e49c 2025-08-07 02:15:30,180 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b00ae62d-5f1c-40b0-b605-bc27ce52e49c', 'name': 'ctest-vn4-82887914', 'tenant_id': 'e36df65408024bfb982099dc4b35fe2e', 'project_id': 'e36df65408024bfb982099dc4b35fe2e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fc4ecf91-7dcb-441e-a604-15ffaba65342', 'bf3b5b37-995f-4baa-8ddd-5a2af621bc67'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-50491403', 'ctest-vn4-82887914'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-50491403', 'ctest-policy1-72711377']], 'subnet_ipam': [{'subnet_cidr': '116.67.23.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2432:94aa:d981:15b0:778e:2567::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-07 02:15:30,358 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-07 02:15:30,700 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-07 02:15:30,731 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c4343cb1-ebd0-41e3-b2ae-b8249da9524d 2025-08-07 02:15:30,747 - DEBUG - Requesting: http://10.0.0.254:8082/project/e36df654-0802-4bfb-9820-99dc4b35fe2e 2025-08-07 02:15:30,837 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b00ae62d-5f1c-40b0-b605-bc27ce52e49c 2025-08-07 02:15:30,853 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b00ae62d-5f1c-40b0-b605-bc27ce52e49c 2025-08-07 02:15:30,867 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/002e60d1-6425-44e3-a922-dcf0fee2d9cd 2025-08-07 02:15:30,875 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/002e60d1-6425-44e3-a922-dcf0fee2d9cd 2025-08-07 02:15:30,883 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/5b9161d5-ca07-4d5e-a6dd-13303d8a1181 2025-08-07 02:15:30,891 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-07 02:15:30,891 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b00ae62d-5f1c-40b0-b605-bc27ce52e49c 2025-08-07 02:15:30,903 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/002e60d1-6425-44e3-a922-dcf0fee2d9cd 2025-08-07 02:15:30,922 - INFO - Verified VN network id 10 for VN b00ae62d-5f1c-40b0-b605-bc27ce52e49c 2025-08-07 02:15:30,922 - INFO - Verifications in API Server for VN ctest-vn4-82887914 passed 2025-08-07 02:15:30,922 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b00ae62d-5f1c-40b0-b605-bc27ce52e49c 2025-08-07 02:15:30,934 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/002e60d1-6425-44e3-a922-dcf0fee2d9cd 2025-08-07 02:15:30,942 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/002e60d1-6425-44e3-a922-dcf0fee2d9cd 2025-08-07 02:15:30,950 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/5b9161d5-ca07-4d5e-a6dd-13303d8a1181 2025-08-07 02:15:30,963 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50491403:ctest-vn4-82887914', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-50491403', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12685204382986027184', 'uuid-lslong': '13116096368937723036'}, 'enable': 'true', 'created': '2025-08-07T02:15:29', 'last-modified': '2025-08-07T02:15:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.823741'} 2025-08-07 02:15:30,970 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-07 02:15:30,970 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-82887914 passed 2025-08-07 02:15:30,970 - DEBUG - ====Verifying policy data for ctest-vn4-82887914 in API_Server ====== 2025-08-07 02:15:30,970 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-07 02:15:30,976 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c4343cb1-ebd0-41e3-b2ae-b8249da9524d 2025-08-07 02:15:30,988 - DEBUG - Requesting: http://10.0.0.254:8082/project/e36df654-0802-4bfb-9820-99dc4b35fe2e 2025-08-07 02:15:31,066 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b00ae62d-5f1c-40b0-b605-bc27ce52e49c 2025-08-07 02:15:31,081 - DEBUG - ==>Verifying data for policy with id: 972e7a52-953e-42cc-ada1-3ccc217b860b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-50491403', 'ctest-policy1-72711377'] 2025-08-07 02:15:31,081 - INFO - VN ctest-vn4-82887914 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-07 02:15:31,081 - DEBUG - Verifying the vn in opserver 2025-08-07 02:15:31,081 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50491403:ctest-vn4-82887914 virtual network link through opserver 10.0.0.254 2025-08-07 02:15:31,081 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-07 02:15:31,417 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-07 02:15:31,492 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50491403:ctest-vn4-82887914', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50491403:ctest-vn4-82887914?flat'} 2025-08-07 02:15:31,493 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50491403:ctest-vn4-82887914 is found in opserver 2025-08-07 02:15:31,507 - DEBUG - Do not have enough data to verify VN in agent 2025-08-07 02:15:31,513 - DEBUG - VRF ids for VN ctest-vn4-82887914: {} 2025-08-07 02:15:31,514 - DEBUG - ====Verifying data for ctest-policy1-72711377 in API_Server ====== 2025-08-07 02:15:31,514 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-07 02:15:31,522 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c4343cb1-ebd0-41e3-b2ae-b8249da9524d 2025-08-07 02:15:31,539 - DEBUG - Requesting: http://10.0.0.254:8082/project/e36df654-0802-4bfb-9820-99dc4b35fe2e 2025-08-07 02:15:31,615 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/972e7a52-953e-42cc-ada1-3ccc217b860b 2025-08-07 02:15:31,628 - INFO - Verified policy ctest-policy1-72711377 in API Server, Result: True 2025-08-07 02:15:31,628 - INFO - Done with setup and verification, moving onto test .. 2025-08-07 02:15:31,639 - INFO - Deleting VN ctest-vn4-82887914 2025-08-07 02:15:31,784 - DEBUG - Response for deleting network () 2025-08-07 02:15:31,785 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/002e60d1-6425-44e3-a922-dcf0fee2d9cd 2025-08-07 02:15:31,790 - DEBUG - Response Code: 404 2025-08-07 02:15:31,790 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-07 02:15:31,796 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c4343cb1-ebd0-41e3-b2ae-b8249da9524d 2025-08-07 02:15:31,852 - DEBUG - Requesting: http://10.0.0.254:8082/project/e36df654-0802-4bfb-9820-99dc4b35fe2e 2025-08-07 02:15:31,930 - INFO - Validated that VN ctest-vn4-82887914 is not found in API Server 2025-08-07 02:15:31,943 - DEBUG - VN ctest-vn4-82887914 is not present in Agent 10.0.0.254 2025-08-07 02:15:31,943 - INFO - Validated that VN ctest-vn4-82887914 is not in any agent 2025-08-07 02:15:31,963 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-82887914 info 2025-08-07 02:15:31,986 - INFO - Deleted policy ctest-policy1-72711377 2025-08-07 02:15:32,154 - DEBUG - policy ctest-policy1-72711377 is not found in API Server 2025-08-07 02:15:32,407 - DEBUG - No XMPP flaps were noticed during the test
2025-08-07 02:15:32,407 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-08-07 02:15:32,408 - INFO - -------------------------------------------------------------------------------- 2025-08-07 02:15:32,696 - DEBUG - No XMPP flaps were noticed during the test
2025-08-07 02:15:32,696 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-08-07 02:15:32,696 - INFO - -------------------------------------------------------------------------------- 2025-08-07 02:15:33,418 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-50491403, ID : e36df654-0802-4bfb-9820-99dc4b35fe2e