2025-11-20 17:51:33,420 - INFO - Domain Default found not creating 2025-11-20 17:51:33,603 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-75777007 not found, creating it 2025-11-20 17:51:34,068 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-75777007, ID : 100888a0-3923-4b0f-a6bf-0819f623bb6a 2025-11-20 17:51:35,613 - INFO - ================================================================================ 2025-11-20 17:51:35,613 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-20 17:51:35,870 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.5': '0'}} with 2025-11-20 17:51:35,870 - INFO - Initial checks done. Running the testcase now 2025-11-20 17:51:35,870 - INFO - 2025-11-20 17:51:35,870 - INFO - ================================================================================ 2025-11-20 17:51:35,870 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-20 17:51:35,870 - 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-11-20 17:51:36,163 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.5': '0'}} with 2025-11-20 17:51:36,163 - INFO - Initial checks done. Running the testcase now 2025-11-20 17:51:36,163 - INFO - 2025-11-20 17:51:36,524 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75777007:ctest-vn4-07868116, 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-75777007:ctest-vn4-07868116, 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-75777007:ctest-vn4-07868116, 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-75777007:ctest-vn4-07868116, 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-11-20 17:51:37,068 - DEBUG - Response for create_network : {'network': {'id': '626bfc74-240b-40d3-bfed-37d79fae7f68', 'name': 'ctest-vn4-07868116', 'tenant_id': '100888a039234b0fa6bf0819f623bb6a', 'project_id': '100888a039234b0fa6bf0819f623bb6a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-75777007', 'ctest-vn4-07868116'], 'port_security_enabled': True, 'description': ''}} 2025-11-20 17:51:37,302 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd1b572ac-dfa7-45cd-9309-e0fb7d8ecff2', 'name': '', 'tenant_id': '100888a039234b0fa6bf0819f623bb6a', 'network_id': '626bfc74-240b-40d3-bfed-37d79fae7f68', 'ip_version': 4, 'cidr': '44.133.142.64/26', 'allocation_pools': [{'start': '44.133.142.66', 'end': '44.133.142.126'}], 'gateway_ip': '44.133.142.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '44.133.142.66', 'tags': [], 'project_id': '100888a039234b0fa6bf0819f623bb6a'}} 2025-11-20 17:51:37,487 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fdfca9bb-dece-4561-9865-aac0769c294a', 'name': '', 'tenant_id': '100888a039234b0fa6bf0819f623bb6a', 'network_id': '626bfc74-240b-40d3-bfed-37d79fae7f68', 'ip_version': 6, 'cidr': '3658:1081:73fc:a28f:c149:8b45::/96', 'allocation_pools': [{'start': '3658:1081:73fc:a28f:c149:8b45:0:2', 'end': '3658:1081:73fc:a28f:c149:8b45:ffff:fffe'}], 'gateway_ip': '3658:1081:73fc:a28f:c149:8b45:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3658:1081:73fc:a28f:c149:8b45:0:2', 'tags': [], 'project_id': '100888a039234b0fa6bf0819f623bb6a'}} 2025-11-20 17:51:37,508 - INFO - Created VN ctest-vn4-07868116 2025-11-20 17:51:37,561 - DEBUG - VN ctest-vn4-07868116 UUID is 626bfc74-240b-40d3-bfed-37d79fae7f68 2025-11-20 17:51:37,797 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '626bfc74-240b-40d3-bfed-37d79fae7f68', 'name': 'ctest-vn4-07868116', 'tenant_id': '100888a039234b0fa6bf0819f623bb6a', 'project_id': '100888a039234b0fa6bf0819f623bb6a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d1b572ac-dfa7-45cd-9309-e0fb7d8ecff2', 'fdfca9bb-dece-4561-9865-aac0769c294a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-75777007', 'ctest-vn4-07868116'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-75777007', 'ctest-policy1-69242419']], 'subnet_ipam': [{'subnet_cidr': '44.133.142.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3658:1081:73fc:a28f:c149:8b45::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-20 17:51:37,969 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-20 17:51:38,278 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-20 17:51:38,310 - DEBUG - Requesting: http://10.0.0.50:8082/domain/da0d12c2-a7a9-4639-99b8-df809370f14c 2025-11-20 17:51:38,322 - DEBUG - Requesting: http://10.0.0.50:8082/project/100888a0-3923-4b0f-a6bf-0819f623bb6a 2025-11-20 17:51:38,398 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/626bfc74-240b-40d3-bfed-37d79fae7f68 2025-11-20 17:51:38,411 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/626bfc74-240b-40d3-bfed-37d79fae7f68 2025-11-20 17:51:38,422 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/997757dc-fea6-4bf2-bcd2-2a6e3c7bb174 2025-11-20 17:51:38,430 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/997757dc-fea6-4bf2-bcd2-2a6e3c7bb174 2025-11-20 17:51:38,439 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/61952593-c15d-4b62-a2cd-b8bf6ceefdbf 2025-11-20 17:51:38,445 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-20 17:51:38,445 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/626bfc74-240b-40d3-bfed-37d79fae7f68 2025-11-20 17:51:38,454 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/997757dc-fea6-4bf2-bcd2-2a6e3c7bb174 2025-11-20 17:51:38,468 - INFO - Verified VN network id 11 for VN 626bfc74-240b-40d3-bfed-37d79fae7f68 2025-11-20 17:51:38,468 - INFO - Verifications in API Server for VN ctest-vn4-07868116 passed 2025-11-20 17:51:38,468 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/626bfc74-240b-40d3-bfed-37d79fae7f68 2025-11-20 17:51:38,479 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/997757dc-fea6-4bf2-bcd2-2a6e3c7bb174 2025-11-20 17:51:38,488 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/997757dc-fea6-4bf2-bcd2-2a6e3c7bb174 2025-11-20 17:51:38,497 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/61952593-c15d-4b62-a2cd-b8bf6ceefdbf 2025-11-20 17:51:38,511 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75777007:ctest-vn4-07868116', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-75777007', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7092039613976101075', 'uuid-lslong': '13829771429961170792'}, 'enable': 'true', 'created': '2025-11-20T17:51:37', 'last-modified': '2025-11-20T17:51:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.752088'} 2025-11-20 17:51:38,519 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-20 17:51:38,519 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-07868116 passed 2025-11-20 17:51:38,519 - DEBUG - ====Verifying policy data for ctest-vn4-07868116 in API_Server ====== 2025-11-20 17:51:38,519 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-20 17:51:38,526 - DEBUG - Requesting: http://10.0.0.50:8082/domain/da0d12c2-a7a9-4639-99b8-df809370f14c 2025-11-20 17:51:38,538 - DEBUG - Requesting: http://10.0.0.50:8082/project/100888a0-3923-4b0f-a6bf-0819f623bb6a 2025-11-20 17:51:38,629 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/626bfc74-240b-40d3-bfed-37d79fae7f68 2025-11-20 17:51:38,639 - DEBUG - ==>Verifying data for policy with id: 56ee641a-2af9-41ef-bc0c-76f616714f73, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-75777007', 'ctest-policy1-69242419'] 2025-11-20 17:51:38,639 - INFO - VN ctest-vn4-07868116 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-20 17:51:38,639 - DEBUG - Verifying the vn in opserver 2025-11-20 17:51:38,639 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75777007:ctest-vn4-07868116 virtual network link through opserver 10.0.0.50 2025-11-20 17:51:38,639 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-20 17:51:38,942 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-20 17:51:39,011 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75777007:ctest-vn4-07868116', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75777007:ctest-vn4-07868116?flat'} 2025-11-20 17:51:39,011 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75777007:ctest-vn4-07868116 is found in opserver 2025-11-20 17:51:39,021 - DEBUG - Do not have enough data to verify VN in agent 2025-11-20 17:51:39,026 - DEBUG - VRF ids for VN ctest-vn4-07868116: {} 2025-11-20 17:51:39,027 - DEBUG - ====Verifying data for ctest-policy1-69242419 in API_Server ====== 2025-11-20 17:51:39,027 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-20 17:51:39,033 - DEBUG - Requesting: http://10.0.0.50:8082/domain/da0d12c2-a7a9-4639-99b8-df809370f14c 2025-11-20 17:51:39,043 - DEBUG - Requesting: http://10.0.0.50:8082/project/100888a0-3923-4b0f-a6bf-0819f623bb6a 2025-11-20 17:51:39,117 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/56ee641a-2af9-41ef-bc0c-76f616714f73 2025-11-20 17:51:39,128 - INFO - Verified policy ctest-policy1-69242419 in API Server, Result: True 2025-11-20 17:51:39,128 - INFO - Done with setup and verification, moving onto test .. 2025-11-20 17:51:39,138 - INFO - Deleting VN ctest-vn4-07868116 2025-11-20 17:51:39,276 - DEBUG - Response for deleting network () 2025-11-20 17:51:39,276 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/997757dc-fea6-4bf2-bcd2-2a6e3c7bb174 2025-11-20 17:51:39,281 - DEBUG - Response Code: 404 2025-11-20 17:51:39,281 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-20 17:51:39,286 - DEBUG - Requesting: http://10.0.0.50:8082/domain/da0d12c2-a7a9-4639-99b8-df809370f14c 2025-11-20 17:51:39,342 - DEBUG - Requesting: http://10.0.0.50:8082/project/100888a0-3923-4b0f-a6bf-0819f623bb6a 2025-11-20 17:51:39,412 - INFO - Validated that VN ctest-vn4-07868116 is not found in API Server 2025-11-20 17:51:39,421 - DEBUG - VN ctest-vn4-07868116 is not present in Agent 10.0.0.50 2025-11-20 17:51:39,421 - INFO - Validated that VN ctest-vn4-07868116 is not in any agent 2025-11-20 17:51:39,436 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-07868116 info 2025-11-20 17:51:39,466 - INFO - Deleted policy ctest-policy1-69242419 2025-11-20 17:51:39,637 - DEBUG - policy ctest-policy1-69242419 is not found in API Server 2025-11-20 17:51:39,894 - DEBUG - No XMPP flaps were noticed during the test