2025-08-11 02:05:45,333 - INFO - Domain Default found not creating 2025-08-11 02:05:45,461 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-97597093 not found, creating it 2025-08-11 02:05:45,887 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-97597093, ID : 7da74d94-dd04-40b6-b01e-fcfe002bc3bb 2025-08-11 02:05:47,273 - INFO - ================================================================================ 2025-08-11 02:05:47,273 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-11 02:05:47,532 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.14': '0'}} with 2025-08-11 02:05:47,532 - INFO - Initial checks done. Running the testcase now 2025-08-11 02:05:47,532 - INFO - 2025-08-11 02:05:47,532 - INFO - ================================================================================ 2025-08-11 02:05:47,532 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-11 02:05:47,532 - 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-11 02:05:47,815 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.14': '0'}} with 2025-08-11 02:05:47,815 - INFO - Initial checks done. Running the testcase now 2025-08-11 02:05:47,815 - INFO - 2025-08-11 02:05:48,164 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97597093:ctest-vn4-46286568, 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-97597093:ctest-vn4-46286568, 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-97597093:ctest-vn4-46286568, 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-97597093:ctest-vn4-46286568, 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-11 02:05:48,690 - DEBUG - Response for create_network : {'network': {'id': '813feed0-861f-4bcb-bb13-68fa468692d6', 'name': 'ctest-vn4-46286568', 'tenant_id': '7da74d94dd0440b6b01efcfe002bc3bb', 'project_id': '7da74d94dd0440b6b01efcfe002bc3bb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-97597093', 'ctest-vn4-46286568'], 'port_security_enabled': True, 'description': ''}} 2025-08-11 02:05:48,868 - DEBUG - Response for create_subnet : {'subnet': {'id': '8734c652-6a24-48b8-ad8a-05770385d6e6', 'name': '', 'tenant_id': '7da74d94dd0440b6b01efcfe002bc3bb', 'network_id': '813feed0-861f-4bcb-bb13-68fa468692d6', 'ip_version': 4, 'cidr': '105.39.140.192/26', 'allocation_pools': [{'start': '105.39.140.194', 'end': '105.39.140.254'}], 'gateway_ip': '105.39.140.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '105.39.140.194', 'tags': [], 'project_id': '7da74d94dd0440b6b01efcfe002bc3bb'}} 2025-08-11 02:05:49,064 - DEBUG - Response for create_subnet : {'subnet': {'id': '73da91eb-fb45-4fe5-8192-1995f30fb7c4', 'name': '', 'tenant_id': '7da74d94dd0440b6b01efcfe002bc3bb', 'network_id': '813feed0-861f-4bcb-bb13-68fa468692d6', 'ip_version': 6, 'cidr': '25a6:cbea:727e:9c61:1c39:643::/96', 'allocation_pools': [{'start': '25a6:cbea:727e:9c61:1c39:643:0:2', 'end': '25a6:cbea:727e:9c61:1c39:643:ffff:fffe'}], 'gateway_ip': '25a6:cbea:727e:9c61:1c39:643:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '25a6:cbea:727e:9c61:1c39:643:0:2', 'tags': [], 'project_id': '7da74d94dd0440b6b01efcfe002bc3bb'}} 2025-08-11 02:05:49,084 - INFO - Created VN ctest-vn4-46286568 2025-08-11 02:05:49,136 - DEBUG - VN ctest-vn4-46286568 UUID is 813feed0-861f-4bcb-bb13-68fa468692d6 2025-08-11 02:05:49,359 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '813feed0-861f-4bcb-bb13-68fa468692d6', 'name': 'ctest-vn4-46286568', 'tenant_id': '7da74d94dd0440b6b01efcfe002bc3bb', 'project_id': '7da74d94dd0440b6b01efcfe002bc3bb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8734c652-6a24-48b8-ad8a-05770385d6e6', '73da91eb-fb45-4fe5-8192-1995f30fb7c4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-97597093', 'ctest-vn4-46286568'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-97597093', 'ctest-policy1-10102126']], 'subnet_ipam': [{'subnet_cidr': '105.39.140.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '25a6:cbea:727e:9c61:1c39:643::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-11 02:05:49,520 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-08-11 02:05:49,810 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-08-11 02:05:49,848 - DEBUG - Requesting: http://10.0.0.130:8082/domain/1e94b48a-eae8-4875-9ae9-d3351d64e420 2025-08-11 02:05:49,865 - DEBUG - Requesting: http://10.0.0.130:8082/project/7da74d94-dd04-40b6-b01e-fcfe002bc3bb 2025-08-11 02:05:49,945 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/813feed0-861f-4bcb-bb13-68fa468692d6 2025-08-11 02:05:49,958 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/813feed0-861f-4bcb-bb13-68fa468692d6 2025-08-11 02:05:49,971 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/b38ccf5f-f0ea-4953-92aa-a78d96a38848 2025-08-11 02:05:49,978 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/b38ccf5f-f0ea-4953-92aa-a78d96a38848 2025-08-11 02:05:49,986 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/f8a3e3ad-26cf-4db6-953a-565741a3207e 2025-08-11 02:05:49,992 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 02:05:49,992 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/813feed0-861f-4bcb-bb13-68fa468692d6 2025-08-11 02:05:50,002 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/b38ccf5f-f0ea-4953-92aa-a78d96a38848 2025-08-11 02:05:50,016 - INFO - Verified VN network id 11 for VN 813feed0-861f-4bcb-bb13-68fa468692d6 2025-08-11 02:05:50,016 - INFO - Verifications in API Server for VN ctest-vn4-46286568 passed 2025-08-11 02:05:50,016 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/813feed0-861f-4bcb-bb13-68fa468692d6 2025-08-11 02:05:50,025 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/b38ccf5f-f0ea-4953-92aa-a78d96a38848 2025-08-11 02:05:50,032 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/b38ccf5f-f0ea-4953-92aa-a78d96a38848 2025-08-11 02:05:50,039 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/f8a3e3ad-26cf-4db6-953a-565741a3207e 2025-08-11 02:05:50,051 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97597093:ctest-vn4-46286568', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-97597093', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9313425133796281291', 'uuid-lslong': '13480233533784363734'}, 'enable': 'true', 'created': '2025-08-11T02:05:48', 'last-modified': '2025-08-11T02:05:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.738935'} 2025-08-11 02:05:50,060 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 02:05:50,060 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-46286568 passed 2025-08-11 02:05:50,061 - DEBUG - ====Verifying policy data for ctest-vn4-46286568 in API_Server ====== 2025-08-11 02:05:50,061 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-08-11 02:05:50,067 - DEBUG - Requesting: http://10.0.0.130:8082/domain/1e94b48a-eae8-4875-9ae9-d3351d64e420 2025-08-11 02:05:50,081 - DEBUG - Requesting: http://10.0.0.130:8082/project/7da74d94-dd04-40b6-b01e-fcfe002bc3bb 2025-08-11 02:05:50,163 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/813feed0-861f-4bcb-bb13-68fa468692d6 2025-08-11 02:05:50,178 - DEBUG - ==>Verifying data for policy with id: dc0885ac-c3e7-45f5-b3a8-103b4761d28a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-97597093', 'ctest-policy1-10102126'] 2025-08-11 02:05:50,178 - INFO - VN ctest-vn4-46286568 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-11 02:05:50,178 - DEBUG - Verifying the vn in opserver 2025-08-11 02:05:50,178 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97597093:ctest-vn4-46286568 virtual network link through opserver 10.0.0.130 2025-08-11 02:05:50,178 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2025-08-11 02:05:50,469 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2025-08-11 02:05:50,532 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97597093:ctest-vn4-46286568', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97597093:ctest-vn4-46286568?flat'} 2025-08-11 02:05:50,532 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97597093:ctest-vn4-46286568 is found in opserver 2025-08-11 02:05:50,544 - DEBUG - Do not have enough data to verify VN in agent 2025-08-11 02:05:50,549 - DEBUG - VRF ids for VN ctest-vn4-46286568: {} 2025-08-11 02:05:50,549 - DEBUG - ====Verifying data for ctest-policy1-10102126 in API_Server ====== 2025-08-11 02:05:50,550 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-08-11 02:05:50,555 - DEBUG - Requesting: http://10.0.0.130:8082/domain/1e94b48a-eae8-4875-9ae9-d3351d64e420 2025-08-11 02:05:50,566 - DEBUG - Requesting: http://10.0.0.130:8082/project/7da74d94-dd04-40b6-b01e-fcfe002bc3bb 2025-08-11 02:05:50,638 - DEBUG - Requesting: http://10.0.0.130:8082/network-policy/dc0885ac-c3e7-45f5-b3a8-103b4761d28a 2025-08-11 02:05:50,649 - INFO - Verified policy ctest-policy1-10102126 in API Server, Result: True 2025-08-11 02:05:50,649 - INFO - Done with setup and verification, moving onto test .. 2025-08-11 02:05:50,656 - INFO - Deleting VN ctest-vn4-46286568 2025-08-11 02:05:50,787 - DEBUG - Response for deleting network () 2025-08-11 02:05:50,787 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/b38ccf5f-f0ea-4953-92aa-a78d96a38848 2025-08-11 02:05:50,793 - DEBUG - Response Code: 404 2025-08-11 02:05:50,793 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-08-11 02:05:50,798 - DEBUG - Requesting: http://10.0.0.130:8082/domain/1e94b48a-eae8-4875-9ae9-d3351d64e420 2025-08-11 02:05:50,853 - DEBUG - Requesting: http://10.0.0.130:8082/project/7da74d94-dd04-40b6-b01e-fcfe002bc3bb 2025-08-11 02:05:50,933 - INFO - Validated that VN ctest-vn4-46286568 is not found in API Server 2025-08-11 02:05:50,946 - DEBUG - VN ctest-vn4-46286568 is not present in Agent 10.0.0.130 2025-08-11 02:05:50,946 - INFO - Validated that VN ctest-vn4-46286568 is not in any agent 2025-08-11 02:05:50,961 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-46286568 info 2025-08-11 02:05:50,991 - INFO - Deleted policy ctest-policy1-10102126 2025-08-11 02:05:51,176 - DEBUG - policy ctest-policy1-10102126 is not found in API Server 2025-08-11 02:05:51,448 - DEBUG - No XMPP flaps were noticed during the test 2025-08-11 02:05:51,448 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-08-11 02:05:51,448 - INFO - -------------------------------------------------------------------------------- 2025-08-11 02:05:51,730 - DEBUG - No XMPP flaps were noticed during the test 2025-08-11 02:05:51,730 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-08-11 02:05:51,730 - INFO - -------------------------------------------------------------------------------- 2025-08-11 02:05:52,394 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-97597093, ID : 7da74d94-dd04-40b6-b01e-fcfe002bc3bb