2025-08-05 07:17:39,635 - INFO - Domain Default found not creating 2025-08-05 07:17:39,781 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-05397252 not found, creating it 2025-08-05 07:17:40,239 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-05397252, ID : a2e0dda9-b011-4494-be20-1260530cc5fc 2025-08-05 07:17:41,654 - INFO - ================================================================================ 2025-08-05 07:17:41,654 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-05 07:17:41,908 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.25': '0'}} with 2025-08-05 07:17:41,908 - INFO - Initial checks done. Running the testcase now 2025-08-05 07:17:41,908 - INFO - 2025-08-05 07:17:41,908 - INFO - ================================================================================ 2025-08-05 07:17:41,908 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-05 07:17:41,908 - 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-05 07:17:42,199 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.25': '0'}} with 2025-08-05 07:17:42,199 - INFO - Initial checks done. Running the testcase now 2025-08-05 07:17:42,199 - INFO - 2025-08-05 07:17:42,544 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05397252:ctest-vn4-95179630, 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-05397252:ctest-vn4-95179630, 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-05397252:ctest-vn4-95179630, 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-05397252:ctest-vn4-95179630, 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-05 07:17:43,058 - DEBUG - Response for create_network : {'network': {'id': '4c929fb1-b787-4a06-9f1b-c3993f0f0994', 'name': 'ctest-vn4-95179630', 'tenant_id': 'a2e0dda9b0114494be201260530cc5fc', 'project_id': 'a2e0dda9b0114494be201260530cc5fc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-05397252', 'ctest-vn4-95179630'], 'port_security_enabled': True, 'description': ''}} 2025-08-05 07:17:43,215 - DEBUG - Response for create_subnet : {'subnet': {'id': '9d99956d-8967-40a8-832b-299106122185', 'name': '', 'tenant_id': 'a2e0dda9b0114494be201260530cc5fc', 'network_id': '4c929fb1-b787-4a06-9f1b-c3993f0f0994', 'ip_version': 4, 'cidr': '87.213.85.192/26', 'allocation_pools': [{'start': '87.213.85.194', 'end': '87.213.85.254'}], 'gateway_ip': '87.213.85.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '87.213.85.194', 'tags': [], 'project_id': 'a2e0dda9b0114494be201260530cc5fc'}} 2025-08-05 07:17:43,436 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ddd34385-a1e5-4e94-b22c-18f5bd99f924', 'name': '', 'tenant_id': 'a2e0dda9b0114494be201260530cc5fc', 'network_id': '4c929fb1-b787-4a06-9f1b-c3993f0f0994', 'ip_version': 6, 'cidr': '38fb:4ca7:af32:a93f:6666:b96a::/96', 'allocation_pools': [{'start': '38fb:4ca7:af32:a93f:6666:b96a:0:2', 'end': '38fb:4ca7:af32:a93f:6666:b96a:ffff:fffe'}], 'gateway_ip': '38fb:4ca7:af32:a93f:6666:b96a:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '38fb:4ca7:af32:a93f:6666:b96a:0:2', 'tags': [], 'project_id': 'a2e0dda9b0114494be201260530cc5fc'}} 2025-08-05 07:17:43,457 - INFO - Created VN ctest-vn4-95179630 2025-08-05 07:17:43,509 - DEBUG - VN ctest-vn4-95179630 UUID is 4c929fb1-b787-4a06-9f1b-c3993f0f0994 2025-08-05 07:17:43,720 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4c929fb1-b787-4a06-9f1b-c3993f0f0994', 'name': 'ctest-vn4-95179630', 'tenant_id': 'a2e0dda9b0114494be201260530cc5fc', 'project_id': 'a2e0dda9b0114494be201260530cc5fc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9d99956d-8967-40a8-832b-299106122185', 'ddd34385-a1e5-4e94-b22c-18f5bd99f924'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-05397252', 'ctest-vn4-95179630'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-05397252', 'ctest-policy1-48868628']], 'subnet_ipam': [{'subnet_cidr': '87.213.85.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '38fb:4ca7:af32:a93f:6666:b96a::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-05 07:17:43,889 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-08-05 07:17:44,182 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-08-05 07:17:44,212 - DEBUG - Requesting: http://10.0.0.49:8082/domain/254e05bd-08ec-4968-824f-1cd9244d9bd1 2025-08-05 07:17:44,226 - DEBUG - Requesting: http://10.0.0.49:8082/project/a2e0dda9-b011-4494-be20-1260530cc5fc 2025-08-05 07:17:44,326 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/4c929fb1-b787-4a06-9f1b-c3993f0f0994 2025-08-05 07:17:44,339 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/4c929fb1-b787-4a06-9f1b-c3993f0f0994 2025-08-05 07:17:44,349 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/26f9c80f-224e-433e-94ac-d3572d96df79 2025-08-05 07:17:44,357 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/26f9c80f-224e-433e-94ac-d3572d96df79 2025-08-05 07:17:44,366 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/f435ae1b-787b-4b22-b5e0-a298ced62996 2025-08-05 07:17:44,373 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-05 07:17:44,373 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/4c929fb1-b787-4a06-9f1b-c3993f0f0994 2025-08-05 07:17:44,384 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/26f9c80f-224e-433e-94ac-d3572d96df79 2025-08-05 07:17:44,400 - INFO - Verified VN network id 12 for VN 4c929fb1-b787-4a06-9f1b-c3993f0f0994 2025-08-05 07:17:44,400 - INFO - Verifications in API Server for VN ctest-vn4-95179630 passed 2025-08-05 07:17:44,400 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/4c929fb1-b787-4a06-9f1b-c3993f0f0994 2025-08-05 07:17:44,410 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/26f9c80f-224e-433e-94ac-d3572d96df79 2025-08-05 07:17:44,417 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/26f9c80f-224e-433e-94ac-d3572d96df79 2025-08-05 07:17:44,424 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/f435ae1b-787b-4b22-b5e0-a298ced62996 2025-08-05 07:17:44,438 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05397252:ctest-vn4-95179630', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-05397252', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5517648079119403526', 'uuid-lslong': '11464972339357092244'}, 'enable': 'true', 'created': '2025-08-05T07:17:43', 'last-modified': '2025-08-05T07:17:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.751479'} 2025-08-05 07:17:44,445 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-05 07:17:44,445 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-95179630 passed 2025-08-05 07:17:44,445 - DEBUG - ====Verifying policy data for ctest-vn4-95179630 in API_Server ====== 2025-08-05 07:17:44,445 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-08-05 07:17:44,451 - DEBUG - Requesting: http://10.0.0.49:8082/domain/254e05bd-08ec-4968-824f-1cd9244d9bd1 2025-08-05 07:17:44,463 - DEBUG - Requesting: http://10.0.0.49:8082/project/a2e0dda9-b011-4494-be20-1260530cc5fc 2025-08-05 07:17:44,535 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/4c929fb1-b787-4a06-9f1b-c3993f0f0994 2025-08-05 07:17:44,545 - DEBUG - ==>Verifying data for policy with id: 30bd408c-c8da-49a2-8b2d-95808a75238b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-05397252', 'ctest-policy1-48868628'] 2025-08-05 07:17:44,546 - INFO - VN ctest-vn4-95179630 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-05 07:17:44,546 - DEBUG - Verifying the vn in opserver 2025-08-05 07:17:44,546 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05397252:ctest-vn4-95179630 virtual network link through opserver 10.0.0.49 2025-08-05 07:17:44,546 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-08-05 07:17:44,838 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-08-05 07:17:44,899 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05397252:ctest-vn4-95179630', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05397252:ctest-vn4-95179630?flat'} 2025-08-05 07:17:44,899 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05397252:ctest-vn4-95179630 is found in opserver 2025-08-05 07:17:44,911 - DEBUG - Do not have enough data to verify VN in agent 2025-08-05 07:17:44,916 - DEBUG - VRF ids for VN ctest-vn4-95179630: {} 2025-08-05 07:17:44,917 - DEBUG - ====Verifying data for ctest-policy1-48868628 in API_Server ====== 2025-08-05 07:17:44,917 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-08-05 07:17:44,923 - DEBUG - Requesting: http://10.0.0.49:8082/domain/254e05bd-08ec-4968-824f-1cd9244d9bd1 2025-08-05 07:17:44,935 - DEBUG - Requesting: http://10.0.0.49:8082/project/a2e0dda9-b011-4494-be20-1260530cc5fc 2025-08-05 07:17:45,006 - DEBUG - Requesting: http://10.0.0.49:8082/network-policy/30bd408c-c8da-49a2-8b2d-95808a75238b 2025-08-05 07:17:45,016 - INFO - Verified policy ctest-policy1-48868628 in API Server, Result: True 2025-08-05 07:17:45,017 - INFO - Done with setup and verification, moving onto test .. 2025-08-05 07:17:45,025 - INFO - Deleting VN ctest-vn4-95179630 2025-08-05 07:17:45,140 - DEBUG - Response for deleting network () 2025-08-05 07:17:45,140 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/26f9c80f-224e-433e-94ac-d3572d96df79 2025-08-05 07:17:45,145 - DEBUG - Response Code: 404 2025-08-05 07:17:45,145 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-08-05 07:17:45,150 - DEBUG - Requesting: http://10.0.0.49:8082/domain/254e05bd-08ec-4968-824f-1cd9244d9bd1 2025-08-05 07:17:45,206 - DEBUG - Requesting: http://10.0.0.49:8082/project/a2e0dda9-b011-4494-be20-1260530cc5fc 2025-08-05 07:17:45,279 - INFO - Validated that VN ctest-vn4-95179630 is not found in API Server 2025-08-05 07:17:45,291 - DEBUG - VN ctest-vn4-95179630 is not present in Agent 10.0.0.49 2025-08-05 07:17:45,291 - INFO - Validated that VN ctest-vn4-95179630 is not in any agent 2025-08-05 07:17:45,306 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-95179630 info 2025-08-05 07:17:45,332 - INFO - Deleted policy ctest-policy1-48868628 2025-08-05 07:17:45,521 - DEBUG - policy ctest-policy1-48868628 is not found in API Server 2025-08-05 07:17:45,779 - DEBUG - No XMPP flaps were noticed during the test 2025-08-05 07:17:45,780 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-08-05 07:17:45,780 - INFO - -------------------------------------------------------------------------------- 2025-08-05 07:17:46,067 - DEBUG - No XMPP flaps were noticed during the test 2025-08-05 07:17:46,067 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-08-05 07:17:46,067 - INFO - -------------------------------------------------------------------------------- 2025-08-05 07:17:46,743 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-05397252, ID : a2e0dda9-b011-4494-be20-1260530cc5fc