2025-09-22 02:03:23,902 - INFO - Domain Default found not creating 2025-09-22 02:03:24,070 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-82829991 not found, creating it 2025-09-22 02:03:24,522 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-82829991, ID : 6063220b-6468-4651-93bd-61a56cb79698 2025-09-22 02:03:26,074 - INFO - ================================================================================ 2025-09-22 02:03:26,074 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-22 02:03:26,335 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.17': '0'}} with 2025-09-22 02:03:26,335 - INFO - Initial checks done. Running the testcase now 2025-09-22 02:03:26,335 - INFO - 2025-09-22 02:03:26,335 - INFO - ================================================================================ 2025-09-22 02:03:26,335 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-22 02:03:26,335 - 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-09-22 02:03:26,626 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.17': '0'}} with 2025-09-22 02:03:26,626 - INFO - Initial checks done. Running the testcase now 2025-09-22 02:03:26,626 - INFO - 2025-09-22 02:03:27,013 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82829991:ctest-vn4-89830162, 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-82829991:ctest-vn4-89830162, 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-82829991:ctest-vn4-89830162, 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-82829991:ctest-vn4-89830162, 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-09-22 02:03:27,546 - DEBUG - Response for create_network : {'network': {'id': '954e6390-762b-4f2d-b2ae-65635eada0c8', 'name': 'ctest-vn4-89830162', 'tenant_id': '6063220b6468465193bd61a56cb79698', 'project_id': '6063220b6468465193bd61a56cb79698', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-82829991', 'ctest-vn4-89830162'], 'port_security_enabled': True, 'description': ''}} 2025-09-22 02:03:27,793 - DEBUG - Response for create_subnet : {'subnet': {'id': '30f3cd7d-49be-4b5f-9a47-5c9c02358350', 'name': '', 'tenant_id': '6063220b6468465193bd61a56cb79698', 'network_id': '954e6390-762b-4f2d-b2ae-65635eada0c8', 'ip_version': 4, 'cidr': '117.200.110.0/26', 'allocation_pools': [{'start': '117.200.110.2', 'end': '117.200.110.62'}], 'gateway_ip': '117.200.110.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '117.200.110.2', 'tags': [], 'project_id': '6063220b6468465193bd61a56cb79698'}} 2025-09-22 02:03:27,978 - DEBUG - Response for create_subnet : {'subnet': {'id': '7a60b44b-c178-4a79-a9ee-06dd09f2a6dc', 'name': '', 'tenant_id': '6063220b6468465193bd61a56cb79698', 'network_id': '954e6390-762b-4f2d-b2ae-65635eada0c8', 'ip_version': 6, 'cidr': '211e:bcb5:28ee:5659:f21c:9f8a::/96', 'allocation_pools': [{'start': '211e:bcb5:28ee:5659:f21c:9f8a:0:2', 'end': '211e:bcb5:28ee:5659:f21c:9f8a:ffff:fffe'}], 'gateway_ip': '211e:bcb5:28ee:5659:f21c:9f8a:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '211e:bcb5:28ee:5659:f21c:9f8a:0:2', 'tags': [], 'project_id': '6063220b6468465193bd61a56cb79698'}} 2025-09-22 02:03:28,002 - INFO - Created VN ctest-vn4-89830162 2025-09-22 02:03:28,058 - DEBUG - VN ctest-vn4-89830162 UUID is 954e6390-762b-4f2d-b2ae-65635eada0c8 2025-09-22 02:03:28,275 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '954e6390-762b-4f2d-b2ae-65635eada0c8', 'name': 'ctest-vn4-89830162', 'tenant_id': '6063220b6468465193bd61a56cb79698', 'project_id': '6063220b6468465193bd61a56cb79698', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['30f3cd7d-49be-4b5f-9a47-5c9c02358350', '7a60b44b-c178-4a79-a9ee-06dd09f2a6dc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-82829991', 'ctest-vn4-89830162'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-82829991', 'ctest-policy1-18494648']], 'subnet_ipam': [{'subnet_cidr': '117.200.110.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '211e:bcb5:28ee:5659:f21c:9f8a::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-22 02:03:28,456 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-09-22 02:03:28,791 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-09-22 02:03:28,828 - DEBUG - Requesting: http://10.0.0.19:8082/domain/6dd92d91-881d-4ff3-a388-2d75be9bb5b5 2025-09-22 02:03:28,841 - DEBUG - Requesting: http://10.0.0.19:8082/project/6063220b-6468-4651-93bd-61a56cb79698 2025-09-22 02:03:28,914 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/954e6390-762b-4f2d-b2ae-65635eada0c8 2025-09-22 02:03:28,927 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/954e6390-762b-4f2d-b2ae-65635eada0c8 2025-09-22 02:03:28,939 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/74c4f288-8bff-4b07-bda9-cd2b0422b48d 2025-09-22 02:03:28,946 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/74c4f288-8bff-4b07-bda9-cd2b0422b48d 2025-09-22 02:03:28,952 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/f2a46371-6582-4c45-a65c-f75733034fb2 2025-09-22 02:03:28,958 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-22 02:03:28,958 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/954e6390-762b-4f2d-b2ae-65635eada0c8 2025-09-22 02:03:28,968 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/74c4f288-8bff-4b07-bda9-cd2b0422b48d 2025-09-22 02:03:28,981 - INFO - Verified VN network id 11 for VN 954e6390-762b-4f2d-b2ae-65635eada0c8 2025-09-22 02:03:28,981 - INFO - Verifications in API Server for VN ctest-vn4-89830162 passed 2025-09-22 02:03:28,981 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/954e6390-762b-4f2d-b2ae-65635eada0c8 2025-09-22 02:03:28,990 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/74c4f288-8bff-4b07-bda9-cd2b0422b48d 2025-09-22 02:03:28,997 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/74c4f288-8bff-4b07-bda9-cd2b0422b48d 2025-09-22 02:03:29,004 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/f2a46371-6582-4c45-a65c-f75733034fb2 2025-09-22 02:03:29,017 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82829991:ctest-vn4-89830162', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-82829991', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10758646031943683885', 'uuid-lslong': '12875339862163431624'}, 'enable': 'true', 'created': '2025-09-22T02:03:27', 'last-modified': '2025-09-22T02:03:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.766309'} 2025-09-22 02:03:29,023 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-22 02:03:29,023 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-89830162 passed 2025-09-22 02:03:29,023 - DEBUG - ====Verifying policy data for ctest-vn4-89830162 in API_Server ====== 2025-09-22 02:03:29,023 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-09-22 02:03:29,029 - DEBUG - Requesting: http://10.0.0.19:8082/domain/6dd92d91-881d-4ff3-a388-2d75be9bb5b5 2025-09-22 02:03:29,039 - DEBUG - Requesting: http://10.0.0.19:8082/project/6063220b-6468-4651-93bd-61a56cb79698 2025-09-22 02:03:29,117 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/954e6390-762b-4f2d-b2ae-65635eada0c8 2025-09-22 02:03:29,126 - DEBUG - ==>Verifying data for policy with id: 8ebf16fc-b872-4791-a6aa-c0c2232271de, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-82829991', 'ctest-policy1-18494648'] 2025-09-22 02:03:29,126 - INFO - VN ctest-vn4-89830162 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-22 02:03:29,126 - DEBUG - Verifying the vn in opserver 2025-09-22 02:03:29,126 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82829991:ctest-vn4-89830162 virtual network link through opserver 10.0.0.19 2025-09-22 02:03:29,127 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-09-22 02:03:29,473 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-09-22 02:03:29,528 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82829991:ctest-vn4-89830162', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82829991:ctest-vn4-89830162?flat'} 2025-09-22 02:03:29,528 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82829991:ctest-vn4-89830162 is found in opserver 2025-09-22 02:03:29,538 - DEBUG - Do not have enough data to verify VN in agent 2025-09-22 02:03:29,543 - DEBUG - VRF ids for VN ctest-vn4-89830162: {} 2025-09-22 02:03:29,543 - DEBUG - ====Verifying data for ctest-policy1-18494648 in API_Server ====== 2025-09-22 02:03:29,543 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-09-22 02:03:29,549 - DEBUG - Requesting: http://10.0.0.19:8082/domain/6dd92d91-881d-4ff3-a388-2d75be9bb5b5 2025-09-22 02:03:29,558 - DEBUG - Requesting: http://10.0.0.19:8082/project/6063220b-6468-4651-93bd-61a56cb79698 2025-09-22 02:03:29,628 - DEBUG - Requesting: http://10.0.0.19:8082/network-policy/8ebf16fc-b872-4791-a6aa-c0c2232271de 2025-09-22 02:03:29,638 - INFO - Verified policy ctest-policy1-18494648 in API Server, Result: True 2025-09-22 02:03:29,638 - INFO - Done with setup and verification, moving onto test .. 2025-09-22 02:03:29,645 - INFO - Deleting VN ctest-vn4-89830162 2025-09-22 02:03:29,759 - DEBUG - Response for deleting network () 2025-09-22 02:03:29,759 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/74c4f288-8bff-4b07-bda9-cd2b0422b48d 2025-09-22 02:03:29,764 - DEBUG - Response Code: 404 2025-09-22 02:03:29,764 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-09-22 02:03:29,768 - DEBUG - Requesting: http://10.0.0.19:8082/domain/6dd92d91-881d-4ff3-a388-2d75be9bb5b5 2025-09-22 02:03:29,821 - DEBUG - Requesting: http://10.0.0.19:8082/project/6063220b-6468-4651-93bd-61a56cb79698 2025-09-22 02:03:29,891 - INFO - Validated that VN ctest-vn4-89830162 is not found in API Server 2025-09-22 02:03:29,900 - DEBUG - VN ctest-vn4-89830162 is not present in Agent 10.0.0.19 2025-09-22 02:03:29,900 - INFO - Validated that VN ctest-vn4-89830162 is not in any agent 2025-09-22 02:03:29,914 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-89830162 info 2025-09-22 02:03:29,937 - INFO - Deleted policy ctest-policy1-18494648 2025-09-22 02:03:30,100 - DEBUG - policy ctest-policy1-18494648 is not found in API Server 2025-09-22 02:03:30,358 - DEBUG - No XMPP flaps were noticed during the test 2025-09-22 02:03:30,358 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-09-22 02:03:30,358 - INFO - -------------------------------------------------------------------------------- 2025-09-22 02:03:30,657 - DEBUG - No XMPP flaps were noticed during the test 2025-09-22 02:03:30,657 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-09-22 02:03:30,657 - INFO - -------------------------------------------------------------------------------- 2025-09-22 02:03:31,375 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-82829991, ID : 6063220b-6468-4651-93bd-61a56cb79698