2025-09-22 14:39:16,956 - INFO - Domain Default found not creating 2025-09-22 14:39:17,111 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-33353040 not found, creating it 2025-09-22 14:39:17,560 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-33353040, ID : 41783cbf-e575-4d83-9a34-de513f230f5a 2025-09-22 14:39:19,093 - INFO - ================================================================================ 2025-09-22 14:39:19,094 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-22 14:39:19,350 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0'}} with 2025-09-22 14:39:19,351 - INFO - Initial checks done. Running the testcase now 2025-09-22 14:39:19,351 - INFO - 2025-09-22 14:39:19,351 - INFO - ================================================================================ 2025-09-22 14:39:19,351 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-22 14:39:19,351 - 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 14:39:19,637 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0'}} with 2025-09-22 14:39:19,637 - INFO - Initial checks done. Running the testcase now 2025-09-22 14:39:19,637 - INFO - 2025-09-22 14:39:20,029 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33353040:ctest-vn4-35506824, 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-33353040:ctest-vn4-35506824, 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-33353040:ctest-vn4-35506824, 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-33353040:ctest-vn4-35506824, 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 14:39:20,538 - DEBUG - Response for create_network : {'network': {'id': '8305b3a0-3baa-44c4-b547-f736dc978471', 'name': 'ctest-vn4-35506824', 'tenant_id': '41783cbfe5754d839a34de513f230f5a', 'project_id': '41783cbfe5754d839a34de513f230f5a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33353040', 'ctest-vn4-35506824'], 'port_security_enabled': True, 'description': ''}} 2025-09-22 14:39:20,715 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c0e7eaa1-43db-45d2-b577-4795655fa061', 'name': '', 'tenant_id': '41783cbfe5754d839a34de513f230f5a', 'network_id': '8305b3a0-3baa-44c4-b547-f736dc978471', 'ip_version': 4, 'cidr': '80.222.191.64/26', 'allocation_pools': [{'start': '80.222.191.66', 'end': '80.222.191.126'}], 'gateway_ip': '80.222.191.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '80.222.191.66', 'tags': [], 'project_id': '41783cbfe5754d839a34de513f230f5a'}} 2025-09-22 14:39:20,934 - DEBUG - Response for create_subnet : {'subnet': {'id': '30f0ae49-b35b-4943-b945-0f3b1d9df3f0', 'name': '', 'tenant_id': '41783cbfe5754d839a34de513f230f5a', 'network_id': '8305b3a0-3baa-44c4-b547-f736dc978471', 'ip_version': 6, 'cidr': '32ba:aef9:f444:58d9:5b4b:14ce::/96', 'allocation_pools': [{'start': '32ba:aef9:f444:58d9:5b4b:14ce:0:2', 'end': '32ba:aef9:f444:58d9:5b4b:14ce:ffff:fffe'}], 'gateway_ip': '32ba:aef9:f444:58d9:5b4b:14ce:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '32ba:aef9:f444:58d9:5b4b:14ce:0:2', 'tags': [], 'project_id': '41783cbfe5754d839a34de513f230f5a'}} 2025-09-22 14:39:20,955 - INFO - Created VN ctest-vn4-35506824 2025-09-22 14:39:21,008 - DEBUG - VN ctest-vn4-35506824 UUID is 8305b3a0-3baa-44c4-b547-f736dc978471 2025-09-22 14:39:21,226 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8305b3a0-3baa-44c4-b547-f736dc978471', 'name': 'ctest-vn4-35506824', 'tenant_id': '41783cbfe5754d839a34de513f230f5a', 'project_id': '41783cbfe5754d839a34de513f230f5a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c0e7eaa1-43db-45d2-b577-4795655fa061', '30f0ae49-b35b-4943-b945-0f3b1d9df3f0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33353040', 'ctest-vn4-35506824'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33353040', 'ctest-policy1-25898268']], 'subnet_ipam': [{'subnet_cidr': '80.222.191.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '32ba:aef9:f444:58d9:5b4b:14ce::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-22 14:39:21,400 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-09-22 14:39:21,732 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-09-22 14:39:21,761 - DEBUG - Requesting: http://10.0.0.33:8082/domain/db429cd0-5ff3-4c01-a60c-1af89ac21b55 2025-09-22 14:39:21,773 - DEBUG - Requesting: http://10.0.0.33:8082/project/41783cbf-e575-4d83-9a34-de513f230f5a 2025-09-22 14:39:21,846 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/8305b3a0-3baa-44c4-b547-f736dc978471 2025-09-22 14:39:21,858 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/8305b3a0-3baa-44c4-b547-f736dc978471 2025-09-22 14:39:21,868 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/d358834a-b20c-4a2d-829d-f9b4c98b84c4 2025-09-22 14:39:21,877 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/d358834a-b20c-4a2d-829d-f9b4c98b84c4 2025-09-22 14:39:21,884 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/5a24e5e2-0106-400a-9ca4-9409969e8f5d 2025-09-22 14:39:21,891 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-22 14:39:21,891 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/8305b3a0-3baa-44c4-b547-f736dc978471 2025-09-22 14:39:21,904 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/d358834a-b20c-4a2d-829d-f9b4c98b84c4 2025-09-22 14:39:21,918 - INFO - Verified VN network id 11 for VN 8305b3a0-3baa-44c4-b547-f736dc978471 2025-09-22 14:39:21,918 - INFO - Verifications in API Server for VN ctest-vn4-35506824 passed 2025-09-22 14:39:21,918 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/8305b3a0-3baa-44c4-b547-f736dc978471 2025-09-22 14:39:21,927 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/d358834a-b20c-4a2d-829d-f9b4c98b84c4 2025-09-22 14:39:21,935 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/d358834a-b20c-4a2d-829d-f9b4c98b84c4 2025-09-22 14:39:21,943 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/5a24e5e2-0106-400a-9ca4-9409969e8f5d 2025-09-22 14:39:21,957 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33353040:ctest-vn4-35506824', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-33353040', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9441149694629266628', 'uuid-lslong': '13062681059212625009'}, 'enable': 'true', 'created': '2025-09-22T14:39:20', 'last-modified': '2025-09-22T14:39:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.756607'} 2025-09-22 14:39:21,965 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-22 14:39:21,965 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-35506824 passed 2025-09-22 14:39:21,965 - DEBUG - ====Verifying policy data for ctest-vn4-35506824 in API_Server ====== 2025-09-22 14:39:21,965 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-09-22 14:39:21,971 - DEBUG - Requesting: http://10.0.0.33:8082/domain/db429cd0-5ff3-4c01-a60c-1af89ac21b55 2025-09-22 14:39:21,983 - DEBUG - Requesting: http://10.0.0.33:8082/project/41783cbf-e575-4d83-9a34-de513f230f5a 2025-09-22 14:39:22,055 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/8305b3a0-3baa-44c4-b547-f736dc978471 2025-09-22 14:39:22,065 - DEBUG - ==>Verifying data for policy with id: 3a1c95d7-84b8-4350-8f1d-54eaba488822, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33353040', 'ctest-policy1-25898268'] 2025-09-22 14:39:22,065 - INFO - VN ctest-vn4-35506824 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-22 14:39:22,065 - DEBUG - Verifying the vn in opserver 2025-09-22 14:39:22,065 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33353040:ctest-vn4-35506824 virtual network link through opserver 10.0.0.33 2025-09-22 14:39:22,065 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-09-22 14:39:22,399 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-09-22 14:39:22,455 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33353040:ctest-vn4-35506824', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33353040:ctest-vn4-35506824?flat'} 2025-09-22 14:39:22,455 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33353040:ctest-vn4-35506824 is found in opserver 2025-09-22 14:39:22,466 - DEBUG - Do not have enough data to verify VN in agent 2025-09-22 14:39:22,470 - DEBUG - VRF ids for VN ctest-vn4-35506824: {} 2025-09-22 14:39:22,471 - DEBUG - ====Verifying data for ctest-policy1-25898268 in API_Server ====== 2025-09-22 14:39:22,471 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-09-22 14:39:22,476 - DEBUG - Requesting: http://10.0.0.33:8082/domain/db429cd0-5ff3-4c01-a60c-1af89ac21b55 2025-09-22 14:39:22,488 - DEBUG - Requesting: http://10.0.0.33:8082/project/41783cbf-e575-4d83-9a34-de513f230f5a 2025-09-22 14:39:22,556 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/3a1c95d7-84b8-4350-8f1d-54eaba488822 2025-09-22 14:39:22,567 - INFO - Verified policy ctest-policy1-25898268 in API Server, Result: True 2025-09-22 14:39:22,567 - INFO - Done with setup and verification, moving onto test .. 2025-09-22 14:39:22,574 - INFO - Deleting VN ctest-vn4-35506824 2025-09-22 14:39:22,699 - DEBUG - Response for deleting network () 2025-09-22 14:39:22,699 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/d358834a-b20c-4a2d-829d-f9b4c98b84c4 2025-09-22 14:39:22,705 - DEBUG - Response Code: 404 2025-09-22 14:39:22,706 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-09-22 14:39:22,782 - DEBUG - Requesting: http://10.0.0.33:8082/domain/db429cd0-5ff3-4c01-a60c-1af89ac21b55 2025-09-22 14:39:22,793 - DEBUG - Requesting: http://10.0.0.33:8082/project/41783cbf-e575-4d83-9a34-de513f230f5a 2025-09-22 14:39:22,866 - INFO - Validated that VN ctest-vn4-35506824 is not found in API Server 2025-09-22 14:39:22,877 - DEBUG - VN ctest-vn4-35506824 is not present in Agent 10.0.0.33 2025-09-22 14:39:22,878 - INFO - Validated that VN ctest-vn4-35506824 is not in any agent 2025-09-22 14:39:22,893 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-35506824 info 2025-09-22 14:39:22,923 - INFO - Deleted policy ctest-policy1-25898268 2025-09-22 14:39:23,084 - DEBUG - policy ctest-policy1-25898268 is not found in API Server 2025-09-22 14:39:23,346 - DEBUG - No XMPP flaps were noticed during the test 2025-09-22 14:39:23,346 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-09-22 14:39:23,346 - INFO - -------------------------------------------------------------------------------- 2025-09-22 14:39:23,635 - DEBUG - No XMPP flaps were noticed during the test 2025-09-22 14:39:23,635 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-09-22 14:39:23,635 - INFO - -------------------------------------------------------------------------------- 2025-09-22 14:39:24,370 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-33353040, ID : 41783cbf-e575-4d83-9a34-de513f230f5a