2025-08-11 15:51:20,681 - INFO - Domain Default found not creating 2025-08-11 15:51:20,816 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-43088160 not found, creating it 2025-08-11 15:51:21,263 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-43088160, ID : cb8dac7b-a4b0-4742-91d3-8be06d3bd312 2025-08-11 15:51:22,739 - INFO - ================================================================================ 2025-08-11 15:51:22,739 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-11 15:51:22,992 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-08-11 15:51:22,992 - INFO - Initial checks done. Running the testcase now 2025-08-11 15:51:22,992 - INFO - 2025-08-11 15:51:22,992 - INFO - ================================================================================ 2025-08-11 15:51:22,992 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-11 15:51:22,992 - 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 15:51:23,283 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-08-11 15:51:23,283 - INFO - Initial checks done. Running the testcase now 2025-08-11 15:51:23,283 - INFO - 2025-08-11 15:51:23,667 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43088160:ctest-vn4-33914344, 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-43088160:ctest-vn4-33914344, 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-43088160:ctest-vn4-33914344, 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-43088160:ctest-vn4-33914344, 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 15:51:24,185 - DEBUG - Response for create_network : {'network': {'id': '1c667957-318a-457a-bd39-1157b7ac5f01', 'name': 'ctest-vn4-33914344', 'tenant_id': 'cb8dac7ba4b0474291d38be06d3bd312', 'project_id': 'cb8dac7ba4b0474291d38be06d3bd312', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43088160', 'ctest-vn4-33914344'], 'port_security_enabled': True, 'description': ''}} 2025-08-11 15:51:24,369 - DEBUG - Response for create_subnet : {'subnet': {'id': '2106ebb9-2013-4c4a-90fa-85d1e7799e6b', 'name': '', 'tenant_id': 'cb8dac7ba4b0474291d38be06d3bd312', 'network_id': '1c667957-318a-457a-bd39-1157b7ac5f01', 'ip_version': 4, 'cidr': '72.71.247.0/26', 'allocation_pools': [{'start': '72.71.247.2', 'end': '72.71.247.62'}], 'gateway_ip': '72.71.247.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '72.71.247.2', 'tags': [], 'project_id': 'cb8dac7ba4b0474291d38be06d3bd312'}} 2025-08-11 15:51:24,561 - DEBUG - Response for create_subnet : {'subnet': {'id': '6403fead-7fba-41cd-a60e-ccce4868390d', 'name': '', 'tenant_id': 'cb8dac7ba4b0474291d38be06d3bd312', 'network_id': '1c667957-318a-457a-bd39-1157b7ac5f01', 'ip_version': 6, 'cidr': '369c:34a7:e5a2:4b36:9414:ab63::/96', 'allocation_pools': [{'start': '369c:34a7:e5a2:4b36:9414:ab63:0:2', 'end': '369c:34a7:e5a2:4b36:9414:ab63:ffff:fffe'}], 'gateway_ip': '369c:34a7:e5a2:4b36:9414:ab63:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '369c:34a7:e5a2:4b36:9414:ab63:0:2', 'tags': [], 'project_id': 'cb8dac7ba4b0474291d38be06d3bd312'}} 2025-08-11 15:51:24,580 - INFO - Created VN ctest-vn4-33914344 2025-08-11 15:51:24,634 - DEBUG - VN ctest-vn4-33914344 UUID is 1c667957-318a-457a-bd39-1157b7ac5f01 2025-08-11 15:51:24,834 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1c667957-318a-457a-bd39-1157b7ac5f01', 'name': 'ctest-vn4-33914344', 'tenant_id': 'cb8dac7ba4b0474291d38be06d3bd312', 'project_id': 'cb8dac7ba4b0474291d38be06d3bd312', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2106ebb9-2013-4c4a-90fa-85d1e7799e6b', '6403fead-7fba-41cd-a60e-ccce4868390d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43088160', 'ctest-vn4-33914344'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43088160', 'ctest-policy1-67420867']], 'subnet_ipam': [{'subnet_cidr': '72.71.247.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '369c:34a7:e5a2:4b36:9414:ab63::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-11 15:51:25,002 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-11 15:51:25,332 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-11 15:51:25,360 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b13e149b-fbda-430f-898c-d7a072113c96 2025-08-11 15:51:25,374 - DEBUG - Requesting: http://10.0.0.38:8082/project/cb8dac7b-a4b0-4742-91d3-8be06d3bd312 2025-08-11 15:51:25,451 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1c667957-318a-457a-bd39-1157b7ac5f01 2025-08-11 15:51:25,464 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1c667957-318a-457a-bd39-1157b7ac5f01 2025-08-11 15:51:25,476 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bec3c736-fb25-4604-87ad-2e9a4ad07f73 2025-08-11 15:51:25,483 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bec3c736-fb25-4604-87ad-2e9a4ad07f73 2025-08-11 15:51:25,489 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/bfbf77f8-7e31-4e1a-a81a-e143e65ebf78 2025-08-11 15:51:25,495 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 15:51:25,495 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1c667957-318a-457a-bd39-1157b7ac5f01 2025-08-11 15:51:25,505 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bec3c736-fb25-4604-87ad-2e9a4ad07f73 2025-08-11 15:51:25,519 - INFO - Verified VN network id 12 for VN 1c667957-318a-457a-bd39-1157b7ac5f01 2025-08-11 15:51:25,519 - INFO - Verifications in API Server for VN ctest-vn4-33914344 passed 2025-08-11 15:51:25,519 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1c667957-318a-457a-bd39-1157b7ac5f01 2025-08-11 15:51:25,530 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bec3c736-fb25-4604-87ad-2e9a4ad07f73 2025-08-11 15:51:25,536 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bec3c736-fb25-4604-87ad-2e9a4ad07f73 2025-08-11 15:51:25,543 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/bfbf77f8-7e31-4e1a-a81a-e143e65ebf78 2025-08-11 15:51:25,555 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43088160:ctest-vn4-33914344', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-43088160', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2046456496086730106', 'uuid-lslong': '13634948415282241281'}, 'enable': 'true', 'created': '2025-08-11T15:51:24', 'last-modified': '2025-08-11T15:51:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.753648'} 2025-08-11 15:51:25,562 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 15:51:25,562 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-33914344 passed 2025-08-11 15:51:25,562 - DEBUG - ====Verifying policy data for ctest-vn4-33914344 in API_Server ====== 2025-08-11 15:51:25,562 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-11 15:51:25,567 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b13e149b-fbda-430f-898c-d7a072113c96 2025-08-11 15:51:25,579 - DEBUG - Requesting: http://10.0.0.38:8082/project/cb8dac7b-a4b0-4742-91d3-8be06d3bd312 2025-08-11 15:51:25,650 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1c667957-318a-457a-bd39-1157b7ac5f01 2025-08-11 15:51:25,661 - DEBUG - ==>Verifying data for policy with id: 4278ee53-b54e-43d7-aa24-5f0fa66ed57e, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43088160', 'ctest-policy1-67420867'] 2025-08-11 15:51:25,661 - INFO - VN ctest-vn4-33914344 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-11 15:51:25,661 - DEBUG - Verifying the vn in opserver 2025-08-11 15:51:25,661 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43088160:ctest-vn4-33914344 virtual network link through opserver 10.0.0.38 2025-08-11 15:51:25,661 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-11 15:51:25,991 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-11 15:51:26,044 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43088160:ctest-vn4-33914344', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43088160:ctest-vn4-33914344?flat'} 2025-08-11 15:51:26,044 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43088160:ctest-vn4-33914344 is found in opserver 2025-08-11 15:51:26,056 - DEBUG - Do not have enough data to verify VN in agent 2025-08-11 15:51:26,061 - DEBUG - VRF ids for VN ctest-vn4-33914344: {} 2025-08-11 15:51:26,062 - DEBUG - ====Verifying data for ctest-policy1-67420867 in API_Server ====== 2025-08-11 15:51:26,062 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-11 15:51:26,067 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b13e149b-fbda-430f-898c-d7a072113c96 2025-08-11 15:51:26,079 - DEBUG - Requesting: http://10.0.0.38:8082/project/cb8dac7b-a4b0-4742-91d3-8be06d3bd312 2025-08-11 15:51:26,153 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/4278ee53-b54e-43d7-aa24-5f0fa66ed57e 2025-08-11 15:51:26,164 - INFO - Verified policy ctest-policy1-67420867 in API Server, Result: True 2025-08-11 15:51:26,164 - INFO - Done with setup and verification, moving onto test .. 2025-08-11 15:51:26,171 - INFO - Deleting VN ctest-vn4-33914344 2025-08-11 15:51:26,303 - DEBUG - Response for deleting network () 2025-08-11 15:51:26,303 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bec3c736-fb25-4604-87ad-2e9a4ad07f73 2025-08-11 15:51:26,308 - DEBUG - Response Code: 404 2025-08-11 15:51:26,309 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-11 15:51:26,314 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b13e149b-fbda-430f-898c-d7a072113c96 2025-08-11 15:51:26,371 - DEBUG - Requesting: http://10.0.0.38:8082/project/cb8dac7b-a4b0-4742-91d3-8be06d3bd312 2025-08-11 15:51:26,445 - INFO - Validated that VN ctest-vn4-33914344 is not found in API Server 2025-08-11 15:51:26,456 - DEBUG - VN ctest-vn4-33914344 is not present in Agent 10.0.0.38 2025-08-11 15:51:26,456 - INFO - Validated that VN ctest-vn4-33914344 is not in any agent 2025-08-11 15:51:26,472 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-33914344 info 2025-08-11 15:51:26,500 - INFO - Deleted policy ctest-policy1-67420867 2025-08-11 15:51:26,669 - DEBUG - policy ctest-policy1-67420867 is not found in API Server 2025-08-11 15:51:26,928 - DEBUG - No XMPP flaps were noticed during the test 2025-08-11 15:51:26,928 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-08-11 15:51:26,928 - INFO - -------------------------------------------------------------------------------- 2025-08-11 15:51:27,223 - DEBUG - No XMPP flaps were noticed during the test 2025-08-11 15:51:27,223 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-08-11 15:51:27,223 - INFO - -------------------------------------------------------------------------------- 2025-08-11 15:51:27,920 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-43088160, ID : cb8dac7b-a4b0-4742-91d3-8be06d3bd312