2025-08-21 02:09:36,051 - INFO - Domain Default found not creating 2025-08-21 02:09:36,180 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-95884865 not found, creating it 2025-08-21 02:09:36,665 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-95884865, ID : d320b5a1-091f-476d-9e24-ab258dc5cdd2 2025-08-21 02:09:37,977 - INFO - ================================================================================ 2025-08-21 02:09:37,977 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-21 02:09:38,233 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.192': '0'}} with 2025-08-21 02:09:38,233 - INFO - Initial checks done. Running the testcase now 2025-08-21 02:09:38,233 - INFO - 2025-08-21 02:09:38,233 - INFO - ================================================================================ 2025-08-21 02:09:38,233 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-21 02:09:38,233 - 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-21 02:09:38,528 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.192': '0'}} with 2025-08-21 02:09:38,529 - INFO - Initial checks done. Running the testcase now 2025-08-21 02:09:38,529 - INFO - 2025-08-21 02:09:38,912 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95884865:ctest-vn4-69898699, 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-95884865:ctest-vn4-69898699, 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-95884865:ctest-vn4-69898699, 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-95884865:ctest-vn4-69898699, 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-21 02:09:39,426 - DEBUG - Response for create_network : {'network': {'id': 'f280c7b4-bb32-4651-bb9c-ca698a610b8f', 'name': 'ctest-vn4-69898699', 'tenant_id': 'd320b5a1091f476d9e24ab258dc5cdd2', 'project_id': 'd320b5a1091f476d9e24ab258dc5cdd2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95884865', 'ctest-vn4-69898699'], 'port_security_enabled': True, 'description': ''}} 2025-08-21 02:09:39,618 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b1be930b-2cb0-4ef7-80bd-aa6a22c7eb11', 'name': '', 'tenant_id': 'd320b5a1091f476d9e24ab258dc5cdd2', 'network_id': 'f280c7b4-bb32-4651-bb9c-ca698a610b8f', 'ip_version': 4, 'cidr': '96.17.128.128/26', 'allocation_pools': [{'start': '96.17.128.130', 'end': '96.17.128.190'}], 'gateway_ip': '96.17.128.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '96.17.128.130', 'tags': [], 'project_id': 'd320b5a1091f476d9e24ab258dc5cdd2'}} 2025-08-21 02:09:39,820 - DEBUG - Response for create_subnet : {'subnet': {'id': '3ad0f127-9360-4f42-a422-de8e5a388d9d', 'name': '', 'tenant_id': 'd320b5a1091f476d9e24ab258dc5cdd2', 'network_id': 'f280c7b4-bb32-4651-bb9c-ca698a610b8f', 'ip_version': 6, 'cidr': '267d:2e7d:983d:8828:2aaf:73c0::/96', 'allocation_pools': [{'start': '267d:2e7d:983d:8828:2aaf:73c0:0:2', 'end': '267d:2e7d:983d:8828:2aaf:73c0:ffff:fffe'}], 'gateway_ip': '267d:2e7d:983d:8828:2aaf:73c0:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '267d:2e7d:983d:8828:2aaf:73c0:0:2', 'tags': [], 'project_id': 'd320b5a1091f476d9e24ab258dc5cdd2'}} 2025-08-21 02:09:39,838 - INFO - Created VN ctest-vn4-69898699 2025-08-21 02:09:39,896 - DEBUG - VN ctest-vn4-69898699 UUID is f280c7b4-bb32-4651-bb9c-ca698a610b8f 2025-08-21 02:09:40,092 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f280c7b4-bb32-4651-bb9c-ca698a610b8f', 'name': 'ctest-vn4-69898699', 'tenant_id': 'd320b5a1091f476d9e24ab258dc5cdd2', 'project_id': 'd320b5a1091f476d9e24ab258dc5cdd2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b1be930b-2cb0-4ef7-80bd-aa6a22c7eb11', '3ad0f127-9360-4f42-a422-de8e5a388d9d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95884865', 'ctest-vn4-69898699'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95884865', 'ctest-policy1-17355958']], 'subnet_ipam': [{'subnet_cidr': '96.17.128.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '267d:2e7d:983d:8828:2aaf:73c0::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-21 02:09:40,256 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-08-21 02:09:40,544 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-08-21 02:09:40,570 - DEBUG - Requesting: http://10.0.0.23:8082/domain/dfdbf3f6-0573-4082-8004-8e4c872ea99b 2025-08-21 02:09:40,581 - DEBUG - Requesting: http://10.0.0.23:8082/project/d320b5a1-091f-476d-9e24-ab258dc5cdd2 2025-08-21 02:09:40,653 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f280c7b4-bb32-4651-bb9c-ca698a610b8f 2025-08-21 02:09:40,664 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f280c7b4-bb32-4651-bb9c-ca698a610b8f 2025-08-21 02:09:40,672 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/0ee2e2be-797d-4393-a675-bce03a07f227 2025-08-21 02:09:40,677 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/0ee2e2be-797d-4393-a675-bce03a07f227 2025-08-21 02:09:40,683 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/97a3a406-f14b-445a-99ed-a60cf59083bd 2025-08-21 02:09:40,688 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-21 02:09:40,688 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f280c7b4-bb32-4651-bb9c-ca698a610b8f 2025-08-21 02:09:40,697 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/0ee2e2be-797d-4393-a675-bce03a07f227 2025-08-21 02:09:40,708 - INFO - Verified VN network id 12 for VN f280c7b4-bb32-4651-bb9c-ca698a610b8f 2025-08-21 02:09:40,709 - INFO - Verifications in API Server for VN ctest-vn4-69898699 passed 2025-08-21 02:09:40,709 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f280c7b4-bb32-4651-bb9c-ca698a610b8f 2025-08-21 02:09:40,717 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/0ee2e2be-797d-4393-a675-bce03a07f227 2025-08-21 02:09:40,722 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/0ee2e2be-797d-4393-a675-bce03a07f227 2025-08-21 02:09:40,727 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/97a3a406-f14b-445a-99ed-a60cf59083bd 2025-08-21 02:09:40,736 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95884865:ctest-vn4-69898699', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-95884865', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17474186133246199377', 'uuid-lslong': '13518902736101378959'}, 'enable': 'true', 'created': '2025-08-21T02:09:39', 'last-modified': '2025-08-21T02:09:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.681240'} 2025-08-21 02:09:40,742 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-21 02:09:40,742 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-69898699 passed 2025-08-21 02:09:40,742 - DEBUG - ====Verifying policy data for ctest-vn4-69898699 in API_Server ====== 2025-08-21 02:09:40,742 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-08-21 02:09:40,748 - DEBUG - Requesting: http://10.0.0.23:8082/domain/dfdbf3f6-0573-4082-8004-8e4c872ea99b 2025-08-21 02:09:40,758 - DEBUG - Requesting: http://10.0.0.23:8082/project/d320b5a1-091f-476d-9e24-ab258dc5cdd2 2025-08-21 02:09:40,831 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f280c7b4-bb32-4651-bb9c-ca698a610b8f 2025-08-21 02:09:40,841 - DEBUG - ==>Verifying data for policy with id: a200c5aa-908e-42c4-b25b-8c0c8c51a4e8, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95884865', 'ctest-policy1-17355958'] 2025-08-21 02:09:40,841 - INFO - VN ctest-vn4-69898699 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-21 02:09:40,841 - DEBUG - Verifying the vn in opserver 2025-08-21 02:09:40,841 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95884865:ctest-vn4-69898699 virtual network link through opserver 10.0.0.23 2025-08-21 02:09:40,841 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-08-21 02:09:41,131 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-08-21 02:09:41,186 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95884865:ctest-vn4-69898699', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95884865:ctest-vn4-69898699?flat'} 2025-08-21 02:09:41,186 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95884865:ctest-vn4-69898699 is found in opserver 2025-08-21 02:09:41,196 - DEBUG - Do not have enough data to verify VN in agent 2025-08-21 02:09:41,201 - DEBUG - VRF ids for VN ctest-vn4-69898699: {} 2025-08-21 02:09:41,201 - DEBUG - ====Verifying data for ctest-policy1-17355958 in API_Server ====== 2025-08-21 02:09:41,201 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-08-21 02:09:41,207 - DEBUG - Requesting: http://10.0.0.23:8082/domain/dfdbf3f6-0573-4082-8004-8e4c872ea99b 2025-08-21 02:09:41,218 - DEBUG - Requesting: http://10.0.0.23:8082/project/d320b5a1-091f-476d-9e24-ab258dc5cdd2 2025-08-21 02:09:41,293 - DEBUG - Requesting: http://10.0.0.23:8082/network-policy/a200c5aa-908e-42c4-b25b-8c0c8c51a4e8 2025-08-21 02:09:41,305 - INFO - Verified policy ctest-policy1-17355958 in API Server, Result: True 2025-08-21 02:09:41,305 - INFO - Done with setup and verification, moving onto test .. 2025-08-21 02:09:41,313 - INFO - Deleting VN ctest-vn4-69898699 2025-08-21 02:09:41,432 - DEBUG - Response for deleting network () 2025-08-21 02:09:41,432 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/0ee2e2be-797d-4393-a675-bce03a07f227 2025-08-21 02:09:41,437 - DEBUG - Response Code: 404 2025-08-21 02:09:41,437 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-08-21 02:09:41,442 - DEBUG - Requesting: http://10.0.0.23:8082/domain/dfdbf3f6-0573-4082-8004-8e4c872ea99b 2025-08-21 02:09:41,498 - DEBUG - Requesting: http://10.0.0.23:8082/project/d320b5a1-091f-476d-9e24-ab258dc5cdd2 2025-08-21 02:09:41,575 - INFO - Validated that VN ctest-vn4-69898699 is not found in API Server 2025-08-21 02:09:41,587 - DEBUG - VN ctest-vn4-69898699 is not present in Agent 10.0.0.23 2025-08-21 02:09:41,587 - INFO - Validated that VN ctest-vn4-69898699 is not in any agent 2025-08-21 02:09:41,603 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-69898699 info 2025-08-21 02:09:41,628 - INFO - Deleted policy ctest-policy1-17355958 2025-08-21 02:09:41,799 - DEBUG - policy ctest-policy1-17355958 is not found in API Server 2025-08-21 02:09:42,048 - DEBUG - No XMPP flaps were noticed during the test 2025-08-21 02:09:42,048 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-08-21 02:09:42,048 - INFO - -------------------------------------------------------------------------------- 2025-08-21 02:09:42,336 - DEBUG - No XMPP flaps were noticed during the test 2025-08-21 02:09:42,337 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-08-21 02:09:42,337 - INFO - -------------------------------------------------------------------------------- 2025-08-21 02:09:43,001 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-95884865, ID : d320b5a1-091f-476d-9e24-ab258dc5cdd2