2025-10-22 10:49:18,464 - INFO - Domain Default found not creating 2025-10-22 10:49:18,619 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-29883493 not found, creating it 2025-10-22 10:49:19,073 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-29883493, ID : 1084586e-7fd8-4fd8-91fa-ecd2c4c06da2 2025-10-22 10:49:20,496 - INFO - ================================================================================ 2025-10-22 10:49:20,497 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-22 10:49:20,750 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.14': '0'}} with 2025-10-22 10:49:20,750 - INFO - Initial checks done. Running the testcase now 2025-10-22 10:49:20,751 - INFO - 2025-10-22 10:49:20,751 - INFO - ================================================================================ 2025-10-22 10:49:20,751 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-22 10:49:20,751 - 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-10-22 10:49:21,043 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.14': '0'}} with 2025-10-22 10:49:21,043 - INFO - Initial checks done. Running the testcase now 2025-10-22 10:49:21,043 - INFO - 2025-10-22 10:49:21,410 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29883493:ctest-vn4-34681821, 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-29883493:ctest-vn4-34681821, 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-29883493:ctest-vn4-34681821, 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-29883493:ctest-vn4-34681821, 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-10-22 10:49:21,936 - DEBUG - Response for create_network : {'network': {'id': '676e7a35-3e5f-4362-a840-470995dd24cd', 'name': 'ctest-vn4-34681821', 'tenant_id': '1084586e7fd84fd891faecd2c4c06da2', 'project_id': '1084586e7fd84fd891faecd2c4c06da2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29883493', 'ctest-vn4-34681821'], 'port_security_enabled': True, 'description': ''}} 2025-10-22 10:49:22,150 - DEBUG - Response for create_subnet : {'subnet': {'id': '9f63ff84-28a7-4343-8141-c2f0e7a8122d', 'name': '', 'tenant_id': '1084586e7fd84fd891faecd2c4c06da2', 'network_id': '676e7a35-3e5f-4362-a840-470995dd24cd', 'ip_version': 4, 'cidr': '5.129.224.64/26', 'allocation_pools': [{'start': '5.129.224.66', 'end': '5.129.224.126'}], 'gateway_ip': '5.129.224.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '5.129.224.66', 'tags': [], 'project_id': '1084586e7fd84fd891faecd2c4c06da2'}} 2025-10-22 10:49:22,333 - DEBUG - Response for create_subnet : {'subnet': {'id': '18df48d5-fce2-4f55-9481-779ca18270be', 'name': '', 'tenant_id': '1084586e7fd84fd891faecd2c4c06da2', 'network_id': '676e7a35-3e5f-4362-a840-470995dd24cd', 'ip_version': 6, 'cidr': '289f:662a:4855:ef77:efae:db38::/96', 'allocation_pools': [{'start': '289f:662a:4855:ef77:efae:db38:0:2', 'end': '289f:662a:4855:ef77:efae:db38:ffff:fffe'}], 'gateway_ip': '289f:662a:4855:ef77:efae:db38:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '289f:662a:4855:ef77:efae:db38:0:2', 'tags': [], 'project_id': '1084586e7fd84fd891faecd2c4c06da2'}} 2025-10-22 10:49:22,354 - INFO - Created VN ctest-vn4-34681821 2025-10-22 10:49:22,410 - DEBUG - VN ctest-vn4-34681821 UUID is 676e7a35-3e5f-4362-a840-470995dd24cd 2025-10-22 10:49:22,668 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '676e7a35-3e5f-4362-a840-470995dd24cd', 'name': 'ctest-vn4-34681821', 'tenant_id': '1084586e7fd84fd891faecd2c4c06da2', 'project_id': '1084586e7fd84fd891faecd2c4c06da2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9f63ff84-28a7-4343-8141-c2f0e7a8122d', '18df48d5-fce2-4f55-9481-779ca18270be'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29883493', 'ctest-vn4-34681821'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29883493', 'ctest-policy1-93844109']], 'subnet_ipam': [{'subnet_cidr': '5.129.224.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '289f:662a:4855:ef77:efae:db38::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-22 10:49:22,833 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-10-22 10:49:23,128 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-10-22 10:49:23,155 - DEBUG - Requesting: http://10.0.0.27:8082/domain/231ff27d-41cd-42f4-abf3-2f09c6cda50e 2025-10-22 10:49:23,166 - DEBUG - Requesting: http://10.0.0.27:8082/project/1084586e-7fd8-4fd8-91fa-ecd2c4c06da2 2025-10-22 10:49:23,239 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/676e7a35-3e5f-4362-a840-470995dd24cd 2025-10-22 10:49:23,250 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/676e7a35-3e5f-4362-a840-470995dd24cd 2025-10-22 10:49:23,259 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c7b18ab3-2e93-4f88-817e-c7843bb62abe 2025-10-22 10:49:23,266 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c7b18ab3-2e93-4f88-817e-c7843bb62abe 2025-10-22 10:49:23,273 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/52934d89-dcbd-423f-aa35-544b55c4d3fc 2025-10-22 10:49:23,279 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-22 10:49:23,279 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/676e7a35-3e5f-4362-a840-470995dd24cd 2025-10-22 10:49:23,288 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c7b18ab3-2e93-4f88-817e-c7843bb62abe 2025-10-22 10:49:23,301 - INFO - Verified VN network id 11 for VN 676e7a35-3e5f-4362-a840-470995dd24cd 2025-10-22 10:49:23,301 - INFO - Verifications in API Server for VN ctest-vn4-34681821 passed 2025-10-22 10:49:23,301 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/676e7a35-3e5f-4362-a840-470995dd24cd 2025-10-22 10:49:23,310 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c7b18ab3-2e93-4f88-817e-c7843bb62abe 2025-10-22 10:49:23,317 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c7b18ab3-2e93-4f88-817e-c7843bb62abe 2025-10-22 10:49:23,323 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/52934d89-dcbd-423f-aa35-544b55c4d3fc 2025-10-22 10:49:23,335 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29883493:ctest-vn4-34681821', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-29883493', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7453028802443035490', 'uuid-lslong': '12123768303375951053'}, 'enable': 'true', 'created': '2025-10-22T10:49:21', 'last-modified': '2025-10-22T10:49:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.749800'} 2025-10-22 10:49:23,341 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-22 10:49:23,341 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-34681821 passed 2025-10-22 10:49:23,341 - DEBUG - ====Verifying policy data for ctest-vn4-34681821 in API_Server ====== 2025-10-22 10:49:23,341 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-10-22 10:49:23,347 - DEBUG - Requesting: http://10.0.0.27:8082/domain/231ff27d-41cd-42f4-abf3-2f09c6cda50e 2025-10-22 10:49:23,358 - DEBUG - Requesting: http://10.0.0.27:8082/project/1084586e-7fd8-4fd8-91fa-ecd2c4c06da2 2025-10-22 10:49:23,429 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/676e7a35-3e5f-4362-a840-470995dd24cd 2025-10-22 10:49:23,440 - DEBUG - ==>Verifying data for policy with id: 8af0a535-f20b-4783-87f7-e2964abd23af, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29883493', 'ctest-policy1-93844109'] 2025-10-22 10:49:23,440 - INFO - VN ctest-vn4-34681821 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-22 10:49:23,440 - DEBUG - Verifying the vn in opserver 2025-10-22 10:49:23,440 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29883493:ctest-vn4-34681821 virtual network link through opserver 10.0.0.27 2025-10-22 10:49:23,440 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-10-22 10:49:23,730 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-10-22 10:49:23,795 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29883493:ctest-vn4-34681821', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29883493:ctest-vn4-34681821?flat'} 2025-10-22 10:49:23,796 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29883493:ctest-vn4-34681821 is found in opserver 2025-10-22 10:49:23,807 - DEBUG - Do not have enough data to verify VN in agent 2025-10-22 10:49:23,813 - DEBUG - VRF ids for VN ctest-vn4-34681821: {} 2025-10-22 10:49:23,814 - DEBUG - ====Verifying data for ctest-policy1-93844109 in API_Server ====== 2025-10-22 10:49:23,814 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-10-22 10:49:23,820 - DEBUG - Requesting: http://10.0.0.27:8082/domain/231ff27d-41cd-42f4-abf3-2f09c6cda50e 2025-10-22 10:49:23,832 - DEBUG - Requesting: http://10.0.0.27:8082/project/1084586e-7fd8-4fd8-91fa-ecd2c4c06da2 2025-10-22 10:49:23,908 - DEBUG - Requesting: http://10.0.0.27:8082/network-policy/8af0a535-f20b-4783-87f7-e2964abd23af 2025-10-22 10:49:23,919 - INFO - Verified policy ctest-policy1-93844109 in API Server, Result: True 2025-10-22 10:49:23,919 - INFO - Done with setup and verification, moving onto test .. 2025-10-22 10:49:23,929 - INFO - Deleting VN ctest-vn4-34681821 2025-10-22 10:49:24,057 - DEBUG - Response for deleting network () 2025-10-22 10:49:24,058 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c7b18ab3-2e93-4f88-817e-c7843bb62abe 2025-10-22 10:49:24,063 - DEBUG - Response Code: 404 2025-10-22 10:49:24,063 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-10-22 10:49:24,068 - DEBUG - Requesting: http://10.0.0.27:8082/domain/231ff27d-41cd-42f4-abf3-2f09c6cda50e 2025-10-22 10:49:24,122 - DEBUG - Requesting: http://10.0.0.27:8082/project/1084586e-7fd8-4fd8-91fa-ecd2c4c06da2 2025-10-22 10:49:24,191 - INFO - Validated that VN ctest-vn4-34681821 is not found in API Server 2025-10-22 10:49:24,200 - DEBUG - VN ctest-vn4-34681821 is not present in Agent 10.0.0.27 2025-10-22 10:49:24,200 - INFO - Validated that VN ctest-vn4-34681821 is not in any agent 2025-10-22 10:49:24,216 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-34681821 info 2025-10-22 10:49:24,242 - INFO - Deleted policy ctest-policy1-93844109 2025-10-22 10:49:24,409 - DEBUG - policy ctest-policy1-93844109 is not found in API Server 2025-10-22 10:49:24,662 - DEBUG - No XMPP flaps were noticed during the test 2025-10-22 10:49:24,662 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-22 10:49:24,662 - INFO - -------------------------------------------------------------------------------- 2025-10-22 10:49:24,955 - DEBUG - No XMPP flaps were noticed during the test 2025-10-22 10:49:24,955 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-22 10:49:24,955 - INFO - -------------------------------------------------------------------------------- 2025-10-22 10:49:25,640 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-29883493, ID : 1084586e-7fd8-4fd8-91fa-ecd2c4c06da2